"""Fracciones Anteriores Schemas"""

from typing import Optional
from pydantic import BaseModel, ConfigDict, Field


class FraccionesAnterioresResponse(BaseModel):
    """Fracciones arancelarias anteriores (histórico)"""

    FRACCIONACTUAL: Optional[str] = Field(None, max_length=10)
    FRACCIONANTERIOR: Optional[str] = Field(None, max_length=10)
    SYSID: int

    model_config = ConfigDict(from_attributes=True)
