From ebd65c8246e034b930f64fe45ca4fe1d5c6bfc03 Mon Sep 17 00:00:00 2001 From: Wu Clan Date: Mon, 23 Jun 2025 22:33:34 +0800 Subject: [PATCH] Update dict data label column config (#684) --- backend/plugin/dict/model/dict_data.py | 2 +- backend/plugin/dict/plugin.toml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/backend/plugin/dict/model/dict_data.py b/backend/plugin/dict/model/dict_data.py index 07059a15..50d52cae 100644 --- a/backend/plugin/dict/model/dict_data.py +++ b/backend/plugin/dict/model/dict_data.py @@ -21,7 +21,7 @@ class DictData(Base): __tablename__ = 'sys_dict_data' id: Mapped[id_key] = mapped_column(init=False) - label: Mapped[str] = mapped_column(String(32), unique=True, comment='字典标签') + label: Mapped[str] = mapped_column(String(32), 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正常)') diff --git a/backend/plugin/dict/plugin.toml b/backend/plugin/dict/plugin.toml index f8a51aa1..7ee6f7ad 100644 --- a/backend/plugin/dict/plugin.toml +++ b/backend/plugin/dict/plugin.toml @@ -1,6 +1,6 @@ [plugin] summary = '数据字典' -version = '0.0.2' +version = '0.0.3' description = '通常用于约束前端工程数据展示' author = 'wu-clan'