
    F6ib                     *   d dl mZ d dlmZ d dlmZ d dlT d dlmZm	Z	m
Z
  G d dej                  Z G d d	ej                  Z G d
 dej                  Z G d dej                  Z G d dej                  Z G d dej                  ZdS )    )models)User)Customer)*)CASCADESET_NULL
DO_NOTHINGc                      e Zd Z ej        eedd          Z ej        dedd          Z ej        dedd          Z	 ej
        dd	          Z ej
        d
d	          Z ej
        d
d	          Z ej
        dd	          Z ej
        dd	          Z ej        d          Z ej        d          Z ej        d          Z ej
        ddd          Z ej        d          Z ej        d          Z ej
        dd	          Z ej
        dd	          Z ej        dd          Z ej        dd          Z ej        dd          Z ej
        dd	          Z ej
        dd          Z ej        d          Z  ej
        dd	          Z! ej
        d
d	          Z" ej
        dd          Z# G d d          Z$dS )AgencyPropertyRequestsTcustomer_requests	on_deletenullrelated_namezcustomer_api.customeragency_requestlocation_agency    )
max_lengthdefault2      ia  Fr      Pending)r   r   r   auto_now_addr   )r   blank   r   r      i  c                       e Zd ZdZdS )AgencyPropertyRequests.Metaagency_property_requestN__name__
__module____qualname__db_table     2/var/www/html/Sam_Eipo/Eipo/agency_panel/models.pyMetar$   %           &(((r,   r.   N)%r'   r(   r)   r   
ForeignKeyr   r	   customeragencyr   	CharFieldmobile_numbernameemailproperty_typepriceBooleanField	is_viewedis_publishedis_contactedproperty_statusDateTimeField
start_dateend_dateproperty_nameproperty_id	TextFieldproperty_imageproperty_videoproperty_docdo_it_by_typefinalized_statusbuyer_signaturebuyer_statusstatusrejection_reasonr.   r+   r,   r-   r   r   	   s       FhSfggg
&
3jd`p
q
q
q$6$%<zW[iz{{{"&"b<<<		R	3	3	3
&
b
4
4
4!!S<<<		U2	6	6	6 V ///##E222##E222#6#sYOOO"f"555 F d+++!!S<<<VR888"&"T:::"&"D999  d$777v3r:::"&"ct<<<#6#B///  C;;;
&
b
4
4
4"&"d===' ' ' ' ' ' ' ' ' 'r,   r   c                      e Zd Z ej        eedd          Z ej        eedd          Z ej        e	ed          Z
 ej        d          Z ej        d          Z ej        d          Z G d	 d
          ZdS )AgencyApprovedPropertyTr2   r   r1   r   r   r   r   r   c                       e Zd ZdZdS )AgencyApprovedProperty.Metaagency_approved_requestNr&   r+   r,   r-   r.   rQ   1   r/   r,   r.   N)r'   r(   r)   r   r0   r   r	   r2   r1   r   property_requestr9   is_requestedr>   r?   r@   r.   r+   r,   r-   rN   rN   )   s        
&
HztQY
Z
Z
ZFhS]^^^%F%&<zW[\\\##D111"f"555 F d+++' ' ' ' ' ' ' ' ' 'r,   rN   c                       e Zd Z ej        eed          Z ej        d          Z	 ej
        dd          Z ej        dd          Z ej        dd          Z ej        d          Z G d	 d
          ZdS )AgencyNotificationsTrO   r   d   r!   F)r   r   r   r   c                       e Zd ZdZdS )AgencyNotifications.Metaagency_notificationsNr&   r+   r,   r-   r.   rZ   >           #(((r,   r.   N)r'   r(   r)   r   r0   r   r	   r2   rC   messager3   notification_typer9   is_readr>   r?   r@   r.   r+   r,   r-   rV   rV   6   s        
&
Hzt
D
D
D6&&&%V%$???6u$777"f"%@@@ F d+++$ $ $ $ $ $ $ $ $ $r,   rV   c                   "   e Zd Z ej        eed          Z ej        eed          Z	 ej
        dd          Z ej
        d          Z ej        d          Z ej        dd          Z ej        d          Z G d d          Zd	S )
AgencySubscriptionsTrO   FrX   r   r   c                       e Zd ZdZdS )AgencySubscriptions.Metaagency_subscriptionsNr&   r+   r,   r-   r.   rc   K   r\   r,   r.   N)r'   r(   r)   r   r0   r   r	   r1   AgencySubscriptionPlanplan	DateFieldsub_start_datesub_expiry_dater9   	is_activer>   r?   r@   r.   r+   r,   r-   ra   ra   B   s        FhFFF0:4PPP"&"%@@@#6#... V ///"f"%@@@ F d+++$ $ $ $ $ $ $ $ $ $r,   ra   c                      e Zd Z ej        eej        d          Z ej        eej        d          Z ej	        d          Z
 ej        d          Z ej        dd	          Z ej        d          Z G d
 d          ZdS )AgencyRatingAndReviewuser_send_customerr   r   agency_receive_customerr   r   Tr   FrX   c                       e Zd ZdZdS )AgencyRatingAndReview.Metaagency_rating_and_reviewNr&   r+   r,   r-   r.   rq   W   s        '(((r,   r.   N)r'   r(   r)   r   r0   r   r   rm   ro   IntegerFieldratingrC   reviewr>   r?   r@   r.   r+   r,   r-   rl   rl   O   s        'f'FNYmnnn,6,X^wxxx
&
a
(
(
(
&

%
%
%"f"%@@@ F d+++( ( ( ( ( ( ( ( ( (r,   rl   c                   ~   e Zd Z ej        eej        d          Z ej        eej        d          Z ej	        ddd          Z
 ej	        dd          Z ej	        dd          Z ej        d	          Z ej        d
          Z ej        d          Z ej        d	          Z G d d          ZdS )ConversationAgencyconversation_agency_customerrn   conversation_agency_agency   T)r   r   r   r    r!   r   r   )auto_nowc                       e Zd ZdZdS )ConversationAgency.Metaconversation_agencyNr&   r+   r,   r-   r.   r}   n   s        "(((r,   r.   N)r'   r(   r)   r   r0   r   r   r1   r2   r3   twilio_channel_sidcustomer_twilio_idagency_twilio_idr>   last_message
created_at
updated_atr@   r.   r+   r,   r-   rw   rw   [   s&       F
N-  
 &

N+  
 'f&#TMMM&f&#DAAA$F$$???$$$///"f"555"f"D111 F d+++# # # # # # # # # #r,   rw   N)	django.dbr   django.contrib.auth.modelsr   customer_api.modelsr   subscription_api.modelsdjango.db.models.deletionr   r   r	   Modelr   rN   rV   ra   rl   rw   r+   r,   r-   <module>r      sx         + + + + + + ( ( ( ( ( ( % % % % C C C C C C C C C C' ' ' ' 'V\ ' ' '@	' 	' 	' 	' 	'V\ 	' 	' 	'	$ 	$ 	$ 	$ 	$&, 	$ 	$ 	$
$ 
$ 
$ 
$ 
$&, 
$ 
$ 
$	( 	( 	( 	( 	(FL 	( 	( 	(# # # # # # # # # #r,   