🗃️ 增加 TETRIOHistoricalData.api_type 字段长度

This commit is contained in:
2024-08-09 16:20:53 +08:00
parent 9a16e2fa21
commit 429f99f77e
2 changed files with 51 additions and 1 deletions

View File

@@ -13,6 +13,6 @@ from .typing import Summaries
class TETRIOHistoricalData(MappedAsDataclass, Model):
id: Mapped[int] = mapped_column(init=False, primary_key=True)
user_unique_identifier: Mapped[str] = mapped_column(String(24), index=True)
api_type: Mapped[Literal['User Info', Summaries]] = mapped_column(String(16), index=True)
api_type: Mapped[Literal['User Info', Summaries]] = mapped_column(String(32), index=True)
data: Mapped[SuccessModel] = mapped_column(PydanticType(get_model=[SuccessModel.__subclasses__], models=set()))
update_time: Mapped[datetime] = mapped_column(DateTime, index=True)