Files
nuzlocke-tracker/backend/src/app/models/ability.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

16 lines
485 B
Python

from sqlalchemy import SmallInteger, String
from sqlalchemy.orm import Mapped, mapped_column
from app.core.database import Base
class Ability(Base):
__tablename__ = "abilities"
id: Mapped[int] = mapped_column(primary_key=True)
name: Mapped[str] = mapped_column(String(50), unique=True)
introduced_gen: Mapped[int] = mapped_column(SmallInteger)
def __repr__(self) -> str:
return f"<Ability(id={self.id}, name='{self.name}', gen={self.introduced_gen})>"