room_types table
The room_types table in the Hotel Booking Database Schema schema has 11 columns, keyed by id, with 1 foreign key to properties. 4 columns in room_type_amenities, rooms, rate_calendar and booking_rooms reference it.
The sellable unit. Everything a guest shops for and books happens at this level.
Columns (11)
| Column | Type | Constraints | Description |
|---|---|---|---|
| id | uuid | primary key | |
| property_id | uuid | not null, references properties.id | |
| name | varchar(120) | not null | |
| code | varchar(20) | not null | |
| description | text | ||
| max_occupancy | smallint | not null | |
| max_adults | smallint | not null | |
| bed_type | bed_type | not null | |
| bed_count | smallint | not null | |
| size_sqm | smallint | ||
| base_rate_cents | integer | not null |
Indexes (1)
(property_id, code)unique
Relationships
room_types.property_idreferencesproperties.idroom_type_amenities.room_type_idreferencesroom_typesrooms.room_type_idreferencesroom_typesrate_calendar.room_type_idreferencesroom_typesbooking_rooms.room_type_idreferencesroom_types