o
    	wh                     @   sr   d dl mZ d dlmZ d dlmZmZmZ d dlm	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)	AutoField	CharField	DateField)AbstractUserc                   @   s  e Zd ZejdddddZejdddddZejddddZejdddZ	ej
dddd	Zejdd
dZej
dddd	Zej
dddd	ZejddZdZej
de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dddZejddddZejdddZG dd dZdS )User    T)
max_lengthdefaultblanknullr   r   r   r   r   r   F)r   r   r      )uniquer   auto_now_add))   Admin)   r   )   Driverr   r   choices
   user_profile)	upload_tor   r   )r   r   c                   @      e Zd ZdZdZdS )z	User.MetaTaccounts_userN__name__
__module____qualname__manageddb_table r'   r'   ;/var/www/html/DRIVERZZ_DRIVER_APIS/authentication/models.pyMeta       r)   N)r"   r#   r$   r   r   
first_name	last_nameemailDateTimeField
last_loginIntegerFieldis_superuserusernameis_staff	is_activedate_joineduser_type_data	user_typenamepasswordmobile
ImageFieldprofile_pic	fcm_tokenr)   r'   r'   r'   r(   r      s&    r   c                   @   s  e Zd ZU ejdded< ejedddejddZ	dZ
ejd	e
d
ZejddddZejddddZej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Zejd	ed
ZdZejd	ed
ZdZejd	ed
ZdZejd	ed
ZejddZejddZG dd dZ dS )DriverPartnersTprimary_keyidr
   Fdriver_partner)r   r   r   	on_deleterelated_name))r   Male)r   Femaler   r   r	   r   r   ))r   No)r   Yes))r   z
In Station)r   zOut Stationr   Both))r   zOne way)r   RoundrI   ))r   	Automatic)r   ManualrI   r   c                   @   r   )zDriverPartners.MetaTdriver_partners_driverpartnersNr!   r'   r'   r'   r(   r)   8   r*   r)   N)!r"   r#   r$   r   r   __annotations__
ForeignKeyr   r   usergender_typesr0   genderr   licensce_nodate_of_birth
FloatField
experiencelocationhouse_numberpincodeuniform_typesuniform_typestation_typesstation_type
trip_types	trip_typetransmission_typestransmission_typer.   
created_at
updated_atr)   r'   r'   r'   r(   r>   "   s,   
 r>   c                   @   sT   e Zd ZU ejdded< ejeejddddZ	dZ
ejde
d	ZG d
d dZdS )DriverVehiclesTr?   rA   Fdriver_vehicles)rC   r   r   rD   ))r   Suv)r   Sedan)r   Luxury)r   	Hatchbackr   r   c                   @   r   )zDriverVehicles.MetaTdriver_partners_drivervehiclesNr!   r'   r'   r'   r(   r)   C   r*   r)   N)r"   r#   r$   r   r   rO   rP   r   r   drivervehicle_model_typesr0   vehicle_modelr)   r'   r'   r'   r(   re   =   s   
 re   N)	django.dbr   django.db.models.deletionr   django.db.models.fieldsr   r   r   django.contrib.auth.modelsr   Modelr   r>   re   r'   r'   r'   r(   <module>   s    