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	Zejej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dddZejejdd	ZejejZejejZdddZdd Zdd ZdS )	PromoCodeZbooking_promo_codesT)primary_key   )uniqueindexzbookings.booking_public_id)r   F)nullableP   
      r   )default1)r   r   Nc             C   sF   || _ || _|| _|| _|| _|| _|| _|| _|	| _|
| _	|| _
d S )N)booking_promo_public_id
booking_idbooking_promo_codebooking_promo_code_applicationbooking_promo_precentagebooking_promo_fee_currencybooking_promo_feestatusdeletion_marker
created_at
updated_at)selfr   r   r   r   r   r   r   r   r   r   r    r   3/booking_service/app/database/booking_promo_code.py__init__   s    zPromoCode.__init__c             C   s
   d| j  S )Nz<PromoCode %r>)r   )r   r   r   r   __repr__'   s    zPromoCode.__repr__c          	   C   s&   | j | j| j| j| j| j| j| jdS )N)r   r   r   r   r   r   r   r   )r   r   r   r   r   r   r   r   )r   r   r   r   return_json+   s    zPromoCode.return_json)NNNNNNNNNNN)__name__
__module____qualname____tablename__r   ColumnIntegerZbooking_promo_idStringr   
ForeignKeyr   r   r   Floatr   r   r   r   r   DateTimer   r   r   r   r   r   r   r   r   r      s&      
r   N)r   routesr   Modelr   r   r   r   r   <module>   s   