ORM update and lots of improvements
This commit is contained in:
@@ -0,0 +1,7 @@
|
||||
from database.db import engine
|
||||
from database.models import Base
|
||||
|
||||
|
||||
async def init_db():
|
||||
async with engine.begin() as conn:
|
||||
await conn.run_sync(Base.metadata.create_all)
|
||||
Reference in New Issue
Block a user