The only question you've asked is whether you need a separate teacher/student table. I'd go with just one table.
So what else do you want to know?
diafol
Rhod Gilbert Fan (ardav)
7,792 posts since Oct 2006
Reputation Points: 1,170
Solved Threads: 1,080
Is this a standard school/college project as I seem to have answered loads of threads on this recently.
Your courses table looks a bit limited.
I wouldn't put days/times there, I'd place it in a separate table:
course_periods
course_period_id
course_id
weekday (or date??)
start_time
end_time
THis way be add more flexibility to the courses - e.g. some may have 3 days, some 1 day. You don't want to be messing with table structure just because the course requirements change.
Also the teacher_id may be better served in another link table, in the event that more than one teacher delivers the course:
course_teacher
course_teacher (optional)
course_id
user_id
In addition the room_id may not be appropriate here too. If the course occurs over more than one session, it's conceivable that locations may change, so, back to the course_periods:
course_periods
course_period_id
course_id
weekday (or date??)
start_time
end_time
room_id
rooms
room_id
room_label
room_map_url
=======================
diafol
Rhod Gilbert Fan (ardav)
7,792 posts since Oct 2006
Reputation Points: 1,170
Solved Threads: 1,080