diff --git a/backend/apps/system/models/user.py b/backend/apps/system/models/user.py index e5ae8794..0004f057 100644 --- a/backend/apps/system/models/user.py +++ b/backend/apps/system/models/user.py @@ -1,4 +1,4 @@ -from typing import List +from typing import List, Optional from sqlalchemy import Column, BigInteger from sqlalchemy.dialects.postgresql import JSONB @@ -19,7 +19,11 @@ class BaseUserPO(SQLModel): origin: int = Field(nullable=False, default=0) create_time: int = Field(default_factory=get_timestamp, sa_type=BigInteger(), nullable=False) language: str = Field(max_length=255, default="zh-CN") - system_variables: List = Field(sa_column=Column(JSONB, nullable=True)) + #system_variables: List = Field(sa_column=Column(JSONB, nullable=True)) + system_variables: Optional[List] = Field( + default=None, + sa_column=Column(JSONB, nullable=True) + ) class UserModel(SnowflakeBase, BaseUserPO, table=True):