from sqlalchemy import SmallInteger, String from sqlalchemy.orm import Mapped, mapped_column from app.core.database import Base class Move(Base): __tablename__ = "moves" id: Mapped[int] = mapped_column(primary_key=True) name: Mapped[str] = mapped_column(String(50), unique=True) introduced_gen: Mapped[int] = mapped_column(SmallInteger) type: Mapped[str | None] = mapped_column(String(20)) def __repr__(self) -> str: return f""