properties table

The properties table in the Hotel Booking Database Schema schema has 16 columns, keyed by id. 5 columns in room_types, rate_plans, cancellation_policies, bookings and 1 more reference it.

timezone matters more than it looks. A stay date is a local calendar date, not a UTC instant.

Columns (16)

Columns of the properties table
ColumnTypeConstraintsDescription
iduuidprimary key
namevarchar(160)not null
slugvarchar(180)unique, not null
descriptiontext
star_ratingsmallint
address_line1varchar(255)not null
cityvarchar(120)not null
regionvarchar(120)
postal_codevarchar(20)
country_codechar(2)not null
latitudedecimal(9,6)
longitudedecimal(9,6)
timezonevarchar(60)not null
check_in_timetimenot null
check_out_timetimenot null
currencychar(3)not null

Indexes (1)

  • (city, country_code)

Relationships