3
؀h                 @   s.   d dl m Z  d dlmZ G dd dejZdS )    )datetime)dbc               @   s"  e Zd ZdZejejddZejejddddZ	ejejdej
dddZejejdddd	Zejejdddd	ZejejddZejejddZejejdd
Zejejdd
ZejejZejejZejejddZejejddZejejddZejejddZejejddZejejdZejejZejejddddZejejddddZejejdZejejddddZ ejejdZ!ejejddZ"ejejddZ#ejejddZ$ejejddZ%ejejddZ&ejejddZ'ejejdZ(ejejdZ)ejejdZ*ejejZ+ejejdddZ,ejejddddZ-ejejddd	Z.ejejZ/ejejZ0ejejZ1ejejZ2ejejZ3ejejZ4ejejdZ5ejejZ6ejej7 dd
Z8ejej7 dd
Z9dd Z:dS )Facilityfacility_bookingsT)primary_key   )uniqueindexzbookings.booking_public_id)r	   F)nullabler	   )r
   
      r   )default1)r   r	   c             C   s
   d| j  S )Nz<Facility %r>)facility_booking_public_id)self r   )/booking_service/app/database/facility.py__repr__;   s    zFacility.__repr__N);__name__
__module____qualname____tablename__r   ColumnIntegerZfacility_booking_idStringr   
ForeignKey
booking_idfacility_idZfacility_codeDateTimefacility_booking_check_in_dateZfacility_booking_check_out_datefacility_booking_adultsfacility_booking_childrenfacility_booking_extra_adultsfacility_booking_extra_childrenFloatZfacility_cost_per_adultZfacility_cost_per_childZfacility_fixed_costZfacility_special_priceZ$facility_special_price_unit_increaseZfacility_cost_currencyZfacility_no_of_nightsZfacility_discount_rateZfacility_commission_rateZfacility_discount_fee_currencyZfacility_discount_feeZfacility_analysis_codeZfacility_adult_cost_at_timeZfacility_child_cost_at_timeZfacility_fixed_cost_at_timeZfacility_special_price_at_timeZ,facility_special_price_unit_increase_at_timeZfacility_rate_at_timeZfacility_currency_at_timeZfacility_payment_methodZfacility_catering_typeZfacility_booked_rooms
session_idstatusdeletion_marker
created_at
updated_atZ.facility_booking_check_in_date_before_postponeZ/facility_booking_check_out_date_before_postponeZfacility_parameter_idZexternal_facilityZfacility_parameter_nameZparameter_default_valueTEXTZfacility_supplement_priceZfacility_non_priced_parameterr   r   r   r   r   r      sh   r   N)r   routesr   Modelr   r   r   r   r   <module>   s   