o
    owh^                     @   sB   d dl mZ d dlmZ d dlmZmZmZ G dd dejZ	dS )    )models)User)VehicleModelsVehicleTypesTransmissionTypesc                   @   s  e Zd ZU ejdded< ejedddejddZ	eje
dddejdZejedddejdZejedddejdZejddddd	Zejddddd	Zejddddd	Zd
ZejdedZdZejdedddZejddddZejddddd	Zejddddd	ZejdddddZejdddddZejd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#dZ$ejde$dZ%ej&dddZ'dZ(ejde$dZ)ejedddej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Z/ejddddZ0ejdddZ1ejddddZ2ejddddZ3dZ4ejde4dZ5ejddddZ6ejddddZ7ej8ddZ9ej8ddZ:G dd dZ;dS )TripsT)primary_keyid 
user_trips)blanknulldefault	on_deleterelated_name)r   r   r   r      )r   r   
max_lengthr   ))r   zOne way)   Roundr   )r   choices))r   z
No Uniform)r   UniformF)r   r   r   r   )r   r   r   )r   r   r   r   )r   r   r   r   )r   r   ))r   z
In Stationr   zOut Station)r   Pending)r   Assigned)   Start)   Complete)   Rejectedtrip_driver)r   r   )r   r   r   )auto_now_addc                   @   s   e Zd ZdZdZdS )z
Trips.MetaTtrips_tripsN)__name__
__module____qualname__manageddb_table r)   r)   4/var/www/html/DRIVERZZ_CUSTOMER_APIS/trips/models.pyMeta3   s    r+   N)<r$   r%   r&   r   	AutoField__annotations__
ForeignKeyr   SET_NULLuserr   vehicle_modelr   vehicle_typer   transmission_type	CharFieldvehicle_model_namevehicle_type_nametransmission_type_name
trip_typesIntegerField	trip_typeuniform_typesuniform_typepickup_addresspickup_latitudepickup_longitudedestination_addressdestination_latitudedestination_longitude	DateField
start_date
start_timeend_dateend_timestation_typesstation_type	TextFieldinstructionsstatus_typesstatusdrivertrip_start_datetrip_start_timetrip_end_datetrip_end_timeedit_start_dateedit_start_timeedit_end_dateedit_end_timereference_idpayment_status_typespayment_statusamount
net_amountDateTimeField
created_at
updated_atr+   r)   r)   r)   r*   r      sZ   
 r   N)
	django.dbr   authentication.modelsr   vehicles.modelsr   r   r   Modelr   r)   r)   r)   r*   <module>   s    