Technical Details: https://blog.mxgame.top/2025/11/22/An-On-Demand-Design-Within-SQLModel/
14 lines
429 B
Python
14 lines
429 B
Python
from . import beatmap # noqa: F401
|
|
from .beatmapset import BeatmapsetModel
|
|
|
|
from sqlmodel import SQLModel
|
|
|
|
SearchBeatmapset = BeatmapsetModel.generate_typeddict(("beatmaps.max_combo", "pack_tags"))
|
|
|
|
|
|
class SearchBeatmapsetsResp(SQLModel):
|
|
beatmapsets: list[SearchBeatmapset] # pyright: ignore[reportInvalidTypeForm]
|
|
total: int
|
|
cursor: dict[str, int | float | str] | None = None
|
|
cursor_string: str | None = None
|