update database

This commit is contained in:
2025-09-30 22:47:30 +03:00
parent 4ea862f96f
commit 643e637543
9 changed files with 718 additions and 32 deletions

View File

@@ -2,6 +2,7 @@ import asyncio
from .models import Base
from .session import engine
import sys
async def init_db():
@@ -10,4 +11,6 @@ async def init_db():
if __name__ == "__main__":
if sys.platform == "win32":
asyncio.set_event_loop_policy(asyncio.WindowsSelectorEventLoopPolicy())
asyncio.run(init_db())