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)

Columns of the housekeeping_tasks table
ColumnTypeConstraintsDescription
iduuidprimary key
room_iduuidnot null, references rooms.id
assigned_tovarchar(120)
typehousekeeping_typenot null
statushousekeeping_statusnot null
scheduled_fordatenot null
completed_attimestamptz
notesvarchar(255)

Indexes (2)

  • (room_id, scheduled_for)
  • (status, scheduled_for)

Relationships

  • housekeeping_tasks.room_id references rooms.id