
    zdf,                     R   d dl mZ d dl d dlmZ d dl  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 G d dej                        Z G d dej                        Zy)    )models)*)settingsc                   N   e Z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d      Z ej                  ddd	      Z ej"                  d
      Z ej&                  dd      Z ej&                  d
      Z G d d      Zy)StoreRequests   T
max_lengthnulld   
      2   r   )defaultr   r
   r   Fauto_now_addr   c                       e Zd ZdZy)StoreRequests.Metastore_requestsN__name__
__module____qualname__db_table     ,/var/www/html/Beni/beni/store_apis/models.pyMetar          #r   r   N)r   r   r   r   	CharField
first_name	last_nameaddressemailisd_codemobile_number	id_number	bank_namebank_account_number
id_pictureIntegerFieldstatus	TextFieldmessageDateTimeField
start_dateend_dater   r   r   r   r   r      s#   !!!Sd;J   CT:If#48GF6Ev248H$F$$=M   BD9I   CT:I*&**bdC!!!Sd;J V  CFfD)G%%%4UCJ#v##.H$ $r   r   c                   &   e Zd Z ej                  eej                        Z ej                  dd      Z	 ej                  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                   eej,                        d	z   dd
      Z ej                   eej,                        d	z   dd
      Z ej$                  dd      Z ej                  ddd      Z ej6                  dd      Z ej:                  d      Z ej:                  d      Z G d d      Z y)Stores	on_deleter   Tr	   r         r   r   z/media/storeLogo/default.pngr   r
   r   r   r   falser
   r   r   c                       e Zd ZdZy)Stores.MetastoresNr   r   r   r   r   r>   0   s    r   r   N)!r   r   r   r   
ForeignKeyUserCASCADEuserr!   store_name_englishstore_name_arabicr.   store_description_englishstore_description_arabicstore_numberstore_emailcountryr$   BooleanFieldr-   strr   BASE_URL
store_logostore_banneris_profile_completedis_vipr,   ratingsr0   r1   r2   r   r   r   r   r4   r4      s   6TFNN;D)))SdC(((CTB 0 0 0d ;/v//T:#6##rt<L"&""ct<Kf#48Gf#48G V  48F"&""3x/@/@+AB`+`louyzJ$F$$S1B1B-CDb-bnqw{|L.6..qdCVGFF!f!!!6G%%%40J#v##.H r   r4   c                   n   e Zd Z ej                  dd      Z ej                  dd      Z ej                  eej                        Z
 ej                  eej                        Z ej                  d      Z ej                  d      Z ej                  eej                        Z ej                  e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j2                  dd      Z ej2                  dd	d
      Z ej                  d eej<                        dz   g      Z ej                  e ej                        Z! ejD                  dd      Z# ej                  ddd      Z$ ejD                  d      Z% ejL                  d      Z' ej2                  dd      Z( ejL                  dd      Z) ejL                  d      Z* G d d      Z+d Z,y	)Productsr   Tr	   r5   r   r6   r   r   r   Nr<    /media/category/place_holder.png)r   r   r9    )r
   r   r   Fr   r   r   c                       e Zd ZdZy)Products.MetaproductsNr   r   r   r   r   rZ   O   s    r   r   c                 \    | j                   r | j                   j                         | _         y y )N)price_discountstrip)selfs    r   cleanzProducts.cleanR   s'    "&"5"5";";"=D r   )-r   r   r   r   r!   product_name_englishproduct_name_arabicr@   MainCategoriesrB   maincategorySubcategoriessubcategoryr.   description_englishdescription_arabicBrandsbrandStonesstone
model_namesizeweightcolorquantityr,   pricer]   rL   r   rM   imagesr4   storerK   r-   offer_discountis_offer_appliedr0   today_deal_start_dateratingr1   r2   r   r`   r   r   r   rT   rT   4   s   +6++sE*&**ctD$6$$^fnnML$6$$]V^^LK*&**5)))t4Ffv~~>EFfv~~4HE!!!Sd;J6rt4DV6FF6Ev248HF248E(V((BtNNV4X5F5F1GHj1j0klFFfv~~>E V  48F%V%%bIN*v**590F00d; V  5F%%%4UCJ#v##.H >r   rT   c                      e Zd Z ej                  eej                        Z ej                  eej                  d      Z	 ej                  dd      Z ej                  dd      Z ej                  d      Z G d d	      Zy
)storeServicesr5   TrU   r9   Fr   r   c                       e Zd ZdZy)storeServices.Metastore_servicesNr   r   r   r   r   r|   _   r    r   r   N)r   r   r   r   r@   ServicesrB   	serviceIdr4   rt   rK   r-   r0   r1   r2   r   r   r   r   rz   rz   X   sx    !!!(V^^DIFfv~~4HE V  48F%%%4UCJ#v##.H$ $r   rz   c                   $   e Zd Z ej                  e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      Z G d	 d
      Zy)ServiceModelTrU   r   r	   r9   Fr   r   c                       e Zd ZdZy)ServiceModel.Metaservice_modelsNr   r   r   r   r   r   j   r    r   r   N)r   r   r   r   r@   r4   rB   rt   r!   service_model_englishservice_model_arabicrK   r-   r0   r1   r2   r   r   r   r   r   r   b   s    Ffv~~4HE,F,,F+6++sE V  48F%%%4UCJ#v##.H$ $r   r   c                   $   e Zd Z ej                  e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      Z G d	 d
      Zy)	StoneTypeTrU   r   r	   r9   Fr   r   c                       e Zd ZdZy)StoneType.Metastone_typesNr   r   r   r   r   r   u   s     r   r   N)r   r   r   r   r@   r4   rB   rt   r!   stone_type_englishstone_type_arabicrK   r-   r0   r1   r2   r   r   r   r   r   r   m   s    Ffv~~4HE)))SdC(((CTB V  48F%%%4UCJ#v##.H! !r   r   c                   $   e Zd Z ej                  e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      Z G d	 d
      Zy)ServiceTypeTrU   r   r	   r9   Fr   r   c                       e Zd ZdZy)ServiceType.Metaservice_typeNr   r   r   r   r   r      s    !r   r   N)r   r   r   r   r@   r4   rB   rt   r!   service_type_englishservice_type_arabicrK   r-   r0   r1   r2   r   r   r   r   r   r   y   s    Ffv~~4HE+6++sE*&**ctD V  48F%%%4UCJ#v##.H" "r   r   c                      e Zd Z ej                  eej                  d      Z ej                  dd      Z	 ej                  dd      Z
 ej                   eej                        dz   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)GiftBoxTypeTrU   r   r	   rV   r8   r:   r9   Fr   r   c                       e Zd ZdZy)GiftBoxType.Metagift_box_typeNr   r   r   r   r   r          "r   r   N)r   r   r   r   r@   r4   rB   rt   r!   box_name_englishbox_name_arabicrL   r   rM   	box_imagebox_costrK   r-   r0   r1   r2   r   r   r   r   r   r      s    Ffv~~4HE'v''3DA&f&&#4@O!!!#h.?.?*@Ac*corx|}Iv3D9H V  48F%%%4UCJ#v##.H# #r   r   c                      e Zd Z ej                  eej                  d      Z ej                  dd      Z	 ej                  dd      Z
 ej                   eej                        dz   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)GiftPackingTypeTrU   r   r	   rV   r8   r:   r9   Fr   r   c                       e Zd ZdZy)GiftPackingType.Metagift_packaging_typeNr   r   r   r   r   r          (r   r   N)r   r   r   r   r@   r4   rB   rt   r!   packaging_name_englishpackaging_name_arabicrL   r   rM   packaging_imagepackaging_costrK   r-   r0   r1   	DateFieldr2   r   r   r   r   r   r      s    Ffv~~4HE-V--$G,F,,F'v''H4E4E0FGi0iux  C  DO%V%%$?N V  48F%%%4UCJvT*H) )r   r   c                   `   e Zd Z ej                  eej                  d      Z ej                  eej                        Z	 ej                  e
ej                  d      Z ej                  eej                  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d      Z ej                  dd      Z ej                  eej                  d      Z ej                  eej                  d      Z ej                  edej                        Z ej                  edej                        Z ej                  dd      Z ej@                  dd      Z! ejD                  d	d      Z# ejD                  d	d      Z$ ejD                  d	d      Z% ej@                  d	d      Z& ejN                  dd
      Z( ejN                  d      Z) G d d      Z*y)ServiceRequestsTrU   r5   r   r	   r   )r   r6   r9   r   Fr   c                       e Zd ZdZy)ServiceRequests.Metaservice_requestsNr   r   r   r   r   r      s    %r   r   N)+r   r   r   r   r@   r4   rB   rt   r~   r   Buyercustomerr   
stone_typer!   rn   shapeamountr.   notesimagenumber_of_stonesweight_of_stoner   r   r   service_modelr   gift_boxr   gift_packaginggift_card_sentencerK   r-   r,   service_statuspayment_statusdelivery_statusinvoice_generatedr0   r1   r2   r   r   r   r   r   r      s   VvDIE!!!(V^^DI v  TJH#&##IDQJ6s5DF6EV$7FF$'E6&E'v''3DA&f&&#4@O$6$$[6>>tTL%F%%lV^^QUVM v  $PH&V&&D6>>ZN)))SdC V  48F(V((=N(V((=N)f))!>O+++A4@%%%4UCJ#v##.H& &r   r   c                       e Zd Z ej                  d      Z ej                  eej                        Z	 ej                  dd      Z ej                  dd      Z ej                  d      Z G d d      Zy	)
StoreNotificationsTr   r5   Fr9   r   c                       e Zd ZdZy)StoreNotifications.Metastore_notificationsNr   r   r   r   r   r      r   r   r   N)r   r   r   r   r.   r/   r@   r4   rB   rt   rK   is_readr0   r1   r2   r   r   r   r   r   r      sp    fD)GFfv~~>E!f!!%T:G%%%4UCJ#v##.H) )r   r   c                      e Z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j                  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                  eej                        Z ej0                  d	      Z ej0                  d	      Z ej&                  dd
      Z ej&                  d      Z G d d      Zy)StoreCouponsr   Tr	   r   rU   r   r5   FrX   r   c                       e Zd ZdZy)StoreCoupons.Metastore_couponsNr   r   r   r   r   r      r   r   r   N)r   r   r   r   r!   coupon_name_englishcoupon_name_arabiccoupon_typer,   coupon_discount	coupon_onr@   rT   rB   productr~   servicerc   category_productr0   coupon_start_datecoupon_end_dater4   store_idrK   isApplicabler-   r1   r2   r   r   r   r   r   r      sI   *&**ctD)))SdC#6##s=K)f))RTBO   CT:If6>>tLGf6>>tLG(v((&..VZ[,,,$7*f**5O v  &..AH&6&&u5L V  /F%%%4UCJ#v##.H# #r   r   c                      e Zd Z ej                  eej                        Z ej                  e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	      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j2                  dd      Z ej6                  d      Z ej6                  d      Z G d d      Zy)ServiceInvoicer5   TrU   r   rW   )r
   r      r7   rX         Fr9   )r   r   c                       e Zd ZdZy)ServiceInvoice.Metaservice_invoiceNr   r   r   r   r   r      s    $r   r   N)r   r   r   r   r@   r   rB   service_request_idr4   rt   r!   invoice_numbercustomer_nameenglish_service_namearabic_service_namerq   r.   description
unit_pricetotal_before_vat
vat_amounttotal_amount	FileFieldqr_codeinvoice_pdf_urlrK   is_paidr0   r1   r2   r   r   r   r   r   r      sh   ***?V^^TVvDIE%V%%R@N$F$$B?M+6++s2F*&**c"Ev2b9H"&""2.K!!!R;J'v''2bA!!!R;J#6##r"=Lf#b9G&f&&#bAO!f!!%T:G%%%48J#v##.H% %r   r   N)	django.dbr   auth_apis.modelsdjango.confr   admin_panel.modelsModelr   r4   rT   rz   r   r   r   r   r   r   r   r   r   r   r   r   <module>r      s         $FLL $*V\\ . >v||  >H$FLL $	$6<< 	$	! 	!	"&,, 	"#&,, #)fll )&fll &<) )#6<< #,%V\\ %r   