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""