from pydantic import BaseModel
from typing import Optional

class FileRecord(BaseModel):
    filename: str
    status: str                # e.g. "processed", "failed"
    transaction_id: Optional[str] = None
    titling_state: Optional[str] = None
    process_date: Optional[str] = None
    sales_tax: Optional[str] = None
    pages: Optional[int] = 0
    duration: Optional[float] = 0.0
