refactor(database): use alembic to maintain the whole database

This commit is contained in:
MingxuanGame
2025-08-10 04:33:03 +00:00
parent 36b59ac853
commit cf45070c2c
7 changed files with 1070 additions and 190 deletions

View File

@@ -30,11 +30,6 @@ async def get_db():
yield session
async def create_tables():
async with engine.begin() as conn:
await conn.run_sync(SQLModel.metadata.create_all)
# Redis 依赖
def get_redis():
return redis_client