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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
ZejejZejejZejddddZdddZdd Zdd ZdS )DestinationZgatepass_destinationsT)primary_key   )uniqueindexd   )r   1)defaultr   )nullableZPartnerDestinationZdestination_detailsdynamic)backreflazyNc	       	      C   s4   || _ || _|| _|| _|| _|| _|| _|| _d S )N)gatepass_destination_public_idgatepass_destination_namecode
session_idstatusdeletion_marker
created_at
updated_at)	selfr   r   r   r   r   r   r   r    r   ,/booking_service/app/database/destination.py__init__   s    zDestination.__init__c             C   s
   d| j  S )Nz<Destination %r>)r   )r   r   r   r   __repr__$   s    zDestination.__repr__c             C   s   | j | j| j| j| j| jdS )N)Zdestination_public_idZdestination_nameZdestination_coder   r   r   )r   r   r   r   r   r   )r   r   r   r   return_json(   s    zDestination.return_json)NNNNNNNN)__name__
__module____qualname____tablename__r   ColumnIntegerZgatepass_destination_idStringr   r   r   r   r   r   DateTimer   r   relationshipZdestinations_partnersr   r   r   r   r   r   r   r      s      
r   N)r   routesr   Modelr   r   r   r   r   <module>   s   