-
Notifications
You must be signed in to change notification settings - Fork 0
/
MySQL
48 lines (37 loc) · 985 Bytes
/
MySQL
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
Table "Faculty" {
"FacultyID" int [pk, not null, increment]
"FacultyName" varchar(20) [not null]
"FacultyAddress" varchar(25) [default: NULL]
"Mobile" varchar(15) [default: NULL]
"EMAIL" varchar(30) [default: NULL]
"Username" varchar(20) [not null]
"Password" varchar(15) [not null]
}
Table "Admin" {
"Username" varchar(20) [pk, not null]
"Password" varchar(15) [not null]
}
Table "Course" {
"CourseID" int [pk, increment]
"CourseName" varchar(20) [not null]
"Fee" int [not null]
"CourseDescription" varchar(50)
}
Table "Batch" {
"BatchID" int [pk, increment]
"CourseID" int
"FacultyID" int
"NumberOfStudents" int
"BatchStartDate" date
"Duration" varchar(20)
}
Table "CoursePlan" {
"PlanID" int [pk, increment]
"BatchID" int
"DayNumber" int
"topic" varchar(20)
"status" varchar(8)
}
Ref: "Batch"."BatchID" < "CoursePlan"."BatchID"
Ref: "Batch"."CourseID" < "Course"."CourseID"
Ref: "Batch"."FacultyID" < "Faculty"."FacultyID"