rate_plans table

The rate_plans table in the Hotel Booking Database Schema schema has 10 columns, keyed by id, with 2 foreign keys to properties and cancellation_policies. 2 columns in rate_calendar and booking_rooms reference it.

Non-refundable at a lower price is a rate plan, not a discount. It carries its own cancellation policy.

Columns (10)

Columns of the rate_plans table
ColumnTypeConstraintsDescription
iduuidprimary key
property_iduuidnot null, references properties.id
cancellation_policy_iduuidreferences cancellation_policies.id
namevarchar(120)not null
codevarchar(20)not null
meal_planmeal_plannot null
min_stay_nightssmallint
max_stay_nightssmallint
is_refundablebooleannot null
is_activebooleannot null

Indexes (1)

  • (property_id, code) unique

Relationships