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