mirror of
https://github.com/jxxghp/MoviePilot.git
synced 2026-07-12 16:02:35 +08:00
refactor(db): convert suitable string fields to JSON type
This commit is contained in:
@@ -31,9 +31,9 @@ class User(Base):
|
||||
# otp秘钥
|
||||
otp_secret = Column(String, default=None)
|
||||
# 用户权限 json
|
||||
permissions = Column(JSON, default='')
|
||||
permissions = Column(JSON, default=dict)
|
||||
# 用户个性化设置 json
|
||||
settings = Column(JSON, default='')
|
||||
settings = Column(JSON, default=dict)
|
||||
|
||||
@staticmethod
|
||||
@db_query
|
||||
|
||||
Reference in New Issue
Block a user