Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
LJ-11
Table: Staff
Attribute Name Data Type Constraints Note
StaffId Char (5) Must start with “ST” Primary key
follow up by 3 random
numbers, Ex: “ST001”
StaffName Varchar (20) NOT NULL
StaffAddress Varchar (25) Must start with “Jl.”
StaffPhone Varchar (15) NOT NULL
DateOfBirth Date NOT NULL
Position Varchar (20) Manager or Senior
Instructor or Instructors,
or Administrative staff,
NOT NULL
BranchId Char (5) Must start with “BR” Foreign key
follow up by 3 random ON UPDATE
numbers, Ex: “BR001” CASCADE ON
DELETE SET
NULL
VehicleId Char (5) Must start with “VH” Foreign key
follow up by 3 random ON UPDATE
numbers, Ex: “VH001” CASCADE ON
DELETE SET
NULL
Table: Student
Attribute Name Data Type Constraints Note
StudentId Char (5) Must start with “SU” Primary key
follow up by 3 random
numbers, Ex: “SU001”
StudentName Varchar (20) NOT NULL
StudentAddress Varchar (25) Must start with “Jl.”
StudentPhone Varchar (15) NOT NULL
Gender Varchar (10) Male or Female, NOT
NULL
InterviewReport Varchar (200) NOT NULL
Table: Vehicle
Attribute Name Data Type Constraints Note
VehicleId Char (5) Must start with “VH” Primary key
follow up by 3 random
numbers, Ex: “VH001”
RegisNum Varchar (10) NOT NULL
CheckDate Date NOT NULL
VehicleFaults Varchar (40)
Table: Lesson
Attribute Name Data Type Constraints Note
LessonId Char (5) Must start with “LE” Primary key
follow up by 3 random
numbers, Ex: “LE001”
LessonTime Time Must be between 8 AM
and 8 PM
TestId Char (5) Must start with “TE”
follow up by 3 random
numbers, Ex: “TE001”
TestStatus Varchar (5) Must be ‘Pass’ or ‘Fail’
Table: Branch
https://drive.google.com/open?id=1TfJneT_DQmX4t57lJ3qrc1W-8QiNo_Qj