添加Github登录,优化数据库模型

This commit is contained in:
2025-09-01 00:21:06 +08:00
parent f3a5ae9c40
commit 2a173c0566
23 changed files with 321 additions and 264 deletions

View File

@@ -213,7 +213,7 @@ async def init_default_user() -> None:
admin_user = User(
email="admin@yxqi.cn",
nick="admin",
status=0, # 正常状态
status=True, # 正常状态
group_id=admin_group.id,
password=hashed_admin_password,
)