0% found this document useful (0 votes)
108 views

Table

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.
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
108 views

Table

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.
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 3

TABLE DESIGN

1. Table name : tbl_login


Primary key : login_id
Foreign key : utype_id (primary key of tbl_usertypes)

Field name Type size Description


login_id int 6 Primary key
email varchar 20 User name
password varchar 20 Password to login
utype_id int 6 Foreign key (define type of user)

2. Table name : tbl_userTypes


Primary key : utype_id

Field name Type size Description


utype_id int 6 Primary key
userType varchar 20 Define type of user

3. Table name : tbl_studentDetails


Prmary key : s_id
Foreign key : login_id (primary key of tbl_login)

Field name Type size Description


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

4. Table name : tbl_faculty


Primary key : fac_id
Foreign key : login_id (primary key of tbl_login)

Field name Type size Description


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

5. Table name : tbl_instruments


Primary key : instru_id
Foreign key : fac_id (primary key of tbl_faculty)

Field name Type size Description


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

8. Table name : tbl_eveningSchedule


Primary key : e_id
Foreign key : instru_id (primary key of tbl_instruments)

Field name Type size Description


es_id int 6 Primary key
es_day varchar 10 Pointing the day
instru_id int 6 Foreign key
es_status int 6 Status of the schedule

9. Table name : tbl_weekendSchedule


Primary key : ws_id
Foreign key : instru_id (primary key of tbl_instruments)

Field name Type size Description


ws_id int 6 Primary key
ws_time time Starting time
instru_id int 6 Foreign key
ws_status int 6 Status of the schedule

10. Table name : tbl_studentLeave


Primary key : sl_id
Foreign key : s_id (primary key of tbl_studentDetails)

Field name Type size Description


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

12. Table name : tbl_fee


Primary key : fee_id
Foreign key : instru_id (primary key of tbl_instruments)

Field name Type size Description


fee_id int 6 Primary key
instru_id int 6 Foreign key
fee long int 12 Fee/ month

13. Tabel name : tbl_salary


Primary key : sal_id
Foreign key : fac_id (primary key of the table tbl_faculty)

Field name Type size Description


sal_id int 6 Primary key
fac_id int 6 Foreign key
Salary long int 12 Salary / month

You might also like