From 3c8849a2a260de8c1964bb5a0348240cb4b0d42c Mon Sep 17 00:00:00 2001 From: Backend IM Bot Date: Wed, 9 Apr 2025 19:43:46 +0000 Subject: [PATCH] feat: Update Ride schemas with new fields --- schemas/ride.py | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/schemas/ride.py b/schemas/ride.py index 87649d0..e169dae 100644 --- a/schemas/ride.py +++ b/schemas/ride.py @@ -8,6 +8,8 @@ class RideBase(BaseModel): dispatch_time: Optional[datetime.datetime] dispatch_status: str dispatch_time: Optional[datetime.datetime] + dispatch_status: str + dispatch_time: Optional[datetime.datetime] pickup_location: str = Field(..., description="Pickup location") drop_location: str = Field(..., description="Drop-off location") pickup_latitude: float = Field(..., description="Pickup latitude") @@ -24,6 +26,8 @@ class RideSchema(RideBase): dispatch_time: Optional[datetime.datetime] dispatch_status: str dispatch_time: Optional[datetime.datetime] + dispatch_status: str + dispatch_time: Optional[datetime.datetime] id: UUID driver_id: Optional[UUID] = Field(None, description="ID of the driver") 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_time: Optional[datetime.datetime]