o
    Zh                     @   sF   d dl mZ G dd dejZG dd dejZG dd dejZdS )	    )modelsc                   @   s   e Zd ZejddddZejdddZejddddZej	dddZ
ej	dddZejdddZejddddZejddddZejdddZejdddZejdddZejdddZejdddZejddZejddZG dd dZd	S )
DevelopmentApplicationd   T)
max_lengthuniquenullr   blankr   r   r	   auto_now_addc                   @      e Zd ZdZdS )zDevelopmentApplication.Metadevelopment_applicationN__name__
__module____qualname__db_table r   r   5/home/shobhit/Desktop/shao (1)/shao/shaoApp/models.pyMeta       r   N)r   r   r   r   	CharFieldapplication_idURLFieldapplication_urldecision	DateFieldlodgement_datedetermined_date
FloatFieldcostcouncil_namedevelopment_typeIntegerFieldnumber_of_dwellingsnumber_of_storeysnumber_of_placesnumber_of_apartmentsnumber_of_subdivisionsDateTimeField
created_at
updated_atr   r   r   r   r   r      s"    r   c                   @   s   e Zd ZdZejeejddZej	ddddZ
ej	ddddZej	ddddZej	d	dddZej	d
dddZejdddZejdddZej	d	ddZejdddZejddZejddZG dd dZdS )PDFDocumentz'Model to store PDF document informationpdf_documents	on_deleterelated_namei  Tr
      r   2      r   pending)r   defaultr   auto_nowc                   @   r   )zPDFDocument.Metapdf_documentNr   r   r   r   r   r   -   r   r   N)r   r   r   __doc__r   
ForeignKeyr   CASCADEapplicationr   	file_path	file_namedocument_typepdf_type
confidencer$   text_lengthpages_processedextraction_status	TextFielderror_messager*   r+   r,   r   r   r   r   r   r-      s    r-   c                   @   s  e Zd ZdZejeejddZej	dddZ
ej	dddZej	dddZej	dddZej	dddZejddddZej	dddZejddddZejddddZej	dddZejdddZejddddZej	dddZejdddZejddddZejd	dddZejd	dddZejd	dddZejd	dddZejd	dddZejd	dddZ ejd	dddZ!ej"dddZ#ej$dd
Z%ej$ddZ&G dd dZ'dS )ExtractedPDFDataz2Model to store structured data extracted from PDFsextracted_datar/   Tr      r
   r3   r   r   r7   c                   @   r   )zExtractedPDFData.Metaextracted_pdf_dataNr   r   r   r   r   r   Y   r   r   N)(r   r   r   r:   r   OneToOneFieldr-   r<   r9   rF   land_descriptionregistered_proprietorencumbrancesactivity_last_125_daysadministrative_noticesr   proposed_usedescriptionapplicant_namecontact_namecontact_address
EmailFieldcontact_emailcontact_phoneapplicant_addressapplicant_emailapplicant_phonelot_sizesite_coverage
total_areaground_floor_areafirst_floor_areaposspos	JSONFieldraw_extracted_datar*   r+   r,   r   r   r   r   r   rH   1   s:    rH   N)	django.dbr   Modelr   r-   rH   r   r   r   r   <module>   s    