-
Notifications
You must be signed in to change notification settings - Fork 1
/
project-sql.sql
52 lines (43 loc) · 878 Bytes
/
project-sql.sql
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
use project;
create table Admin
(
username varchar(255),
password varchar(255)
);
create table Faculty
(
facultyId int primary key auto_increment,
facultyname varchar(255),
facultyaddress varchar(255),
mobile varchar(10),
email varchar(255),
username varchar(255),
password varchar(255)
);
create table Course
(
courseId int primary key auto_increment,
courseName varchar(255),
fee int,
courseDescription varchar(255)
);
create table Batch
(
batchid int primary key auto_increment,
courseId int,
facultyId int,
numberofStudents int,
batchstartDate date,
duration varchar(255),
foreign key (courseId) references Course (courseid),
foreign key (facultyId) references faculty (facultyid)
);
create table courseplan
(
planid int primary key auto_increment,
batchId int,
daynumber int,
topic varchar(255),
status boolean,
foreign key (batchId) references Batch (batchid)
);