
    Ci~                         d Z 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ZddlmZ  G d deej                        Z G d	 d
e      Zy)u&   
Modèle de prescription d'ordonnance
    )ColumnIntegerString
ForeignKeyDateTimeEnumText)func)relationshipN)Basec                   ,    e Zd ZdZdZdZdZdZdZdZ	dZ
y	)
PrescriptionStatuszStatuts de prescription
processinganalyzedfoundpartially_found	not_foundpaid	completedN)__name__
__module____qualname____doc__
PROCESSINGANALYZEDFOUNDPARTIALLY_FOUND	NOT_FOUNDPAID	COMPLETED     ?/home/www/lebenam.kofcorporation.com/app/models/prescription.pyr   r      s(    !JHE'OIDIr"   r   c                      e Zd ZdZ eedd      Z ee ed      d      Z e e	d      ddd      Z
 e e	d	      d      Z e e	d
      d      Z eed      Z e e	d
      d      Z eed      Z e ee      ej(                        Z e ed       ej.                               Z e ed       ej.                               Z e ed      d      Z edd      Z edd      Z edd      Zy)PrescriptionprescriptionsT)primary_keyindexzusers.idF)nullable2   )uniquer(   r)   i     )default)timezone)server_default)onupdateUser)back_populatesPrescriptionProductprescriptionPrescriptionSearchN)r   r   r   __tablename__r   r   idr   user_idr   	referenceprescription_filepatient_namer   prescription_datedoctor_namer	   ai_extracted_datar   r   r   statusr
   now
created_at
updated_atsearch_completed_atr   userproductssearchesr!   r"   r#   r%   r%      s   #M	T	6BWj4uEGvbz$dUKIvc{U; &+5Lx$7t4Ktd3D+,6H6S6STF$/
KJ$/($((*EJ 4!84H ?D1.QH0PHr"   r%   )r   
sqlalchemyr   r   r   r   r   r   r	   sqlalchemy.sqlr
   sqlalchemy.ormr   enumapp.db.base_classr   strr   r%   r!   r"   r#   <module>rM      sB    Q P P  '  "dii Q4 Qr"   