
    d                     *   d dl mZ d dl d dl d dlmZmZmZ d dlm	Z	 d dl
mZ d dl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 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y)    )models)*)CASCADESET_NULL
DO_NOTHING)
ForeignKey)now)DateTimeFieldc                   6   e Zd Z ej                  eej                        Z ej                  eej                        Z	 ej                  dd      Z ej                  dd      Z ej                  dd      Z ej                  d      Z G d d      Zy	)

Favourites	on_deleteFTdefaultnullauto_now_addr   r   c                       e Zd ZdZy)Favourites.Meta
favouritesN__name__
__module____qualname__db_table     ,/var/www/html/Beni/beni/panel_apis/models.pyMetar          (r   r    N)r   r   r   r   r   Productsr   productUseruserBooleanFieldis_favouriter
   favourite_date
start_dateend_dater    r   r   r   r   r   
   s    Fh6>>B$6>>:###Et<&&&&DdC"f""$?!V!!t, r   r   c                      e Zd Z ej                  ee      Z ej                  ee      Z	 ej                  dd      Z ej                  dd      Z ej                  dd      Z ej                  dddd      Z ej                  d	
      Z ej                  d	
      Z ej$                  d      Z G d d      Zy)Cartr   2    
max_lengthr   0d   Tr0   r   blankr   Fr   r   c                       e Zd ZdZy)	Cart.MetacartNr   r   r   r   r    r8   !   s    (r   r    N)r   r   r   r   r   r$   r   customerr"   r#   	CharFieldproductCounttotalAmount
totalItemsorderIdr&   isPaid
isdisabledr
   
created_atr    r   r   r   r,   r,      s    FdZ86X
;   Br:v2c:v2c:6s4K
&

e
,F. F  d3 r   r,   c                   \   e Zd Z ej                  ee      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 G d d      Zy)CustomerCardr   r2   r.   r/   
   r-      Fr5   Tr6   c                       e Zd ZdZy)CustomerCard.Metacustomer_cardNr   r   r   r   r    rH   /       (r   r    N)r   r   r   r   r   Buyerr   r:   r;   card_id	exp_monthexp_yeartheCustomerStripe
last_digitr&   	isdefaultr
   rB   r    r   r   r   rD   rD   %   s    Fej96s26VB7F26#6##rBf!B7 V  51 F  d3 r   rD   c                       e Zd Z ej                  ee      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                  eed      Z ej                  eed      Z ej                  eej(                  d      Z ej,                  d	      Z ej                  dd      Z ej,                  d	      Z ej,                  d	      Z ej,                  d	      Z ej                  d
d      Z ej:                  dd      Z ej>                  d      Z  G d d      Z!y)	orderPackr   r-   r.   r/   r1   T)r   r   Fr5      r0   r   r   r   r6   c                       e Zd ZdZy)orderPack.Meta
order_packNr   r   r   r   r    rW   G   r!   r   r    N)"r   r   r   r   r   r$   r   r:   r;   r?   	orderDateshippingChargevatPercentagesubTotalAmountr=   	AddressesdeliveryAddressr,   productDetailStoreCouponsr   couponIdr&   isCouponSelectedcouponDiscountr@   rA   is_ratedqr_code_imageIntegerFielddelivery_statusr
   rB   r    r   r   r   rS   rS   3   su   FdZ86r"5VB7"&""b=!!!R<"&""b<v2b9$6$$YN"""4*$GFlV^^N'F''6"&""b<
&

e
,!f!!%0F.!!!Sd;&6&&qd;"f""5 r   rS   c                   j   e Zd Z ej                  eej                        Z ej                  eej                        Z 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      Z G d	 d
      Zy)CustomerTransactionr   r-   r.   r/   rT   Tr3   r6   c                       e Zd ZdZy)CustomerTransaction.Metacustomer_transcationNr   r   r   r   r    rk   V   s    #(r   r    N)r   r   r   r   r   r$   r   r:   rS   r;   amount	mayosarIDtxnID
recieptUrlr
   rB   r    r   r   r   ri   ri   L   s    FdV^^<Vy6>>B
&

b
4V3tTTVW			s4PR	SfCdUWX"f""$7$ $r   ri   c                   j   e Zd Z ej                  eej                        Z ej                  eej                        Z	 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      Z G d	 d
      Zy)CustomerTransactionServicer   r-   r.   r/   rT   Tr3   r6   c                       e Zd ZdZy)CustomerTransactionService.Metacustomer_transcation_serviceNr   r   r   r   r    rt   d   s    +(r   r    N)r   r   r   r   r   r$   r   r:   ServiceInvoiceservicePackr;   rm   rn   ro   rp   r
   rB   r    r   r   r   rr   rr   Z   s    FdV^^< v  &..I
&

b
4V3tTTVW			s4PR	SfCdUWX"f""$7, ,r   rr   c                      e Z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
 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 G d	 d
      Zy)MarketingRequestr2   TrU   r      r   r   r   c                       e Zd ZdZy)MarketingRequest.Metamarketing_requestNr   r   r   r   r    r|   w   s     (r   r    N)r   r   r   r   r;   product_name	TextFieldprduct_descriptionproduct_amountproduct_price
owner_namemobile_numberaddressemailimagerf   statusr
   r)   r*   r    r   r   r   ry   ry   i   s       CT:&f&&D1"&""ct<!!!Sd;f#48!!!RT:6s5			Sd	3			Sd	3
&

aT
2"f""$?!V!!t,! !r   ry   c                   6   e Zd Z ej                  dd      Z ej                  dd      Z ej                  dd      Z ej                  e	e
      Z ej                  dd      Z ej                  dd      Z ej                  d      Z G d	 d
      Zy)CustomerNotificationsr2   TrU   r   Fr   r   r   c                       e Zd ZdZy)CustomerNotifications.Metacustomer_notificationsNr   r   r   r   r    r      s    %(r   r    N)r   r   r   r   r;   messagemessage_arabicnotification_typer   rK   r   r:   r&   is_readr
   r)   r*   r    r   r   r   r   r   {   s    6s5"&""ct<%V%%$?Fej96u$7"f""$?!V!!t,& &r   r   c                      e Zd Z ej                  eeddd      Z ej                  eeddd      Z ej                  d      Z
 ej                  ddgd	      Z ej                  d
dd      Z ej                  e      Z G d d      Zy)Messagemessage_sender_userT)r   related_namer   r4   message_receiver_userr   )r   r   )textr      )choicesr0      r.   )r0   r   r   r5   c                       e Zd ZdZy)Message.MetamessagesNr   r   r   r   r    r      s    (r   r    N)r   r   r   r   r   r$   r   sender_userreceiver_userr   r   r;   typer   r
   r	   rB   r    r   r   r   r   r      s     v  F[aelpq"""4'H_eiptu6&"3_!ERTU			Sd2	>"f""3/ r   r   c                       e Zd Z eeedd      Z eeedd      Z ee	      Z
 ej                  dd      Z ej                  d      Z G d	 d
      Zy)	chat_roomchatroom_ownerT)r   r   r   chatroom_userr5      rU   r   c                       e Zd ZdZy)chat_room.Metar   Nr   r   r   r   r    r      s    (r   r    N)r   r   r   r   r$   r   storer%   r
   r	   last_message_timer   r;   last_message_textr&   r   r    r   r   r   r   r      s`    	DG:JQU	V47tT"3/%V%%4@6q) r   r   c                   2   e Zd Z ej                  d      Z ej                  d      Z ej                  e	e
      Z ej                  ee
      Z ej                  ee
      Z ej                   dd      Z ej                   d      Z G d d      Zy)RatingReviewsTr   r   r   c                       e Zd ZdZy)RatingReviews.Metarating_reviewNr   r   r   r   r    r      rJ   r   r    N)r   r   r   r   rf   ratingr   reviewr   r"   r   r#   rK   buyerStoresr   r
   r)   r*   r    r   r   r   r   r      s    
&

4
(
&


%6X8			57	3			6G	4"f""$?!V!!t, r   r   N)	django.dbr   auth_apis.modelsstore_apis.modelsdjango.db.models.deletionr   r   r   django.db.models.fields.relatedr   django.utils.timezoner	   django.db.models.fieldsr
   Modelr   r,   rD   rS   ri   rr   ry   r   r   r   r   r   r   r   <module>r      s       A A 6 % 1	 	6<< 6<<  2$&,, $, ,!v|| !$
&FLL 
&fll  
FLL 
r   