a
     @g^
                     @   s|   d dl mZ d dlT d dlT d dlmZmZmZ G dd dejZ	G dd dejZ
G dd	 d	ejZG d
d dejZdS )    )models)*)CASCADESET_NULL
DO_NOTHINGc                   @   sz   e Zd ZejeeddZejeeddZ	ej
dddZej
ddZejddZejdddZejddZG dd dZd	S )
LawyerSubscriptionsT	on_deletenullFauto_now_addr
   r
   defaultc                   @   s   e Zd ZdZdS )zLawyerSubscriptions.MetaZlawyer_subscriptionsN__name__
__module____qualname__db_table r   r   2/var/www/html/Sam_Eipo/Eipo/lawyer_panel/models.pyMeta   s   r   N)r   r   r   r   
ForeignKeyCustomerr   customerLawyerSubscriptionPlanplan	DateFieldsub_start_datesub_expiry_dateBooleanField	is_activeDateTimeField
start_dateend_dater   r   r   r   r   r   	   s   r   c                   @   sf   e Zd ZejeeddZejeedddZ	ejeedddZ
ejddZejddZG dd	 d	Zd
S )LawyerContractDealsTr   Zcustomer_loc)r	   r
   related_nameZ
lawyer_locr   r   c                   @   s   e Zd ZdZdS )zLawyerContractDeals.MetaZlawyer_contract_dealsNr   r   r   r   r   r      s   r   N)r   r   r   r   r   inquirePropertyProjectr   Zinquiryr   r   lawyerr"   r#   r$   r   r   r   r   r   r%      s   r%   c                   @   sp   e Zd ZejeejddZejeejddZej	ddZ
ejddZejddd	ZejddZG d
d dZdS )lawyerRatingAndReviewsend_user_customerr	   r&   lawyer_receive_customerr   r   Tr   Fr   c                   @   s   e Zd ZdZdS )zlawyerRatingAndReview.MetaZlawyer_rating_and_reviewNr   r   r   r   r   r   ,   s   r   N)r   r   r   r   r   r   r   r+   r-   IntegerFieldrating	TextFieldreviewr"   r#   r$   r   r   r   r   r   r*   $   s   r*   c                   @   s   e Zd ZejeejddZeje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	Zejdd
ZejddZejdd	ZG dd dZdS )ConversationLawyerZconversation_lawyer_customerr,   Zconversation_lawyer_lawyer   T)
max_lengthblankr
      )r4   r
   r   r'   )auto_nowc                   @   s   e Zd ZdZdS )zConversationLawyer.MetaZconversation_lawyerNr   r   r   r   r   r   F   s   r   N)r   r   r   r   r   r   r   r   r)   	CharFieldtwilio_channel_sidcustomer_twilio_idZlawyer_twilio_idr"   last_message
created_at
updated_atr$   r   r   r   r   r   r2   3   s$   r2   N)	django.dbr   Zcustomer_api.modelssubscription_api.modelsdjango.db.models.deletionr   r   r   Modelr   r%   r*   r2   r   r   r   r   <module>   s   