housekeeping_tasks table
The housekeeping_tasks table in the Hotel Booking Database Schema schema has 8 columns, keyed by id, with 1 foreign key to rooms.
A room is not sellable again until its departure clean is completed. That is the link between operations and inventory.
Columns (8)
| Column | Type | Constraints | Description |
|---|---|---|---|
| id | uuid | primary key | |
| room_id | uuid | not null, references rooms.id | |
| assigned_to | varchar(120) | ||
| type | housekeeping_type | not null | |
| status | housekeeping_status | not null | |
| scheduled_for | date | not null | |
| completed_at | timestamptz | ||
| notes | varchar(255) |
Indexes (2)
(room_id, scheduled_for)(status, scheduled_for)
Relationships
housekeeping_tasks.room_idreferencesrooms.id