o
    ȟ1i                     @   s   d dl mZmZmZmZmZmZmZ d dlm	Z	 d dlm
Z
 d dlmZmZ G dd deeZG dd deeZG d	d
 d
eeZdS )    )ColumnInteger
ForeignKeyDateBooleanFloatString)relationship)Session)BaseTimestampMixinc                   @   sZ   e Zd ZdZeeddddZeeedZee	ddZ
ee	ddZeeddZedZd	S )
BursaryDiscountInfoZbursary_discount_infoTprimary_keyautoincrementindexacademic_year.idFnullabledefaultAcademicYearN)__name__
__module____qualname____tablename__r   r   idr   academic_year_idr   Z
start_dateZend_dater   
is_enabledr	   academic_year r    r    /app/models/bursary_discount.pyr      s    r   c                   @   s   e Zd ZdZeeddddZeedddZeee	dddZ
eee	dZeee	d	ZeeddZeedd
ZeedddZeedd
ZedZedZedZdS )BursaryDiscountApplicationZbursary_discount_applicationTr      Fr   z
parents.idr   zparticipants.idr   N)r   r   r   ParentParticipant)r   r   r   r   r   r   r   r   Zapplication_numberr   	parent_idr   Zparticipant_idZ
created_byr   Zis_parent_userZis_fully_allocatedZis_approvedr	   r   parentparticipantr    r    r    r!   r"      s    r"   c                   @   sd   e Zd ZdZeeddddZeeedZeeedZ	ee
ddZeeddZed	Zed
ZdS )BursaryCourseAllocationZbursary_course_allocationTr   zbursary_discount_application.idz	course.idFr   r   Courser"   N)r   r   r   r   r   r   r   r   Zbursary_discount_application_idZ	course_idr   Zis_usedr   Zdiscount_pricer	   courseapplicationr    r    r    r!   r)   $   s    r)   N)
sqlalchemyr   r   r   r   r   r   r   sqlalchemy.ormr	   r
   models.baser   r   r   r"   r)   r    r    r    r!   <module>   s   $ 
