Files
plantillas-proyectos/backend/api/v1/modules/public/customs_sections/models.py
acazares 2a10d7d267 feat: Add frontend and backend initialization scripts, implement Keycloak and PostgreSQL setup
- Implemented SvelteKit frontend with authentication callback handling.
- Created demo routes and paraglide localization functionality.
- Added health check and entrypoint scripts for backend services.
- Established PostgreSQL and Keycloak initialization scripts with health checks.
- Introduced models for database schema using SQLAlchemy.
- Configured Vite and SvelteKit for development and testing environments.
- Added health check script to verify service statuses and resource usage.
- Created Docker entrypoint scripts for seamless service startup.
2025-10-19 00:14:06 -05:00

16 lines
569 B
Python

from sqlalchemy import String, PrimaryKeyConstraint
from sqlalchemy.orm import mapped_column
from core.database import Base
class CustomsSection(Base):
__tablename__ = "customs_sections" #GAduanaSec
__table_args__ = (
PrimaryKeyConstraint("customs_code", name="customs_code_pkey"),
{"schema": "public"}
)
customs_code = mapped_column(String(3), nullable=False)
section_name = mapped_column(String(50), nullable=False)
def __repr__(self):
return f"<CustomsSection(code={self.customs_code}, name={self.section_name })>"