feat: Update Ride schemas with new fields
This commit is contained in:
parent
98818016b1
commit
3c8849a2a2
@ -8,6 +8,8 @@ class RideBase(BaseModel):
|
|||||||
dispatch_time: Optional[datetime.datetime]
|
dispatch_time: Optional[datetime.datetime]
|
||||||
dispatch_status: str
|
dispatch_status: str
|
||||||
dispatch_time: Optional[datetime.datetime]
|
dispatch_time: Optional[datetime.datetime]
|
||||||
|
dispatch_status: str
|
||||||
|
dispatch_time: Optional[datetime.datetime]
|
||||||
pickup_location: str = Field(..., description="Pickup location")
|
pickup_location: str = Field(..., description="Pickup location")
|
||||||
drop_location: str = Field(..., description="Drop-off location")
|
drop_location: str = Field(..., description="Drop-off location")
|
||||||
pickup_latitude: float = Field(..., description="Pickup latitude")
|
pickup_latitude: float = Field(..., description="Pickup latitude")
|
||||||
@ -24,6 +26,8 @@ class RideSchema(RideBase):
|
|||||||
dispatch_time: Optional[datetime.datetime]
|
dispatch_time: Optional[datetime.datetime]
|
||||||
dispatch_status: str
|
dispatch_status: str
|
||||||
dispatch_time: Optional[datetime.datetime]
|
dispatch_time: Optional[datetime.datetime]
|
||||||
|
dispatch_status: str
|
||||||
|
dispatch_time: Optional[datetime.datetime]
|
||||||
id: UUID
|
id: UUID
|
||||||
driver_id: Optional[UUID] = Field(None, description="ID of the driver")
|
driver_id: Optional[UUID] = Field(None, description="ID of the driver")
|
||||||
ride_status: str = Field("requested", description="Status of the ride")
|
ride_status: str = Field("requested", description="Status of the ride")
|
||||||
@ -43,6 +47,12 @@ class RideSchema(RideBase):
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
dispatch_status: str
|
||||||
|
dispatch_time: Optional[datetime.datetime]
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
dispatch_status: str
|
dispatch_status: str
|
||||||
dispatch_time: Optional[datetime.datetime]
|
dispatch_time: Optional[datetime.datetime]
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user