3
h                 @   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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   )r   )auto_now_addc               @   s   e Zd ZdZdS )zDevelopmentApplication.MetaZdevelopment_applicationN)__name__
__module____qualname__db_table r   r   3/home/developer/Desktop/shao/shao/shaoApp/models.pyMeta   s   r   N)r
   r   r   r   	CharFieldZapplication_idURLFieldZapplication_urlZdecision	DateFieldZlodgement_dateZdetermined_date
FloatFieldZcostZcouncil_name	TextFieldZland_useZdevelopment_typeIntegerFieldZnumber_of_dwellingsZnumber_of_storeysZnumber_of_placesZnumber_of_apartmentsZ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 informationZpdf_documents)	on_deleterelated_namei  T)r   r   r      r   2      )r   r   pending)r   default)r	   )auto_nowc               @   s   e Zd ZdZdS )zPDFDocument.Metapdf_documentN)r
   r   r   r   r   r   r   r   r   /   s   r   N)r
   r   r   __doc__r   
ForeignKeyr   CASCADEapplicationr   	file_path	file_nameZdocument_typeZpdf_typeZ
confidencer   Ztext_lengthZpages_processedZextraction_statusr   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 PDFsZextracted_data)r   r   T)r   r      )r   r   r   r   r   )r	   )r"   c               @   s   e Zd ZdZdS )zExtractedPDFData.MetaZextracted_pdf_dataN)r
   r   r   r   r   r   r   r   r   [   s   r   N)(r
   r   r   r$   r   OneToOneFieldr   r&   r#   r   Zland_descriptionZregistered_proprietorZencumbrancesZactivity_last_125_daysZadministrative_noticesr   Zproposed_usedescriptionZapplicant_nameZcontact_nameZcontact_address
EmailFieldZcontact_emailZcontact_phoneZapplicant_addressZapplicant_emailZapplicant_phoneZlot_sizeZsite_coverageZ
total_areaZground_floor_areaZfirst_floor_areaposspos	JSONFieldZraw_extracted_datar   r   r   r   r   r   r   r   r+   3   s8   r+   N)	django.dbr   Modelr   r   r+   r   r   r   r   <module>   s   