from pydantic import BaseModel
from typing import Optional
from uuid import UUID

class RouteStopBase(BaseModel):
    stop_id: UUID
    stop_order: Optional[int] = None
    travel_time_minutes: Optional[int] = None
    stop_delay_minutes: int = 0
    is_pickup_point: Optional[bool] = True
    is_dropoff_point: Optional[bool] = True

class RouteStopCreate(RouteStopBase):
    pass

class RouteStopUpdate(BaseModel):
    stop_order: Optional[int] = None
    travel_time_minutes: Optional[int] = None
    stop_delay_minutes: Optional[int] = None
    is_pickup_point: Optional[bool] = None
    is_dropoff_point: Optional[bool] = None
