This commit is contained in:
2025-12-13 14:39:50 +03:00
commit b666cdcb95
79 changed files with 3081 additions and 0 deletions

View File

@@ -0,0 +1,10 @@
from app.db.base import Base
from app.db.session import engine
from app.models import user, schedule, task, reward, ai_conversation
async def init_db():
"""Инициализация БД - создание таблиц"""
async with engine.begin() as conn:
await conn.run_sync(Base.metadata.create_all)