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)

Columns of the room_types table
ColumnTypeConstraintsDescription
iduuidprimary key
property_iduuidnot null, references properties.id
namevarchar(120)not null
codevarchar(20)not null
descriptiontext
max_occupancysmallintnot null
max_adultssmallintnot null
bed_typebed_typenot null
bed_countsmallintnot null
size_sqmsmallint
base_rate_centsintegernot null

Indexes (1)

  • (property_id, code) unique

Relationships