Refactor code structure for improved readability and maintainability

This commit is contained in:
2025-11-27 20:56:48 +08:00
parent 83276c8b95
commit 1533d9e89c
42 changed files with 5282 additions and 330 deletions

View File

@@ -29,4 +29,5 @@ async def init_db(
):
"""创建数据库结构"""
async with engine.begin() as conn:
await conn.run_sync(SQLModel.metadata.create_all)
await conn.run_sync(SQLModel.metadata.create_all)