Updated Diagram
Updated Diagram
student_birthday_table
id_student INT(11)
id_birthday INT(11)
firstname VARCHAR(20)
birthday DATE
middlename VARCHAR(20)
age INT(11)
lastname VARCHAR(20)
Indexes
Indexes
courses_table
id_course INT(11)
student_table
coursename VARCHAR(30)
id_student INT(11) Indexes
password VARCHAR(50)
email VARCHAR(20)
sex ENUM('M', 'F') timeandwhere_table
section_table
phone INT(11) id_timeandwhere INT(11)
id_section INT(11)
id_section INT(11) time TIME
sectionname CHAR(5)
id_birthday INT(11) id_establishment INT(11)
employee_info_table
id_course INT(11) id_section INT(11)
id_employee INT(11)
Indexes Indexes
Indexes
email VARCHAR(30)
first_name VARCHAR(20)
middle_initial VARCHAR(20)
last_name VARCHAR(20)
sex ENUM('M', 'F')
subjectinfo_table
password VARCHAR(35)
id_subjectinfo INT(11)
salary DECIMAL(10,2)
id_subject INT(11)
id_position INT(11)
id_employee INT(11)
id_department INT(11)
Indexes id_timeandwhere INT(11)
Indexes
subject_table
employee_position_table
id_subject INT(11)
id_position INT(11)
subject_name VARCHAR(15)
positionname VARCHAR(30)
Indexes
Indexes
department_table
building_table
id_department INT(11)
id_building INT(11)
departmentname VARCHAR(255) establishment_table
buildingname VARCHAR(10)
id_building INT(11) id_establishment INT(11)
Indexes
Indexes floornum INT(11)
roomtype_table roomnum INT(11)
id_roomtype INT(11) id_building INT(11)
roomtype VARCHAR(15) id_roomtype INT(11)
Indexes Indexes