- 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.
22 lines
636 B
Python
22 lines
636 B
Python
"""Información General Schemas"""
|
|
|
|
from typing import Optional
|
|
from pydantic import BaseModel, Field
|
|
|
|
|
|
class InformacionGeneralResponse(BaseModel):
|
|
"""Información general de fracciones"""
|
|
|
|
OBSERVACIONES: Optional[str] = Field(None, max_length=1000)
|
|
NOTAOBSERVACIONES: Optional[str] = Field(None, max_length=1000)
|
|
FRACCION: Optional[str] = Field(None, max_length=10)
|
|
TIPOOPERACION: Optional[int] = None
|
|
ORDEN: Optional[int] = None
|
|
LEYENDA: Optional[str] = None
|
|
NOTA: Optional[str] = None
|
|
NICO: Optional[str] = Field("", max_length=2)
|
|
SYSID: int
|
|
|
|
class Config:
|
|
from_attributes = True
|