
    αh                     *   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 G d d          ZdS )AgencyPropertyRequestsTcustomer_requests	on_deletenullrelated_namezcustomer_api.customeragency_requestlocation_agency    )
max_lengthdefault2      Fr      Pending)r   r   r   auto_now_addr   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_dater*   r'   r(   r)   r   r   	   s        v JDVijjjHV6QUcstttF'f'(?*Z^l}~~~O%V%B???MF2666DVB777E$F$B???MFB777E##E222I&6&u555L&6&u555L&f&#4	RRRO%%4888J#v#...H- - - - - - - - - -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 )AgencyApprovedPropertyTr.   r   r-   r   r   r   r   r   c                       e Zd ZdZdS )AgencyApprovedProperty.Metaagency_approved_requestNr"   r'   r(   r)   r*   rA   %   r+   r(   r*   N)r#   r$   r%   r   r,   r   r	   r.   r-   r   property_requestr5   is_requestedr:   r;   r<   r*   r'   r(   r)   r>   r>      s        Vx*$T\]]]F v JDV`aaaH(v()?*Z^___&6&t444L%%4888J#v#...H- - - - - - - - - -r(   r>   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 )AgencyNotificationsTr?   r   d   r   r   F)r   r   r   r   c                       e Zd ZdZdS )AgencyNotifications.Metaagency_notificationsNr"   r'   r(   r)   r*   rK   2           )r(   r*   N)r#   r$   r%   r   r,   r   r	   r.   	TextFieldmessager/   notification_typer5   is_readr:   r;   r<   r*   r'   r(   r)   rF   rF   *   s        Vx*$GGGFfD)))G((CTBBB!f!%T:::G%%4UCCCJ#v#...H* * * * * * * * * *r(   rF   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 )
AgencySubscriptionsTr?   FrI   r   r   c                       e Zd ZdZdS )AgencySubscriptions.Metaagency_subscriptionsNr"   r'   r(   r)   r*   rU   ?   rM   r(   r*   N)r#   r$   r%   r   r,   r   r	   r-   AgencySubscriptionPlanplan	DateFieldsub_start_datesub_expiry_dater5   	is_activer:   r;   r<   r*   r'   r(   r)   rS   rS   6   s         v JDIIIH63jdSSSD%V%4UCCCN&f&D111O##E222I%%4UCCCJ#v#...H* * * * * * * * * *r(   rS   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   FrI   c                       e Zd ZdZdS )AgencyRatingAndReview.Metaagency_rating_and_reviewNr"   r'   r(   r)   r*   rc   K   s        *XXXr(   r*   N)r#   r$   r%   r   r,   r   r   r_   ra   IntegerFieldratingrN   reviewr:   r;   r<   r*   r'   r(   r)   r^   r^   C   s        **8v~\pqqq/f/FNaz{{{ V +++FV4(((F%%4UCCCJ#v#...H+ + + + + + + + + +r(   r^   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_customerr`   conversation_agency_agency   T)r   blankr      rH   r   r   )auto_nowc                       e Zd ZdZdS )ConversationAgency.Metaconversation_agencyNr"   r'   r(   r)   r*   rq   b   s        (r(   r*   N)r#   r$   r%   r   r,   r   r   r-   r.   r/   twilio_channel_sidcustomer_twilio_idagency_twilio_idr:   last_message
created_at
updated_atr<   r*   r'   r(   r)   ri   ri   O   s&        v .3  H
 V.1  F
 *)S4PPP))StDDD'v'3TBBB'6'T222L%%4888J%%t444J#v#...H) ) ) ) ) ) ) ) ) )r(   ri   N)	django.dbr   django.contrib.auth.modelsr   customer_api.modelsr   subscription_api.modelsdjango.db.models.deletionr   r   r	   Modelr   r>   rF   rS   r^   ri   r'   r(   r)   <module>r      sw         + + + + + + ( ( ( ( ( ( % % % % C C C C C C C C C C- - - - -V\ - - -(	- 	- 	- 	- 	-V\ 	- 	- 	-	* 	* 	* 	* 	*&, 	* 	* 	*
* 
* 
* 
* 
*&, 
* 
* 
*	+ 	+ 	+ 	+ 	+FL 	+ 	+ 	+) ) ) ) ) ) ) ) ) )r(   