- 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.
18 lines
685 B
Python
18 lines
685 B
Python
from sqlalchemy import String, PrimaryKeyConstraint
|
|
from sqlalchemy.orm import mapped_column, Mapped
|
|
from core.database import Base
|
|
|
|
class Incoterm(Base):
|
|
__tablename__ = "incoterms" #GIncoterm
|
|
__table_args__ = (
|
|
PrimaryKeyConstraint("code", name="incoterms_pkey"),
|
|
{"schema": "public"}
|
|
)
|
|
|
|
code: Mapped[str] = mapped_column(String(5), nullable=False)
|
|
description_es: Mapped[str] = mapped_column(String(256), nullable=False)
|
|
description_en: Mapped[str] = mapped_column(String(256), nullable=False)
|
|
|
|
def __repr__(self):
|
|
return f"<Incoterm(code={self.code}, description_es={self.description_es}, description_en={self.description_en})>"
|