ソースを参照

Merge branch 'dev/2024/0822/update-admin-Y' of Harper/feifan-backend-zx-admin into master

更新sql
Yangzw 2 ヶ月 前
コミット
668c89cf59
1 ファイル変更29 行追加0 行削除
  1. 29 0
      sql/mysql/建空库SQL/22_20240822.sql

+ 29 - 0
sql/mysql/建空库SQL/22_20240822.sql

@@ -136,6 +136,35 @@ CREATE TABLE distri_consumption_error_user (
                                                KEY `user_id` (`user_id`) USING BTREE
 ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci ROW_FORMAT=DYNAMIC COMMENT='消费分异动用户';
 
+CREATE TABLE distri_user_top_up_consumption_points_order (
+                                                             `id` bigint NOT NULL AUTO_INCREMENT COMMENT '用户充值消费分订单编号',
+                                                             `no` varchar(32) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NOT NULL COMMENT '订单流水号',
+                                                             `terminal` int NOT NULL COMMENT '订单来源终端',
+                                                             `user_id` bigint unsigned NOT NULL COMMENT '用户编号',
+                                                             `user_ip` varchar(30) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NOT NULL DEFAULT '' COMMENT '用户 IP',
+                                                             `subject` varchar(32) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '商品标题',
+                                                             `top_up_consumption_points` bigint NOT NULL COMMENT '充值消费分',
+                                                             `practical_consumption_points` bigint NOT NULL COMMENT '到账消费分',
+                                                             `user_name` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT '用户名',
+                                                             `pay_order_id` bigint DEFAULT NULL COMMENT '支付订单编号',
+                                                             `pay_status` bit(1) NOT NULL DEFAULT b'0' COMMENT '是否已支付:[0:未支付 1:已经支付过]',
+                                                             `pay_time` datetime DEFAULT NULL COMMENT '订单支付时间',
+                                                             `pay_channel_code` varchar(16) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin DEFAULT NULL COMMENT '支付成功的支付渠道',
+                                                             `finish_time` datetime DEFAULT NULL COMMENT '订单完成时间',
+                                                             `cancel_time` datetime DEFAULT NULL COMMENT '订单取消时间',
+                                                             `pay_price` bigint NOT NULL DEFAULT '0' COMMENT '应付金额(总),单位:分',
+                                                             `percent_template` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci COMMENT '计算百分比模板',
+                                                             `creator` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT '' COMMENT '创建者',
+                                                             `create_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
+                                                             `update_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '更新时间',
+                                                             `updater` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT '更新人',
+                                                             `deleted` bit(1) NOT NULL DEFAULT b'0' COMMENT '是否删除',
+                                                             PRIMARY KEY (`id`) USING BTREE
+) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci ROW_FORMAT=DYNAMIC COMMENT='用户充值消费分订单';
+
+ALTER TABLE distri_order_percentage
+    ADD COLUMN   `user_top_up_consumption_points` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT '用户充值消费分的额度';
+