🚚 TETRIOUserConfig 写错地方了

This commit is contained in:
2024-06-10 11:17:49 +08:00
parent 37c12e439c
commit 7b3ca9eb2a
4 changed files with 8 additions and 7 deletions

View File

@@ -15,8 +15,3 @@ 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))