Commit 5f64fe052b873393896517769858779cc49e778c
1 parent
73d0e9d0
初始化sql
Showing
2 changed files
with
382 additions
and
0 deletions
sql/mysql/menu.sql
0 → 100644
| 1 | +-- 菜单 SQL | |
| 2 | +INSERT INTO system_menu( | |
| 3 | + name, permission, type, sort, parent_id, | |
| 4 | + path, icon, component, status, component_name | |
| 5 | +) | |
| 6 | +VALUES ( | |
| 7 | + '积分设置管理', '', 2, 0, 2162, | |
| 8 | + 'config', '', 'point/config/index', 0, 'PointConfig' | |
| 9 | +); | |
| 10 | + | |
| 11 | +-- 按钮父菜单ID | |
| 12 | +-- 暂时只支持 MySQL。如果你是 Oracle、PostgreSQL、SQLServer 的话,需要手动修改 @parentId 的部分的代码 | |
| 13 | +SELECT @parentId := LAST_INSERT_ID(); | |
| 14 | + | |
| 15 | +-- 按钮 SQL | |
| 16 | +INSERT INTO system_menu( | |
| 17 | + name, permission, type, sort, parent_id, | |
| 18 | + path, icon, component, status | |
| 19 | +) | |
| 20 | +VALUES ( | |
| 21 | + '积分设置查询', 'point:config:query', 3, 1, @parentId, | |
| 22 | + '', '', '', 0 | |
| 23 | +); | |
| 24 | +INSERT INTO system_menu( | |
| 25 | + name, permission, type, sort, parent_id, | |
| 26 | + path, icon, component, status | |
| 27 | +) | |
| 28 | +VALUES ( | |
| 29 | + '积分设置创建', 'point:config:create', 3, 2, @parentId, | |
| 30 | + '', '', '', 0 | |
| 31 | +); | |
| 32 | +INSERT INTO system_menu( | |
| 33 | + name, permission, type, sort, parent_id, | |
| 34 | + path, icon, component, status | |
| 35 | +) | |
| 36 | +VALUES ( | |
| 37 | + '积分设置更新', 'point:config:update', 3, 3, @parentId, | |
| 38 | + '', '', '', 0 | |
| 39 | +); | |
| 40 | +INSERT INTO system_menu( | |
| 41 | + name, permission, type, sort, parent_id, | |
| 42 | + path, icon, component, status | |
| 43 | +) | |
| 44 | +VALUES ( | |
| 45 | + '积分设置删除', 'point:config:delete', 3, 4, @parentId, | |
| 46 | + '', '', '', 0 | |
| 47 | +); | |
| 48 | +INSERT INTO system_menu( | |
| 49 | + name, permission, type, sort, parent_id, | |
| 50 | + path, icon, component, status | |
| 51 | +) | |
| 52 | +VALUES ( | |
| 53 | + '积分设置导出', 'point:config:export', 3, 5, @parentId, | |
| 54 | + '', '', '', 0 | |
| 55 | +); | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | +-- 菜单 SQL | |
| 60 | +INSERT INTO system_menu( | |
| 61 | + name, permission, type, sort, parent_id, | |
| 62 | + path, icon, component, status, component_name | |
| 63 | +) | |
| 64 | +VALUES ( | |
| 65 | + '积分签到规则管理', '', 2, 0, 2162, | |
| 66 | + 'sign-in-config', '', 'point/signInConfig/index', 0, 'SignInConfig' | |
| 67 | +); | |
| 68 | + | |
| 69 | +-- 按钮父菜单ID | |
| 70 | +-- 暂时只支持 MySQL。如果你是 Oracle、PostgreSQL、SQLServer 的话,需要手动修改 @parentId 的部分的代码 | |
| 71 | +SELECT @parentId := LAST_INSERT_ID(); | |
| 72 | + | |
| 73 | +-- 按钮 SQL | |
| 74 | +INSERT INTO system_menu( | |
| 75 | + name, permission, type, sort, parent_id, | |
| 76 | + path, icon, component, status | |
| 77 | +) | |
| 78 | +VALUES ( | |
| 79 | + '积分签到规则查询', 'point:sign-in-config:query', 3, 1, @parentId, | |
| 80 | + '', '', '', 0 | |
| 81 | +); | |
| 82 | +INSERT INTO system_menu( | |
| 83 | + name, permission, type, sort, parent_id, | |
| 84 | + path, icon, component, status | |
| 85 | +) | |
| 86 | +VALUES ( | |
| 87 | + '积分签到规则创建', 'point:sign-in-config:create', 3, 2, @parentId, | |
| 88 | + '', '', '', 0 | |
| 89 | +); | |
| 90 | +INSERT INTO system_menu( | |
| 91 | + name, permission, type, sort, parent_id, | |
| 92 | + path, icon, component, status | |
| 93 | +) | |
| 94 | +VALUES ( | |
| 95 | + '积分签到规则更新', 'point:sign-in-config:update', 3, 3, @parentId, | |
| 96 | + '', '', '', 0 | |
| 97 | +); | |
| 98 | +INSERT INTO system_menu( | |
| 99 | + name, permission, type, sort, parent_id, | |
| 100 | + path, icon, component, status | |
| 101 | +) | |
| 102 | +VALUES ( | |
| 103 | + '积分签到规则删除', 'point:sign-in-config:delete', 3, 4, @parentId, | |
| 104 | + '', '', '', 0 | |
| 105 | +); | |
| 106 | +INSERT INTO system_menu( | |
| 107 | + name, permission, type, sort, parent_id, | |
| 108 | + path, icon, component, status | |
| 109 | +) | |
| 110 | +VALUES ( | |
| 111 | + '积分签到规则导出', 'point:sign-in-config:export', 3, 5, @parentId, | |
| 112 | + '', '', '', 0 | |
| 113 | +); | |
| 114 | + | |
| 115 | + | |
| 116 | +-- 菜单 SQL | |
| 117 | +INSERT INTO system_menu( | |
| 118 | + name, permission, type, sort, parent_id, | |
| 119 | + path, icon, component, status, component_name | |
| 120 | +) | |
| 121 | +VALUES ( | |
| 122 | + '用户积分记录管理', '', 2, 0, 2162, | |
| 123 | + 'record', '', 'point/record/index', 0, 'PointRecord' | |
| 124 | +); | |
| 125 | + | |
| 126 | +-- 按钮父菜单ID | |
| 127 | +-- 暂时只支持 MySQL。如果你是 Oracle、PostgreSQL、SQLServer 的话,需要手动修改 @parentId 的部分的代码 | |
| 128 | +SELECT @parentId := LAST_INSERT_ID(); | |
| 129 | + | |
| 130 | +-- 按钮 SQL | |
| 131 | +INSERT INTO system_menu( | |
| 132 | + name, permission, type, sort, parent_id, | |
| 133 | + path, icon, component, status | |
| 134 | +) | |
| 135 | +VALUES ( | |
| 136 | + '用户积分记录查询', 'point:record:query', 3, 1, @parentId, | |
| 137 | + '', '', '', 0 | |
| 138 | +); | |
| 139 | +INSERT INTO system_menu( | |
| 140 | + name, permission, type, sort, parent_id, | |
| 141 | + path, icon, component, status | |
| 142 | +) | |
| 143 | +VALUES ( | |
| 144 | + '用户积分记录创建', 'point:record:create', 3, 2, @parentId, | |
| 145 | + '', '', '', 0 | |
| 146 | +); | |
| 147 | +INSERT INTO system_menu( | |
| 148 | + name, permission, type, sort, parent_id, | |
| 149 | + path, icon, component, status | |
| 150 | +) | |
| 151 | +VALUES ( | |
| 152 | + '用户积分记录更新', 'point:record:update', 3, 3, @parentId, | |
| 153 | + '', '', '', 0 | |
| 154 | +); | |
| 155 | +INSERT INTO system_menu( | |
| 156 | + name, permission, type, sort, parent_id, | |
| 157 | + path, icon, component, status | |
| 158 | +) | |
| 159 | +VALUES ( | |
| 160 | + '用户积分记录删除', 'point:record:delete', 3, 4, @parentId, | |
| 161 | + '', '', '', 0 | |
| 162 | +); | |
| 163 | +INSERT INTO system_menu( | |
| 164 | + name, permission, type, sort, parent_id, | |
| 165 | + path, icon, component, status | |
| 166 | +) | |
| 167 | +VALUES ( | |
| 168 | + '用户积分记录导出', 'point:record:export', 3, 5, @parentId, | |
| 169 | + '', '', '', 0 | |
| 170 | +); | |
| 171 | + | |
| 172 | + | |
| 173 | + | |
| 174 | +-- 菜单 SQL | |
| 175 | +INSERT INTO system_menu( | |
| 176 | + name, permission, type, sort, parent_id, | |
| 177 | + path, icon, component, status, component_name | |
| 178 | +) | |
| 179 | +VALUES ( | |
| 180 | + '用户签到积分管理', '', 2, 0, 2162, | |
| 181 | + 'sign-in-record', '', 'point/signInRecord/index', 0, 'SignInRecord' | |
| 182 | +); | |
| 183 | + | |
| 184 | +-- 按钮父菜单ID | |
| 185 | +-- 暂时只支持 MySQL。如果你是 Oracle、PostgreSQL、SQLServer 的话,需要手动修改 @parentId 的部分的代码 | |
| 186 | +SELECT @parentId := LAST_INSERT_ID(); | |
| 187 | + | |
| 188 | +-- 按钮 SQL | |
| 189 | +INSERT INTO system_menu( | |
| 190 | + name, permission, type, sort, parent_id, | |
| 191 | + path, icon, component, status | |
| 192 | +) | |
| 193 | +VALUES ( | |
| 194 | + '用户签到积分查询', 'point:sign-in-record:query', 3, 1, @parentId, | |
| 195 | + '', '', '', 0 | |
| 196 | +); | |
| 197 | +INSERT INTO system_menu( | |
| 198 | + name, permission, type, sort, parent_id, | |
| 199 | + path, icon, component, status | |
| 200 | +) | |
| 201 | +VALUES ( | |
| 202 | + '用户签到积分创建', 'point:sign-in-record:create', 3, 2, @parentId, | |
| 203 | + '', '', '', 0 | |
| 204 | +); | |
| 205 | +INSERT INTO system_menu( | |
| 206 | + name, permission, type, sort, parent_id, | |
| 207 | + path, icon, component, status | |
| 208 | +) | |
| 209 | +VALUES ( | |
| 210 | + '用户签到积分更新', 'point:sign-in-record:update', 3, 3, @parentId, | |
| 211 | + '', '', '', 0 | |
| 212 | +); | |
| 213 | +INSERT INTO system_menu( | |
| 214 | + name, permission, type, sort, parent_id, | |
| 215 | + path, icon, component, status | |
| 216 | +) | |
| 217 | +VALUES ( | |
| 218 | + '用户签到积分删除', 'point:sign-in-record:delete', 3, 4, @parentId, | |
| 219 | + '', '', '', 0 | |
| 220 | +); | |
| 221 | +INSERT INTO system_menu( | |
| 222 | + name, permission, type, sort, parent_id, | |
| 223 | + path, icon, component, status | |
| 224 | +) | |
| 225 | +VALUES ( | |
| 226 | + '用户签到积分导出', 'point:sign-in-record:export', 3, 5, @parentId, | |
| 227 | + '', '', '', 0 | |
| 228 | +); | |
| 229 | + | |
| 230 | + | ... | ... |
sql/mysql/point.sql
0 → 100644
| 1 | +/* | |
| 2 | + Navicat Premium Data Transfer | |
| 3 | + | |
| 4 | + Source Server : docer-master-root(3308) | |
| 5 | + Source Server Type : MySQL | |
| 6 | + Source Server Version : 80030 | |
| 7 | + Source Host : 10.211.55.5:3308 | |
| 8 | + Source Schema : mall | |
| 9 | + | |
| 10 | + Target Server Type : MySQL | |
| 11 | + Target Server Version : 80030 | |
| 12 | + File Encoding : 65001 | |
| 13 | + | |
| 14 | + Date: 10/06/2023 20:13:57 | |
| 15 | +*/ | |
| 16 | + | |
| 17 | +SET NAMES utf8mb4; | |
| 18 | +SET FOREIGN_KEY_CHECKS = 0; | |
| 19 | + | |
| 20 | +-- ---------------------------- | |
| 21 | +-- Table structure for member_point_config | |
| 22 | +-- ---------------------------- | |
| 23 | +DROP TABLE IF EXISTS `member_point_config`; | |
| 24 | +CREATE TABLE `member_point_config` ( | |
| 25 | + `id` int NOT NULL AUTO_INCREMENT COMMENT '自增主键', | |
| 26 | + `trade_deduct_enable` int DEFAULT NULL COMMENT '1 开启积分抵扣\n0 关闭积分抵扣', | |
| 27 | + `trade_deduct_unit_price` decimal(10,2) DEFAULT NULL COMMENT '积分抵扣,抵扣最低为分 以0.01表示 1积分抵扣0.01元(单位:元)', | |
| 28 | + `trade_deduct_max_price` bigint DEFAULT NULL COMMENT '积分抵扣最大值', | |
| 29 | + `trade_give_point` bigint DEFAULT NULL COMMENT '1元赠送多少分', | |
| 30 | + `create_time` datetime DEFAULT NULL COMMENT '创建时间', | |
| 31 | + `update_time` datetime DEFAULT NULL ON UPDATE CURRENT_TIMESTAMP COMMENT '变更时间', | |
| 32 | + `tenant_id` varchar(255) DEFAULT NULL COMMENT '租户id', | |
| 33 | + `deleted` int DEFAULT '0' COMMENT '是否被删除 0 未删除 1已删除', | |
| 34 | + `creator` varchar(255) DEFAULT NULL COMMENT '创建人', | |
| 35 | + `updater` varchar(255) DEFAULT NULL COMMENT '更新人', | |
| 36 | + PRIMARY KEY (`id`) | |
| 37 | +) ENGINE=InnoDB AUTO_INCREMENT=4 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci COMMENT='积分设置'; | |
| 38 | + | |
| 39 | +-- ---------------------------- | |
| 40 | +-- Records of member_point_config | |
| 41 | +-- ---------------------------- | |
| 42 | +BEGIN; | |
| 43 | +INSERT INTO `member_point_config` (`id`, `trade_deduct_enable`, `trade_deduct_unit_price`, `trade_deduct_max_price`, `trade_give_point`, `create_time`, `update_time`, `tenant_id`, `deleted`, `creator`, `updater`) VALUES (1, 1, 0.01, 10000, 1, '2023-06-10 10:57:22', '2023-06-10 03:06:58', '1', 1, '1', '1'); | |
| 44 | +INSERT INTO `member_point_config` (`id`, `trade_deduct_enable`, `trade_deduct_unit_price`, `trade_deduct_max_price`, `trade_give_point`, `create_time`, `update_time`, `tenant_id`, `deleted`, `creator`, `updater`) VALUES (2, 1, 0.01, 10000, 10, '2023-06-10 11:07:12', '2023-06-10 11:07:12', '1', 0, '1', '1'); | |
| 45 | +INSERT INTO `member_point_config` (`id`, `trade_deduct_enable`, `trade_deduct_unit_price`, `trade_deduct_max_price`, `trade_give_point`, `create_time`, `update_time`, `tenant_id`, `deleted`, `creator`, `updater`) VALUES (3, 1, 12.00, 12, 12, '2023-06-10 16:09:26', '2023-06-10 08:10:53', '1', 1, '1', '1'); | |
| 46 | +COMMIT; | |
| 47 | + | |
| 48 | +-- ---------------------------- | |
| 49 | +-- Table structure for member_point_record | |
| 50 | +-- ---------------------------- | |
| 51 | +DROP TABLE IF EXISTS `member_point_record`; | |
| 52 | +CREATE TABLE `member_point_record` ( | |
| 53 | + `id` bigint NOT NULL AUTO_INCREMENT COMMENT '自增主键', | |
| 54 | + `biz_id` varchar(255) DEFAULT NULL COMMENT '业务编码', | |
| 55 | + `biz_type` varchar(255) DEFAULT NULL COMMENT '业务类型', | |
| 56 | + `type` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci DEFAULT NULL COMMENT '1增加 0扣减', | |
| 57 | + `title` varchar(255) DEFAULT NULL COMMENT '积分标题', | |
| 58 | + `description` varchar(5000) DEFAULT NULL COMMENT '积分描述', | |
| 59 | + `point` int DEFAULT NULL COMMENT '积分', | |
| 60 | + `total_point` int NOT NULL COMMENT '变动后的积分', | |
| 61 | + `status` int DEFAULT NULL COMMENT '状态:1-订单创建,2-冻结期,3-完成,4-失效(订单退款)\n', | |
| 62 | + `user_id` int DEFAULT NULL COMMENT '用户id', | |
| 63 | + `freezing_time` datetime DEFAULT NULL COMMENT '冻结时间', | |
| 64 | + `thawing_time` datetime DEFAULT NULL COMMENT '解冻时间', | |
| 65 | + `create_time` datetime DEFAULT NULL COMMENT '发生时间', | |
| 66 | + `tenant_id` varchar(255) DEFAULT NULL COMMENT '租户', | |
| 67 | + `deleted` int DEFAULT '0' COMMENT '是否删除', | |
| 68 | + `creator` varchar(255) DEFAULT NULL COMMENT '创建用户', | |
| 69 | + `updater` varchar(255) DEFAULT NULL COMMENT '更新用户', | |
| 70 | + `update_time` datetime DEFAULT NULL ON UPDATE CURRENT_TIMESTAMP COMMENT '更新时间', | |
| 71 | + PRIMARY KEY (`id`), | |
| 72 | + KEY `index_userId` (`user_id`), | |
| 73 | + KEY `index_title` (`title`) USING BTREE | |
| 74 | +) ENGINE=InnoDB AUTO_INCREMENT=4 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci COMMENT='用户积分记录'; | |
| 75 | + | |
| 76 | +-- ---------------------------- | |
| 77 | +-- Records of member_point_record | |
| 78 | +-- ---------------------------- | |
| 79 | +BEGIN; | |
| 80 | +INSERT INTO `member_point_record` (`id`, `biz_id`, `biz_type`, `type`, `title`, `description`, `point`, `total_point`, `status`, `user_id`, `freezing_time`, `thawing_time`, `create_time`, `tenant_id`, `deleted`, `creator`, `updater`, `update_time`) VALUES (1, '1', '1', '1', '12', NULL, 212, 12, 1, 12, '2023-06-13 00:00:00', '2023-06-20 00:00:00', '2023-06-10 12:38:48', '1', 1, '1', '1', '2023-06-10 04:42:24'); | |
| 81 | +INSERT INTO `member_point_record` (`id`, `biz_id`, `biz_type`, `type`, `title`, `description`, `point`, `total_point`, `status`, `user_id`, `freezing_time`, `thawing_time`, `create_time`, `tenant_id`, `deleted`, `creator`, `updater`, `update_time`) VALUES (2, '12', '1', '0', NULL, NULL, 1212, 12, 2, 12, '2023-06-28 00:00:00', NULL, '2023-06-10 12:42:48', '1', 0, '1', '1', '2023-06-10 12:43:04'); | |
| 82 | +INSERT INTO `member_point_record` (`id`, `biz_id`, `biz_type`, `type`, `title`, `description`, `point`, `total_point`, `status`, `user_id`, `freezing_time`, `thawing_time`, `create_time`, `tenant_id`, `deleted`, `creator`, `updater`, `update_time`) VALUES (3, '12', '1', '1', '12', NULL, 12, 12, 1, 12, '2023-06-27 00:00:00', '2023-06-23 00:00:00', '2023-06-10 20:06:48', '1', 0, '1', '1', '2023-06-10 20:06:48'); | |
| 83 | +COMMIT; | |
| 84 | + | |
| 85 | +-- ---------------------------- | |
| 86 | +-- Table structure for member_sign_in_config | |
| 87 | +-- ---------------------------- | |
| 88 | +DROP TABLE IF EXISTS `member_sign_in_config`; | |
| 89 | +CREATE TABLE `member_sign_in_config` ( | |
| 90 | + `id` int NOT NULL AUTO_INCREMENT COMMENT '规则自增主键', | |
| 91 | + `day` int DEFAULT NULL COMMENT '签到第x天', | |
| 92 | + `point` int DEFAULT NULL COMMENT '签到天数对应分数', | |
| 93 | + `create_time` datetime DEFAULT NULL COMMENT '创建时间', | |
| 94 | + `update_time` datetime DEFAULT NULL ON UPDATE CURRENT_TIMESTAMP COMMENT '变更时间', | |
| 95 | + `tenant_id` varchar(255) DEFAULT NULL COMMENT '租户id', | |
| 96 | + `deleted` int DEFAULT '0' COMMENT '是否删除', | |
| 97 | + `creator` varchar(255) DEFAULT NULL COMMENT '创建人', | |
| 98 | + `updater` varchar(255) DEFAULT NULL COMMENT '变更人', | |
| 99 | + PRIMARY KEY (`id`) | |
| 100 | +) ENGINE=InnoDB AUTO_INCREMENT=6 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci COMMENT='积分签到规则'; | |
| 101 | + | |
| 102 | +-- ---------------------------- | |
| 103 | +-- Records of member_sign_in_config | |
| 104 | +-- ---------------------------- | |
| 105 | +BEGIN; | |
| 106 | +INSERT INTO `member_sign_in_config` (`id`, `day`, `point`, `create_time`, `update_time`, `tenant_id`, `deleted`, `creator`, `updater`) VALUES (1, 1, 10, '2023-06-10 11:34:43', '2023-06-10 11:34:43', '1', 0, '1', '1'); | |
| 107 | +INSERT INTO `member_sign_in_config` (`id`, `day`, `point`, `create_time`, `update_time`, `tenant_id`, `deleted`, `creator`, `updater`) VALUES (2, 2, 20, '2023-06-10 11:34:59', '2023-06-10 03:55:35', '1', 1, '1', '1'); | |
| 108 | +INSERT INTO `member_sign_in_config` (`id`, `day`, `point`, `create_time`, `update_time`, `tenant_id`, `deleted`, `creator`, `updater`) VALUES (3, 7, 1001, '2023-06-10 17:47:45', '2023-06-10 19:54:37', '1', 0, '1', '1'); | |
| 109 | +INSERT INTO `member_sign_in_config` (`id`, `day`, `point`, `create_time`, `update_time`, `tenant_id`, `deleted`, `creator`, `updater`) VALUES (4, 6, 12121, '2023-06-10 17:47:55', '2023-06-10 19:48:37', '1', 0, '1', '1'); | |
| 110 | +INSERT INTO `member_sign_in_config` (`id`, `day`, `point`, `create_time`, `update_time`, `tenant_id`, `deleted`, `creator`, `updater`) VALUES (5, 2, 12, '2023-06-10 19:54:52', '2023-06-10 19:54:52', '1', 0, '1', '1'); | |
| 111 | +COMMIT; | |
| 112 | + | |
| 113 | +-- ---------------------------- | |
| 114 | +-- Table structure for member_sign_in_record | |
| 115 | +-- ---------------------------- | |
| 116 | +DROP TABLE IF EXISTS `member_sign_in_record`; | |
| 117 | +CREATE TABLE `member_sign_in_record` ( | |
| 118 | + `id` bigint NOT NULL AUTO_INCREMENT COMMENT '签到自增id', | |
| 119 | + `user_id` int DEFAULT NULL COMMENT '签到用户', | |
| 120 | + `day` int DEFAULT NULL COMMENT '第几天签到', | |
| 121 | + `point` int DEFAULT NULL COMMENT '签到的分数', | |
| 122 | + `create_time` datetime DEFAULT NULL COMMENT '签到时间', | |
| 123 | + `update_time` datetime DEFAULT NULL ON UPDATE CURRENT_TIMESTAMP COMMENT '变更时间', | |
| 124 | + `tenant_id` varchar(255) DEFAULT NULL COMMENT '租户id', | |
| 125 | + `deleted` int DEFAULT '0' COMMENT '是否删除', | |
| 126 | + `creator` varchar(255) DEFAULT NULL COMMENT '创建人', | |
| 127 | + `updater` varchar(255) DEFAULT NULL COMMENT '更新人', | |
| 128 | + PRIMARY KEY (`id`) | |
| 129 | +) ENGINE=InnoDB AUTO_INCREMENT=5 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci COMMENT='用户签到积分'; | |
| 130 | + | |
| 131 | +-- ---------------------------- | |
| 132 | +-- Records of member_sign_in_record | |
| 133 | +-- ---------------------------- | |
| 134 | +BEGIN; | |
| 135 | +INSERT INTO `member_sign_in_record` (`id`, `user_id`, `day`, `point`, `create_time`, `update_time`, `tenant_id`, `deleted`, `creator`, `updater`) VALUES (1, 121, 1, 123, '2023-06-10 12:58:18', '2023-06-10 04:59:00', '1', 1, '1', '1'); | |
| 136 | +INSERT INTO `member_sign_in_record` (`id`, `user_id`, `day`, `point`, `create_time`, `update_time`, `tenant_id`, `deleted`, `creator`, `updater`) VALUES (2, 12, 12, 12, '2023-06-10 19:56:39', '2023-06-10 11:56:45', '1', 1, '1', '1'); | |
| 137 | +INSERT INTO `member_sign_in_record` (`id`, `user_id`, `day`, `point`, `create_time`, `update_time`, `tenant_id`, `deleted`, `creator`, `updater`) VALUES (3, 12, 12, 1212, '2023-06-10 20:01:17', '2023-06-10 12:01:23', '1', 1, '1', '1'); | |
| 138 | +INSERT INTO `member_sign_in_record` (`id`, `user_id`, `day`, `point`, `create_time`, `update_time`, `tenant_id`, `deleted`, `creator`, `updater`) VALUES (4, 12, 12, 1212, '2023-06-10 20:01:27', '2023-06-10 20:01:27', '1', 0, '1', '1'); | |
| 139 | +COMMIT; | |
| 140 | + | |
| 141 | +SET FOREIGN_KEY_CHECKS = 1; | |
| 142 | + | |
| 143 | + | |
| 144 | +INSERT INTO `mall`.`system_dict_type` ( `name`, `type`, `status`, `remark`, `creator`, `create_time`, `updater`, `update_time`, `deleted`, `deleted_time`) VALUES ( '积分业务类型', 'point_biz_type', 0, '', '1', '2023-06-10 12:15:00', '1', '2023-06-10 04:25:07', b'0', '1970-01-01 00:00:00'); | |
| 145 | +INSERT INTO `mall`.`system_dict_type` ( `name`, `type`, `status`, `remark`, `creator`, `create_time`, `updater`, `update_time`, `deleted`, `deleted_time`) VALUES ( '积分订单状态', 'point_status', 0, '', '1', '2023-06-10 12:16:27', '1', '2023-06-10 12:16:27', b'0', '1970-01-01 00:00:00'); | |
| 146 | + | |
| 147 | +INSERT INTO `mall`.`system_dict_data` ( `sort`, `label`, `value`, `dict_type`, `status`, `color_type`, `css_class`, `remark`, `creator`, `create_time`, `updater`, `update_time`, `deleted`) VALUES ( 1, '购物', '1', 'point_biz_type', 0, '', '', '', '1', '2023-06-10 12:15:27', '1', '2023-06-10 04:25:15', b'0'); | |
| 148 | +INSERT INTO `mall`.`system_dict_data` ( `sort`, `label`, `value`, `dict_type`, `status`, `color_type`, `css_class`, `remark`, `creator`, `create_time`, `updater`, `update_time`, `deleted`) VALUES ( 2, '签到', '2', 'point_biz_type', 0, '', '', '', '1', '2023-06-10 12:15:48', '1', '2023-06-10 04:25:18', b'0'); | |
| 149 | +INSERT INTO `mall`.`system_dict_data` ( `sort`, `label`, `value`, `dict_type`, `status`, `color_type`, `css_class`, `remark`, `creator`, `create_time`, `updater`, `update_time`, `deleted`) VALUES ( 1, '订单创建', '1', 'point_status', 0, '', '', '', '1', '2023-06-10 12:16:42', '1', '2023-06-10 12:16:42', b'0'); | |
| 150 | +INSERT INTO `mall`.`system_dict_data` ( `sort`, `label`, `value`, `dict_type`, `status`, `color_type`, `css_class`, `remark`, `creator`, `create_time`, `updater`, `update_time`, `deleted`) VALUES ( 2, '冻结期', '2', 'point_status', 0, '', '', '', '1', '2023-06-10 12:16:58', '1', '2023-06-10 12:16:58', b'0'); | |
| 151 | +INSERT INTO `mall`.`system_dict_data` ( `sort`, `label`, `value`, `dict_type`, `status`, `color_type`, `css_class`, `remark`, `creator`, `create_time`, `updater`, `update_time`, `deleted`) VALUES ( 3, '完成', '3', 'point_status', 0, '', '', '', '1', '2023-06-10 12:17:07', '1', '2023-06-10 12:17:07', b'0'); | |
| 152 | +INSERT INTO `mall`.`system_dict_data` ( `sort`, `label`, `value`, `dict_type`, `status`, `color_type`, `css_class`, `remark`, `creator`, `create_time`, `updater`, `update_time`, `deleted`) VALUES ( 4, '失效(订单退款)', '4', 'point_status', 0, '', '', '', '1', '2023-06-10 12:17:21', '1', '2023-06-10 12:17:21', b'0'); | ... | ... |