from __future__ import annotations

from datetime import datetime

from pydantic import BaseModel, Field


class FinanceReportConfigUpdate(BaseModel):
    recipients: list[str] = Field(default_factory=list, max_length=50)
    delivery_enabled: bool = False


class FinanceReportConfigRead(BaseModel):
    tenant_id: str
    status: str
    delivery_enabled: bool
    recipients: list[str] = Field(default_factory=list)
    updated_by: str = ""
    updated_at: datetime | None = None
