departments table
The departments table in the Hospital Management System Database Schema schema has 5 columns, keyed by id. 5 columns in staff, doctor_schedules, rooms, appointments and 1 more reference it.
Cardiology, Radiology, Emergency and so on. Rooms and staff both belong to one.
Columns (5)
| Column | Type | Constraints | Description |
|---|---|---|---|
| id | uuid | primary key | |
| name | varchar(120) | unique, not null | |
| code | varchar(20) | unique, not null | |
| floor | varchar(20) | ||
| phone | varchar(32) |
Relationships
staff.department_idreferencesdepartmentsdoctor_schedules.department_idreferencesdepartmentsrooms.department_idreferencesdepartmentsappointments.department_idreferencesdepartmentsencounters.department_idreferencesdepartments