From 98603d559b6f95dd1376ff7455287cf4a04af2ea Mon Sep 17 00:00:00 2001 From: xhxu Date: Wed, 10 May 2023 17:43:33 +0800 Subject: [PATCH] =?UTF-8?q?//=E5=95=86=E6=88=B7=E7=A7=AF=E5=88=86=E5=80=8D?= =?UTF-8?q?=E7=8E=87?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../V2023042700006_wx_merchant_score_rules.sql | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 mallinkAdmin/src/main/resources/db/migration/V2023042700006_wx_merchant_score_rules.sql diff --git a/mallinkAdmin/src/main/resources/db/migration/V2023042700006_wx_merchant_score_rules.sql b/mallinkAdmin/src/main/resources/db/migration/V2023042700006_wx_merchant_score_rules.sql new file mode 100644 index 000000000..f58eee645 --- /dev/null +++ b/mallinkAdmin/src/main/resources/db/migration/V2023042700006_wx_merchant_score_rules.sql @@ -0,0 +1,15 @@ + +CREATE TABLE `wx_merchant_score_rules` ( + `id` bigint(20) NOT NULL COMMENT '主键ID', + `tenant_id` varchar(5) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '租户ID', + `merchant_id` bigint(20) NOT NULL, + `rules` json, + `create_date` datetime(0) NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间', + `update_date` datetime(0) NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '更新时间', + `type` smallint(2) NOT NULL DEFAULT 1 COMMENT '1成长值 2积分', + `open` smallint(2) NOT NULL DEFAULT 0, + `scale` smallint(5) UNSIGNED DEFAULT NULL COMMENT '积分倍率', + PRIMARY KEY (`id`) USING BTREE, + UNIQUE INDEX `id_UNIQUE`(`id`) USING BTREE, + UNIQUE INDEX `merchant_id`(`merchant_id`, `type`) USING BTREE +) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_unicode_ci COMMENT = '商户积分规则' ROW_FORMAT = Dynamic; \ No newline at end of file