Files
plantillas-proyectos/backend/api/v1/modules/sitar/cupos/schemas.py
acazares f38c13f851 feat: Implement SITAR modules for PROSEC, RCG2, Regulaciones, REIT, RequisitoPrevio, TLCS, and Vehiculos
- Added schemas, services, and routers for PROSEC, RCG2, Regulaciones, REIT, RequisitoPrevio, TLCS, and Vehiculos modules.
- Each module includes search and get by ID functionalities.
- Integrated FastAPI routers for each module into the main SITAR router.
- Ensured proper response models using Pydantic for data validation.
2026-02-04 23:28:46 -06:00

26 lines
852 B
Python

"""Cupos Schemas"""
from typing import Optional
from pydantic import BaseModel, Field
class CuposResponse(BaseModel):
"""Cupos de importación"""
FRACCION: Optional[str] = Field(None, max_length=10)
NUMEROCUPO: Optional[int] = None
DOF: Optional[str] = Field(None, max_length=8)
PERMISO: Optional[str] = Field(None, max_length=2)
CONDICION: Optional[str] = Field(None, max_length=199)
VIGENCIA: Optional[str] = Field(None, max_length=8)
PAIS: Optional[str] = Field(None, max_length=5)
OBSERVACIONES: Optional[str] = Field(None, max_length=5000)
ADVIMPO: Optional[str] = Field(None, max_length=20)
ADVEXPO: Optional[str] = Field(None, max_length=20)
TIPOOPERACION: Optional[int] = None
NICO: Optional[str] = Field("", max_length=2)
SYSID: int
class Config:
from_attributes = True