From f6798c1d2128edc8fd765e796b5774ab55c7ee0c Mon Sep 17 00:00:00 2001 From: PIG AI Date: Wed, 16 Jul 2025 22:50:22 +0800 Subject: [PATCH] =?UTF-8?q?fix(db):=20=E7=A7=BB=E9=99=A4=E7=94=A8=E6=88=B7?= =?UTF-8?q?=E8=A1=A8=E7=9A=84phone=E5=92=8Cusername=E5=94=AF=E4=B8=80?= =?UTF-8?q?=E7=BA=A6=E6=9D=9F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- db/0pigxx_boot.sql | 4 +--- db/2pigxx.sql | 4 +--- 2 files changed, 2 insertions(+), 6 deletions(-) diff --git a/db/0pigxx_boot.sql b/db/0pigxx_boot.sql index df74965e1..3db6b40dc 100644 --- a/db/0pigxx_boot.sql +++ b/db/0pigxx_boot.sql @@ -1301,9 +1301,7 @@ CREATE TABLE `sys_user` ( `wx_cp_userid` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT '企业微信唯一ID', `wx_ding_userid` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT '钉钉唯一ID', `tenant_id` bigint(20) NOT NULL DEFAULT '0' COMMENT '所属租户ID', - PRIMARY KEY (`user_id`) USING BTREE, - UNIQUE KEY `user_unique_phone` (`phone`) USING BTREE, - UNIQUE KEY `user_unique_username` (`username`) USING BTREE + PRIMARY KEY (`user_id`) USING BTREE ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci COMMENT='用户表'; -- ---------------------------- diff --git a/db/2pigxx.sql b/db/2pigxx.sql index e6d4a6121..5b18ef4b6 100644 --- a/db/2pigxx.sql +++ b/db/2pigxx.sql @@ -1286,9 +1286,7 @@ CREATE TABLE `sys_user` ( `wx_cp_userid` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT '企业微信唯一ID', `wx_ding_userid` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT '钉钉唯一ID', `tenant_id` bigint(20) NOT NULL DEFAULT '0' COMMENT '所属租户ID', - PRIMARY KEY (`user_id`) USING BTREE, - UNIQUE KEY `user_unique_phone` (`phone`) USING BTREE, - UNIQUE KEY `user_unique_username` (`username`) USING BTREE + PRIMARY KEY (`user_id`) USING BTREE ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci COMMENT='用户表'; -- ----------------------------