bot rafactor and bugfix
This commit is contained in:
@@ -8,7 +8,7 @@ class User(Base):
|
||||
__tablename__ = "users"
|
||||
|
||||
id: Mapped[int] = mapped_column(primary_key=True, autoincrement=True)
|
||||
tg_user_id: Mapped[int] = mapped_column(BigInteger, unique=True, index=True)
|
||||
tg_user_id: Mapped[int] = mapped_column(unique=True, index=True)
|
||||
username: Mapped[str | None] = mapped_column(String(64))
|
||||
role: Mapped[str] = mapped_column(String(16), default="user")
|
||||
created_at: Mapped[datetime] = mapped_column(DateTime(timezone=True), server_default=func.now())
|
||||
|
||||
Reference in New Issue
Block a user