# /opt/docker/dev/service_finder/backend/app/schemas/fleet.py
from pydantic import BaseModel, ConfigDict
from typing import Optional, List
from datetime import date
from uuid import UUID

class EventCreate(BaseModel):
    asset_id: UUID
    event_type: str # 'SERVICE', 'FUEL', 'MOT'
    date: date
    odometer_value: int
    cost_amount: float
    description: Optional[str] = None
    provider_id: Optional[int] = None

class TCOStats(BaseModel):
    asset_id: UUID
    total_cost_huf: float
    cost_per_km: float
    model_config = ConfigDict(from_attributes=True)