doctor_schedules table

The doctor_schedules table in the Hospital Management System Database Schema schema has 8 columns, keyed by id, with 2 foreign keys to staff and departments.

Recurring availability, not individual slots. weekday is 0-6. valid_to null means still in force.

Columns (8)

Columns of the doctor_schedules table
ColumnTypeConstraintsDescription
iduuidprimary key
staff_iduuidnot null, references staff.id
department_iduuidreferences departments.id
weekdaysmallintnot null
starts_attimenot null
ends_attimenot null
valid_fromdatenot null
valid_todate

Indexes (1)

  • (staff_id, weekday)

Relationships