This commit is contained in:
2026-02-27 20:54:16 +07:00
parent 399bffde1d
commit 3071e5a1a1
27 changed files with 158 additions and 701 deletions

11
app/models/player.py Normal file
View File

@@ -0,0 +1,11 @@
from sqlalchemy import BigInteger, Integer, Float
from sqlalchemy.orm import Mapped, mapped_column
from app.models.base import Base
class Player(Base):
__tablename__ = "players"
id: Mapped[int] = mapped_column(primary_key=True)
telegram_id: Mapped[int] = mapped_column(BigInteger, unique=True)
money: Mapped[int] = mapped_column(Integer, default=10000)
reputation: Mapped[float] = mapped_column(Float, default=1.0)