3
؀h                 @   s.   d dl m Z  d dlmZ G dd dejZdS )    )datetime)dbc               @   sz  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ZejejdZejejdddZejejdZejejdZejejdZejejdZejej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 )SchoolZschoolsT)primary_key   )uniqueindex)r   1)defaultr   )nullableSchoolBookingZschool_detailsdynamic)backreflazyNc             C   sp   || _ || _|| _|| _|| _|| _|| _|| _|	| _|
| _	|| _
|| _|| _|| _|| _|| _|| _|| _d S )N)school_public_idschool_nameschool_levelschool_typeschool_genderschool_codeclosest_city_townprimary_contactprimary_contact_emailprimary_contact_phonesecondary_contactsecondary_contact_emailsecondary_contact_phone
session_idstatusdeletion_marker
created_at
updated_at)selfr   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r    r!    r#   '/booking_service/app/database/school.py__init__!   s$    zSchool.__init__c             C   s
   d| j  S )Nz<School %r>)r   )r"   r#   r#   r$   __repr__<   s    zSchool.__repr__c             C   sJ   | j | jj | j| j| j| j| jj | 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   titler   r   r   r   r   r   r   r   r   r   r   r   r    )r"   r#   r#   r$   return_json@   s    zSchool.return_json)NNNNNNNNNNNNNNNNNN)!__name__
__module____qualname____tablename__r   ColumnInteger	school_idStringr   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   DateTimer    r!   relationshipschool_bookingsr%   r&   r(   r#   r#   r#   r$   r      s<         
r   N)r   routesr   Modelr   r#   r#   r#   r$   <module>   s   