From 110f4ea4103b21c08ca360f152fb890098fe42ff Mon Sep 17 00:00:00 2001 From: liujiang <569804566@qq.com> Date: Thu, 6 Nov 2025 14:29:47 +0800 Subject: [PATCH] =?UTF-8?q?master=EF=BC=9Astore=5Fcustomer=5Fproduct=5Fdis?= =?UTF-8?q?count=E5=88=9D=E5=A7=8B=E5=8C=96=E7=B4=A2=E5=BC=95=E8=B0=83?= =?UTF-8?q?=E6=95=B4=EF=BC=9B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- sql/ry_20240629.sql | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sql/ry_20240629.sql b/sql/ry_20240629.sql index 84d5ecb57..a355d8100 100644 --- a/sql/ry_20240629.sql +++ b/sql/ry_20240629.sql @@ -3332,9 +3332,9 @@ CREATE TABLE `store_customer_product_discount` `create_time` datetime NULL DEFAULT NULL COMMENT '创建时间', `update_by` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '' COMMENT '更新者', `update_time` datetime NULL DEFAULT NULL COMMENT '更新时间', - PRIMARY KEY (`id`) USING BTREE + PRIMARY KEY (`id`) USING BTREE, + INDEX `idx_cus_id_prod_color_id` (`store_cus_id`, `store_prod_color_id`) USING BTREE ) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '档口客户优惠' ROW_FORMAT = DYNAMIC; -CREATE INDEX idx_scpd_store_del_cus_color ON store_customer_product_discount(store_id, del_flag, store_cus_id, store_prod_color_id); -- ----------------------------