"""
Routes for managing Sectors (GSectores) — a76 tenant-scoped catalog.
"""

from api.v1.common.tenant_crud_routes import TenantCRUDRoutes

from .dto import SectorCreateDTO, SectorResponseDTO, SectorUpdateDTO
from .service import SectorService

router = TenantCRUDRoutes(
    service=SectorService,
    create_schema=SectorCreateDTO,
    update_schema=SectorUpdateDTO,
    response_schema=SectorResponseDTO,
    prefix="/sectors",
    tags=["a76 / sectors"],
    resource_name="Sector",
    id_name="sector_id",
    enable_list=True,
    enable_filters=True,
    default_page_size=50,
    max_page_size=100,
).router
