14 lines
292 B
Python
14 lines
292 B
Python
import asyncio
|
|
from app.models.database import init_db
|
|
from app.main import settings
|
|
from app.models import orm
|
|
|
|
|
|
async def init_database():
|
|
await init_db(settings.database_url)
|
|
print("Database initialized successfully.")
|
|
|
|
|
|
if __name__ == "__main__":
|
|
asyncio.run(init_database())
|