diff --git a/backend/plugin/dict/model/dict_data.py b/backend/plugin/dict/model/dict_data.py index 717acf08c..07059a154 100644 --- a/backend/plugin/dict/model/dict_data.py +++ b/backend/plugin/dict/model/dict_data.py @@ -22,7 +22,7 @@ class DictData(Base): id: Mapped[id_key] = mapped_column(init=False) label: Mapped[str] = mapped_column(String(32), unique=True, comment='字典标签') - value: Mapped[str] = mapped_column(String(32), unique=True, comment='字典值') + value: Mapped[str] = mapped_column(String(32), comment='字典值') sort: Mapped[int] = mapped_column(default=0, comment='排序') status: Mapped[int] = mapped_column(default=1, comment='状态(0停用 1正常)') remark: Mapped[str | None] = mapped_column( diff --git a/backend/plugin/dict/model/dict_type.py b/backend/plugin/dict/model/dict_type.py index 76708e71c..c2948e6c7 100644 --- a/backend/plugin/dict/model/dict_type.py +++ b/backend/plugin/dict/model/dict_type.py @@ -21,7 +21,7 @@ class DictType(Base): __tablename__ = 'sys_dict_type' id: Mapped[id_key] = mapped_column(init=False) - name: Mapped[str] = mapped_column(String(32), unique=True, comment='字典类型名称') + name: Mapped[str] = mapped_column(String(32), comment='字典类型名称') code: Mapped[str] = mapped_column(String(32), unique=True, comment='字典类型编码') status: Mapped[int] = mapped_column(default=1, comment='状态(0停用 1正常)') remark: Mapped[str | None] = mapped_column(