mirror of
https://github.com/A-Minos/nonebot-plugin-tetris-stats.git
synced 2026-03-05 05:36:54 +08:00
🗃️ 添加 TETRIOUserConfig
This commit is contained in:
@@ -15,3 +15,8 @@ class TETRIOHistoricalData(MappedAsDataclass, Model):
|
||||
api_type: Mapped[Literal['User Info', 'User Records']] = mapped_column(String(16), index=True)
|
||||
data: Mapped[SuccessModel] = mapped_column(PydanticType(get_model=[SuccessModel.__subclasses__], models=set()))
|
||||
update_time: Mapped[datetime] = mapped_column(DateTime, index=True)
|
||||
|
||||
|
||||
class TETRIOUserConfig(MappedAsDataclass, Model):
|
||||
id: Mapped[int] = mapped_column(init=False, primary_key=True)
|
||||
query_template: Mapped[Literal['v1', 'v2']] = mapped_column(String(2))
|
||||
|
||||
Reference in New Issue
Block a user