rooms table
The rooms table in the Hospital Management System Database Schema schema has 5 columns, keyed by id, with 1 foreign key to departments. 1 column in beds references it.
Columns (5)
| Column | Type | Constraints | Description |
|---|---|---|---|
| id | uuid | primary key | |
| department_id | uuid | not null, references departments.id | |
| room_number | varchar(20) | unique, not null | |
| type | room_type | not null | |
| capacity | smallint | not null |
Relationships
rooms.department_idreferencesdepartments.idbeds.room_idreferencesrooms