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]