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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 )InvoiceZbookings_to_invoiceT)primary_key   )uniqueindexzbookings.booking_public_id)r   1)defaultr   )nullableNc             C   s.   || _ || _|| _|| _|| _|| _|| _d S )N)invoice_public_id
booking_id
session_idstatusdeletion_marker
created_at
updated_at)selfr   r   r   r   r   r   r    r   (/booking_service/app/database/invoice.py__init__   s    zInvoice.__init__c             C   s
   d| j  S )Nz<Invoice %r>)r   )r   r   r   r   __repr__   s    zInvoice.__repr__c             C   s   | j | j| j| jdS )N)r   r   r   r   )r   r   r   r   )r   r   r   r   return_json"   s    zInvoice.return_json)NNNNNNN)__name__
__module____qualname____tablename__r   ColumnIntegerZ
invoice_idStringr   
ForeignKeyr   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   