Deliver Step 1: Backend cleanup — secrets scrubbed, is_admin column, Telegram optional, crypto service, v4-v7 migrations, .env.example, setup.sh
This commit is contained in:
parent
8e630233f6
commit
cb892564d9
11 changed files with 212 additions and 37 deletions
|
|
@ -19,6 +19,7 @@ class User(Base):
|
|||
created_at: Mapped[datetime] = mapped_column(DateTime(timezone=True), default=lambda: datetime.now(timezone.utc))
|
||||
is_active: Mapped[bool] = mapped_column(Boolean, default=True)
|
||||
timezone: Mapped[str] = mapped_column(String(50), default="Asia/Bangkok")
|
||||
is_admin: Mapped[bool] = mapped_column(Boolean, default=False)
|
||||
|
||||
# Relationships
|
||||
profile: Mapped["UserProfile"] = relationship(back_populates="user", uselist=False, lazy="selectin")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue