From 82a7bdfe385b05b91d1022d29cb7980bf3a96ffe Mon Sep 17 00:00:00 2001 From: Backend IM Bot Date: Wed, 9 Apr 2025 13:24:35 +0000 Subject: [PATCH] feat: Update Route schemas with new fields --- schemas/route.py | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/schemas/route.py b/schemas/route.py index f13958d..0a28dc3 100644 --- a/schemas/route.py +++ b/schemas/route.py @@ -5,6 +5,9 @@ from uuid import UUID # Schema for creating a new Route class RouteCreate(BaseModel): + waypoints: Optional[List[Any]] + optimized_distance: Optional[int] + optimized_duration: Optional[int] name: str = Field(..., description="Name of the route") description: Optional[str] = Field(None, description="Description of the route") origin: str = Field(..., description="Origin location of the route") @@ -25,4 +28,9 @@ class RouteSchema(BaseModel): updated_at: datetime class Config: - orm_mode = True \ No newline at end of file + orm_mode = True + + + waypoints: Optional[List[Any]] + optimized_distance: Optional[int] + optimized_duration: Optional[int]