Skip to main content

rate-plans

The rate_plan table stores information about different pricing structures and conditions associated with room . This table helps manage pricing, discounts, policies, and special rules for different types of guests and booking conditions.

Field NameTypeOtherIndex
idint(11)NOT NULL AUTO_INCREMENT,PK
Namevarchar(100)COLLATE utf8_bin NOT NULL,
DescriptionmediumtextCOLLATE utf8_bin NOT NULL,
Room_idint(11)NOT NULL,Ya
maxnightsvarchar(4)COLLATE utf8_bin NOT NULL DEFAULT '',
Standard_Guests_Included_In_Priceint(11)NOT NULL,
Maximum_Guests_Allowedint(11)NOT NULL,
Extra_Adult_Chargevarchar(10)COLLATE utf8_bin NOT NULL,
Extra_Child_Chargevarchar(10)COLLATE utf8_bin NOT NULL,
breakfast_includedint(11)NOT NULL,
refundableint(11)NOT NULL,
hotel_general_policyint(11)NOT NULL,
custom_policyint(11)NOT NULL,
custom_policy_detailstextCOLLATE utf8_bin NOT NULL,
Standard_Rateint(11)NOT NULL,
Rate_Mint(11)NOT NULL,
Rate_Tint(11)NOT NULL,
Rate_Wint(11)NOT NULL,
Rate_T1int(11)NOT NULL,
Rate_Fint(11)NOT NULL,
Rate_Sint(11)NOT NULL,
Rate_S1int(11)NOT NULL,
Min_Nights_Mint(11)NOT NULL,
Min_Nights_Tint(11)NOT NULL,
Min_Nights_Wint(11)NOT NULL,
Min_Nights_T1int(11)NOT NULL,
Min_Nights_Fint(11)NOT NULL,
Min_Nights_Sint(11)NOT NULL,
Min_Nights_S1int(11)NOT NULL,
Default_Inclusionsvarchar(100)COLLATE utf8_bin NOT NULL,
Deafult_roll_in_atint(11)NOT NULL,
overwrite_yearroundint(11)NOT NULL,
Last_minute_rate_typevarchar(50)COLLATE utf8_bin NOT NULL,
ota_rateupdateint(11)NOT NULL,
LM_Rate_Mint(11)NOT NULL,
LM_Rate_Tint(11)NOT NULL,
LM_Rate_Wint(11)NOT NULL,
LM_Rate_T1int(11)NOT NULL,
LM_Rate_Fint(11)NOT NULL,
LM_Rate_Sint(11)NOT NULL,
LM_Rate_S1int(11)NOT NULL,
LM_Min_Nights_Mint(11)NOT NULL,
LM_Min_Nights_Tint(11)NOT NULL,
LM_Min_Nights_Wint(11)NOT NULL,
LM_Min_Nights_T1int(11)NOT NULL,
LM_Min_Nights_Fint(11)NOT NULL,
LM_Min_Nights_Sint(11)NOT NULL,
LM_Min_Nights_S1int(11)NOT NULL,
LM_Default_Inclusionsvarchar(100)COLLATE utf8_bin NOT NULL,
LM_Default_roll_in_atint(11)NOT NULL,
overwrite_lmroundint(11)NOT NULL,
D_Rate_Mint(11)NOT NULL,
D_Rate_Tint(11)NOT NULL,
D_Rate_Wint(11)NOT NULL,
D_Rate_T1int(11)NOT NULL,
D_Rate_Fint(11)NOT NULL,
D_Rate_Sint(11)NOT NULL,
D_Rate_S1int(11)NOT NULL,
D_Min_Nights_Mint(11)NOT NULL,
D_Min_Nights_Tint(11)NOT NULL,
D_Min_Nights_Wint(11)NOT NULL,
D_Min_Nights_T1int(11)NOT NULL,
D_Min_Nights_Fint(11)NOT NULL,
D_Min_Nights_Sint(11)NOT NULL,
D_Min_Nights_S1int(11)NOT NULL,
D_LM_Rate_Mint(11)NOT NULL,
D_LM_Rate_Tint(11)NOT NULL,
D_LM_Rate_Wint(11)NOT NULL,
D_LM_Rate_T1int(11)NOT NULL,
D_LM_Rate_Fint(11)NOT NULL,
D_LM_Rate_Sint(11)NOT NULL,
D_LM_Rate_S1int(11)NOT NULL,
D_LM_Min_Nights_Mint(11)NOT NULL,
D_LM_Min_Nights_Tint(11)NOT NULL,
D_LM_Min_Nights_Wint(11)NOT NULL,
D_LM_Min_Nights_T1int(11)NOT NULL,
D_LM_Min_Nights_Fint(11)NOT NULL,
D_LM_Min_Nights_Sint(11)NOT NULL,
D_LM_Min_Nights_S1int(11)NOT NULL,
ImagesmediumtextCOLLATE utf8_bin NOT NULL,
specific_rulevarchar(20)COLLATE utf8_bin NOT NULL,
specific_amountvarchar(10)COLLATE utf8_bin NOT NULL,
specific_amounttypevarchar(10)COLLATE utf8_bin NOT NULL,
show_optionenum('show','hide')COLLATE utf8_bin NOT NULL DEFAULT 'show',
link_rateplanidint(11)NOT NULL,Ya
airbnb_cal_idvarchar(20)COLLATE utf8_bin NOT NULL,
depositvarchar(10)COLLATE utf8_bin DEFAULT NULL,
rate_amenities_codesvarchar(100)COLLATE utf8_bin NOT NULL,
meal_plan_codevarchar(100)COLLATE utf8_bin NOT NULL,
trip_room_flagint(11)NOT NULL,
Maximum_Children_Allowedint(11)NOT NULL,
Maximum_Adults_Allowedint(11)NOT NULL,
min_ratevarchar(100)COLLATE utf8_bin NOT NULL,
startdateNOT NULL,
enddateNOT NULL,
same_roomint(11)NOT NULL,
show_option_monthlyint(11)NOT NULL,
breakfast_costint(11)NOT NULL,
breakfast_cost_kidsint(11)NOT NULL,
exclude_taxint(11)NOT NULL,
ui_orderint(11)DEFAULT '0',
Below is a detailed explanation of each field: s

Basic Identifiers

  • id: Unique identifier for the rate plan.
  • Name: The name of the rate plan (e.g., "Standard Rate," "Non-Refundable Rate").
  • Description: A brief description of the rate plan.
  • Room_id: Links the rate plan to a specific room.

Guest & Occupancy Settings

  • Standard_Guests_Included_In_Price: The number of guests included in the base price.
  • Maximum_Guests_Allowed: The maximum number of guests that can stay in the room under this rate plan.
  • Maximum_Adults_Allowed: The maximum number of adults allowed in the room.
  • Maximum_Children_Allowed: The maximum number of children allowed in the room.
  • Extra_Adult_Charge: Additional charge per extra adult beyond the standard included guests.
  • Extra_Child_Charge: Additional charge per extra child.

Meal & Add-ons

  • breakfast_included: Whether breakfast is included in the rate (yes/no).
  • breakfast_cost: Cost of breakfast if not included.
  • breakfast_cost_kids: Cost of breakfast for children.
  • meal_plan_code: Code indicating the meal plan type (e.g., "BB" for Bed & Breakfast).

Refund & Cancellation Policies

  • refundable: Indicates if the booking under this rate is refundable.
  • hotel_general_policy: General policy applied to all rate plans at the hotel.
  • custom_policy: Indicates if there’s a custom cancellation or refund policy.
  • custom_policy_details: Detailed description of the custom policy.

Pricing & Rate Settings

  • Standard_Rate: The default standard rate for this plan.
  • Rate_M, Rate_T, Rate_W, Rate_T1, Rate_F, Rate_S, Rate_S1: Rates for each day of the week (Monday–Sunday).
  • Min_Nights_M, Min_Nights_T, Min_Nights_W, Min_Nights_T1, Min_Nights_F, Min_Nights_S, Min_Nights_S1: Minimum nights required for a booking on each day of the week.

Default Inclusions

  • Default_Inclusions: Lists services or amenities included in the rate (e.g., Wi-Fi, free parking).
  • Deafult_roll_in_at: Default time when the rate plan gets applied.

Last-Minute Booking Rates

  • Last_minute_rate_type: Defines how last-minute rates are calculated (e.g., percentage discount, fixed amount).
  • ota_rateupdate: Indicates if this rate plan is updated dynamically on OTAs (Online Travel Agencies).
  • LM_Rate_M, LM_Rate_T, ..., LM_Rate_S1: Last-minute rates for each day of the week.
  • LM_Min_Nights_M, LM_Min_Nights_T, ..., LM_Min_Nights_S1: Minimum stay required for last-minute bookings.
  • LM_Default_Inclusions: Default inclusions for last-minute rates.
  • LM_Default_roll_in_at: Time when last-minute rates are activated.
  • overwrite_lmround: Whether last-minute rates override year-round rates.

Discounted Rates

  • D_Rate_M, D_Rate_T, ..., D_Rate_S1: Discounted rates for each day of the week.
  • D_Min_Nights_M, D_Min_Nights_T, ..., D_Min_Nights_S1: Minimum stay required for discounted rates.
  • D_LM_Rate_M, D_LM_Rate_T, ..., D_LM_Rate_S1: Last-minute discounted rates.
  • D_LM_Min_Nights_M, D_LM_Min_Nights_T, ..., D_LM_Min_Nights_S1: Minimum nights required for last-minute discounted rates.

Special Rules & Customizations

  • specific_rule: Defines any specific booking rules.
  • specific_amount: Amount associated with the special rule.
  • specific_amounttype: Type of amount (e.g., percentage, fixed).
  • show_option: Whether the rate plan is visible in the booking system.
  • show_option_monthly: Whether the rate plan is available for monthly bookings.
  • same_room: Indicates if this rate plan can be applied to the same room type across multiple properties.

Additional Features

  • Images: Associated images or media for the rate plan.
  • link_rateplanid: Links this rate plan to another rate plan.
  • airbnb_cal_id: Airbnb calendar ID for synchronization.
  • deposit: Deposit required for booking this rate plan.
  • rate_amenities_codes: Lists amenities available with this rate.
  • trip_room_flag: Special flag related to room configuration in trip bookings.

Tax & Financials

  • exclude_tax: Whether tax is excluded from the displayed rate.
  • min_rate: Minimum allowed rate for this plan.
  • ui_order: The order in which this rate plan appears in the UI.

Date & Time Constraints

  • start: Start date for when this rate is applicable.
  • end: End date for when this rate is applicable.