Files
nuzlocke-tracker/backend/src/app/models/move.py
Julian Tabel c9d42b091f
All checks were successful
CI / backend-tests (push) Successful in 26s
CI / frontend-tests (push) Successful in 29s
Daedalus and Talos integration test
2026-03-20 16:31:19 +01:00

17 lines
532 B
Python

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"<Move(id={self.id}, name='{self.name}', gen={self.introduced_gen})>"