Daedalus and Talos integration test
This commit is contained in:
15
backend/src/app/models/ability.py
Normal file
15
backend/src/app/models/ability.py
Normal file
@@ -0,0 +1,15 @@
|
||||
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})>"
|
||||
Reference in New Issue
Block a user