File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed
backend/plugin/dict/model Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -22,7 +22,7 @@ class DictData(Base):
22
22
23
23
id : Mapped [id_key ] = mapped_column (init = False )
24
24
label : Mapped [str ] = mapped_column (String (32 ), unique = True , comment = '字典标签' )
25
- value : Mapped [str ] = mapped_column (String (32 ), unique = True , comment = '字典值' )
25
+ value : Mapped [str ] = mapped_column (String (32 ), comment = '字典值' )
26
26
sort : Mapped [int ] = mapped_column (default = 0 , comment = '排序' )
27
27
status : Mapped [int ] = mapped_column (default = 1 , comment = '状态(0停用 1正常)' )
28
28
remark : Mapped [str | None ] = mapped_column (
Original file line number Diff line number Diff line change @@ -21,7 +21,7 @@ class DictType(Base):
21
21
__tablename__ = 'sys_dict_type'
22
22
23
23
id : Mapped [id_key ] = mapped_column (init = False )
24
- name : Mapped [str ] = mapped_column (String (32 ), unique = True , comment = '字典类型名称' )
24
+ name : Mapped [str ] = mapped_column (String (32 ), comment = '字典类型名称' )
25
25
code : Mapped [str ] = mapped_column (String (32 ), unique = True , comment = '字典类型编码' )
26
26
status : Mapped [int ] = mapped_column (default = 1 , comment = '状态(0停用 1正常)' )
27
27
remark : Mapped [str | None ] = mapped_column (
You can’t perform that action at this time.
0 commit comments