
q|^                 @   s  d  d l  m Z d  d l m Z d  d l m Z d  d l m Z d  d l m Z d  d l Z d  d l	 TGd d   d e j
  Z Gd	 d
   d
 e j
  Z Gd d   d e j
  Z Gd d   d e j
  Z Gd d   d e j
  Z Gd d   d e j
  Z Gd d   d e j
  Z Gd d   d e j
  Z Gd d   d e j
  Z Gd d   d e j
  Z d  d l m Z Gd d   d e j
  Z d S)    )models)User)GenericForeignKey)ContentTypeN)*c            	   @   sf  e  Z d  Z d Z e j e d e j d d d d Z e j	 d d d d d d  Z
 e j	 d d d d d d d d  Z e j	 d d d d d d  Z e j	 d d d d d d  Z e j d d	 d d d d  Z e j d d	 d d d d  Z e j	 d d
 d d d d  Z e j d d  Z e j d d  Z e j d d  Z e j d d  Z d d   Z d S)Adminz<
	This model is used to store the information of Customer.
		on_deletenullTblank
max_lengthd   unique   i,  defaultFc             C   s   t  |  j  S)N)struser)self r   J/home/development/Documents/Good_Delivery/GoodsDelivery/AdminApp/models.py__str__   s    zAdmin.__str__N)__name__
__module____qualname____doc__r   
ForeignKeyr   CASCADEr   	CharFieldnameemailZcountrycodephone	FileFieldimageZidproofZemailverificationlinkBooleanFieldZemailverifiedZaccountverifiedZaccountapproved	isdeletedr   r   r   r   r   r      s   $$r   c               @   s   e  Z d  Z e j e d e j d d d d Z e j d d d d  Z	 e j d d d d  Z
 e j d d d d  Z d d   Z d	 S)
Pushersr   r	   Tr
   r      c             C   s   t  |  j  S)N)r   id)r   r   r   r   r   3   s    zPushers.__str__N)r   r   r   r   r   r   r   r   r   ZendpointZauth_keyZ
p256dh_keyr   r   r   r   r   r$   -   s
   $r$   c               @   s|   e  Z d  Z d Z e j d d d d d d  Z e j d d d d d d  Z e j d d d d d d  Z d d   Z	 d	 S)
Countryz=
	This model is used to store the information of countries.
	r   r   r	   Tr
   c             C   s   t  |  j  S)N)r   r   )r   r   r   r   r   >   s    zCountry.__str__N)
r   r   r   r   r   r   r   abbreviationcurrencyr   r   r   r   r   r'   6   s
   r'   c               @   sd   e  Z d  Z d Z e j e d e j d d d d Z e j	 d d d d d d  Z
 d d	   Z d
 S)Cityz:
	This model is used to store the information of cities.
	r   r	   Tr
   r   r   c             C   s   t  |  j  S)N)r   r   )r   r   r   r   r   H   s    zCity.__str__N)r   r   r   r   r   r   r'   r   countryr   r   r   r   r   r   r   r*   A   s   $r*   c            	   @   sN  e  Z d  Z d Z e j d d d d d d  Z e j d d d d	 d d d d  Z e j	 d d d d
 d d d d  Z
 e j	 d d d d
 d d d d  Z e j d d d d	 d d d d  Z e j	 d d d d
 d d d d  Z e j	 d d d d
 d d d d  Z e j d d d d	 d d d d  Z e j d d  Z d d   Z d S)VehicleTypezA
	This model is used to store the information of vehicle types.
	r   r   r	   Tr
   r   r    g        Fc             C   s   t  |  j  S)N)r   r   )r   r   r   r   r   Z   s    zVehicleType.__str__N)r   r   r   r   r   r   r   r    r!   
FloatFieldZcarryinglimitinkgZfixeddistanceZdistanceunitZbaserateZaddittionalrateperunitr)   r"   r#   r   r   r   r   r   r,   L   s   $$$$$$$r,   c               @   sR   e  Z d  Z d Z e j d d d d d d  Z e j d d  Z d	 d
   Z	 d S)SupportDetailz4
	This model is used to store the support details.
	r   r   r	   Tr
   r   Fc             C   s   t  |  j  S)N)r   r&   )r   r   r   r   r   f   s    zSupportDetail.__str__N)
r   r   r   r   r   r   r   r"   r#   r   r   r   r   r   r/   _   s   r/   c               @   sR   e  Z d  Z d Z e j d d d d d d  Z e j d d  Z d	 d
   Z	 d S)
ParcelTypez@
	This model is used to store the information of parcel types.
	r   r   r	   Tr
   r   Fc             C   s   t  |  j  S)N)r   
parceltype)r   r   r   r   r   p   s    zParcelType.__str__N)
r   r   r   r   r   r   r1   r"   r#   r   r   r   r   r   r0   i   s   r0   c               @   sX   e  Z d  Z e j d d d d d d  Z e j d d d d d d  Z d d   Z d S)	ThumbnailSizer   2   r	   Tr
   c             C   s$   t  t  |  j  d t  |  j   S)Nr   )r   heightwidth)r   r   r   r   r   w   s    zThumbnailSize.__str__N)r   r   r   r   r   r4   r5   r   r   r   r   r   r2   s   s   r2   c               @   s   e  Z d  Z d Z e j d d d d d d  Z e j d d d d d d  Z e j d d d d d d  Z e j d d d d d d  Z	 e j
 d d d d  Z e j
 d d d d  Z e j d d  Z d	 d
   Z d S)OTPz>
	This model is used to store the information regarding OTP.
	r   r   r	   Tr
   r   Fc             C   s   t  |  j  S)N)r   mobile)r   r   r   r   r      s    zOTP.__str__N)r   r   r   r   r   r   caser7   r   ZotpDateTimeFieldZstartdatetimeZexpiredatetimer"   Zverifiedr   r   r   r   r   r6   z   s   r6   c               @   sN  e  Z d  Z e j e d e j d d d d Z e j d d 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 d d d  Z e j d d d d  Z e j d d d d	 d d  Z e j d e j j  Z e j
 d d  Z e j d
 d d d  Z e j d d d d  Z d d   Z d S)Notificationsr   r	   Tr
   r   Fr   r   Zunreadauto_nowauto_now_addc             C   s   t  |  j  S)N)r   r&   )r   r   r   r   r      s    zNotifications.__str__N)r   r   r   r   r   r   SET_NULLr   PositiveIntegerFieldZcustomerjobidr"   ZforcustomerZ	fordriverZforadminothersr   Znotificationtype	TextFieldZnotificationtextstatusr9   datetimenowdatedeleted
created_at
updated_atr   r   r   r   r   r:      s   $r:   )CustomerJobc               @   s   e  Z d  Z e j e d e j d d d d Z e j e d e j d d 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 d	 d
   Z d S)MatchedParcelDriverModalr   r	   Tr
   r   Fr;   r<   c             C   s   t  |  j  S)N)r   r&   )r   r   r   r   r      s    z MatchedParcelDriverModal.__str__N)r   r   r   r   r   rH   r   ZmatchedparcelZDriverModelZmatchedddriverr"   rA   ZparcelpickupZjobcompletedZiscancelledbyadminr#   r9   rF   rG   r   r   r   r   r   rI      s   $$rI   )	django.dbr   django.contrib.auth.modelsr   Z"django.contrib.contenttypes.fieldsr   "django.contrib.contenttypes.modelsr   rB   ZDriver.modelsModelr   r$   r'   r*   r,   r/   r0   r2   r6   r:   ZCustomer.modelsrH   rI   r   r   r   r   <module>   s$   
"	

