from sqlalchemy import String, PrimaryKeyConstraint from sqlalchemy.orm import mapped_column, Mapped from core.database import Base class PaymentMethod(Base): __tablename__ = "payment_methods" #GFormaPago __table_args__ = ( PrimaryKeyConstraint("key", name="payment_methods_pkey"), {"schema": "public"} # opcional ) key: Mapped[str] = mapped_column(String(2), nullable=False) description: Mapped[str] = mapped_column(String(100), nullable=False) def __repr__(self): return f""