staff table

The staff table in the Hospital Management System Database Schema schema has 11 columns, keyed by id, with 1 foreign key to departments. 19 columns in doctor_specialties, doctor_schedules, patient_allergies, appointments and 12 more reference it.

One table for every employee. Doctors, nurses, technicians and admin staff differ by role, not by table.

Columns (11)

Columns of the staff table
ColumnTypeConstraintsDescription
iduuidprimary key
department_iduuidreferences departments.id
employee_numbervarchar(32)unique, not null
first_namevarchar(80)not null
last_namevarchar(80)not null
rolestaff_rolenot null
license_numbervarchar(60)unique
emailvarchar(255)unique
phonevarchar(32)
employment_statusemployment_statusnot null
hired_atdatenot null

Indexes (2)

  • (department_id, role)
  • (last_name, first_name)

Relationships