feat: Update Ride schemas with new fields
This commit is contained in:
parent
4291e39649
commit
98818016b1
@ -4,6 +4,8 @@ from datetime import datetime
|
|||||||
from uuid import UUID
|
from uuid import UUID
|
||||||
|
|
||||||
class RideBase(BaseModel):
|
class RideBase(BaseModel):
|
||||||
|
dispatch_status: str
|
||||||
|
dispatch_time: Optional[datetime.datetime]
|
||||||
dispatch_status: str
|
dispatch_status: str
|
||||||
dispatch_time: Optional[datetime.datetime]
|
dispatch_time: Optional[datetime.datetime]
|
||||||
pickup_location: str = Field(..., description="Pickup location")
|
pickup_location: str = Field(..., description="Pickup location")
|
||||||
@ -18,6 +20,8 @@ class RideCreate(RideBase):
|
|||||||
pass
|
pass
|
||||||
|
|
||||||
class RideSchema(RideBase):
|
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]
|
||||||
id: UUID
|
id: UUID
|
||||||
@ -36,3 +40,9 @@ class RideSchema(RideBase):
|
|||||||
dispatch_status: str
|
dispatch_status: str
|
||||||
dispatch_time: Optional[datetime.datetime]
|
dispatch_time: Optional[datetime.datetime]
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
dispatch_status: str
|
||||||
|
dispatch_time: Optional[datetime.datetime]
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user