The document describes 13 tables needed for a school management system database. The tables store information about user login details, user types, student details, faculty, instruments, course registrations, schedules, leaves, fees and salaries. Each table name is defined along with its primary key, foreign keys and fields with their data types and descriptions.
The document describes 13 tables needed for a school management system database. The tables store information about user login details, user types, student details, faculty, instruments, course registrations, schedules, leaves, fees and salaries. Each table name is defined along with its primary key, foreign keys and fields with their data types and descriptions.
s_id int 6 Primary key login_id int 6 Foreign key s_profile varchar 20 Profile picture path s_name varchar 20 Name of the student s_contact long int 12 Contact of the student s_dob date Date of birth s_gender varchar 10 Gender of the student s_father varchar 20 Name of the father s_mother varchar 20 Name of the mother s_address varchar 20 Address of the student s_homeContact long int 12 Contact of parents s_status int 6 Status of the student
Fac_id int 6 Primary key login_id int 6 Foreign key fac_name varchar 20 Name of the faculty fac_dob date Date of birth fac_address varchar 20 Address of the faculty fac_profile varchar 20 Profile picture path fac_contact long int 12 Contact number fac_qualification varchar 20 Qualification fac_status int 6 Status of the faculty
instru_id int 6 Primary key instru_name varchar 20 Name of the instrument instru_image varchar 20 Instrument image path fac_id int 6 Foreign key instru_status int 6 Status of the instrument
6. Table name : tbl_regCourse
Primary key : reg_id Foreign key : s_id (primary key of tbl_studentDetails), instru_id (primary key of tbl_instruments), batch_id (primary key of tbl_batch)
Field name Type size Description
reg_id int 6 Primary key s_id int 6 Foreign key instru_id int 6 Foreign key batch_id int 6 Foreign key reg_status int 6 Status of the registration
7. Table name : tbl_schedule
Primary key : batch_id
Field name Type size Description
batch_id int 6 Primary key batch_name varchar 20 Name of the batch
sl_id int 6 Primary key s_id int 6 Foreign key sl_date date Date of the leave taken sl_reason varchar 20 Reason for the leave sl_status int 6 Status of the leave
11. Table name : tbl_facLeave
Primary key : fl_id Foreign key : fac_id (primary key of the tbl_faculty)
Field name Type size Description
fl_id int 6 Primary key fac_id int 6 Foreign key fl_date date Date of the leave taken fl_reason varchar 20 Reason for the leave fl_status int 6 Status of the leave