forked from FOSS/ASF-Control-Bot
refactor: balance handling and upload processing
This commit is contained in:
+4
-1
@@ -19,7 +19,10 @@ class User(Base):
|
||||
first_name: Mapped[str | None] = mapped_column(String(255), nullable=True)
|
||||
last_name: Mapped[str | None] = mapped_column(String(255), nullable=True)
|
||||
is_admin: Mapped[bool] = mapped_column(Boolean, default=False)
|
||||
balance_credits: Mapped[int] = mapped_column(BigInteger, default=0, nullable=False)
|
||||
# Имя столбца сохраняется для совместимости с существующей базой данных.
|
||||
balance_rubles: Mapped[int] = mapped_column(
|
||||
"balance_credits", BigInteger, default=0, nullable=False
|
||||
)
|
||||
created_at: Mapped[datetime] = mapped_column(DateTime(timezone=True), default=utc_now)
|
||||
updated_at: Mapped[datetime] = mapped_column(
|
||||
DateTime(timezone=True),
|
||||
|
||||
Reference in New Issue
Block a user