- Implemented the initial version of the web interface. refactor: Begin Telegram bot refactoring - Started restructuring the bot’s code for better maintainability. chore: Migrate to Flask project structure - Reorganized the application to follow Flask's project structure. cleanup: Extensive code cleanup - Removed redundant code and improved readability. Signed-off-by: UdoChudo <stream@udochudo.ru>
10 lines
303 B
Python
10 lines
303 B
Python
from app.extensions.db import db
|
|
|
|
class UserState(db.Model):
|
|
__tablename__ = "user_states"
|
|
|
|
chat_id = db.Column(db.BigInteger, primary_key=True)
|
|
state = db.Column(db.String(64), nullable=False)
|
|
|
|
def __repr__(self):
|
|
return f"<UserState chat_id={self.chat_id}, state={self.state}>" |