Create database studentregistration
Database Tables
1. Students Table
o student_id (Primary Key)
o first_name
o last_name
o date_of_birth
o gender
o email
o phone_number
o address
o enrollment_date
2. Courses Table
o course_id (Primary Key)
o course_name
o course_description
o credits
o department_id (Foreign Key)
3. Departments Table
o department_id (Primary Key)
o department_name
o department_head
4. Instructors Table
o instructor_id (Primary Key)
o first_name
o last_name
o email
o phone_number
o department_id (Foreign Key)
5. Class Schedules Table
o class_id (Primary Key)
o course_id (Foreign Key)
o instructor_id (Foreign Key)
o class_date
o start_time
o end_time
o room_number
6. Enrollments Table
o enrollment_id (Primary Key)
o student_id (Foreign Key)
o course_id (Foreign Key)
o enrollment_date
o grade
7. Attendance Table
o attendance_id (Primary Key)
o student_id (Foreign Key)
o class_id (Foreign Key)
o attendance_date
o status (Present/Absent)
8. Grades Table
o grade_id (Primary Key)
o student_id (Foreign Key)
o course_id (Foreign Key)
o grade
9. Users Table (for authentication)
o user_id (Primary Key)
o username
o password (hashed for security)
o role (student, instructor, admin)
10. Transcripts Table
o transcript_id (Primary Key)
o student_id (Foreign Key)
o course_id (Foreign Key)
o grade
o semester
o year
11. Dormitory Assignments Table
o assignment_id (Primary Key)
o student_id (Foreign Key)
o dorm_id (Foreign Key)
o room_number
o move_in_date
o move_out_date