add telegram username to bd

This commit is contained in:
2025-12-12 21:33:51 +05:00
parent c7454cbb62
commit 7aea18c7fb
3 changed files with 29 additions and 15 deletions

View File

@ -22,7 +22,9 @@ class UserInDB(BaseModel):
is_active: bool = True
created_at: datetime = datetime.utcnow()
code: Optional[str] = None
telegram_id: Optional[str] = None
telegram_chat_id: Optional[int] = None
telegram_user_id: Optional[int] = None
telegram_username: Optional[str] = None
is_verified: bool = False
code_expires_at: Optional[datetime] = None
is_admin: bool = False