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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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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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dddZ(ejejdddZ)ejejdddZ*ejejdddZ+ejejZ,ejejZ-ejejddddZ.dd Z/dS )	Inventoryinventory_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<Inventory %r>)inventory_booking_public_id)self r   */booking_service/app/database/inventory.py__repr__.   s    zInventory.__repr__N)0__name__
__module____qualname____tablename__r   ColumnIntegerZinventory_booking_idStringr   
ForeignKey
booking_idinventory_idZinventory_codeDateTimeinventory_booking_dateinventory_booking_adultsinventory_booking_childreninventory_booking_extra_adults inventory_booking_extra_childrenFloatZinventory_cost_per_adultZinventory_cost_per_childZinventory_cost_currencyZinventory_discount_rateZinventory_commission_rateZinventory_discount_fee_currencyZinventory_discount_feeZinventory_analysis_codeZinventory_adult_cost_at_timeZinventory_child_cost_at_timeZinventory_currency_at_timeZinventory_rate_at_timeZinventory_payment_methodZinventory_timeslotZinventory_pickup_location
session_idstatusdeletion_markerZ&inventory_booking_date_before_postponeZ"inventory_booking_adults_residencyZ$inventory_booking_children_residencyZ(inventory_booking_extra_adults_residencyZ*inventory_booking_extra_children_residency
created_at
updated_atnoter   r   r   r   r   r      sL   r   N)r   routesr   Modelr   r   r   r   r   <module>   s   