- 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.
28 lines
952 B
Python
28 lines
952 B
Python
"""Fundamentos TLC Schemas"""
|
|
|
|
from typing import Optional
|
|
from pydantic import BaseModel, Field
|
|
|
|
|
|
class FundamentosTLCResponse(BaseModel):
|
|
"""Fundamentos de tratados de libre comercio"""
|
|
|
|
FRACCION: Optional[str] = Field(None, max_length=8)
|
|
PAIS: Optional[str] = Field(None, max_length=3)
|
|
ACUERDO: Optional[str] = Field(None, max_length=5)
|
|
TASA1TXT: Optional[str] = Field(None, max_length=19)
|
|
TASA1NUM: Optional[str] = None
|
|
TASA2TXT: Optional[str] = Field(None, max_length=19)
|
|
TASA2NUM: Optional[str] = None
|
|
FUNDAMENTO1: Optional[str] = None
|
|
FUNDAMENTO2: Optional[str] = None
|
|
PERIODO: Optional[str] = Field(None, max_length=299)
|
|
MODALIDAD: Optional[str] = Field(None, max_length=999)
|
|
DOF: Optional[str] = Field(None, max_length=8)
|
|
NOTAS: Optional[str] = Field(None, max_length=20)
|
|
NICO: Optional[str] = Field("", max_length=2)
|
|
SYSID: int
|
|
|
|
class Config:
|
|
from_attributes = True
|