from datetime import datetime

from pydantic import BaseModel


class ImportBatchOut(BaseModel):
    id: int
    filename: str
    template_code: str
    status: str
    total_rows: int
    valid_rows: int
    failed_rows: int
    conflict_rows: int
    error_report_path: str | None
    created_at: datetime
    updated_at: datetime

    model_config = {"from_attributes": True}
