Files
plantillas-proyectos/backend/api/v1/modules/sitar/noms/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

28 lines
966 B
Python

"""NOMs Schemas"""
from typing import Optional
from pydantic import BaseModel, Field
class NomsResponse(BaseModel):
"""Normas Oficiales Mexicanas"""
FRACCION: Optional[str] = Field("", max_length=10)
IMPORTACION: Optional[str] = Field("", max_length=1)
EXPORTACION: Optional[str] = Field("", max_length=1)
PERMISO: Optional[str] = Field("", max_length=19)
ACUERDO: Optional[str] = Field("", max_length=100)
CONDICION: Optional[str] = Field("")
FUNDAMENTO: Optional[str] = Field("")
DOF: Optional[str] = Field("", max_length=8)
FORMATONOM: Optional[str] = Field("", max_length=100)
INSTRUCCIONES: Optional[str] = Field("", max_length=100)
CRITERIO: Optional[str] = Field("", max_length=254)
COMPLEMENTO: Optional[str] = Field("", max_length=999)
NICO: Optional[str] = Field("", max_length=2)
PAIS: Optional[str] = Field("", max_length=3)
SYSID: int
class Config:
from_attributes = True