fix(db): update Pydantic model to allow any type for 'note' field

This commit is contained in:
InfinityPacer
2024-10-01 15:20:30 +08:00
parent 7473f0ba27
commit a25ff4302d
4 changed files with 9 additions and 9 deletions
+2 -2
View File
@@ -1,4 +1,4 @@
from typing import Optional
from typing import Optional, Any
from pydantic import BaseModel
@@ -45,7 +45,7 @@ class DownloadHistory(BaseModel):
# 创建时间
date: Optional[str] = None
# 备注
note: Optional[str] = None
note: Optional[Any] = None
class Config:
orm_mode = True