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d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 )BookingStatusZbooking_statusT)primary_key   )uniqueindexF)nullable)r   1)defaultr   Bookingb_statusdynamic)backreflazyNc	       	      C   s4   || _ || _|| _|| _|| _|| _|| _|| _d S )N)booking_status_public_idbooking_status_namebooking_status_description
session_idstatusdeletion_marker
created_at
updated_at)	selfr   r   r   r   r   r   r   r    r   //booking_service/app/database/booking_status.py__init__   s    zBookingStatus.__init__c             C   s
   d| j  S )Nz<BookingStatus %r>)r   )r   r   r   r   __repr__$   s    zBookingStatus.__repr__c             C   s"   | 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   return_json(   s    zBookingStatus.return_json)NNNNNNNN)__name__
__module____qualname____tablename__r   ColumnIntegerZbooking_status_idStringr   r   r   r   r   r   DateTimer   r   relationshipbookingsr   r   r   r   r   r   r   r      s      
r   N)r   routesr   Modelr   r   r   r   r   <module>   s   