Add Telegram approval flow: inline buttons, user creation, email notifications
This commit is contained in:
@@ -115,3 +115,17 @@ class AuditLog(Base):
|
||||
action: Mapped[str] = mapped_column(String(128), index=True)
|
||||
details: Mapped[str] = mapped_column(Text)
|
||||
created_at: Mapped[dt.datetime] = mapped_column(DateTime(timezone=True), default=lambda: dt.datetime.now(dt.timezone.utc), index=True)
|
||||
|
||||
|
||||
class PendingAccessRequest(Base):
|
||||
__tablename__ = "pending_access_requests"
|
||||
|
||||
id: Mapped[str] = mapped_column(String(12), primary_key=True)
|
||||
name: Mapped[str] = mapped_column(String(256))
|
||||
company: Mapped[str] = mapped_column(String(256))
|
||||
email: Mapped[str] = mapped_column(String(256))
|
||||
phone: Mapped[str] = mapped_column(String(64))
|
||||
manager: Mapped[str] = mapped_column(String(256), default="")
|
||||
products_json: Mapped[str] = mapped_column(Text, default="[]")
|
||||
status: Mapped[str] = mapped_column(String(16), default="pending")
|
||||
created_at: Mapped[dt.datetime] = mapped_column(DateTime(timezone=True), default=lambda: dt.datetime.now(dt.timezone.utc))
|
||||
|
||||
Reference in New Issue
Block a user