from pydantic import BaseModel
from typing import Optional


class AddressCreate(BaseModel):
    label: str
    calle: str
    colonia: str  # el backend deriva route_id a partir de colonias-rutas.json
    lat: Optional[float] = None
    lng: Optional[float] = None


class AddressResponse(BaseModel):
    id: str
    user_id: str
    label: str
    calle: str
    colonia: str
    route_id: str
    verified: bool
    verified_method: Optional[str] = None
    verified_at: Optional[str] = None
    created_at: Optional[str] = None
    lat: Optional[float] = None
    lng: Optional[float] = None
