from api.v1.common.tenant_crud_routes import TenantCRUDRoutes
from .models import INPC
from .dto import INPCCreate, INPCResponse, INPCUpdate
from .service import INPCService

# Usamos TenantCRUDRoutes directamente
router = TenantCRUDRoutes(
    service=INPCService,
    create_schema=INPCCreate,
    update_schema=INPCUpdate,
    response_schema=INPCResponse,
    prefix="/inpc",
    tags=["a76.general_catalogs.inpc"],
    resource_name="INPC",
    enable_list=True,
    # Permisos
    list_permissions=["cat_inpc.view"],
    get_permissions=["cat_inpc.view"],
    create_permissions=["cat_inpc.create"],
    update_permissions=["cat_inpc.edit"],
    delete_permissions=["cat_inpc.delete"],
).router