-
Notifications
You must be signed in to change notification settings - Fork 0
/
Tables.txt
64 lines (38 loc) · 956 Bytes
/
Tables.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
create table loginhod
(
name varchar(20) Not Null,
username varchar(30) Primary key,
password varchar(20) Not Null
);
create table register_employee
(
empid int primary key auto_increment,
Name varchar(20) not null,
username varchar(30) not null unique,
Password varchar(20) Not Null
);
create table register_Engineer
(
engid int primary key auto_increment,
Name varchar(20) not null,
username varchar(30) not null unique,
password varchar(20) Not Null,
Category varchar(30) not null
);
create table Complain
(
ComplainId int AUTO_INCREMENT primary key,
ComplainName varchar(20) Not Null,
Category varchar(20)Not NUll,
foreign key (ComplainId) references Employee(empid)
);
create table EngineerComplain
(
engid int,
Name varchar(20) not null,
Category varchar(30) not null,
EcomplainId int,
ComplainStatus varchar(30),
foreign key (engid) references Engineer(engid),
foreign key (EcomplainId) references Complain(ComplainId)
);