"""
Calendar period models for accounting period selector
"""
from pydantic import BaseModel
from typing import List, Optional


class CalendarPeriod(BaseModel):
    """Model for an accounting period"""
    an: int           # Year
    luna: int         # Month (1-12)
    display_name: str # Format: "Decembrie 2025"


class CalendarPeriodsResponse(BaseModel):
    """Response model for calendar periods list"""
    periods: List[CalendarPeriod]
    current_period: Optional[CalendarPeriod] = None  # Most recent period
    total_count: int
