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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d	ZejejZejejZdddZdd Zdd Zd
S )GateZgatesT)primary_key   )uniqueindex)r   1)defaultr   )nullableNc	       	      C   s4   || _ || _|| _|| _|| _|| _|| _|| _d S )N)gate_public_id	gate_nameentry_mode_id
session_idstatusdeletion_marker
created_at
updated_at)	selfr   r   r   r   r   r   r   r    r   %/booking_service/app/database/gate.py__init__   s    zGate.__init__c             C   s
   d| j  S )Nz	<Gate %r>)r   )r   r   r   r   __repr__    s    zGate.__repr__c             C   s   | j | jdS )N)r   r   )r   r   )r   r   r   r   return_json$   s    zGate.return_json)NNNNNNNN)__name__
__module____qualname____tablename__r   ColumnIntegerZgate_idStringr   r   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   