File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed
backend/apps/system/models Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change 1- from typing import List
1+ from typing import List , Optional
22
33from sqlalchemy import Column , BigInteger
44from sqlalchemy .dialects .postgresql import JSONB
@@ -19,7 +19,11 @@ class BaseUserPO(SQLModel):
1919 origin : int = Field (nullable = False , default = 0 )
2020 create_time : int = Field (default_factory = get_timestamp , sa_type = BigInteger (), nullable = False )
2121 language : str = Field (max_length = 255 , default = "zh-CN" )
22- system_variables : List = Field (sa_column = Column (JSONB , nullable = True ))
22+ #system_variables: List = Field(sa_column=Column(JSONB, nullable=True))
23+ system_variables : Optional [List ] = Field (
24+ default = None ,
25+ sa_column = Column (JSONB , nullable = True )
26+ )
2327
2428
2529class UserModel (SnowflakeBase , BaseUserPO , table = True ):
You can’t perform that action at this time.
0 commit comments