from sqlalchemy import String, PrimaryKeyConstraint from sqlalchemy.orm import mapped_column, Mapped from core.database import Base class ValuationMethod(Base): __tablename__ = "valuation_methods" #GMetValor __table_args__ = ( PrimaryKeyConstraint("key", name="valuation_methods_pkey"), {"schema": "public"} ) key: Mapped[str] = mapped_column(String(2), nullable=False) description: Mapped[str] = mapped_column(String(200), nullable=False) def __repr__(self): return f""