refactor(database): migrate to sqlmodel

This commit is contained in:
MingxuanGame
2025-07-24 20:49:07 +08:00
parent 1655bb9f53
commit c43ca883a5
11 changed files with 582 additions and 743 deletions

View File

@@ -3,10 +3,14 @@ from __future__ import annotations
from datetime import datetime
from enum import Enum
from app.database import (
LazerUserAchievement,
Team as Team,
)
from .score import GameMode
from pydantic import BaseModel
from app.database import LazerUserAchievement # 添加数据库模型导入
class PlayStyle(str, Enum):
@@ -110,13 +114,6 @@ class DailyChallengeStats(BaseModel):
weekly_streak_current: int = 0
class Team(BaseModel):
flag_url: str
id: int
name: str
short_name: str
class Page(BaseModel):
html: str = ""
raw: str = ""