summaryrefslogtreecommitdiff
path: root/app/utils/create_tables.py
blob: bb9baf30e7844fa59efd411600cffe4677dc893d (plain)
1
2
3
4
5
6
7
8
# app/utils/create_tables.py
from app.models.user import Base
from app.utils.db import engine


async def init_db():
    async with engine.begin() as conn:
        await conn.run_sync(Base.metadata.create_all)