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)
| Column | Type | Constraints | Description |
|---|---|---|---|
| id | uuid | primary key | |
| property_id | uuid | not null, references properties.id | |
| cancellation_policy_id | uuid | references cancellation_policies.id | |
| name | varchar(120) | not null | |
| code | varchar(20) | not null | |
| meal_plan | meal_plan | not null | |
| min_stay_nights | smallint | ||
| max_stay_nights | smallint | ||
| is_refundable | boolean | not null | |
| is_active | boolean | not null |
Indexes (1)
(property_id, code)unique
Relationships
rate_plans.property_idreferencesproperties.idrate_plans.cancellation_policy_idreferencescancellation_policies.idrate_calendar.rate_plan_idreferencesrate_plansbooking_rooms.rate_plan_idreferencesrate_plans