- 更新文档
- 更新 SQL
This commit is contained in:
parent
2c57d29428
commit
92d8eec7ad
@ -1,3 +1,7 @@
|
|||||||
|
> 艿艿:本文暂时会写的比较简洁,如果有不懂的地方,请来[「交流群」](http://www.iocoder.cn/mall-user-group/?vip&gitee),艿艿来帮你解决。
|
||||||
|
>
|
||||||
|
> 交流群,我们提供了我们自己在使用的开发环境,搭建调试环境会更简便。
|
||||||
|
|
||||||
# 1. 概述
|
# 1. 概述
|
||||||
|
|
||||||
> 艿艿:本文暂时会写的比较简洁,如果有不懂的地方,请来[「交流群」](http://www.iocoder.cn/mall-user-group/?vip&gitee),艿艿来帮你解决。
|
> 艿艿:本文暂时会写的比较简洁,如果有不懂的地方,请来[「交流群」](http://www.iocoder.cn/mall-user-group/?vip&gitee),艿艿来帮你解决。
|
||||||
@ -149,15 +153,15 @@ spring:
|
|||||||
|
|
||||||
具体的启动顺序,是:
|
具体的启动顺序,是:
|
||||||
|
|
||||||
* AdminApplication
|
* SystemApplication
|
||||||
* UserApplication
|
* UserApplication
|
||||||
* ProductApplication
|
* ProductApplication
|
||||||
* PayApplication
|
* PayApplication
|
||||||
> 因为支付服务,涉及三方支付平台的配置。所以,需要艿艿后续提供简便的方案。TODO
|
> 因为支付服务,涉及三方支付平台的配置。所以,需要艿艿后续提供简便的方案。TODO
|
||||||
|
|
||||||
* PromotionApplication
|
* PromotionApplication
|
||||||
* SearchApplication
|
|
||||||
* OrderApplication
|
* OrderApplication
|
||||||
|
* SearchApplication
|
||||||
|
|
||||||
# 9. 启动前端项目
|
# 9. 启动前端项目
|
||||||
|
|
||||||
|
@ -3,20 +3,43 @@
|
|||||||
|
|
||||||
Source Server : mall_mysql
|
Source Server : mall_mysql
|
||||||
Source Server Type : MySQL
|
Source Server Type : MySQL
|
||||||
Source Server Version : 50643
|
Source Server Version : 50726
|
||||||
Source Host : 180.167.213.26:13306
|
Source Host : 180.167.213.26:13306
|
||||||
Source Schema : mall_admin
|
Source Schema : mall_admin
|
||||||
|
|
||||||
Target Server Type : MySQL
|
Target Server Type : MySQL
|
||||||
Target Server Version : 50643
|
Target Server Version : 50726
|
||||||
File Encoding : 65001
|
File Encoding : 65001
|
||||||
|
|
||||||
Date: 28/04/2019 18:05:05
|
Date: 05/06/2019 07:54:10
|
||||||
*/
|
*/
|
||||||
|
|
||||||
SET NAMES utf8mb4;
|
SET NAMES utf8mb4;
|
||||||
SET FOREIGN_KEY_CHECKS = 0;
|
SET FOREIGN_KEY_CHECKS = 0;
|
||||||
|
|
||||||
|
-- ----------------------------
|
||||||
|
-- Table structure for access_log
|
||||||
|
-- ----------------------------
|
||||||
|
DROP TABLE IF EXISTS `access_log`;
|
||||||
|
CREATE TABLE `access_log` (
|
||||||
|
`id` int(11) NOT NULL AUTO_INCREMENT COMMENT '编号',
|
||||||
|
`trace_id` varchar(64) NOT NULL COMMENT '链路追踪编号',
|
||||||
|
`user_id` int(11) NOT NULL DEFAULT '-1' COMMENT '用户编号.',
|
||||||
|
`user_type` tinyint(4) DEFAULT NULL COMMENT '用户类型',
|
||||||
|
`application_name` varchar(50) DEFAULT NULL COMMENT '应用名',
|
||||||
|
`uri` varchar(4096) NOT NULL DEFAULT '' COMMENT '访问地址',
|
||||||
|
`query_string` varchar(4096) NOT NULL DEFAULT '' COMMENT '参数',
|
||||||
|
`method` varchar(50) NOT NULL DEFAULT '' COMMENT 'http 方法',
|
||||||
|
`user_agent` varchar(1024) NOT NULL DEFAULT '' COMMENT 'userAgent',
|
||||||
|
`ip` varchar(50) NOT NULL DEFAULT '' COMMENT 'ip',
|
||||||
|
`start_time` datetime NOT NULL COMMENT '请求时间',
|
||||||
|
`response_time` int(11) NOT NULL COMMENT '响应时长 -- 毫秒级',
|
||||||
|
`error_code` int(11) NOT NULL COMMENT '错误码',
|
||||||
|
`error_message` varchar(512) DEFAULT NULL COMMENT '错误提示',
|
||||||
|
`create_time` datetime NOT NULL COMMENT '创建时间',
|
||||||
|
PRIMARY KEY (`id`) USING BTREE
|
||||||
|
) ENGINE=InnoDB AUTO_INCREMENT=28417 DEFAULT CHARSET=utf8mb4 COMMENT='admin_access_log';
|
||||||
|
|
||||||
-- ----------------------------
|
-- ----------------------------
|
||||||
-- Table structure for admin
|
-- Table structure for admin
|
||||||
-- ----------------------------
|
-- ----------------------------
|
||||||
@ -26,29 +49,12 @@ CREATE TABLE `admin` (
|
|||||||
`username` varchar(16) NOT NULL COMMENT '登陆账号',
|
`username` varchar(16) NOT NULL COMMENT '登陆账号',
|
||||||
`nickname` varchar(10) NOT NULL COMMENT '昵称',
|
`nickname` varchar(10) NOT NULL COMMENT '昵称',
|
||||||
`password` varchar(32) NOT NULL COMMENT '密码\n *\n * TODO 芋艿 暂时最简单的 MD5',
|
`password` varchar(32) NOT NULL COMMENT '密码\n *\n * TODO 芋艿 暂时最简单的 MD5',
|
||||||
`create_time` datetime NOT NULL COMMENT '创建时间',
|
|
||||||
`status` tinyint(11) NOT NULL COMMENT '账号状态',
|
`status` tinyint(11) NOT NULL COMMENT '账号状态',
|
||||||
`deleted` bit(1) DEFAULT NULL,
|
|
||||||
PRIMARY KEY (`id`)
|
|
||||||
) ENGINE=InnoDB AUTO_INCREMENT=19 DEFAULT CHARSET=utf8mb4 ROW_FORMAT=DYNAMIC COMMENT='admin_d_o';
|
|
||||||
|
|
||||||
-- ----------------------------
|
|
||||||
-- Table structure for admin_access_log
|
|
||||||
-- ----------------------------
|
|
||||||
DROP TABLE IF EXISTS `admin_access_log`;
|
|
||||||
CREATE TABLE `admin_access_log` (
|
|
||||||
`id` int(11) NOT NULL AUTO_INCREMENT COMMENT '编号',
|
|
||||||
`admin_id` int(11) NOT NULL DEFAULT '-1' COMMENT '管理员编号.',
|
|
||||||
`uri` varchar(4096) NOT NULL DEFAULT '' COMMENT '访问地址',
|
|
||||||
`query_string` varchar(4096) NOT NULL DEFAULT '' COMMENT '参数',
|
|
||||||
`method` varchar(50) NOT NULL DEFAULT '' COMMENT 'http 方法',
|
|
||||||
`user_agent` varchar(1024) NOT NULL DEFAULT '' COMMENT 'userAgent',
|
|
||||||
`ip` varchar(50) NOT NULL DEFAULT '' COMMENT 'ip',
|
|
||||||
`start_time` datetime NOT NULL COMMENT '请求时间',
|
|
||||||
`response_time` int(11) NOT NULL COMMENT '响应时长 -- 毫秒级',
|
|
||||||
`create_time` datetime NOT NULL COMMENT '创建时间',
|
`create_time` datetime NOT NULL COMMENT '创建时间',
|
||||||
PRIMARY KEY (`id`)
|
`update_time` datetime DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
|
||||||
) ENGINE=InnoDB AUTO_INCREMENT=5874 DEFAULT CHARSET=utf8mb4 COMMENT='admin_access_log';
|
`deleted` bit(1) DEFAULT NULL,
|
||||||
|
PRIMARY KEY (`id`) USING BTREE
|
||||||
|
) ENGINE=InnoDB AUTO_INCREMENT=28 DEFAULT CHARSET=utf8mb4 COMMENT='admin_d_o';
|
||||||
|
|
||||||
-- ----------------------------
|
-- ----------------------------
|
||||||
-- Table structure for admin_role
|
-- Table structure for admin_role
|
||||||
@ -59,9 +65,10 @@ CREATE TABLE `admin_role` (
|
|||||||
`admin_id` int(11) NOT NULL COMMENT '管理员编号(外键:{@link AdminDO}',
|
`admin_id` int(11) NOT NULL COMMENT '管理员编号(外键:{@link AdminDO}',
|
||||||
`role_id` int(11) NOT NULL COMMENT '角色编号(外键:{@link RoleDO}',
|
`role_id` int(11) NOT NULL COMMENT '角色编号(外键:{@link RoleDO}',
|
||||||
`create_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
|
`create_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
|
||||||
|
`update_time` datetime DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '更新时间',
|
||||||
`deleted` bit(1) DEFAULT b'0' COMMENT '是否删除',
|
`deleted` bit(1) DEFAULT b'0' COMMENT '是否删除',
|
||||||
PRIMARY KEY (`id`)
|
PRIMARY KEY (`id`) USING BTREE
|
||||||
) ENGINE=InnoDB AUTO_INCREMENT=29 DEFAULT CHARSET=utf8mb4 ROW_FORMAT=DYNAMIC COMMENT='admin_role_d_o';
|
) ENGINE=InnoDB AUTO_INCREMENT=39 DEFAULT CHARSET=utf8mb4 COMMENT='admin_role_d_o';
|
||||||
|
|
||||||
-- ----------------------------
|
-- ----------------------------
|
||||||
-- Table structure for data_dict
|
-- Table structure for data_dict
|
||||||
@ -77,8 +84,104 @@ CREATE TABLE `data_dict` (
|
|||||||
`deleted` tinyint(11) NOT NULL DEFAULT '0' COMMENT '是否删除',
|
`deleted` tinyint(11) NOT NULL DEFAULT '0' COMMENT '是否删除',
|
||||||
`create_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
|
`create_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
|
||||||
`update_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '最后更新时间',
|
`update_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '最后更新时间',
|
||||||
|
PRIMARY KEY (`id`) USING BTREE
|
||||||
|
) ENGINE=InnoDB AUTO_INCREMENT=63 DEFAULT CHARSET=utf8mb4 COMMENT='data_dict';
|
||||||
|
|
||||||
|
-- ----------------------------
|
||||||
|
-- Records of data_dict
|
||||||
|
-- ----------------------------
|
||||||
|
BEGIN;
|
||||||
|
INSERT INTO `data_dict` VALUES (1, 'gender', '男', 1, '性别 - 男(嗨)', '1', 0, '2019-03-03 13:03:46', '2019-03-15 16:51:45');
|
||||||
|
INSERT INTO `data_dict` VALUES (2, 'gender', '女', 2, '性别(女)', '2', 0, '2019-03-03 13:04:00', '2019-03-15 17:19:20');
|
||||||
|
INSERT INTO `data_dict` VALUES (3, 'gender', '未知', 10, NULL, '3', 1, '2019-03-02 23:09:19', '2019-03-03 13:11:47');
|
||||||
|
INSERT INTO `data_dict` VALUES (4, 'common_status', '开启', 1, '状态 - 开启', '1', 0, '2019-03-15 17:28:08', '2019-03-15 17:28:07');
|
||||||
|
INSERT INTO `data_dict` VALUES (5, 'common_status', '禁用', 2, '状态 - 禁用', '2', 0, '2019-03-15 17:28:54', '2019-03-15 17:28:54');
|
||||||
|
INSERT INTO `data_dict` VALUES (6, 'test', '测试', 1, '你猜', '1', 1, '2019-03-15 17:36:54', '2019-03-15 17:36:59');
|
||||||
|
INSERT INTO `data_dict` VALUES (7, 'test', '测试', 1, '1', '1', 1, '2019-03-15 17:37:13', '2019-03-15 18:46:21');
|
||||||
|
INSERT INTO `data_dict` VALUES (8, 'delete_status', '未删除', 0, '正常/未删除', '0', 0, '2019-03-22 21:20:59', '2019-03-22 21:20:59');
|
||||||
|
INSERT INTO `data_dict` VALUES (9, 'delete_status', '删除', 1, '删除', '1', 0, '2019-03-22 21:23:20', '2019-03-22 21:23:20');
|
||||||
|
INSERT INTO `data_dict` VALUES (10, 'order_status', '等待付款', 1, '订单状态', '1', 0, '2019-03-24 16:17:55', '2019-03-24 16:20:24');
|
||||||
|
INSERT INTO `data_dict` VALUES (11, 'order_status', '等待发货', 2, ' 等待发货', '2', 0, '2019-03-24 16:18:39', '2019-03-24 16:20:14');
|
||||||
|
INSERT INTO `data_dict` VALUES (12, 'order_status', '已发货', 3, '已发货', '3', 0, '2019-03-24 16:19:14', '2019-03-24 16:20:07');
|
||||||
|
INSERT INTO `data_dict` VALUES (13, 'order_status', '已完成', 4, ' 已完成', '4', 0, '2019-03-24 16:19:37', '2019-03-24 16:20:03');
|
||||||
|
INSERT INTO `data_dict` VALUES (14, 'order_status', '已关闭', 5, '已关闭', '5', 0, '2019-03-24 16:19:50', '2019-03-24 16:19:50');
|
||||||
|
INSERT INTO `data_dict` VALUES (15, 'order_has_return_exchange', '无退换货', 1, '.', '1', 0, '2019-03-24 16:51:27', '2019-03-24 16:51:26');
|
||||||
|
INSERT INTO `data_dict` VALUES (16, 'order_has_return_exchange', '退货', 2, '.', '2', 0, '2019-03-24 16:51:36', '2019-03-24 16:51:35');
|
||||||
|
INSERT INTO `data_dict` VALUES (17, 'order_has_return_exchange', '换货', 3, '.', '3', 0, '2019-03-24 16:51:45', '2019-03-24 16:51:44');
|
||||||
|
INSERT INTO `data_dict` VALUES (18, 'order_has_return_exchange', '退换货', 4, '。', '4', 0, '2019-03-24 16:52:01', '2019-03-24 16:52:00');
|
||||||
|
INSERT INTO `data_dict` VALUES (19, 'order_cancel_reasons', '无法联系上买家', 1, '.', '1', 0, '2019-03-30 15:19:18', '2019-03-30 15:19:17');
|
||||||
|
INSERT INTO `data_dict` VALUES (20, 'order_cancel_reasons', '买家误拍或重拍了', 2, ',', '2', 0, '2019-03-30 15:19:31', '2019-03-30 15:19:30');
|
||||||
|
INSERT INTO `data_dict` VALUES (21, 'order_cancel_reasons', '买家无诚意完成交易', 3, '.', '3', 0, '2019-03-30 15:19:42', '2019-03-30 15:19:41');
|
||||||
|
INSERT INTO `data_dict` VALUES (22, 'order_cancel_reasons', '已通过银行线下汇款', 4, '.', '4', 0, '2019-03-30 15:19:56', '2019-03-30 15:19:56');
|
||||||
|
INSERT INTO `data_dict` VALUES (23, 'order_cancel_reasons', '已通过同城见面交易', 5, '.', '5', 0, '2019-03-30 15:20:21', '2019-03-30 15:20:21');
|
||||||
|
INSERT INTO `data_dict` VALUES (24, 'order_cancel_reasons', '已通过货到付款交易', 6, '.', '6', 0, '2019-03-30 15:20:37', '2019-03-30 15:20:37');
|
||||||
|
INSERT INTO `data_dict` VALUES (25, 'order_cancel_reasons', '已通过网上银行直接汇款', 7, '.', '7', 0, '2019-03-30 15:20:48', '2019-03-30 15:20:47');
|
||||||
|
INSERT INTO `data_dict` VALUES (26, 'order_cancel_reasons', '已经缺货无法交易', 8, '.', '8', 0, '2019-03-30 15:21:01', '2019-03-30 15:21:01');
|
||||||
|
INSERT INTO `data_dict` VALUES (27, 'order_cancel_reasons', '其他', 20, '.', '20', 0, '2019-03-30 17:16:27', '2019-03-30 17:16:27');
|
||||||
|
INSERT INTO `data_dict` VALUES (28, 'logistics_company', '顺丰快递', 1, '.', '1', 0, '2019-04-05 16:26:22', '2019-04-05 16:26:22');
|
||||||
|
INSERT INTO `data_dict` VALUES (29, 'logistics_company', '顺风速运', 2, '.', '2', 0, '2019-04-05 16:26:40', '2019-04-05 16:27:48');
|
||||||
|
INSERT INTO `data_dict` VALUES (30, 'logistics_company', '圆通快递', 3, '.', '3', 0, '2019-04-05 16:26:57', '2019-04-05 16:26:56');
|
||||||
|
INSERT INTO `data_dict` VALUES (31, 'logistics_company', '申通快递', 4, '.', '4', 0, '2019-04-05 16:27:14', '2019-04-05 16:27:14');
|
||||||
|
INSERT INTO `data_dict` VALUES (32, 'logistics_company', 'EMS', 5, '.', '5', 0, '2019-04-05 16:28:00', '2019-04-05 16:28:00');
|
||||||
|
INSERT INTO `data_dict` VALUES (33, 'logistics_company', '申通快递', 6, '.', '6', 0, '2019-04-05 16:28:40', '2019-04-05 16:28:40');
|
||||||
|
INSERT INTO `data_dict` VALUES (34, 'logistics_company', '天天快递', 7, '.', '7', 0, '2019-04-05 16:28:51', '2019-04-05 16:28:51');
|
||||||
|
INSERT INTO `data_dict` VALUES (35, 'logistics_company', '环球速运', 8, '.', '8', 0, '2019-04-05 16:29:12', '2019-04-05 16:29:12');
|
||||||
|
INSERT INTO `data_dict` VALUES (36, 'testOne', 'ttest', 1, '1', 'testO', 0, '2019-04-11 17:48:29', '2019-04-11 17:48:28');
|
||||||
|
INSERT INTO `data_dict` VALUES (37, 'order_return_reason', '退货原因', 1, '退货原因', '0', 1, '2019-04-25 23:25:10', '2019-04-25 23:27:02');
|
||||||
|
INSERT INTO `data_dict` VALUES (38, 'order_return_reason', '不想要了', 1, '.', '1', 0, '2019-04-25 23:25:55', '2019-04-25 23:25:55');
|
||||||
|
INSERT INTO `data_dict` VALUES (39, 'order_return_reason', '多拍重拍', 2, '.', '2', 0, '2019-04-25 23:26:23', '2019-04-25 23:26:23');
|
||||||
|
INSERT INTO `data_dict` VALUES (40, 'order_return_reason', '少货', 3, '.', '3', 0, '2019-04-25 23:26:48', '2019-04-25 23:26:47');
|
||||||
|
INSERT INTO `data_dict` VALUES (41, 'order_return_return_type', '订单退货类型', 1, '.', '-1', 1, '2019-04-27 11:57:45', '2019-04-27 11:58:16');
|
||||||
|
INSERT INTO `data_dict` VALUES (42, 'order_return_return_type', '退货退款', 1, '.', '1', 1, '2019-04-27 11:58:05', '2019-04-27 12:12:01');
|
||||||
|
INSERT INTO `data_dict` VALUES (43, 'order_return_return_type', '退款', 2, '.', '2', 1, '2019-04-27 11:58:14', '2019-04-27 12:12:03');
|
||||||
|
INSERT INTO `data_dict` VALUES (44, 'order_return_service_type', '退货退款', 1, '.', '1', 0, '2019-04-27 12:12:26', '2019-04-27 12:12:25');
|
||||||
|
INSERT INTO `data_dict` VALUES (45, 'order_return_service_type', '退款', 2, '2', '2', 0, '2019-04-27 12:12:36', '2019-04-27 12:12:35');
|
||||||
|
INSERT INTO `data_dict` VALUES (46, 'order_return_status', '退货申请', 1, '1', '1', 0, '2019-05-06 22:50:06', '2019-05-06 22:50:05');
|
||||||
|
INSERT INTO `data_dict` VALUES (47, 'order_return_status', '2', 2, '2', '2', 1, '2019-05-06 22:50:46', '2019-05-06 22:51:57');
|
||||||
|
INSERT INTO `data_dict` VALUES (48, 'order_return_status', '1', 1, '1', '-1', 1, '2019-05-06 22:51:07', '2019-05-06 22:52:00');
|
||||||
|
INSERT INTO `data_dict` VALUES (49, 'order_return_status', '0', 0, '0', '0', 1, '2019-05-06 22:51:39', '2019-05-06 22:52:02');
|
||||||
|
INSERT INTO `data_dict` VALUES (50, 'order_return_status', '申请成功', 2, '.', '2', 0, '2019-05-06 22:52:13', '2019-05-06 22:52:12');
|
||||||
|
INSERT INTO `data_dict` VALUES (51, 'order_return_status', '申请失败', 3, '.', '3', 0, '2019-05-06 22:52:34', '2019-05-06 22:52:34');
|
||||||
|
INSERT INTO `data_dict` VALUES (52, 'order_return_status', '退货中', 4, '.', '4', 0, '2019-05-06 22:52:44', '2019-05-06 22:52:43');
|
||||||
|
INSERT INTO `data_dict` VALUES (53, 'order_return_status', '已收货', 5, '.', '5', 0, '2019-05-06 22:52:57', '2019-05-09 22:17:35');
|
||||||
|
INSERT INTO `data_dict` VALUES (54, 'order_return_status', '退款成功', 6, '.', '6', 0, '2019-05-09 22:17:52', '2019-05-09 22:17:51');
|
||||||
|
INSERT INTO `data_dict` VALUES (55, 'sms_platform', '云片', 1, '短信服务云片', '1', 0, '2019-05-26 15:09:37', '2019-05-26 15:09:37');
|
||||||
|
INSERT INTO `data_dict` VALUES (56, 'sms_platform', '阿里云', 2, '阿里云短信服务', '2', 0, '2019-05-26 15:09:56', '2019-05-26 15:09:56');
|
||||||
|
INSERT INTO `data_dict` VALUES (57, 'sms_apply_status', '审核中', 1, '审核中', '1', 0, '2019-05-26 15:11:27', '2019-05-26 15:11:27');
|
||||||
|
INSERT INTO `data_dict` VALUES (58, 'sms_apply_status', '审核成功', 2, '审核成功', '2', 0, '2019-05-26 15:11:40', '2019-05-26 15:11:40');
|
||||||
|
INSERT INTO `data_dict` VALUES (59, 'sms_apply_status', '审核失败', 10, '审核失败', '10', 0, '2019-05-26 15:12:10', '2019-05-26 15:12:10');
|
||||||
|
INSERT INTO `data_dict` VALUES (60, 'sms_type', '验证码', 1, '验证码', '1', 0, '2019-05-26 23:51:15', '2019-05-26 23:51:15');
|
||||||
|
INSERT INTO `data_dict` VALUES (61, 'sms_type', '通知', 2, '通知', '2', 0, '2019-05-26 23:51:29', '2019-05-26 23:51:28');
|
||||||
|
INSERT INTO `data_dict` VALUES (62, 'sms_type', '营销', 3, '营销', '3', 0, '2019-05-26 23:51:47', '2019-05-26 23:51:46');
|
||||||
|
COMMIT;
|
||||||
|
|
||||||
|
-- ----------------------------
|
||||||
|
-- Table structure for exception_log
|
||||||
|
-- ----------------------------
|
||||||
|
DROP TABLE IF EXISTS `exception_log`;
|
||||||
|
CREATE TABLE `exception_log` (
|
||||||
|
`id` int(11) NOT NULL AUTO_INCREMENT COMMENT '编号',
|
||||||
|
`trace_id` varchar(64) NOT NULL COMMENT '链路追踪编号\n *\n * 一般来说,通过链路追踪编号,可以将访问日志,错误日志,链路追踪日志,logger 打印日志等,结合在一起,从而进行排错。',
|
||||||
|
`user_id` int(11) NOT NULL COMMENT '用户编号.\n *\n * 当管理员为空时,该值为 {@link cn.iocoder.mall.admin.api.dto.AccessLogAddDTO#USER_ID_NULL}',
|
||||||
|
`user_type` tinyint(4) NOT NULL COMMENT '用户类型',
|
||||||
|
`application_name` varchar(50) NOT NULL COMMENT '应用名\n *\n * 目前读取 spring.application.name',
|
||||||
|
`uri` varchar(4096) NOT NULL COMMENT '访问地址',
|
||||||
|
`query_string` varchar(4096) NOT NULL COMMENT '参数',
|
||||||
|
`method` varchar(50) NOT NULL COMMENT 'http 方法',
|
||||||
|
`user_agent` varchar(1024) NOT NULL COMMENT 'userAgent',
|
||||||
|
`ip` varchar(50) NOT NULL COMMENT 'ip',
|
||||||
|
`exception_time` datetime NOT NULL COMMENT '异常发生时间',
|
||||||
|
`exception_name` varchar(128) NOT NULL DEFAULT '' COMMENT '异常名\n *\n * {@link Throwable#getClass()} 的类全名',
|
||||||
|
`exception_message` text NOT NULL COMMENT '异常导致的消息\n *\n * {@link cn.iocoder.common.framework.util.ExceptionUtil#getMessage(Throwable)}',
|
||||||
|
`exception_root_cause_message` text NOT NULL COMMENT '异常导致的根消息\n *\n * {@link cn.iocoder.common.framework.util.ExceptionUtil#getRootCauseMessage(Throwable)}',
|
||||||
|
`exception_stack_trace` text NOT NULL COMMENT '异常的栈轨迹\n *\n * {@link cn.iocoder.common.framework.util.ExceptionUtil#getServiceException(Exception)}',
|
||||||
|
`exception_class_name` varchar(512) NOT NULL COMMENT '异常发生的类全名\n *\n * {@link StackTraceElement#getClassName()}',
|
||||||
|
`exception_file_name` varchar(512) NOT NULL COMMENT '异常发生的类文件\n *\n * {@link StackTraceElement#getFileName()}',
|
||||||
|
`exception_method_name` varchar(512) NOT NULL COMMENT '异常发生的方法名\n *\n * {@link StackTraceElement#getMethodName()}',
|
||||||
|
`exception_line_number` int(11) NOT NULL COMMENT '异常发生的方法所在行\n *\n * {@link StackTraceElement#getLineNumber()}',
|
||||||
|
`create_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
|
||||||
PRIMARY KEY (`id`)
|
PRIMARY KEY (`id`)
|
||||||
) ENGINE=InnoDB AUTO_INCREMENT=46 DEFAULT CHARSET=utf8mb4 COMMENT='data_dict';
|
) ENGINE=InnoDB AUTO_INCREMENT=549 DEFAULT CHARSET=utf8mb4 COMMENT='exception_log';
|
||||||
|
|
||||||
-- ----------------------------
|
-- ----------------------------
|
||||||
-- Table structure for oauth2_access_token
|
-- Table structure for oauth2_access_token
|
||||||
@ -86,15 +189,15 @@ CREATE TABLE `data_dict` (
|
|||||||
DROP TABLE IF EXISTS `oauth2_access_token`;
|
DROP TABLE IF EXISTS `oauth2_access_token`;
|
||||||
CREATE TABLE `oauth2_access_token` (
|
CREATE TABLE `oauth2_access_token` (
|
||||||
`id` varchar(32) NOT NULL,
|
`id` varchar(32) NOT NULL,
|
||||||
`refresh_token` varchar(32) DEFAULT NULL,
|
`refresh_token` varchar(32) NOT NULL,
|
||||||
`admin_id` bigint(20) DEFAULT NULL,
|
`user_id` int(11) DEFAULT NULL COMMENT '用户编号',
|
||||||
|
`user_type` tinyint(255) DEFAULT NULL COMMENT '用户类型',
|
||||||
`valid` tinyint(4) DEFAULT NULL,
|
`valid` tinyint(4) DEFAULT NULL,
|
||||||
`expires_time` datetime DEFAULT NULL,
|
`expires_time` datetime NOT NULL,
|
||||||
`create_time` datetime DEFAULT CURRENT_TIMESTAMP,
|
`create_time` datetime DEFAULT CURRENT_TIMESTAMP,
|
||||||
`last_update_time` datetime DEFAULT NULL ON UPDATE CURRENT_TIMESTAMP,
|
`update_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '最后更新时间',
|
||||||
PRIMARY KEY (`id`),
|
PRIMARY KEY (`id`) USING BTREE
|
||||||
KEY `idx_uid` (`admin_id`)
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
|
||||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 ROW_FORMAT=DYNAMIC;
|
|
||||||
|
|
||||||
-- ----------------------------
|
-- ----------------------------
|
||||||
-- Table structure for oauth2_refresh_token
|
-- Table structure for oauth2_refresh_token
|
||||||
@ -102,14 +205,14 @@ CREATE TABLE `oauth2_access_token` (
|
|||||||
DROP TABLE IF EXISTS `oauth2_refresh_token`;
|
DROP TABLE IF EXISTS `oauth2_refresh_token`;
|
||||||
CREATE TABLE `oauth2_refresh_token` (
|
CREATE TABLE `oauth2_refresh_token` (
|
||||||
`id` varchar(32) NOT NULL,
|
`id` varchar(32) NOT NULL,
|
||||||
`admin_id` bigint(20) DEFAULT NULL,
|
`user_id` int(11) DEFAULT NULL COMMENT '用户编号',
|
||||||
|
`user_type` tinyint(255) DEFAULT NULL COMMENT '用户类型',
|
||||||
`valid` tinyint(4) DEFAULT NULL,
|
`valid` tinyint(4) DEFAULT NULL,
|
||||||
`expires_time` datetime DEFAULT NULL,
|
`expires_time` datetime DEFAULT NULL,
|
||||||
`create_time` datetime DEFAULT CURRENT_TIMESTAMP,
|
`create_time` datetime DEFAULT CURRENT_TIMESTAMP,
|
||||||
`last_update_time` datetime DEFAULT NULL ON UPDATE CURRENT_TIMESTAMP,
|
`update_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '最后更新时间',
|
||||||
PRIMARY KEY (`id`),
|
PRIMARY KEY (`id`) USING BTREE
|
||||||
KEY `idx_uid` (`admin_id`)
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
|
||||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 ROW_FORMAT=DYNAMIC;
|
|
||||||
|
|
||||||
-- ----------------------------
|
-- ----------------------------
|
||||||
-- Table structure for resource
|
-- Table structure for resource
|
||||||
@ -117,16 +220,18 @@ CREATE TABLE `oauth2_refresh_token` (
|
|||||||
DROP TABLE IF EXISTS `resource`;
|
DROP TABLE IF EXISTS `resource`;
|
||||||
CREATE TABLE `resource` (
|
CREATE TABLE `resource` (
|
||||||
`id` int(11) NOT NULL AUTO_INCREMENT COMMENT '资源编号',
|
`id` int(11) NOT NULL AUTO_INCREMENT COMMENT '资源编号',
|
||||||
`name` varchar(50) NOT NULL DEFAULT '' COMMENT '资源名字',
|
|
||||||
`type` int(11) NOT NULL DEFAULT '-1' COMMENT '资源类型',
|
`type` int(11) NOT NULL DEFAULT '-1' COMMENT '资源类型',
|
||||||
`sort` int(11) NOT NULL DEFAULT '-1' COMMENT '排序',
|
`sort` int(11) NOT NULL DEFAULT '-1' COMMENT '排序',
|
||||||
`display_name` varchar(50) NOT NULL DEFAULT '' COMMENT '展示名',
|
`display_name` varchar(50) NOT NULL DEFAULT '' COMMENT '展示名',
|
||||||
`create_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '添加时间',
|
|
||||||
`pid` int(11) NOT NULL DEFAULT '-1' COMMENT '父级资源编号(外键:{@link ResourceDO#id})',
|
`pid` int(11) NOT NULL DEFAULT '-1' COMMENT '父级资源编号(外键:{@link ResourceDO#id})',
|
||||||
`handler` varchar(50) DEFAULT '' COMMENT '操作\n *\n * 当资源类型为【菜单】时,handler 配置为界面 URL ,或者前端组件名\n * 当资源类型为【操作】时,handler 配置为后端 URL 。举个例子,如果有一个「创建管理员」的表单,那么前端界面上的按钮可以根据这个 url 判断是否展示,后端接收到该 url 的请求时会判断是否有权限。',
|
`handler` varchar(50) DEFAULT '' COMMENT '操作\n *\n * 当资源类型为【菜单】时,handler 配置为界面 URL ,或者前端组件名\n * 当资源类型为【操作】时,handler 配置为后端 URL 。举个例子,如果有一个「创建管理员」的表单,那么前端界面上的按钮可以根据这个 url 判断是否展示,后端接收到该 url 的请求时会判断是否有权限。',
|
||||||
|
`icon` varchar(50) DEFAULT NULL COMMENT '图标',
|
||||||
|
`permissions` varchar(255) DEFAULT NULL COMMENT '权限标识数组,使用逗号分隔',
|
||||||
|
`create_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '添加时间',
|
||||||
|
`update_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '更新时间',
|
||||||
`deleted` bit(1) NOT NULL DEFAULT b'0',
|
`deleted` bit(1) NOT NULL DEFAULT b'0',
|
||||||
PRIMARY KEY (`id`)
|
PRIMARY KEY (`id`) USING BTREE
|
||||||
) ENGINE=InnoDB AUTO_INCREMENT=30 DEFAULT CHARSET=utf8mb4 ROW_FORMAT=DYNAMIC COMMENT='resource_d_o';
|
) ENGINE=InnoDB AUTO_INCREMENT=54 DEFAULT CHARSET=utf8mb4 COMMENT='resource_d_o';
|
||||||
|
|
||||||
-- ----------------------------
|
-- ----------------------------
|
||||||
-- Table structure for role
|
-- Table structure for role
|
||||||
@ -136,9 +241,10 @@ CREATE TABLE `role` (
|
|||||||
`id` int(11) NOT NULL AUTO_INCREMENT COMMENT '角色编号',
|
`id` int(11) NOT NULL AUTO_INCREMENT COMMENT '角色编号',
|
||||||
`name` varchar(50) NOT NULL DEFAULT '' COMMENT '角色名',
|
`name` varchar(50) NOT NULL DEFAULT '' COMMENT '角色名',
|
||||||
`create_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
|
`create_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
|
||||||
|
`update_time` datetime DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '最后更新时间',
|
||||||
`deleted` bit(1) NOT NULL DEFAULT b'0' COMMENT '是否删除',
|
`deleted` bit(1) NOT NULL DEFAULT b'0' COMMENT '是否删除',
|
||||||
PRIMARY KEY (`id`)
|
PRIMARY KEY (`id`) USING BTREE
|
||||||
) ENGINE=InnoDB AUTO_INCREMENT=7 DEFAULT CHARSET=utf8mb4 ROW_FORMAT=DYNAMIC COMMENT='role_d_o';
|
) ENGINE=InnoDB AUTO_INCREMENT=8 DEFAULT CHARSET=utf8mb4 COMMENT='role_d_o';
|
||||||
|
|
||||||
-- ----------------------------
|
-- ----------------------------
|
||||||
-- Table structure for role_resource
|
-- Table structure for role_resource
|
||||||
@ -149,8 +255,101 @@ CREATE TABLE `role_resource` (
|
|||||||
`role_id` int(11) NOT NULL DEFAULT '-1' COMMENT '角色编号(外键:{@link RoleDO}',
|
`role_id` int(11) NOT NULL DEFAULT '-1' COMMENT '角色编号(外键:{@link RoleDO}',
|
||||||
`resource_id` int(11) NOT NULL DEFAULT '-1' COMMENT '资源编号',
|
`resource_id` int(11) NOT NULL DEFAULT '-1' COMMENT '资源编号',
|
||||||
`create_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
|
`create_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
|
||||||
`deleted` bit(1) DEFAULT b'0' COMMENT '是否删除',
|
`update_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '更新时间',
|
||||||
|
`deleted` bit(1) NOT NULL DEFAULT b'0' COMMENT '是否删除',
|
||||||
|
PRIMARY KEY (`id`) USING BTREE
|
||||||
|
) ENGINE=InnoDB AUTO_INCREMENT=667 DEFAULT CHARSET=utf8mb4 COMMENT='role_resource_d_o';
|
||||||
|
|
||||||
|
-- ----------------------------
|
||||||
|
-- Records of resource
|
||||||
|
-- ----------------------------
|
||||||
|
BEGIN;
|
||||||
|
INSERT INTO `resource` VALUES (1, 2, -1, '管理员信息', 0, '/admin/admin/info', NULL, NULL, '2019-02-24 09:07:43', '2019-05-15 22:57:30', b'1');
|
||||||
|
INSERT INTO `resource` VALUES (2, 1, 1, '商品', 0, '', NULL, NULL, '2019-02-24 20:40:23', '2019-05-15 22:57:30', b'1');
|
||||||
|
INSERT INTO `resource` VALUES (3, 1, 1, '商品管理', 2, '/product/list', NULL, NULL, '2019-02-27 23:34:36', '2019-05-15 22:57:30', b'1');
|
||||||
|
INSERT INTO `resource` VALUES (8, 1, 1, '测试说明', 1, '123', NULL, NULL, '2019-02-28 09:11:15', '2019-05-15 22:57:30', b'1');
|
||||||
|
INSERT INTO `resource` VALUES (9, 1, 1, '测试说明1', 0, NULL, NULL, NULL, '2019-02-28 10:33:57', '2019-05-15 22:57:30', b'1');
|
||||||
|
INSERT INTO `resource` VALUES (10, 1, 1, '测试说明', 9, '/123', NULL, NULL, '2019-02-28 10:34:09', '2019-05-15 22:57:30', b'1');
|
||||||
|
INSERT INTO `resource` VALUES (11, 1, 1, '测试', 9, '/admin/test', NULL, NULL, '2019-03-05 07:04:13', '2019-05-15 22:57:30', b'1');
|
||||||
|
INSERT INTO `resource` VALUES (12, 1, 1, '首页', 0, NULL, NULL, NULL, '2019-03-10 03:56:58', '2019-05-15 22:57:30', b'1');
|
||||||
|
INSERT INTO `resource` VALUES (13, 1, 8, '系统管理', 0, NULL, 'desktop', '', '2019-03-10 03:59:07', '2019-05-15 23:48:05', b'0');
|
||||||
|
INSERT INTO `resource` VALUES (14, 1, 0, '员工列表', 13, '/admin/admin-list', 'team', 'system.admin.page', '2019-03-10 03:59:29', '2019-05-16 10:47:59', b'0');
|
||||||
|
INSERT INTO `resource` VALUES (15, 1, 2, '权限列表', 13, '/admin/resource-list', NULL, NULL, '2019-03-10 03:59:56', '2019-05-15 22:57:30', b'0');
|
||||||
|
INSERT INTO `resource` VALUES (16, 1, 1, '角色列表', 13, '/admin/role-list', NULL, NULL, '2019-03-10 04:00:35', '2019-05-15 22:57:30', b'0');
|
||||||
|
INSERT INTO `resource` VALUES (17, 1, 1, '测试说明', 9, '/123', NULL, NULL, '2019-03-10 10:54:35', '2019-05-15 22:57:30', b'1');
|
||||||
|
INSERT INTO `resource` VALUES (18, 1, 3, '角色管理', 13, '/admin/role-list', NULL, NULL, '2019-03-12 23:59:44', '2019-05-15 22:57:30', b'1');
|
||||||
|
INSERT INTO `resource` VALUES (19, 1, 4, '数据字典', 13, '/admin/dictionary-list', 'select', 'system.dataDict.list', '2019-03-15 19:10:30', '2019-05-16 16:03:01', b'0');
|
||||||
|
INSERT INTO `resource` VALUES (20, 1, 4, '商品管理', 0, NULL, NULL, NULL, '2019-03-15 19:53:09', '2019-05-15 22:57:30', b'0');
|
||||||
|
INSERT INTO `resource` VALUES (21, 1, 1, '商品列表', 20, '/product/product-spu-list', NULL, NULL, '2019-03-15 19:55:22', '2019-05-15 22:57:30', b'0');
|
||||||
|
INSERT INTO `resource` VALUES (22, 1, 2, '展示类目', 20, '/product/product-category-list', NULL, NULL, '2019-03-15 19:56:42', '2019-05-15 22:57:30', b'0');
|
||||||
|
INSERT INTO `resource` VALUES (23, 1, 7, '营销管理', 0, NULL, NULL, NULL, '2019-03-30 22:42:13', '2019-05-15 22:57:30', b'0');
|
||||||
|
INSERT INTO `resource` VALUES (24, 1, 1, '首页广告', 23, '/promotion/banner-list', NULL, NULL, '2019-03-30 22:54:57', '2019-05-15 22:57:30', b'0');
|
||||||
|
INSERT INTO `resource` VALUES (25, 1, 2, '商品推荐', 23, '/promotion/product-recommend-list', NULL, NULL, '2019-04-01 13:17:28', '2019-05-15 22:57:30', b'0');
|
||||||
|
INSERT INTO `resource` VALUES (26, 1, 3, '优惠劵', 23, '/promotion/coupon-card-template-list', NULL, NULL, '2019-04-04 16:02:14', '2019-05-15 22:57:30', b'0');
|
||||||
|
INSERT INTO `resource` VALUES (27, 1, 5, '订单管理', 0, NULL, NULL, NULL, '2019-04-06 12:53:55', '2019-05-15 22:57:30', b'0');
|
||||||
|
INSERT INTO `resource` VALUES (28, 1, 1, '订单管理', 27, '/order/order-list', NULL, NULL, '2019-04-06 12:57:17', '2019-05-15 22:57:30', b'0');
|
||||||
|
INSERT INTO `resource` VALUES (29, 1, 3, '商品品牌', 20, '/product/product-brand-list', NULL, NULL, '2019-04-09 17:58:36', '2019-05-15 22:57:30', b'0');
|
||||||
|
INSERT INTO `resource` VALUES (30, 1, -99, '发布商品', 20, '/product/product-spu-add', NULL, NULL, '2019-05-01 21:01:38', '2019-05-15 22:57:30', b'0');
|
||||||
|
INSERT INTO `resource` VALUES (31, 1, 0, '概述', 0, '/home', NULL, NULL, '2019-05-03 00:01:33', '2019-05-15 22:57:30', b'0');
|
||||||
|
INSERT INTO `resource` VALUES (32, 1, 1, '数据分析', 0, NULL, NULL, NULL, '2019-05-03 00:02:08', '2019-05-15 22:57:30', b'0');
|
||||||
|
INSERT INTO `resource` VALUES (33, 1, 2, '店铺资产', 0, NULL, 'money-collect', '', '2019-05-03 00:02:57', '2019-05-15 23:23:20', b'0');
|
||||||
|
INSERT INTO `resource` VALUES (34, 1, 6, '会员管理', 0, NULL, NULL, NULL, '2019-05-03 00:03:55', '2019-05-15 22:57:30', b'0');
|
||||||
|
INSERT INTO `resource` VALUES (35, 1, 8, 'test', 0, NULL, NULL, NULL, '2019-05-03 13:23:46', '2019-05-15 22:57:30', b'1');
|
||||||
|
INSERT INTO `resource` VALUES (36, 1, 1, '测试', 0, NULL, NULL, NULL, '2019-05-04 14:28:20', '2019-05-15 22:57:30', b'1');
|
||||||
|
INSERT INTO `resource` VALUES (37, 1, 2, '测试2', 36, '/http://baidu.com', NULL, NULL, '2019-05-04 14:30:08', '2019-05-15 22:57:30', b'1');
|
||||||
|
INSERT INTO `resource` VALUES (38, 2, 1, '策士3', 36, '/123213123123', NULL, NULL, '2019-05-04 14:30:37', '2019-05-15 22:57:30', b'1');
|
||||||
|
INSERT INTO `resource` VALUES (39, 1, 1, 'ceshi', 0, NULL, NULL, NULL, '2019-05-04 14:41:06', '2019-05-15 22:57:30', b'1');
|
||||||
|
INSERT INTO `resource` VALUES (40, 1, 1, '测试aa', 0, NULL, NULL, NULL, '2019-05-05 16:09:19', '2019-05-15 22:57:30', b'1');
|
||||||
|
INSERT INTO `resource` VALUES (41, 1, 24, '限时折扣', 23, '/promotion/time-limit-discount-list', NULL, NULL, '2019-05-07 22:34:30', '2019-05-15 22:57:30', b'0');
|
||||||
|
INSERT INTO `resource` VALUES (42, 1, 25, '满减送', 23, '/promotion/full-privilege-list', NULL, NULL, '2019-05-08 00:05:20', '2019-05-15 22:57:30', b'0');
|
||||||
|
INSERT INTO `resource` VALUES (43, 1, 1, '会员资料', 34, '/member/user-list', NULL, NULL, '2019-05-08 11:11:22', '2019-05-15 22:57:30', b'0');
|
||||||
|
INSERT INTO `resource` VALUES (44, 1, 1, '支付单', 33, '/pay/transaction-list', NULL, NULL, '2019-05-08 14:17:15', '2019-05-15 22:57:30', b'0');
|
||||||
|
INSERT INTO `resource` VALUES (45, 1, 2, '退款单', 33, '/pay/refund-list', NULL, NULL, '2019-05-08 16:58:05', '2019-05-15 22:57:30', b'0');
|
||||||
|
INSERT INTO `resource` VALUES (46, 1, 1, '订单售后', 27, '/order/order-refunds', NULL, NULL, '2019-05-09 19:57:23', '2019-05-15 22:57:30', b'0');
|
||||||
|
INSERT INTO `resource` VALUES (47, 2, 1, '新建员工', 14, '', NULL, 'system.admin.add,system.admin.update', '2019-05-15 23:43:58', '2019-05-15 23:45:12', b'0');
|
||||||
|
INSERT INTO `resource` VALUES (48, 2, 1, '新建字典', 19, '', NULL, 'system.dataDict.add', '2019-05-16 16:00:57', '2019-05-16 16:00:56', b'0');
|
||||||
|
INSERT INTO `resource` VALUES (49, 2, 2, '编辑字典', 19, '', NULL, 'system.dataDict.update', '2019-05-16 16:01:18', '2019-05-16 16:01:18', b'0');
|
||||||
|
INSERT INTO `resource` VALUES (50, 2, 3, '删除字典', 19, '', NULL, 'system.dataDict.delete', '2019-05-16 16:01:36', '2019-05-16 16:01:36', b'0');
|
||||||
|
INSERT INTO `resource` VALUES (51, 1, -1, '短信ss', 0, '', 'user', '', '2019-05-26 12:00:31', '2019-06-03 13:54:54', b'0');
|
||||||
|
INSERT INTO `resource` VALUES (52, 1, 1, '短信签名', 51, '/sms/sign-list', 'user', '', '2019-05-26 12:01:56', '2019-05-26 12:01:56', b'0');
|
||||||
|
INSERT INTO `resource` VALUES (53, 1, 2, '短信模板', 51, '/sms/template-list', 'user', '', '2019-05-26 12:02:19', '2019-05-26 12:02:18', b'0');
|
||||||
|
COMMIT;
|
||||||
|
|
||||||
|
-- ----------------------------
|
||||||
|
-- Table structure for sms_sign
|
||||||
|
-- ----------------------------
|
||||||
|
DROP TABLE IF EXISTS `sms_sign`;
|
||||||
|
CREATE TABLE `sms_sign` (
|
||||||
|
`id` int(11) NOT NULL AUTO_INCREMENT,
|
||||||
|
`sign` varchar(20) NOT NULL COMMENT '签名 如: 【阿里云】',
|
||||||
|
`platform` smallint(2) DEFAULT NULL COMMENT '短信平台',
|
||||||
|
`apply_status` smallint(2) NOT NULL COMMENT '审核状态',
|
||||||
|
`apply_message` varchar(250) DEFAULT NULL COMMENT '审核信息',
|
||||||
|
`deleted` smallint(2) NOT NULL COMMENT '删除状态',
|
||||||
|
`update_time` datetime DEFAULT NULL COMMENT '更新时间',
|
||||||
|
`create_time` datetime NOT NULL COMMENT '创建时间',
|
||||||
PRIMARY KEY (`id`)
|
PRIMARY KEY (`id`)
|
||||||
) ENGINE=InnoDB AUTO_INCREMENT=287 DEFAULT CHARSET=utf8mb4 ROW_FORMAT=DYNAMIC COMMENT='role_resource_d_o';
|
) ENGINE=InnoDB AUTO_INCREMENT=17 DEFAULT CHARSET=utf8mb4;
|
||||||
|
|
||||||
|
-- ----------------------------
|
||||||
|
-- Table structure for sms_template
|
||||||
|
-- ----------------------------
|
||||||
|
DROP TABLE IF EXISTS `sms_template`;
|
||||||
|
CREATE TABLE `sms_template` (
|
||||||
|
`id` int(11) NOT NULL AUTO_INCREMENT,
|
||||||
|
`sms_sign_id` int(11) NOT NULL COMMENT '短信签名id',
|
||||||
|
`template_code` varchar(50) NOT NULL COMMENT '模板code,第三方 code',
|
||||||
|
`template` text NOT NULL COMMENT '短信模板',
|
||||||
|
`platform` smallint(2) NOT NULL COMMENT '平台',
|
||||||
|
`sms_type` smallint(2) NOT NULL COMMENT '短信类型:通知、验证码、营销',
|
||||||
|
`apply_status` smallint(2) NOT NULL COMMENT '审核状态',
|
||||||
|
`apply_message` varchar(250) DEFAULT NULL COMMENT '审核信息',
|
||||||
|
`deleted` smallint(2) NOT NULL COMMENT '是否删除',
|
||||||
|
`update_time` datetime DEFAULT NULL COMMENT '更新时间',
|
||||||
|
`create_time` datetime NOT NULL COMMENT '创建时间',
|
||||||
|
PRIMARY KEY (`id`)
|
||||||
|
) ENGINE=InnoDB AUTO_INCREMENT=9 DEFAULT CHARSET=utf8mb4;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
SET FOREIGN_KEY_CHECKS = 1;
|
SET FOREIGN_KEY_CHECKS = 1;
|
||||||
|
@ -3,15 +3,15 @@
|
|||||||
|
|
||||||
Source Server : mall_mysql
|
Source Server : mall_mysql
|
||||||
Source Server Type : MySQL
|
Source Server Type : MySQL
|
||||||
Source Server Version : 50643
|
Source Server Version : 50726
|
||||||
Source Host : 180.167.213.26:13306
|
Source Host : 180.167.213.26:13306
|
||||||
Source Schema : mall_order
|
Source Schema : mall_order
|
||||||
|
|
||||||
Target Server Type : MySQL
|
Target Server Type : MySQL
|
||||||
Target Server Version : 50643
|
Target Server Version : 50726
|
||||||
File Encoding : 65001
|
File Encoding : 65001
|
||||||
|
|
||||||
Date: 28/04/2019 18:05:14
|
Date: 05/06/2019 07:57:22
|
||||||
*/
|
*/
|
||||||
|
|
||||||
SET NAMES utf8mb4;
|
SET NAMES utf8mb4;
|
||||||
@ -31,98 +31,11 @@ CREATE TABLE `cart_item` (
|
|||||||
`sku_id` int(11) NOT NULL COMMENT '商品 SKU 编号',
|
`sku_id` int(11) NOT NULL COMMENT '商品 SKU 编号',
|
||||||
`quantity` int(11) NOT NULL COMMENT '商品购买数量',
|
`quantity` int(11) NOT NULL COMMENT '商品购买数量',
|
||||||
`order_id` int(11) DEFAULT NULL COMMENT '订单编号',
|
`order_id` int(11) DEFAULT NULL COMMENT '订单编号',
|
||||||
`order_create_time` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00' COMMENT '订单创建时间',
|
`order_create_time` timestamp NULL DEFAULT NULL COMMENT '订单创建时间',
|
||||||
`create_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
|
`create_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
|
||||||
`update_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '最后更新时间',
|
`update_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '最后更新时间',
|
||||||
PRIMARY KEY (`id`)
|
|
||||||
) ENGINE=InnoDB AUTO_INCREMENT=7 DEFAULT CHARSET=utf8mb4 COMMENT='cart_item';
|
|
||||||
|
|
||||||
-- ----------------------------
|
|
||||||
-- Records of cart_item
|
|
||||||
-- ----------------------------
|
|
||||||
BEGIN;
|
|
||||||
INSERT INTO `cart_item` VALUES (1, 2, '2019-04-17 20:45:25', b'1', 1, 29, 33, 6, NULL, '2019-04-11 17:00:37', '2019-04-11 17:00:37', '2019-04-17 20:45:25');
|
|
||||||
INSERT INTO `cart_item` VALUES (2, 2, '2019-04-14 01:27:15', b'1', 1, 28, 32, 1, NULL, '2019-04-13 21:28:36', '2019-04-13 21:28:37', '2019-04-14 01:27:15');
|
|
||||||
INSERT INTO `cart_item` VALUES (3, 2, '2019-04-20 19:57:31', b'1', 1, 29, 33, 3, NULL, '2019-04-14 01:37:45', '2019-04-14 01:37:45', '2019-04-20 19:57:31');
|
|
||||||
INSERT INTO `cart_item` VALUES (4, 2, '2019-04-20 19:57:31', b'1', 1, 32, 34, 1, NULL, '2019-04-17 10:23:55', '2019-04-17 10:23:56', '2019-04-20 19:57:31');
|
|
||||||
INSERT INTO `cart_item` VALUES (5, 1, '2019-04-19 20:35:36', b'1', 29, 32, 34, 1, NULL, '2019-04-19 20:35:36', '2019-04-19 20:35:37', '2019-04-19 20:35:36');
|
|
||||||
INSERT INTO `cart_item` VALUES (6, 1, '2019-04-19 20:35:46', b'1', 29, 28, 31, 4, NULL, '2019-04-19 20:35:46', '2019-04-19 20:35:46', '2019-04-19 20:35:46');
|
|
||||||
COMMIT;
|
|
||||||
|
|
||||||
-- ----------------------------
|
|
||||||
-- Table structure for order
|
|
||||||
-- ----------------------------
|
|
||||||
DROP TABLE IF EXISTS `order`;
|
|
||||||
CREATE TABLE `order` (
|
|
||||||
`id` int(11) NOT NULL AUTO_INCREMENT COMMENT 'Id,自增长',
|
|
||||||
`user_id` int(11) NOT NULL COMMENT '用户id\n',
|
|
||||||
`order_no` varchar(50) NOT NULL COMMENT '订单单号',
|
|
||||||
`buy_price` int(11) NOT NULL COMMENT '订单金额(总金额)',
|
|
||||||
`discount_price` int(11) NOT NULL COMMENT '优惠总金额,单位:分',
|
|
||||||
`logistics_price` int(11) NOT NULL COMMENT '物流金额',
|
|
||||||
`present_price` int(11) NOT NULL COMMENT '最终金额,单位:分',
|
|
||||||
`pay_amount` int(10) NOT NULL COMMENT '金额(分)',
|
|
||||||
`payment_time` datetime DEFAULT NULL COMMENT '付款时间',
|
|
||||||
`delivery_time` datetime DEFAULT NULL COMMENT '发货时间',
|
|
||||||
`receiver_time` datetime DEFAULT NULL COMMENT '收货时间',
|
|
||||||
`closing_time` datetime DEFAULT NULL COMMENT '成交时间',
|
|
||||||
`has_return_exchange` smallint(6) NOT NULL COMMENT '是否退换货',
|
|
||||||
`remark` varchar(255) DEFAULT NULL COMMENT '备注',
|
|
||||||
`status` smallint(2) NOT NULL COMMENT '状态(如果有多个商品分开发货需要全部商品发完才会改变状态) 0、待付款 1、待发货 2、待收货 3、已完成 4、已关闭',
|
|
||||||
`create_time` datetime DEFAULT NULL COMMENT '订单创建时间',
|
|
||||||
`update_time` datetime DEFAULT NULL COMMENT '更新时间',
|
|
||||||
`deleted` smallint(6) NOT NULL COMMENT '删除状态',
|
|
||||||
PRIMARY KEY (`id`) USING BTREE
|
PRIMARY KEY (`id`) USING BTREE
|
||||||
) ENGINE=InnoDB AUTO_INCREMENT=136 DEFAULT CHARSET=utf8;
|
) ENGINE=InnoDB AUTO_INCREMENT=20 DEFAULT CHARSET=utf8mb4 COMMENT='cart_item';
|
||||||
|
|
||||||
-- ----------------------------
|
|
||||||
-- Records of order
|
|
||||||
-- ----------------------------
|
|
||||||
BEGIN;
|
|
||||||
INSERT INTO `order` VALUES (47, 29, '29635cff9cc8419', 10, 0, 0, 0, 10, NULL, NULL, NULL, NULL, 1, '添加一个测试备注', 5, '2019-04-11 22:15:32', NULL, 0);
|
|
||||||
INSERT INTO `order` VALUES (48, 29, '8472c75db7794b', 10, 0, 0, 0, 10, NULL, NULL, NULL, NULL, 1, '', 5, '2019-04-11 22:16:03', NULL, 0);
|
|
||||||
INSERT INTO `order` VALUES (49, 29, '00be8f5971c24b', 10, 0, 0, 0, 10, NULL, NULL, NULL, NULL, 1, '', 1, '2019-04-11 22:19:17', NULL, 0);
|
|
||||||
INSERT INTO `order` VALUES (50, 29, 'b4e42922b2634', 10, 0, 0, 0, 10, NULL, NULL, '2019-04-12 21:27:13', NULL, 1, '', 4, '2019-04-11 22:19:42', NULL, 0);
|
|
||||||
INSERT INTO `order` VALUES (51, -1, '76c163c61ffb465f', 362, 0, 0, 0, 362, NULL, NULL, NULL, NULL, 1, '', 1, '2019-04-14 01:27:15', NULL, 0);
|
|
||||||
INSERT INTO `order` VALUES (74, -1, '2186b8b4ca32442c', 1200, 40, 0, 1160, 0, NULL, NULL, NULL, NULL, 1, '', 1, '2019-04-20 19:57:27', NULL, 0);
|
|
||||||
INSERT INTO `order` VALUES (75, -1, '0668f5a6d168471c', 100, 0, 0, 100, 0, NULL, NULL, NULL, NULL, 1, '', 1, '2019-04-20 19:58:10', NULL, 0);
|
|
||||||
INSERT INTO `order` VALUES (76, -1, '6f465f43b2f34a3f', 200, 40, 0, 160, 0, NULL, NULL, NULL, NULL, 1, '', 1, '2019-04-20 22:19:28', NULL, 0);
|
|
||||||
INSERT INTO `order` VALUES (89, -1, 'd4867f5320bb4d07', 200, 40, 0, 160, 0, NULL, NULL, NULL, NULL, 1, '', 1, '2019-04-20 23:42:56', NULL, 0);
|
|
||||||
INSERT INTO `order` VALUES (90, -1, '2667b89fbb5e49d9', 200, 40, 0, 160, 0, NULL, NULL, NULL, NULL, 1, '', 1, '2019-04-20 23:44:43', NULL, 0);
|
|
||||||
INSERT INTO `order` VALUES (95, -1, '7aa0c5558746431b', 200, 40, 0, 160, 0, NULL, NULL, NULL, NULL, 1, '', 1, '2019-04-21 02:17:24', NULL, 0);
|
|
||||||
INSERT INTO `order` VALUES (97, -1, '2dd9173348c94047', 200, 40, 0, 160, 0, NULL, NULL, NULL, NULL, 1, '', 1, '2019-04-21 14:22:49', NULL, 0);
|
|
||||||
INSERT INTO `order` VALUES (98, -1, '5987e77245064f5c', 200, 40, 0, 160, 0, NULL, NULL, NULL, NULL, 1, '', 1, '2019-04-21 15:01:50', NULL, 0);
|
|
||||||
INSERT INTO `order` VALUES (99, -1, '0aa0ff0bb2a74180', 200, 40, 0, 160, 0, NULL, NULL, NULL, NULL, 1, '', 1, '2019-04-21 15:05:21', NULL, 0);
|
|
||||||
INSERT INTO `order` VALUES (101, -1, 'e7f4804c54774747', 200, 40, 0, 160, 0, NULL, NULL, NULL, NULL, 1, '', 1, '2019-04-21 15:06:30', NULL, 0);
|
|
||||||
INSERT INTO `order` VALUES (102, -1, 'cdff09a25c724c02', 100, 0, 0, 100, 0, NULL, NULL, NULL, NULL, 1, '', 1, '2019-04-21 15:10:39', NULL, 0);
|
|
||||||
INSERT INTO `order` VALUES (103, -1, '7de9b6251e434807', 100, 0, 0, 100, 100, '2019-04-21 15:21:26', NULL, NULL, NULL, 1, '', 1, '2019-04-21 15:14:17', NULL, 0);
|
|
||||||
INSERT INTO `order` VALUES (104, -1, '80475d74fc1f4a56', 100, 0, 0, 100, 100, '2019-04-21 15:20:12', NULL, NULL, NULL, 1, '', 1, '2019-04-21 15:19:19', NULL, 0);
|
|
||||||
INSERT INTO `order` VALUES (105, -1, 'ce4966bed7104dd5', 200, 40, 0, 160, 0, NULL, NULL, NULL, NULL, 1, '', 1, '2019-04-21 18:59:24', NULL, 0);
|
|
||||||
INSERT INTO `order` VALUES (106, -1, 'a72347c6571f4f74', 200, 40, 0, 160, 0, NULL, NULL, NULL, NULL, 1, '', 1, '2019-04-21 19:08:18', NULL, 0);
|
|
||||||
INSERT INTO `order` VALUES (107, -1, '7dedc1e8c6484530', 200, 40, 0, 160, 0, NULL, NULL, NULL, NULL, 1, '', 1, '2019-04-21 19:22:19', NULL, 0);
|
|
||||||
INSERT INTO `order` VALUES (109, -1, '0635a03e4ad8439d', 100, 0, 0, 100, 0, NULL, NULL, NULL, NULL, 1, '', 1, '2019-04-21 19:57:13', NULL, 0);
|
|
||||||
INSERT INTO `order` VALUES (110, -1, '8cfb63d2f17445bb', 100, 0, 0, 100, 100, '2019-04-21 20:17:20', NULL, NULL, NULL, 1, '', 3, '2019-04-21 20:17:04', NULL, 0);
|
|
||||||
INSERT INTO `order` VALUES (111, -1, '11e64862f6d94ceb', 1000, 0, 0, 1000, 0, NULL, NULL, NULL, NULL, 1, '', 1, '2019-04-21 20:24:05', NULL, 0);
|
|
||||||
INSERT INTO `order` VALUES (112, -1, '472994edfd90458d', 1000, 0, 0, 1000, 1000, '2019-04-22 19:32:35', NULL, '2019-04-22 19:32:42', NULL, 1, '', 4, '2019-04-21 20:37:45', NULL, 0);
|
|
||||||
INSERT INTO `order` VALUES (113, -1, 'aee52dfc8bef4603', 1000, 0, 0, 1000, 1000, '2019-04-22 19:35:58', NULL, NULL, NULL, 1, '', 3, '2019-04-21 20:51:38', NULL, 0);
|
|
||||||
INSERT INTO `order` VALUES (114, -1, '2da845ff0da74b8b', 1000, 0, 0, 1000, 1000, '2019-04-21 22:38:34', NULL, NULL, NULL, 1, '', 3, '2019-04-21 22:38:24', NULL, 0);
|
|
||||||
INSERT INTO `order` VALUES (115, -1, '23ce74ee3cbc49d8', 200, 40, 0, 160, 160, '2019-04-22 19:36:16', NULL, NULL, NULL, 1, '', 3, '2019-04-21 23:29:21', NULL, 0);
|
|
||||||
INSERT INTO `order` VALUES (118, -1, '6d73bb4e01c349d6', 200, 40, 0, 160, 0, NULL, NULL, NULL, NULL, 1, '', 1, '2019-04-22 17:05:59', NULL, 0);
|
|
||||||
INSERT INTO `order` VALUES (120, -1, '6377703d238e4b88', 200, 40, 0, 160, 0, NULL, NULL, NULL, NULL, 1, '', 1, '2019-04-22 19:31:55', NULL, 0);
|
|
||||||
INSERT INTO `order` VALUES (121, -1, '3dc33dcaf4b24724', 44000, 0, 0, 44000, 0, NULL, NULL, NULL, NULL, 1, '', 1, '2019-04-22 19:35:45', NULL, 0);
|
|
||||||
INSERT INTO `order` VALUES (122, -1, '6074931dc45541f9', 200, 40, 0, 160, 160, '2019-04-22 20:51:46', NULL, NULL, NULL, 1, '', 3, '2019-04-22 20:51:39', NULL, 0);
|
|
||||||
INSERT INTO `order` VALUES (124, -1, 'fc6c662e66a24a86', 200, 40, 0, 160, 0, NULL, NULL, NULL, NULL, 1, '', 1, '2019-04-22 22:19:58', NULL, 0);
|
|
||||||
INSERT INTO `order` VALUES (125, -1, '0c17c9bc441645f2', 200, 40, 0, 160, 0, NULL, NULL, NULL, NULL, 1, '', 1, '2019-04-22 22:21:26', NULL, 0);
|
|
||||||
INSERT INTO `order` VALUES (127, -1, 'af5c4f40bc9c478d', 10, 0, 0, 10, 0, NULL, NULL, NULL, NULL, 1, '', 1, '2019-04-22 22:28:21', NULL, 0);
|
|
||||||
INSERT INTO `order` VALUES (128, 1, '53cd76bff19242e8', 10, 0, 0, 10, 0, NULL, NULL, NULL, NULL, 1, '', 1, '2019-04-22 22:29:16', NULL, 0);
|
|
||||||
INSERT INTO `order` VALUES (129, 1, 'a8a40abdb2cc430b', 10, 0, 0, 10, 0, NULL, NULL, NULL, NULL, 1, '', 1, '2019-04-22 22:37:18', NULL, 0);
|
|
||||||
INSERT INTO `order` VALUES (130, 1, 'e6d4fe973a404508', 10, 0, 0, 10, 10, '2019-04-22 22:37:27', NULL, NULL, NULL, 1, '', 3, '2019-04-22 22:37:23', NULL, 0);
|
|
||||||
INSERT INTO `order` VALUES (131, 1, 'e2edc556fff847c5', 10, 0, 0, 10, 10, '2019-04-23 00:22:28', NULL, NULL, NULL, 1, '', 2, '2019-04-23 00:22:22', NULL, 0);
|
|
||||||
INSERT INTO `order` VALUES (132, 1, 'a6d7da64863c499e', 10, 0, 0, 10, 10, '2019-04-23 10:03:55', NULL, NULL, NULL, 1, '', 2, '2019-04-23 10:03:50', NULL, 0);
|
|
||||||
INSERT INTO `order` VALUES (133, 1, 'e815710ad0014f35', 10000, 0, 0, 10000, 10000, '2019-04-27 00:43:50', NULL, NULL, NULL, 1, '', 2, '2019-04-27 00:02:20', NULL, 0);
|
|
||||||
INSERT INTO `order` VALUES (134, 1, 'a624ad4406554db5', 10000, 0, 0, 10000, 10000, '2019-04-27 00:43:17', NULL, NULL, NULL, 1, '', 2, '2019-04-27 00:43:06', NULL, 0);
|
|
||||||
INSERT INTO `order` VALUES (135, 1, 'ffff6dd443a844ee', 10000, 0, 0, 10000, 10000, '2019-04-27 00:44:12', NULL, NULL, NULL, 1, '', 2, '2019-04-27 00:44:09', NULL, 0);
|
|
||||||
COMMIT;
|
|
||||||
|
|
||||||
-- ----------------------------
|
-- ----------------------------
|
||||||
-- Table structure for order_cancel
|
-- Table structure for order_cancel
|
||||||
@ -136,17 +49,8 @@ CREATE TABLE `order_cancel` (
|
|||||||
`other_reason` varchar(100) DEFAULT NULL COMMENT '其他原因',
|
`other_reason` varchar(100) DEFAULT NULL COMMENT '其他原因',
|
||||||
`create_time` datetime NOT NULL COMMENT '创建时间',
|
`create_time` datetime NOT NULL COMMENT '创建时间',
|
||||||
`update_time` datetime DEFAULT NULL COMMENT '更新时间',
|
`update_time` datetime DEFAULT NULL COMMENT '更新时间',
|
||||||
PRIMARY KEY (`id`)
|
PRIMARY KEY (`id`) USING BTREE
|
||||||
) ENGINE=InnoDB AUTO_INCREMENT=8 DEFAULT CHARSET=utf8;
|
) ENGINE=InnoDB AUTO_INCREMENT=10 DEFAULT CHARSET=utf8;
|
||||||
|
|
||||||
-- ----------------------------
|
|
||||||
-- Records of order_cancel
|
|
||||||
-- ----------------------------
|
|
||||||
BEGIN;
|
|
||||||
INSERT INTO `order_cancel` VALUES (5, 11, 'd31a7b9e2bb2483787dc601127f94c4d', 2, NULL, '2019-03-30 17:48:17', NULL);
|
|
||||||
INSERT INTO `order_cancel` VALUES (6, 47, '29635cff9cc8419', 7, NULL, '2019-04-12 19:55:50', NULL);
|
|
||||||
INSERT INTO `order_cancel` VALUES (7, 48, '8472c75db7794b', 6, NULL, '2019-04-12 19:56:07', NULL);
|
|
||||||
COMMIT;
|
|
||||||
|
|
||||||
-- ----------------------------
|
-- ----------------------------
|
||||||
-- Table structure for order_exchange
|
-- Table structure for order_exchange
|
||||||
@ -171,7 +75,7 @@ CREATE TABLE `order_exchange` (
|
|||||||
`delete` smallint(2) DEFAULT NULL COMMENT '删除状态',
|
`delete` smallint(2) DEFAULT NULL COMMENT '删除状态',
|
||||||
`order_type` int(2) DEFAULT NULL COMMENT '订单类型 0、为 Order 订单 1、为 OrderItem 订单',
|
`order_type` int(2) DEFAULT NULL COMMENT '订单类型 0、为 Order 订单 1、为 OrderItem 订单',
|
||||||
`status` int(2) DEFAULT NULL COMMENT '状态 申请换货、申请成功、申请失败、换货中、换货成功',
|
`status` int(2) DEFAULT NULL COMMENT '状态 申请换货、申请成功、申请失败、换货中、换货成功',
|
||||||
PRIMARY KEY (`id`)
|
PRIMARY KEY (`id`) USING BTREE
|
||||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
||||||
|
|
||||||
-- ----------------------------
|
-- ----------------------------
|
||||||
@ -205,58 +109,7 @@ CREATE TABLE `order_item` (
|
|||||||
`status` smallint(2) NOT NULL COMMENT '状态:0、代发货 1、已发货 2、已收货 20、换货中 21、换货成功 40、退货中 41、已退货',
|
`status` smallint(2) NOT NULL COMMENT '状态:0、代发货 1、已发货 2、已收货 20、换货中 21、换货成功 40、退货中 41、已退货',
|
||||||
`deleted` smallint(2) NOT NULL COMMENT '删除状态',
|
`deleted` smallint(2) NOT NULL COMMENT '删除状态',
|
||||||
PRIMARY KEY (`id`) USING BTREE
|
PRIMARY KEY (`id`) USING BTREE
|
||||||
) ENGINE=InnoDB AUTO_INCREMENT=88 DEFAULT CHARSET=utf8;
|
) ENGINE=InnoDB AUTO_INCREMENT=168 DEFAULT CHARSET=utf8;
|
||||||
|
|
||||||
-- ----------------------------
|
|
||||||
-- Records of order_item
|
|
||||||
-- ----------------------------
|
|
||||||
BEGIN;
|
|
||||||
INSERT INTO `order_item` VALUES (19, 47, '29635cff9cc841948ef3c2cfc3fb7911', NULL, 33, 'kafka 实战', 'https://user-gold-cdn.xitu.io/2019/4/1/169d694ae392047b?imageView2/0/w/1280/h/960/format/jpeg/ignore-error/1', 1, 10, 10, 0, 0, 0, 0, NULL, NULL, NULL, NULL, 1, '2019-04-11 22:15:32', NULL, NULL, 1, 5, 0);
|
|
||||||
INSERT INTO `order_item` VALUES (20, 48, '8472c75db7794b158ce9c3146fbb4e02', NULL, 33, 'kafka 实战', 'https://user-gold-cdn.xitu.io/2019/4/1/169d694ae392047b?imageView2/0/w/1280/h/960/format/jpeg/ignore-error/1', 1, 10, 10, 0, 0, 0, 0, NULL, NULL, NULL, NULL, 1, '2019-04-11 22:16:03', NULL, NULL, 1, 5, 0);
|
|
||||||
INSERT INTO `order_item` VALUES (21, 49, '00be8f5971c24bbcbddf9014bb0d2310', NULL, 33, 'kafka 实战', 'https://user-gold-cdn.xitu.io/2019/4/1/169d694ae392047b?imageView2/0/w/1280/h/960/format/jpeg/ignore-error/1', 1, 10, 10, 0, 0, 0, 0, NULL, NULL, NULL, NULL, 1, '2019-04-11 22:19:17', NULL, NULL, 1, 1, 0);
|
|
||||||
INSERT INTO `order_item` VALUES (22, 50, 'b4e42922b2634c1a94f01b2d66eeb8bf', 34, 33, 'kafka 实战', 'https://user-gold-cdn.xitu.io/2019/4/1/169d694ae392047b?imageView2/0/w/1280/h/960/format/jpeg/ignore-error/1', 1, 10, 10, 0, 0, 0, 0, NULL, NULL, '2019-04-12 21:27:14', NULL, 1, '2019-04-11 22:19:42', NULL, NULL, 1, 4, 0);
|
|
||||||
INSERT INTO `order_item` VALUES (23, 51, '76c163c61ffb465f', NULL, 33, 'kafka 实战', 'https://user-gold-cdn.xitu.io/2019/4/1/169d694ae392047b?imageView2/0/w/1280/h/960/format/jpeg/ignore-error/1', 6, 10, 60, 0, 0, 0, 0, NULL, NULL, NULL, NULL, 1, '2019-04-14 01:27:15', NULL, NULL, 1, 1, 0);
|
|
||||||
INSERT INTO `order_item` VALUES (24, 51, '76c163c61ffb465f', NULL, 32, '测试商品', 'https://user-gold-cdn.xitu.io/2019/4/1/169d694b02ef0df7?imageView2/0/w/1280/h/960/format/jpeg/ignore-error/1', 1, 2, 2, 0, 0, 0, 0, NULL, NULL, NULL, NULL, 1, '2019-04-14 01:27:15', NULL, NULL, 1, 1, 0);
|
|
||||||
INSERT INTO `order_item` VALUES (25, 74, '2186b8b4ca32442c', NULL, 33, 'kafka 实战', 'https://user-gold-cdn.xitu.io/2019/4/1/169d694ae392047b?imageView2/0/w/1280/h/960/format/jpeg/ignore-error/1', 3, 10, 10, 8, 200, 40, 160, NULL, NULL, NULL, NULL, 1, '2019-04-20 19:57:27', NULL, NULL, 1, 1, 0);
|
|
||||||
INSERT INTO `order_item` VALUES (26, 74, '2186b8b4ca32442c', NULL, 34, '农夫山泉', 'https://img.1000.com/qm-a-img/prod/000000/68635d48f57444c8a5ffd47a257dc3d7.jpg', 1, 125, 50, 50, 1000, 0, 1000, NULL, NULL, NULL, NULL, 1, '2019-04-20 19:57:27', NULL, NULL, 1, 1, 0);
|
|
||||||
INSERT INTO `order_item` VALUES (27, 75, '0668f5a6d168471c', NULL, 31, '测试商品', 'https://user-gold-cdn.xitu.io/2019/4/1/169d694b02ef0df7?imageView2/0/w/1280/h/960/format/jpeg/ignore-error/1', 1, 1, 1, 1, 100, 0, 100, NULL, NULL, NULL, NULL, 1, '2019-04-20 19:58:10', NULL, NULL, 1, 1, 0);
|
|
||||||
INSERT INTO `order_item` VALUES (28, 76, '6f465f43b2f34a3f', NULL, 33, 'kafka 实战', 'https://user-gold-cdn.xitu.io/2019/4/1/169d694ae392047b?imageView2/0/w/1280/h/960/format/jpeg/ignore-error/1', 1, 10, 10, 8, 200, 40, 160, NULL, NULL, NULL, NULL, 1, '2019-04-20 22:19:28', NULL, NULL, 1, 1, 0);
|
|
||||||
INSERT INTO `order_item` VALUES (41, 89, 'd4867f5320bb4d07', NULL, 33, 'kafka 实战', 'https://user-gold-cdn.xitu.io/2019/4/1/169d694ae392047b?imageView2/0/w/1280/h/960/format/jpeg/ignore-error/1', 1, 10, 10, 8, 200, 40, 160, NULL, NULL, NULL, NULL, 1, '2019-04-20 23:42:56', NULL, NULL, 1, 1, 0);
|
|
||||||
INSERT INTO `order_item` VALUES (42, 90, '2667b89fbb5e49d9', NULL, 33, 'kafka 实战', 'https://user-gold-cdn.xitu.io/2019/4/1/169d694ae392047b?imageView2/0/w/1280/h/960/format/jpeg/ignore-error/1', 1, 10, 10, 8, 200, 40, 160, NULL, NULL, NULL, NULL, 1, '2019-04-20 23:44:43', NULL, NULL, 1, 1, 0);
|
|
||||||
INSERT INTO `order_item` VALUES (47, 95, '7aa0c5558746431b', NULL, 33, 'kafka 实战', 'https://user-gold-cdn.xitu.io/2019/4/1/169d694ae392047b?imageView2/0/w/1280/h/960/format/jpeg/ignore-error/1', 1, 10, 10, 8, 200, 40, 160, NULL, NULL, NULL, NULL, 1, '2019-04-21 02:17:24', NULL, NULL, 1, 1, 0);
|
|
||||||
INSERT INTO `order_item` VALUES (49, 97, '2dd9173348c94047', NULL, 33, 'kafka 实战', 'https://user-gold-cdn.xitu.io/2019/4/1/169d694ae392047b?imageView2/0/w/1280/h/960/format/jpeg/ignore-error/1', 1, 10, 10, 8, 200, 40, 160, NULL, NULL, NULL, NULL, 1, '2019-04-21 14:22:49', NULL, NULL, 1, 1, 0);
|
|
||||||
INSERT INTO `order_item` VALUES (50, 98, '5987e77245064f5c', NULL, 33, 'kafka 实战', 'https://user-gold-cdn.xitu.io/2019/4/1/169d694ae392047b?imageView2/0/w/1280/h/960/format/jpeg/ignore-error/1', 1, 10, 10, 8, 200, 40, 160, NULL, NULL, NULL, NULL, 1, '2019-04-21 15:01:50', NULL, NULL, 1, 1, 0);
|
|
||||||
INSERT INTO `order_item` VALUES (51, 99, '0aa0ff0bb2a74180', NULL, 33, 'kafka 实战', 'https://user-gold-cdn.xitu.io/2019/4/1/169d694ae392047b?imageView2/0/w/1280/h/960/format/jpeg/ignore-error/1', 1, 10, 10, 8, 200, 40, 160, NULL, NULL, NULL, NULL, 1, '2019-04-21 15:05:21', NULL, NULL, 1, 1, 0);
|
|
||||||
INSERT INTO `order_item` VALUES (53, 101, 'e7f4804c54774747', NULL, 33, 'kafka 实战', 'https://user-gold-cdn.xitu.io/2019/4/1/169d694ae392047b?imageView2/0/w/1280/h/960/format/jpeg/ignore-error/1', 1, 10, 10, 8, 200, 40, 160, NULL, NULL, NULL, NULL, 1, '2019-04-21 15:06:30', NULL, NULL, 1, 1, 0);
|
|
||||||
INSERT INTO `order_item` VALUES (54, 102, 'cdff09a25c724c02', NULL, 31, '测试商品', 'https://user-gold-cdn.xitu.io/2019/4/1/169d694b02ef0df7?imageView2/0/w/1280/h/960/format/jpeg/ignore-error/1', 1, 1, 1, 1, 100, 0, 100, NULL, NULL, NULL, NULL, 1, '2019-04-21 15:10:39', NULL, NULL, 1, 1, 0);
|
|
||||||
INSERT INTO `order_item` VALUES (55, 103, '7de9b6251e434807', NULL, 31, '测试商品', 'https://user-gold-cdn.xitu.io/2019/4/1/169d694b02ef0df7?imageView2/0/w/1280/h/960/format/jpeg/ignore-error/1', 1, 1, 1, 1, 100, 0, 100, NULL, NULL, NULL, NULL, 1, '2019-04-21 15:14:17', NULL, NULL, 1, 1, 0);
|
|
||||||
INSERT INTO `order_item` VALUES (56, 104, '80475d74fc1f4a56', NULL, 31, '测试商品', 'https://user-gold-cdn.xitu.io/2019/4/1/169d694b02ef0df7?imageView2/0/w/1280/h/960/format/jpeg/ignore-error/1', 1, 1, 1, 1, 100, 0, 100, NULL, NULL, NULL, NULL, 1, '2019-04-21 15:19:19', NULL, NULL, 1, 1, 0);
|
|
||||||
INSERT INTO `order_item` VALUES (57, 105, 'ce4966bed7104dd5', NULL, 33, 'kafka 实战', 'https://user-gold-cdn.xitu.io/2019/4/1/169d694ae392047b?imageView2/0/w/1280/h/960/format/jpeg/ignore-error/1', 1, 10, 10, 8, 200, 40, 160, NULL, NULL, NULL, NULL, 1, '2019-04-21 18:59:24', NULL, NULL, 1, 1, 0);
|
|
||||||
INSERT INTO `order_item` VALUES (58, 106, 'a72347c6571f4f74', NULL, 33, 'kafka 实战', 'https://user-gold-cdn.xitu.io/2019/4/1/169d694ae392047b?imageView2/0/w/1280/h/960/format/jpeg/ignore-error/1', 1, 10, 10, 8, 200, 40, 160, NULL, NULL, NULL, NULL, 1, '2019-04-21 19:08:18', NULL, NULL, 1, 1, 0);
|
|
||||||
INSERT INTO `order_item` VALUES (59, 107, '7dedc1e8c6484530', NULL, 33, 'kafka 实战', 'https://user-gold-cdn.xitu.io/2019/4/1/169d694ae392047b?imageView2/0/w/1280/h/960/format/jpeg/ignore-error/1', 1, 10, 10, 8, 200, 40, 160, NULL, NULL, NULL, NULL, 1, '2019-04-21 19:22:19', NULL, NULL, 1, 1, 0);
|
|
||||||
INSERT INTO `order_item` VALUES (61, 109, '0635a03e4ad8439d', NULL, 31, '测试商品', 'https://user-gold-cdn.xitu.io/2019/4/1/169d694b02ef0df7?imageView2/0/w/1280/h/960/format/jpeg/ignore-error/1', 1, 1, 1, 1, 100, 0, 100, NULL, NULL, NULL, NULL, 1, '2019-04-21 19:57:14', NULL, NULL, 1, 1, 0);
|
|
||||||
INSERT INTO `order_item` VALUES (62, 110, '8cfb63d2f17445bb', NULL, 31, '测试商品', 'https://user-gold-cdn.xitu.io/2019/4/1/169d694b02ef0df7?imageView2/0/w/1280/h/960/format/jpeg/ignore-error/1', 1, 1, 1, 1, 100, 0, 100, NULL, NULL, NULL, NULL, 1, '2019-04-21 20:17:04', NULL, NULL, 1, 1, 0);
|
|
||||||
INSERT INTO `order_item` VALUES (63, 111, '11e64862f6d94ceb', NULL, 34, '农夫山泉', 'https://img.1000.com/qm-a-img/prod/000000/68635d48f57444c8a5ffd47a257dc3d7.jpg', 1, 125, 50, 50, 1000, 0, 1000, NULL, NULL, NULL, NULL, 1, '2019-04-21 20:24:05', NULL, NULL, 1, 1, 0);
|
|
||||||
INSERT INTO `order_item` VALUES (64, 112, '472994edfd90458d', NULL, 34, '农夫山泉', 'https://img.1000.com/qm-a-img/prod/000000/68635d48f57444c8a5ffd47a257dc3d7.jpg', 1, 125, 50, 50, 1000, 0, 1000, NULL, NULL, '2019-04-22 19:32:42', NULL, 1, '2019-04-21 20:37:45', NULL, NULL, 1, 4, 0);
|
|
||||||
INSERT INTO `order_item` VALUES (65, 113, 'aee52dfc8bef4603', NULL, 34, '农夫山泉', 'https://img.1000.com/qm-a-img/prod/000000/68635d48f57444c8a5ffd47a257dc3d7.jpg', 1, 125, 50, 50, 1000, 0, 1000, NULL, NULL, NULL, NULL, 1, '2019-04-21 20:51:38', NULL, NULL, 1, 1, 0);
|
|
||||||
INSERT INTO `order_item` VALUES (66, 114, '2da845ff0da74b8b', NULL, 34, '农夫山泉', 'https://img.1000.com/qm-a-img/prod/000000/68635d48f57444c8a5ffd47a257dc3d7.jpg', 1, 125, 50, 50, 1000, 0, 1000, NULL, NULL, NULL, NULL, 1, '2019-04-21 22:38:24', NULL, NULL, 1, 1, 0);
|
|
||||||
INSERT INTO `order_item` VALUES (67, 115, '23ce74ee3cbc49d8', NULL, 33, 'kafka 实战', 'https://user-gold-cdn.xitu.io/2019/4/1/169d694ae392047b?imageView2/0/w/1280/h/960/format/jpeg/ignore-error/1', 1, 10, 10, 8, 200, 40, 160, NULL, NULL, NULL, NULL, 1, '2019-04-21 23:29:21', NULL, NULL, 1, 1, 0);
|
|
||||||
INSERT INTO `order_item` VALUES (70, 118, '6d73bb4e01c349d6', NULL, 33, 'kafka 实战', 'https://user-gold-cdn.xitu.io/2019/4/1/169d694ae392047b?imageView2/0/w/1280/h/960/format/jpeg/ignore-error/1', 1, 10, 10, 8, 200, 40, 160, NULL, NULL, NULL, NULL, 1, '2019-04-22 17:06:00', NULL, NULL, 1, 1, 0);
|
|
||||||
INSERT INTO `order_item` VALUES (72, 120, '6377703d238e4b88', NULL, 33, 'kafka 实战', 'https://user-gold-cdn.xitu.io/2019/4/1/169d694ae392047b?imageView2/0/w/1280/h/960/format/jpeg/ignore-error/1', 1, 10, 10, 8, 200, 40, 160, NULL, NULL, NULL, NULL, 1, '2019-04-22 19:31:55', NULL, NULL, 1, 1, 0);
|
|
||||||
INSERT INTO `order_item` VALUES (73, 121, '3dc33dcaf4b24724', NULL, 41, 'Oracle', 'https://static.oschina.net/img/logo/oracle.gif', 1, 2000, 2000, 2000, 44000, 0, 44000, NULL, NULL, NULL, NULL, 1, '2019-04-22 19:35:45', NULL, NULL, 1, 1, 0);
|
|
||||||
INSERT INTO `order_item` VALUES (74, 122, '6074931dc45541f9', NULL, 33, 'kafka 实战', 'https://user-gold-cdn.xitu.io/2019/4/1/169d694ae392047b?imageView2/0/w/1280/h/960/format/jpeg/ignore-error/1', 1, 10, 10, 8, 200, 40, 160, NULL, NULL, NULL, NULL, 1, '2019-04-22 20:51:39', NULL, NULL, 1, 1, 0);
|
|
||||||
INSERT INTO `order_item` VALUES (76, 124, 'fc6c662e66a24a86', NULL, 33, 'kafka 实战', 'https://user-gold-cdn.xitu.io/2019/4/1/169d694ae392047b?imageView2/0/w/1280/h/960/format/jpeg/ignore-error/1', 1, 10, 10, 8, 200, 40, 160, NULL, NULL, NULL, NULL, 1, '2019-04-22 22:19:58', NULL, NULL, 1, 1, 0);
|
|
||||||
INSERT INTO `order_item` VALUES (77, 125, '0c17c9bc441645f2', NULL, 33, 'kafka 实战', 'https://user-gold-cdn.xitu.io/2019/4/1/169d694ae392047b?imageView2/0/w/1280/h/960/format/jpeg/ignore-error/1', 1, 10, 10, 8, 200, 40, 160, NULL, NULL, NULL, NULL, 1, '2019-04-22 22:21:26', NULL, NULL, 1, 1, 0);
|
|
||||||
INSERT INTO `order_item` VALUES (79, 127, 'af5c4f40bc9c478d', NULL, 33, 'kafka 实战', 'https://user-gold-cdn.xitu.io/2019/4/1/169d694ae392047b?imageView2/0/w/1280/h/960/format/jpeg/ignore-error/1', 1, 10, 10, 10, 10, 0, 10, NULL, NULL, NULL, NULL, 1, '2019-04-22 22:28:21', NULL, NULL, 1, 1, 0);
|
|
||||||
INSERT INTO `order_item` VALUES (80, 128, '53cd76bff19242e8', NULL, 33, 'kafka 实战', 'https://user-gold-cdn.xitu.io/2019/4/1/169d694ae392047b?imageView2/0/w/1280/h/960/format/jpeg/ignore-error/1', 1, 10, 10, 10, 10, 0, 10, NULL, NULL, NULL, NULL, 1, '2019-04-22 22:29:16', NULL, NULL, 1, 1, 0);
|
|
||||||
INSERT INTO `order_item` VALUES (81, 129, 'a8a40abdb2cc430b', NULL, 33, 'kafka 实战', 'https://user-gold-cdn.xitu.io/2019/4/1/169d694ae392047b?imageView2/0/w/1280/h/960/format/jpeg/ignore-error/1', 1, 10, 10, 10, 10, 0, 10, NULL, NULL, NULL, NULL, 1, '2019-04-22 22:37:18', NULL, NULL, 1, 1, 0);
|
|
||||||
INSERT INTO `order_item` VALUES (82, 130, 'e6d4fe973a404508', NULL, 33, 'kafka 实战', 'https://user-gold-cdn.xitu.io/2019/4/1/169d694ae392047b?imageView2/0/w/1280/h/960/format/jpeg/ignore-error/1', 1, 10, 10, 10, 10, 0, 10, NULL, NULL, NULL, NULL, 1, '2019-04-22 22:37:23', NULL, NULL, 1, 1, 0);
|
|
||||||
INSERT INTO `order_item` VALUES (83, 131, 'e2edc556fff847c5', NULL, 33, 'kafka 实战', 'https://user-gold-cdn.xitu.io/2019/4/1/169d694ae392047b?imageView2/0/w/1280/h/960/format/jpeg/ignore-error/1', 1, 10, 10, 10, 10, 0, 10, NULL, NULL, NULL, NULL, 1, '2019-04-23 00:22:22', NULL, NULL, 1, 1, 0);
|
|
||||||
INSERT INTO `order_item` VALUES (84, 132, 'a6d7da64863c499e', NULL, 33, 'kafka 实战', 'https://user-gold-cdn.xitu.io/2019/4/1/169d694ae392047b?imageView2/0/w/1280/h/960/format/jpeg/ignore-error/1', 1, 10, 10, 10, 10, 0, 10, NULL, NULL, NULL, NULL, 1, '2019-04-23 10:03:50', NULL, NULL, 1, 1, 0);
|
|
||||||
INSERT INTO `order_item` VALUES (85, 133, 'e815710ad0014f35', NULL, 36, 'Kafka 书籍汇总', 'http://static.iocoder.cn/kafka.png', 1, 10000, 10000, 10000, 10000, 0, 10000, NULL, NULL, NULL, NULL, 1, '2019-04-27 00:02:20', NULL, NULL, 1, 1, 0);
|
|
||||||
INSERT INTO `order_item` VALUES (86, 134, 'a624ad4406554db5', NULL, 36, 'Kafka 书籍汇总', 'http://static.iocoder.cn/kafka.png', 1, 10000, 10000, 10000, 10000, 0, 10000, NULL, NULL, NULL, NULL, 1, '2019-04-27 00:43:06', NULL, NULL, 1, 1, 0);
|
|
||||||
INSERT INTO `order_item` VALUES (87, 135, 'ffff6dd443a844ee', NULL, 36, 'Kafka 书籍汇总', 'http://static.iocoder.cn/kafka.png', 1, 10000, 10000, 10000, 10000, 0, 10000, NULL, NULL, NULL, NULL, 1, '2019-04-27 00:44:09', NULL, NULL, 1, 1, 0);
|
|
||||||
COMMIT;
|
|
||||||
|
|
||||||
-- ----------------------------
|
-- ----------------------------
|
||||||
-- Table structure for order_logistics
|
-- Table structure for order_logistics
|
||||||
@ -272,17 +125,9 @@ CREATE TABLE `order_logistics` (
|
|||||||
`logistics_no` varchar(20) NOT NULL COMMENT '物流单号',
|
`logistics_no` varchar(20) NOT NULL COMMENT '物流单号',
|
||||||
`create_time` datetime NOT NULL COMMENT '创建时间',
|
`create_time` datetime NOT NULL COMMENT '创建时间',
|
||||||
`update_time` datetime DEFAULT NULL COMMENT '更新时间',
|
`update_time` datetime DEFAULT NULL COMMENT '更新时间',
|
||||||
PRIMARY KEY (`id`)
|
PRIMARY KEY (`id`) USING BTREE
|
||||||
) ENGINE=InnoDB AUTO_INCREMENT=35 DEFAULT CHARSET=utf8;
|
) ENGINE=InnoDB AUTO_INCREMENT=35 DEFAULT CHARSET=utf8;
|
||||||
|
|
||||||
-- ----------------------------
|
|
||||||
-- Records of order_logistics
|
|
||||||
-- ----------------------------
|
|
||||||
BEGIN;
|
|
||||||
INSERT INTO `order_logistics` VALUES (24, '110101', 'Andy', '13302925934', '中二环,光电大厦11F 前台收', 1, '23123124123', '2019-04-11 22:50:31', NULL);
|
|
||||||
INSERT INTO `order_logistics` VALUES (34, '110101', 'Andy', '13302925934', '中二环,光电大厦11F 前台收', 1, '314123123123', '2019-04-12 19:23:42', NULL);
|
|
||||||
COMMIT;
|
|
||||||
|
|
||||||
-- ----------------------------
|
-- ----------------------------
|
||||||
-- Table structure for order_logistics_detail
|
-- Table structure for order_logistics_detail
|
||||||
-- ----------------------------
|
-- ----------------------------
|
||||||
@ -294,17 +139,9 @@ CREATE TABLE `order_logistics_detail` (
|
|||||||
`logistics_information` varchar(20) NOT NULL COMMENT '物流信息',
|
`logistics_information` varchar(20) NOT NULL COMMENT '物流信息',
|
||||||
`create_time` datetime DEFAULT NULL COMMENT '创建时间',
|
`create_time` datetime DEFAULT NULL COMMENT '创建时间',
|
||||||
`update_time` datetime DEFAULT NULL COMMENT '更新时间',
|
`update_time` datetime DEFAULT NULL COMMENT '更新时间',
|
||||||
PRIMARY KEY (`id`)
|
PRIMARY KEY (`id`) USING BTREE
|
||||||
) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=utf8;
|
) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=utf8;
|
||||||
|
|
||||||
-- ----------------------------
|
|
||||||
-- Records of order_logistics_detail
|
|
||||||
-- ----------------------------
|
|
||||||
BEGIN;
|
|
||||||
INSERT INTO `order_logistics_detail` VALUES (1, 34, '2019-04-12 22:46:15', '已经到上海总部', '2019-04-12 22:46:27', NULL);
|
|
||||||
INSERT INTO `order_logistics_detail` VALUES (2, 24, '2019-04-12 22:46:42', '一道成都,正在发往长沙', '2019-04-12 22:46:58', NULL);
|
|
||||||
COMMIT;
|
|
||||||
|
|
||||||
-- ----------------------------
|
-- ----------------------------
|
||||||
-- Table structure for order_recipient
|
-- Table structure for order_recipient
|
||||||
-- ----------------------------
|
-- ----------------------------
|
||||||
@ -319,57 +156,8 @@ CREATE TABLE `order_recipient` (
|
|||||||
`address` varchar(250) NOT NULL COMMENT '地址详细',
|
`address` varchar(250) NOT NULL COMMENT '地址详细',
|
||||||
`create_time` datetime NOT NULL COMMENT '创建时间',
|
`create_time` datetime NOT NULL COMMENT '创建时间',
|
||||||
`update_time` datetime DEFAULT NULL COMMENT '更新时间',
|
`update_time` datetime DEFAULT NULL COMMENT '更新时间',
|
||||||
PRIMARY KEY (`id`)
|
PRIMARY KEY (`id`) USING BTREE
|
||||||
) ENGINE=InnoDB AUTO_INCREMENT=111 DEFAULT CHARSET=utf8;
|
) ENGINE=InnoDB AUTO_INCREMENT=186 DEFAULT CHARSET=utf8;
|
||||||
|
|
||||||
-- ----------------------------
|
|
||||||
-- Records of order_recipient
|
|
||||||
-- ----------------------------
|
|
||||||
BEGIN;
|
|
||||||
INSERT INTO `order_recipient` VALUES (22, 47, '110101', 'Andy', '13302925934', 1, '中二环,光电大厦11F 前台收', '2019-04-11 22:15:32', NULL);
|
|
||||||
INSERT INTO `order_recipient` VALUES (23, 48, '110101', 'Andy', '13302925934', 1, '中二环,光电大厦11F 前台收', '2019-04-11 22:16:03', NULL);
|
|
||||||
INSERT INTO `order_recipient` VALUES (24, 49, '110101', 'Andy', '13302925934', 1, '中二环,光电大厦11F 前台收', '2019-04-11 22:19:17', NULL);
|
|
||||||
INSERT INTO `order_recipient` VALUES (25, 50, '110101', 'Andy', '13302925934', 1, '中二环,光电大厦11F 前台收', '2019-04-11 22:19:42', NULL);
|
|
||||||
INSERT INTO `order_recipient` VALUES (26, 51, '230102', 'mi', '13302926050', 1, '湖南省深圳市北京去3环', '2019-04-14 01:27:15', NULL);
|
|
||||||
INSERT INTO `order_recipient` VALUES (49, 74, '230102', 'mi', '13302926050', 1, '湖南省深圳市北京去3环', '2019-04-20 19:57:27', NULL);
|
|
||||||
INSERT INTO `order_recipient` VALUES (50, 75, '22033', 'sin', '18132019023', 1, '湖南省深圳市北京3环56号', '2019-04-20 19:58:10', NULL);
|
|
||||||
INSERT INTO `order_recipient` VALUES (51, 76, '230102', 'mi', '13302926050', 1, '湖南省深圳市北京去3环', '2019-04-20 22:19:28', NULL);
|
|
||||||
INSERT INTO `order_recipient` VALUES (64, 89, '230102', 'mi', '13302926050', 1, '湖南省深圳市北京去3环', '2019-04-20 23:42:56', NULL);
|
|
||||||
INSERT INTO `order_recipient` VALUES (65, 90, '230102', 'mi', '13302926050', 1, '湖南省深圳市北京去3环', '2019-04-20 23:44:43', NULL);
|
|
||||||
INSERT INTO `order_recipient` VALUES (70, 95, '230102', 'mi', '13302926050', 1, '湖南省深圳市北京去3环', '2019-04-21 02:17:24', NULL);
|
|
||||||
INSERT INTO `order_recipient` VALUES (72, 97, '230102', 'mi', '13302926050', 1, '湖南省深圳市北京去3环', '2019-04-21 14:22:49', NULL);
|
|
||||||
INSERT INTO `order_recipient` VALUES (73, 98, '230102', 'mi', '13302926050', 1, '湖南省深圳市北京去3环', '2019-04-21 15:01:50', NULL);
|
|
||||||
INSERT INTO `order_recipient` VALUES (74, 99, '230102', 'mi', '13302926050', 1, '湖南省深圳市北京去3环', '2019-04-21 15:05:21', NULL);
|
|
||||||
INSERT INTO `order_recipient` VALUES (76, 101, '230102', 'mi', '13302926050', 1, '湖南省深圳市北京去3环', '2019-04-21 15:06:30', NULL);
|
|
||||||
INSERT INTO `order_recipient` VALUES (77, 102, '230102', 'mi', '13302926050', 1, '湖南省深圳市北京去3环', '2019-04-21 15:10:39', NULL);
|
|
||||||
INSERT INTO `order_recipient` VALUES (78, 103, '230102', 'mi', '13302926050', 1, '湖南省深圳市北京去3环', '2019-04-21 15:14:17', NULL);
|
|
||||||
INSERT INTO `order_recipient` VALUES (79, 104, '230102', 'mi', '13302926050', 1, '湖南省深圳市北京去3环', '2019-04-21 15:19:19', NULL);
|
|
||||||
INSERT INTO `order_recipient` VALUES (80, 105, '230102', 'mi', '13302926050', 1, '湖南省深圳市北京去3环', '2019-04-21 18:59:24', NULL);
|
|
||||||
INSERT INTO `order_recipient` VALUES (81, 106, '230102', 'mi', '13302926050', 1, '湖南省深圳市北京去3环', '2019-04-21 19:08:18', NULL);
|
|
||||||
INSERT INTO `order_recipient` VALUES (82, 107, '230102', 'mi', '13302926050', 1, '湖南省深圳市北京去3环', '2019-04-21 19:22:19', NULL);
|
|
||||||
INSERT INTO `order_recipient` VALUES (84, 109, '230102', 'mi', '13302926050', 1, '湖南省深圳市北京去3环', '2019-04-21 19:57:14', NULL);
|
|
||||||
INSERT INTO `order_recipient` VALUES (85, 110, '230102', 'mi', '13302926050', 1, '湖南省深圳市北京去3环', '2019-04-21 20:17:04', NULL);
|
|
||||||
INSERT INTO `order_recipient` VALUES (86, 111, '230102', 'mi', '13302926050', 1, '湖南省深圳市北京去3环', '2019-04-21 20:24:05', NULL);
|
|
||||||
INSERT INTO `order_recipient` VALUES (87, 112, '230102', 'mi', '13302926050', 1, '湖南省深圳市北京去3环', '2019-04-21 20:37:45', NULL);
|
|
||||||
INSERT INTO `order_recipient` VALUES (88, 113, '230102', 'mi', '13302926050', 1, '湖南省深圳市北京去3环', '2019-04-21 20:51:38', NULL);
|
|
||||||
INSERT INTO `order_recipient` VALUES (89, 114, '230102', 'mi', '13302926050', 1, '湖南省深圳市北京去3环', '2019-04-21 22:38:24', NULL);
|
|
||||||
INSERT INTO `order_recipient` VALUES (90, 115, '230102', 'mi', '13302926050', 1, '湖南省深圳市北京去3环', '2019-04-21 23:29:21', NULL);
|
|
||||||
INSERT INTO `order_recipient` VALUES (93, 118, '230102', 'mi', '13302926050', 1, '湖南省深圳市北京去3环', '2019-04-22 17:06:00', NULL);
|
|
||||||
INSERT INTO `order_recipient` VALUES (95, 120, '230102', 'mi', '13302926050', 1, '湖南省深圳市北京去3环', '2019-04-22 19:31:55', NULL);
|
|
||||||
INSERT INTO `order_recipient` VALUES (96, 121, '22033', 'sin', '18132019023', 1, '湖南省深圳市北京3环56号', '2019-04-22 19:35:45', NULL);
|
|
||||||
INSERT INTO `order_recipient` VALUES (97, 122, '230102', 'mi', '13302926050', 1, '湖南省深圳市北京去3环', '2019-04-22 20:51:39', NULL);
|
|
||||||
INSERT INTO `order_recipient` VALUES (99, 124, '230102', 'mi', '13302926050', 1, '湖南省深圳市北京去3环', '2019-04-22 22:19:58', NULL);
|
|
||||||
INSERT INTO `order_recipient` VALUES (100, 125, '230102', 'mi', '13302926050', 1, '湖南省深圳市北京去3环', '2019-04-22 22:21:26', NULL);
|
|
||||||
INSERT INTO `order_recipient` VALUES (102, 127, '230102', 'mi', '13302926050', 1, '湖南省深圳市北京去3环', '2019-04-22 22:28:21', NULL);
|
|
||||||
INSERT INTO `order_recipient` VALUES (103, 128, '230102', 'mi', '13302926050', 1, '湖南省深圳市北京去3环', '2019-04-22 22:29:16', NULL);
|
|
||||||
INSERT INTO `order_recipient` VALUES (104, 129, '230102', 'mi', '13302926050', 1, '湖南省深圳市北京去3环', '2019-04-22 22:37:18', NULL);
|
|
||||||
INSERT INTO `order_recipient` VALUES (105, 130, '230102', 'mi', '13302926050', 1, '湖南省深圳市北京去3环', '2019-04-22 22:37:23', NULL);
|
|
||||||
INSERT INTO `order_recipient` VALUES (106, 131, '230102', 'mi', '13302926050', 1, '湖南省深圳市北京去3环', '2019-04-23 00:22:22', NULL);
|
|
||||||
INSERT INTO `order_recipient` VALUES (107, 132, '230102', 'mi', '13302926050', 1, '湖南省深圳市北京去3环', '2019-04-23 10:03:50', NULL);
|
|
||||||
INSERT INTO `order_recipient` VALUES (108, 133, '230102', 'mi', '13302926050', 1, '湖南省深圳市北京去3环', '2019-04-27 00:02:20', NULL);
|
|
||||||
INSERT INTO `order_recipient` VALUES (109, 134, '230102', 'mi', '13302926050', 1, '湖南省深圳市北京去3环', '2019-04-27 00:43:06', NULL);
|
|
||||||
INSERT INTO `order_recipient` VALUES (110, 135, '230102', 'mi', '13302926050', 1, '湖南省深圳市北京去3环', '2019-04-27 00:44:09', NULL);
|
|
||||||
COMMIT;
|
|
||||||
|
|
||||||
-- ----------------------------
|
-- ----------------------------
|
||||||
-- Table structure for order_return
|
-- Table structure for order_return
|
||||||
@ -386,33 +174,57 @@ CREATE TABLE `order_return` (
|
|||||||
`describe` varchar(255) DEFAULT NULL COMMENT '换货原因 (其他的时候)',
|
`describe` varchar(255) DEFAULT NULL COMMENT '换货原因 (其他的时候)',
|
||||||
`create_time` datetime NOT NULL COMMENT '创建时间',
|
`create_time` datetime NOT NULL COMMENT '创建时间',
|
||||||
`approval_time` datetime DEFAULT NULL COMMENT '同意时间',
|
`approval_time` datetime DEFAULT NULL COMMENT '同意时间',
|
||||||
|
`refuse_time` datetime DEFAULT NULL COMMENT '拒绝时间',
|
||||||
`logistics_time` datetime DEFAULT NULL COMMENT '物流时间(填写物流单号时间)',
|
`logistics_time` datetime DEFAULT NULL COMMENT '物流时间(填写物流单号时间)',
|
||||||
`receiver_time` datetime DEFAULT NULL COMMENT '收货时间',
|
`receiver_time` datetime DEFAULT NULL COMMENT '收货时间',
|
||||||
`closing_time` datetime DEFAULT NULL COMMENT '成交时间',
|
`closing_time` datetime DEFAULT NULL COMMENT '成交时间',
|
||||||
`service_type` int(2) DEFAULT NULL COMMENT ' 1、退货 2、退款',
|
`service_type` int(2) DEFAULT NULL COMMENT ' 1、退货 2、退款',
|
||||||
`update_time` datetime DEFAULT NULL COMMENT '更新时间',
|
`update_time` datetime DEFAULT NULL COMMENT '更新时间',
|
||||||
`status` int(2) NOT NULL COMMENT '状态 申请换货、申请成功、申请失败、退货中、退货成功',
|
`status` int(2) NOT NULL COMMENT '状态 申请换货、申请成功、申请失败、退货中、退货成功',
|
||||||
PRIMARY KEY (`id`)
|
PRIMARY KEY (`id`) USING BTREE
|
||||||
) ENGINE=InnoDB AUTO_INCREMENT=15 DEFAULT CHARSET=utf8;
|
) ENGINE=InnoDB AUTO_INCREMENT=15 DEFAULT CHARSET=utf8;
|
||||||
|
|
||||||
-- ----------------------------
|
-- ----------------------------
|
||||||
-- Records of order_return
|
-- Table structure for orders
|
||||||
-- ----------------------------
|
-- ----------------------------
|
||||||
BEGIN;
|
DROP TABLE IF EXISTS `orders`;
|
||||||
INSERT INTO `order_return` VALUES (1, '1111111', 50, 'b4e42922b2634', 24, 1000, 38, '12312', '2019-04-26 00:14:10', NULL, NULL, NULL, NULL, 1, NULL, 1);
|
CREATE TABLE `orders` (
|
||||||
INSERT INTO `order_return` VALUES (2, '12312312', 50, 'b4e42922b2634', NULL, 0, 38, '123', '2019-04-26 00:15:29', NULL, NULL, NULL, NULL, 1, NULL, 1);
|
`id` int(11) NOT NULL AUTO_INCREMENT COMMENT 'Id,自增长',
|
||||||
INSERT INTO `order_return` VALUES (3, '6754745', 50, 'b4e42922b2634', NULL, 0, 38, '123', '2019-04-26 00:15:31', NULL, NULL, NULL, NULL, 1, NULL, 1);
|
`user_id` int(11) NOT NULL COMMENT '用户id\n',
|
||||||
INSERT INTO `order_return` VALUES (4, '1234124', 50, 'b4e42922b2634', NULL, 0, 38, '123123', '2019-04-26 00:15:33', NULL, NULL, NULL, NULL, 1, NULL, 1);
|
`order_no` varchar(50) NOT NULL COMMENT '订单单号',
|
||||||
INSERT INTO `order_return` VALUES (5, 'ga12355', 50, 'b4e42922b2634', NULL, 0, 38, '123123', '2019-04-26 00:15:34', NULL, NULL, NULL, NULL, 1, NULL, 1);
|
`buy_price` int(11) NOT NULL COMMENT '订单金额(总金额)',
|
||||||
INSERT INTO `order_return` VALUES (6, 'dsgs1241', 50, 'b4e42922b2634', NULL, 0, 38, '123', '2019-04-26 00:16:21', NULL, NULL, NULL, NULL, 1, NULL, 1);
|
`discount_price` int(11) NOT NULL COMMENT '优惠总金额,单位:分',
|
||||||
INSERT INTO `order_return` VALUES (7, 'gad12314', 50, 'b4e42922b2634', NULL, 0, 38, '123', '2019-04-26 00:16:24', NULL, NULL, NULL, NULL, 1, NULL, 1);
|
`logistics_price` int(11) NOT NULL COMMENT '物流金额',
|
||||||
INSERT INTO `order_return` VALUES (8, 'ggasd123', 50, 'b4e42922b2634', NULL, 0, 38, '', '2019-04-26 00:17:10', NULL, NULL, NULL, NULL, 1, NULL, 1);
|
`present_price` int(11) NOT NULL COMMENT '最终金额,单位:分',
|
||||||
INSERT INTO `order_return` VALUES (9, 'amsfdl12314', 50, 'b4e42922b2634', NULL, 0, 38, '7', '2019-04-26 00:17:14', NULL, NULL, NULL, NULL, 1, NULL, 1);
|
`pay_amount` int(10) NOT NULL COMMENT '金额(分)',
|
||||||
INSERT INTO `order_return` VALUES (10, 'lo123', 50, 'b4e42922b2634', NULL, 0, 38, '6', '2019-04-26 00:17:18', NULL, NULL, NULL, NULL, 1, NULL, 1);
|
`payment_time` datetime DEFAULT NULL COMMENT '付款时间',
|
||||||
INSERT INTO `order_return` VALUES (11, 'sdfan231', 50, 'b4e42922b2634', NULL, 0, 38, '', '2019-04-26 00:18:08', NULL, NULL, NULL, NULL, 1, NULL, 1);
|
`delivery_time` datetime DEFAULT NULL COMMENT '发货时间',
|
||||||
INSERT INTO `order_return` VALUES (12, 'kdau213j21', 50, 'b4e42922b2634', NULL, 0, 38, '', '2019-04-26 00:18:59', NULL, NULL, NULL, NULL, 1, NULL, 1);
|
`receiver_time` datetime DEFAULT NULL COMMENT '收货时间',
|
||||||
INSERT INTO `order_return` VALUES (13, 'apdamfmn213', 50, 'b4e42922b2634', NULL, 0, 38, '1213', '2019-04-26 00:19:11', NULL, NULL, NULL, NULL, 1, NULL, 1);
|
`closing_time` datetime DEFAULT NULL COMMENT '成交时间',
|
||||||
INSERT INTO `order_return` VALUES (14, 'gi2341', 50, 'b4e42922b2634', NULL, 0, 38, '', '2019-04-26 00:22:24', NULL, NULL, NULL, NULL, 1, NULL, 1);
|
`has_return_exchange` smallint(6) NOT NULL COMMENT '是否退换货',
|
||||||
COMMIT;
|
`remark` varchar(255) DEFAULT NULL COMMENT '备注',
|
||||||
|
`status` smallint(2) NOT NULL COMMENT '状态(如果有多个商品分开发货需要全部商品发完才会改变状态) 0、待付款 1、待发货 2、待收货 3、已完成 4、已关闭',
|
||||||
|
`create_time` datetime DEFAULT NULL COMMENT '订单创建时间',
|
||||||
|
`update_time` datetime DEFAULT NULL COMMENT '更新时间',
|
||||||
|
`deleted` smallint(6) NOT NULL COMMENT '删除状态',
|
||||||
|
PRIMARY KEY (`id`) USING BTREE
|
||||||
|
) ENGINE=InnoDB AUTO_INCREMENT=224 DEFAULT CHARSET=utf8;
|
||||||
|
|
||||||
|
-- ----------------------------
|
||||||
|
-- Table structure for undo_log
|
||||||
|
-- ----------------------------
|
||||||
|
DROP TABLE IF EXISTS `undo_log`;
|
||||||
|
CREATE TABLE `undo_log` (
|
||||||
|
`id` bigint(20) NOT NULL AUTO_INCREMENT,
|
||||||
|
`branch_id` bigint(20) NOT NULL,
|
||||||
|
`xid` varchar(100) NOT NULL,
|
||||||
|
`rollback_info` longblob NOT NULL,
|
||||||
|
`log_status` int(11) NOT NULL,
|
||||||
|
`log_created` datetime NOT NULL,
|
||||||
|
`log_modified` datetime NOT NULL,
|
||||||
|
`ext` varchar(100) DEFAULT NULL,
|
||||||
|
PRIMARY KEY (`id`),
|
||||||
|
UNIQUE KEY `ux_undo_log` (`xid`,`branch_id`)
|
||||||
|
) ENGINE=InnoDB AUTO_INCREMENT=38 DEFAULT CHARSET=utf8;
|
||||||
|
|
||||||
SET FOREIGN_KEY_CHECKS = 1;
|
SET FOREIGN_KEY_CHECKS = 1;
|
||||||
|
@ -3,15 +3,15 @@
|
|||||||
|
|
||||||
Source Server : mall_mysql
|
Source Server : mall_mysql
|
||||||
Source Server Type : MySQL
|
Source Server Type : MySQL
|
||||||
Source Server Version : 50643
|
Source Server Version : 50726
|
||||||
Source Host : 180.167.213.26:13306
|
Source Host : 180.167.213.26:13306
|
||||||
Source Schema : mall_pay
|
Source Schema : mall_pay
|
||||||
|
|
||||||
Target Server Type : MySQL
|
Target Server Type : MySQL
|
||||||
Target Server Version : 50643
|
Target Server Version : 50726
|
||||||
File Encoding : 65001
|
File Encoding : 65001
|
||||||
|
|
||||||
Date: 28/04/2019 18:05:23
|
Date: 05/06/2019 07:57:31
|
||||||
*/
|
*/
|
||||||
|
|
||||||
SET NAMES utf8mb4;
|
SET NAMES utf8mb4;
|
||||||
@ -29,16 +29,9 @@ CREATE TABLE `app` (
|
|||||||
`status` tinyint(4) NOT NULL DEFAULT '-1' COMMENT '状态',
|
`status` tinyint(4) NOT NULL DEFAULT '-1' COMMENT '状态',
|
||||||
`create_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
|
`create_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
|
||||||
`update_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '最后更新时间',
|
`update_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '最后更新时间',
|
||||||
PRIMARY KEY (`id`)
|
PRIMARY KEY (`id`) USING BTREE
|
||||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='pay_app';
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='pay_app';
|
||||||
|
|
||||||
-- ----------------------------
|
|
||||||
-- Records of app
|
|
||||||
-- ----------------------------
|
|
||||||
BEGIN;
|
|
||||||
INSERT INTO `app` VALUES ('POd4RC6a', '商城订单', 'cn.iocoder.mall.order.api.OrderService#updatePaySuccess', 'cn.iocoder.mall.order.api.OrderReturnService#updateRefundSuccess', 1, '2019-03-13 11:10:05', '2019-04-26 22:55:57');
|
|
||||||
COMMIT;
|
|
||||||
|
|
||||||
-- ----------------------------
|
-- ----------------------------
|
||||||
-- Table structure for notify_log
|
-- Table structure for notify_log
|
||||||
-- ----------------------------
|
-- ----------------------------
|
||||||
@ -51,16 +44,8 @@ CREATE TABLE `notify_log` (
|
|||||||
`status` tinyint(4) NOT NULL COMMENT '状态',
|
`status` tinyint(4) NOT NULL COMMENT '状态',
|
||||||
`create_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
|
`create_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
|
||||||
`update_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '最后更新时间',
|
`update_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '最后更新时间',
|
||||||
PRIMARY KEY (`id`)
|
PRIMARY KEY (`id`) USING BTREE
|
||||||
) ENGINE=InnoDB AUTO_INCREMENT=24 DEFAULT CHARSET=utf8mb4 COMMENT='pay_transaction_notify_log';
|
) ENGINE=InnoDB AUTO_INCREMENT=59 DEFAULT CHARSET=utf8mb4 COMMENT='pay_transaction_notify_log';
|
||||||
|
|
||||||
-- ----------------------------
|
|
||||||
-- Records of notify_log
|
|
||||||
-- ----------------------------
|
|
||||||
BEGIN;
|
|
||||||
INSERT INTO `notify_log` VALUES (1, 3, '{\"appId\":\"POd4RC6a\",\"id\":3,\"notifyTimes\":0,\"notifyUrl\":\"cn.iocoder.mall.order.api.OrderService#updatePaySuccess\",\"orderId\":\"135\",\"transactionId\":50}', 'success', 2, '2019-04-27 00:44:12', '2019-04-27 00:44:12');
|
|
||||||
INSERT INTO `notify_log` VALUES (20, 10, '{\"appId\":\"POd4RC6a\",\"id\":10,\"notifyTimes\":0,\"notifyUrl\":\"cn.iocoder.mall.order.api.OrderReturnService#updateRefundSuccess\",\"orderId\":\"135\",\"refundId\":10,\"transactionId\":50}', 'success', 2, '2019-04-27 01:38:08', '2019-04-27 01:38:08');
|
|
||||||
COMMIT;
|
|
||||||
|
|
||||||
-- ----------------------------
|
-- ----------------------------
|
||||||
-- Table structure for notify_task
|
-- Table structure for notify_task
|
||||||
@ -79,21 +64,8 @@ CREATE TABLE `notify_task` (
|
|||||||
`refund` varchar(255) DEFAULT NULL COMMENT '退款数据',
|
`refund` varchar(255) DEFAULT NULL COMMENT '退款数据',
|
||||||
`create_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
|
`create_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
|
||||||
`update_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '最后更新时间',
|
`update_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '最后更新时间',
|
||||||
PRIMARY KEY (`id`)
|
PRIMARY KEY (`id`) USING BTREE
|
||||||
) ENGINE=InnoDB AUTO_INCREMENT=11 DEFAULT CHARSET=utf8mb4 COMMENT='transaction_notify_task';
|
) ENGINE=InnoDB AUTO_INCREMENT=33 DEFAULT CHARSET=utf8mb4 COMMENT='transaction_notify_task';
|
||||||
|
|
||||||
-- ----------------------------
|
|
||||||
-- Records of notify_task
|
|
||||||
-- ----------------------------
|
|
||||||
BEGIN;
|
|
||||||
INSERT INTO `notify_task` VALUES (1, 'POd4RC6a', 1, 1, '2019-04-27 00:39:44', NULL, 0, 9, '{\"orderId\":\"133\",\"transactionExtensionId\":77,\"transactionId\":48}', NULL, '2019-04-27 00:39:31', '2019-04-27 00:39:31');
|
|
||||||
INSERT INTO `notify_task` VALUES (2, 'POd4RC6a', 1, 1, '2019-04-27 00:43:28', NULL, 0, 9, '{\"orderId\":\"134\",\"transactionExtensionId\":78,\"transactionId\":49}', NULL, '2019-04-27 00:43:13', '2019-04-27 00:43:13');
|
|
||||||
INSERT INTO `notify_task` VALUES (3, 'POd4RC6a', 2, 1, '2019-04-27 00:44:27', '2019-04-27 00:44:12', 1, 9, '{\"orderId\":\"135\",\"transactionExtensionId\":79,\"transactionId\":50}', NULL, '2019-04-27 00:44:12', '2019-04-27 00:44:12');
|
|
||||||
INSERT INTO `notify_task` VALUES (4, 'POd4RC6a', 1, 2, '2019-04-27 01:23:21', NULL, 0, 9, NULL, '{\"orderId\":\"135\",\"refundId\":6,\"transactionId\":50}', '2019-04-27 01:23:05', '2019-04-27 01:23:05');
|
|
||||||
INSERT INTO `notify_task` VALUES (5, 'POd4RC6a', 1, 2, '2019-04-27 01:24:54', NULL, 0, 9, NULL, '{\"orderId\":\"135\",\"refundId\":3,\"transactionId\":50}', '2019-04-27 01:24:38', '2019-04-27 01:24:38');
|
|
||||||
INSERT INTO `notify_task` VALUES (6, 'POd4RC6a', 1, 2, '2019-04-27 01:28:18', NULL, 0, 9, NULL, '{\"orderId\":\"135\",\"refundId\":7,\"transactionId\":50}', '2019-04-27 01:28:03', '2019-04-27 01:28:03');
|
|
||||||
INSERT INTO `notify_task` VALUES (10, 'POd4RC6a', 2, 2, '2019-04-27 01:38:14', '2019-04-27 01:37:59', 1, 9, NULL, '{\"orderId\":\"135\",\"refundId\":10,\"transactionId\":50}', '2019-04-27 01:37:59', '2019-04-27 01:38:08');
|
|
||||||
COMMIT;
|
|
||||||
|
|
||||||
-- ----------------------------
|
-- ----------------------------
|
||||||
-- Table structure for refund
|
-- Table structure for refund
|
||||||
@ -118,25 +90,9 @@ CREATE TABLE `refund` (
|
|||||||
`trade_no` varchar(50) DEFAULT NULL COMMENT '第三方的流水号',
|
`trade_no` varchar(50) DEFAULT NULL COMMENT '第三方的流水号',
|
||||||
`create_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
|
`create_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
|
||||||
`update_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '最后更新时间',
|
`update_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '最后更新时间',
|
||||||
PRIMARY KEY (`id`)
|
PRIMARY KEY (`id`) USING BTREE
|
||||||
) ENGINE=InnoDB AUTO_INCREMENT=11 DEFAULT CHARSET=utf8mb4 COMMENT='pay_refund';
|
) ENGINE=InnoDB AUTO_INCREMENT=11 DEFAULT CHARSET=utf8mb4 COMMENT='pay_refund';
|
||||||
|
|
||||||
-- ----------------------------
|
|
||||||
-- Records of refund
|
|
||||||
-- ----------------------------
|
|
||||||
BEGIN;
|
|
||||||
INSERT INTO `refund` VALUES (1, 47, '', 'POd4RC6a', '132', '127.0.0.1', '测试下退款', 1, 1, NULL, 'cn.iocoder.mall.order.api.OrderReturnService#updateRefundFinish', NULL, 9999, NULL, NULL, NULL, '2019-04-26 16:16:21', '2019-04-26 16:16:20');
|
|
||||||
INSERT INTO `refund` VALUES (2, 50, 0x3230313930343237303035333035313832383232, 'POd4RC6a', '135', '127.0.0.1', '测试下退款', 1, 1, NULL, 'cn.iocoder.mall.order.api.OrderReturnService#updateRefundSuccess', NULL, 9999, NULL, NULL, NULL, '2019-04-27 00:53:05', '2019-04-27 00:53:05');
|
|
||||||
INSERT INTO `refund` VALUES (3, 50, 0x3230313930343237303131363537383432363937, 'POd4RC6a', '135', '127.0.0.1', '测试下退款', 1, 3, NULL, 'cn.iocoder.mall.order.api.OrderReturnService#updateRefundSuccess', '{\"id\":\"evt_400190427011658181610003\",\"created\":1556299018,\"livemode\":false,\"type\":\"refund.succeeded\",\"data\":{\"object\":{\"id\":\"re_9Oebj5LKmTmTmT0az9fTqPyP\",\"object\":\"refund\",\"order_no\":\"9Oebj5LKmTmTmT0az9fTqPyP\",\"amount\":1,\"created\":1556299018,\"succeed\":true,\"status\":\"succeeded\",\"time_succeed\":1556299018,\"description\":\"测试下退款\",\"failure_code\":null,\"failure_msg\":null,\"metadata\":{\"refundCode\":\"20190427011657842697\"},\"charge\":\"ch_y1iXjLnDS4G4OO4uT4a5C4W1\",\"charge_order_no\":\"20190427004410165545\",\"transaction_no\":\"201904270116584452782\",\"extra\":{}}},\"object\":\"event\",\"request\":\"iar_v1aTW19O0OO0f1ev5SGqLSK4\",\"pending_webhooks\":0}', 9999, NULL, NULL, NULL, '2019-04-27 01:16:58', '2019-04-27 01:24:38');
|
|
||||||
INSERT INTO `refund` VALUES (4, 50, 0x3230313930343237303131393137333731303832, 'POd4RC6a', '135', '127.0.0.1', '测试下退款', 1, 1, NULL, 'cn.iocoder.mall.order.api.OrderReturnService#updateRefundSuccess', NULL, 9999, NULL, NULL, NULL, '2019-04-27 01:19:17', '2019-04-27 01:19:17');
|
|
||||||
INSERT INTO `refund` VALUES (5, 50, 0x3230313930343237303132313030383239363939, 'POd4RC6a', '135', '127.0.0.1', '测试下退款', 1, 1, NULL, 'cn.iocoder.mall.order.api.OrderReturnService#updateRefundSuccess', NULL, 9999, NULL, NULL, NULL, '2019-04-27 01:21:01', '2019-04-27 01:21:00');
|
|
||||||
INSERT INTO `refund` VALUES (6, 50, 0x3230313930343237303132333034363332363038, 'POd4RC6a', '135', '127.0.0.1', '测试下退款', 1, 3, NULL, 'cn.iocoder.mall.order.api.OrderReturnService#updateRefundSuccess', '{\"id\":\"evt_400190427012305181712903\",\"created\":1556299385,\"livemode\":false,\"type\":\"refund.succeeded\",\"data\":{\"object\":{\"id\":\"re_mTGGWLzD8SePCGWbX19KSSaP\",\"object\":\"refund\",\"order_no\":\"mTGGWLzD8SePCGWbX19KSSaP\",\"amount\":1,\"created\":1556299385,\"succeed\":true,\"status\":\"succeeded\",\"time_succeed\":1556299385,\"description\":\"测试下退款\",\"failure_code\":null,\"failure_msg\":null,\"metadata\":{\"refundCode\":\"20190427012304632608\"},\"charge\":\"ch_y1iXjLnDS4G4OO4uT4a5C4W1\",\"charge_order_no\":\"20190427004410165545\",\"transaction_no\":\"201904270123051790753\",\"extra\":{}}},\"object\":\"event\",\"request\":\"iar_rP80WDL4Ku9KOaXLCOmPWTKC\",\"pending_webhooks\":0}', 9999, NULL, NULL, NULL, '2019-04-27 01:23:05', '2019-04-27 01:23:05');
|
|
||||||
INSERT INTO `refund` VALUES (7, 50, 0x3230313930343237303132383032383531333238, 'POd4RC6a', '135', '127.0.0.1', '测试下退款', 1, 3, NULL, 'cn.iocoder.mall.order.api.OrderReturnService#updateRefundSuccess', '{\"id\":\"evt_400190427012802341778702\",\"created\":1556299682,\"livemode\":false,\"type\":\"refund.succeeded\",\"data\":{\"object\":{\"id\":\"re_nrLmT85aTCyLeDyjv1LmH0e5\",\"object\":\"refund\",\"order_no\":\"nrLmT85aTCyLeDyjv1LmH0e5\",\"amount\":1,\"created\":1556299682,\"succeed\":true,\"status\":\"succeeded\",\"time_succeed\":1556299682,\"description\":\"测试下退款\",\"failure_code\":null,\"failure_msg\":null,\"metadata\":{\"refundCode\":\"20190427012802851328\"},\"charge\":\"ch_y1iXjLnDS4G4OO4uT4a5C4W1\",\"charge_order_no\":\"20190427004410165545\",\"transaction_no\":\"201904270128023511588\",\"extra\":{}}},\"object\":\"event\",\"request\":\"iar_1aXPePubTCm5GW1Ky5DajTyL\",\"pending_webhooks\":0}', 9999, NULL, NULL, NULL, '2019-04-27 01:28:02', '2019-04-27 01:28:03');
|
|
||||||
INSERT INTO `refund` VALUES (8, 50, 0x3230313930343237303133343338323832343330, 'POd4RC6a', '135', '127.0.0.1', '测试下退款', 1, 1, NULL, 'cn.iocoder.mall.order.api.OrderReturnService#updateRefundSuccess', NULL, 9999, NULL, NULL, NULL, '2019-04-27 01:34:39', '2019-04-27 01:34:38');
|
|
||||||
INSERT INTO `refund` VALUES (9, 50, 0x3230313930343237303133363031363230353231, 'POd4RC6a', '135', '127.0.0.1', '测试下退款', 1, 1, NULL, 'cn.iocoder.mall.order.api.OrderReturnService#updateRefundSuccess', NULL, 9999, NULL, NULL, NULL, '2019-04-27 01:36:01', '2019-04-27 01:36:01');
|
|
||||||
INSERT INTO `refund` VALUES (10, 50, 0x3230313930343237303133373538363732313237, 'POd4RC6a', '135', '127.0.0.1', '测试下退款', 1, 3, '2019-04-27 01:38:09', 'cn.iocoder.mall.order.api.OrderReturnService#updateRefundSuccess', '{\"id\":\"evt_400190427013758341915902\",\"created\":1556300278,\"livemode\":false,\"type\":\"refund.succeeded\",\"data\":{\"object\":{\"id\":\"re_qLWXT4bnbXTG5u90i14Cmb1G\",\"object\":\"refund\",\"order_no\":\"qLWXT4bnbXTG5u90i14Cmb1G\",\"amount\":1,\"created\":1556300278,\"succeed\":true,\"status\":\"succeeded\",\"time_succeed\":1556300278,\"description\":\"测试下退款\",\"failure_code\":null,\"failure_msg\":null,\"metadata\":{\"refundCode\":\"20190427013758672127\"},\"charge\":\"ch_y1iXjLnDS4G4OO4uT4a5C4W1\",\"charge_order_no\":\"20190427004410165545\",\"transaction_no\":\"201904270137588767780\",\"extra\":{}}},\"object\":\"event\",\"request\":\"iar_fTKCeHLajbjPnb1inDj5mbf5\",\"pending_webhooks\":0}', 9999, NULL, NULL, NULL, '2019-04-27 01:37:58', '2019-04-27 01:38:08');
|
|
||||||
COMMIT;
|
|
||||||
|
|
||||||
-- ----------------------------
|
-- ----------------------------
|
||||||
-- Table structure for transaction
|
-- Table structure for transaction
|
||||||
-- ----------------------------
|
-- ----------------------------
|
||||||
@ -162,57 +118,9 @@ CREATE TABLE `transaction` (
|
|||||||
`refund_total` int(11) DEFAULT '0' COMMENT '退款总金额',
|
`refund_total` int(11) DEFAULT '0' COMMENT '退款总金额',
|
||||||
`create_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
|
`create_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
|
||||||
`update_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '最后更新时间',
|
`update_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '最后更新时间',
|
||||||
PRIMARY KEY (`id`),
|
PRIMARY KEY (`id`) USING BTREE,
|
||||||
UNIQUE KEY `idx_orderId_appId` (`app_id`,`order_id`) USING BTREE
|
UNIQUE KEY `idx_orderId_appId` (`app_id`,`order_id`) USING BTREE
|
||||||
) ENGINE=InnoDB AUTO_INCREMENT=51 DEFAULT CHARSET=utf8mb4 COMMENT='pay_transaction';
|
) ENGINE=InnoDB AUTO_INCREMENT=142 DEFAULT CHARSET=utf8mb4 COMMENT='pay_transaction';
|
||||||
|
|
||||||
-- ----------------------------
|
|
||||||
-- Records of transaction
|
|
||||||
-- ----------------------------
|
|
||||||
BEGIN;
|
|
||||||
INSERT INTO `transaction` VALUES (1, 'POd4RC6a', '127.0.0.1', '1', '商品名', '商品描述', '商品备注', 10, 2, '2019-03-13 13:36:32', NULL, 'TODO', 15, 9999, '2019-03-13 17:30:21', '2019-03-13 17:30:22', '1285076745201903130468978518', 4, '2019-03-13 13:36:32', '2019-04-27 01:37:59');
|
|
||||||
INSERT INTO `transaction` VALUES (2, 'POd4RC6a', '127.0.0.1', '2', '商品名', '商品描述', '商品备注', 10, 2, '2019-03-14 16:08:14', '2019-03-14 22:09:20', 'TODO', 22, 9999, '2019-03-14 16:13:58', '2019-03-14 16:13:58', '1282396661201903145620538794', 4, '2019-03-14 16:08:15', '2019-04-27 01:37:59');
|
|
||||||
INSERT INTO `transaction` VALUES (3, 'POd4RC6a', '127.0.0.1', '91', 'kafka 实战', '测试描述', '测试备注', 160, 1, '2019-04-21 01:46:59', NULL, 'TODO', NULL, NULL, NULL, NULL, NULL, 4, '2019-04-20 23:47:01', '2019-04-27 01:37:59');
|
|
||||||
INSERT INTO `transaction` VALUES (5, 'POd4RC6a', '127.0.0.1', '92', '农夫山泉', '测试描述', '测试备注', 1000, 1, '2019-04-21 04:13:47', NULL, 'TODO', NULL, NULL, NULL, NULL, NULL, 4, '2019-04-21 02:13:52', '2019-04-27 01:37:59');
|
|
||||||
INSERT INTO `transaction` VALUES (8, 'POd4RC6a', '127.0.0.1', '93', 'kafka 实战', '测试描述', '测试备注', 160, 1, '2019-04-21 04:15:14', NULL, 'TODO', NULL, NULL, NULL, NULL, NULL, 4, '2019-04-21 02:15:14', '2019-04-27 01:37:59');
|
|
||||||
INSERT INTO `transaction` VALUES (9, 'POd4RC6a', '127.0.0.1', '94', 'kafka 实战', '测试描述', '测试备注', 160, 1, '2019-04-21 04:15:17', NULL, 'TODO', NULL, NULL, NULL, NULL, NULL, 4, '2019-04-21 02:15:17', '2019-04-27 01:37:59');
|
|
||||||
INSERT INTO `transaction` VALUES (10, 'POd4RC6a', '127.0.0.1', '95', 'kafka 实战', '测试描述', '测试备注', 160, 1, '2019-04-21 04:17:24', NULL, 'TODO', NULL, NULL, NULL, NULL, NULL, 4, '2019-04-21 02:17:24', '2019-04-27 01:37:59');
|
|
||||||
INSERT INTO `transaction` VALUES (11, 'POd4RC6a', '127.0.0.1', '97', 'kafka 实战', '测试描述', '测试备注', 160, 2, '2019-04-21 16:22:49', '2019-04-21 14:25:40', 'cn.iocoder.mall.pay.api.PayDemoService#updatePaySuccess', 37, 9999, '2019-04-21 14:23:04', '2019-04-21 14:23:15', '1214878818201904214744765608', 4, '2019-04-21 14:22:49', '2019-04-27 01:37:59');
|
|
||||||
INSERT INTO `transaction` VALUES (12, 'POd4RC6a', '127.0.0.1', '98', 'kafka 实战', '测试描述', '测试备注', 160, 2, '2019-04-21 17:01:50', NULL, 'cn.iocoder.mall.pay.api.PayDemoService#updatePaySuccess', 38, 9999, '2019-04-21 15:01:56', '2019-04-21 15:01:57', '1242451315201904216613366351', 4, '2019-04-21 15:01:50', '2019-04-27 01:37:59');
|
|
||||||
INSERT INTO `transaction` VALUES (13, 'POd4RC6a', '127.0.0.1', '99', 'kafka 实战', '测试描述', '测试备注', 160, 2, '2019-04-21 17:05:21', NULL, 'cn.iocoder.mall.order.api.OrderServicee#updatePaySuccess', 39, 9999, '2019-04-21 15:05:27', '2019-04-21 15:05:28', '1232163188201904219935216641', 4, '2019-04-21 15:05:22', '2019-04-27 01:37:59');
|
|
||||||
INSERT INTO `transaction` VALUES (14, 'POd4RC6a', '127.0.0.1', '100', 'kafka 实战', '测试描述', '测试备注', 160, 1, '2019-04-21 17:06:08', NULL, 'cn.iocoder.mall.order.api.OrderServicee#updatePaySuccess', NULL, NULL, NULL, NULL, NULL, 4, '2019-04-21 15:06:12', '2019-04-27 01:37:59');
|
|
||||||
INSERT INTO `transaction` VALUES (17, 'POd4RC6a', '127.0.0.1', '101', 'kafka 实战', '测试描述', '测试备注', 160, 1, '2019-04-21 17:06:30', NULL, 'cn.iocoder.mall.order.api.OrderServicee#updatePaySuccess', NULL, NULL, NULL, NULL, NULL, 4, '2019-04-21 15:06:30', '2019-04-27 01:37:59');
|
|
||||||
INSERT INTO `transaction` VALUES (18, 'POd4RC6a', '127.0.0.1', '102', '测试商品', '测试描述', '测试备注', 100, 2, '2019-04-21 17:10:39', NULL, 'cn.iocoder.mall.order.api.OrderServicee#updatePaySuccess', 40, 9999, '2019-04-21 15:11:13', '2019-04-21 15:11:14', '1262352890201904219469841110', 4, '2019-04-21 15:10:39', '2019-04-27 01:37:59');
|
|
||||||
INSERT INTO `transaction` VALUES (19, 'POd4RC6a', '127.0.0.1', '103', '测试商品', '测试描述', '测试备注', 100, 2, '2019-04-21 17:14:17', '2019-04-21 15:21:26', 'cn.iocoder.mall.order.api.OrderService#updatePaySuccess', 41, 9999, '2019-04-21 15:14:22', '2019-04-21 15:14:23', '1248585474201904212137778537', 4, '2019-04-21 15:14:17', '2019-04-27 01:37:59');
|
|
||||||
INSERT INTO `transaction` VALUES (20, 'POd4RC6a', '127.0.0.1', '104', '测试商品', '测试描述', '测试备注', 100, 2, '2019-04-21 17:19:19', '2019-04-21 15:20:16', 'cn.iocoder.mall.order.api.OrderService#updatePaySuccess', 42, 9999, '2019-04-21 15:19:24', '2019-04-21 15:19:25', '1214125122201904212507946245', 4, '2019-04-21 15:19:19', '2019-04-27 01:37:59');
|
|
||||||
INSERT INTO `transaction` VALUES (21, 'POd4RC6a', '124.77.208.137', '105', 'kafka 实战', '测试描述', '测试备注', 160, 1, '2019-04-21 20:59:24', NULL, 'cn.iocoder.mall.order.api.OrderService#updatePaySuccess', NULL, NULL, NULL, NULL, NULL, 4, '2019-04-21 18:59:24', '2019-04-27 01:37:59');
|
|
||||||
INSERT INTO `transaction` VALUES (22, 'POd4RC6a', '124.77.208.137', '106', 'kafka 实战', '测试描述', '测试备注', 160, 1, '2019-04-21 21:08:18', NULL, 'cn.iocoder.mall.order.api.OrderService#updatePaySuccess', NULL, NULL, NULL, NULL, NULL, 4, '2019-04-21 19:08:18', '2019-04-27 01:37:59');
|
|
||||||
INSERT INTO `transaction` VALUES (23, 'POd4RC6a', '124.77.208.137', '107', 'kafka 实战', '测试描述', '测试备注', 160, 1, '2019-04-21 21:22:19', NULL, 'cn.iocoder.mall.order.api.OrderService#updatePaySuccess', NULL, NULL, NULL, NULL, NULL, 4, '2019-04-21 19:22:19', '2019-04-27 01:37:59');
|
|
||||||
INSERT INTO `transaction` VALUES (24, 'POd4RC6a', '124.77.208.137', '109', '测试商品', '测试描述', '测试备注', 100, 1, '2019-04-21 21:57:14', NULL, 'cn.iocoder.mall.order.api.OrderService#updatePaySuccess', NULL, NULL, NULL, NULL, NULL, 4, '2019-04-21 19:57:14', '2019-04-27 01:37:59');
|
|
||||||
INSERT INTO `transaction` VALUES (25, 'POd4RC6a', '127.0.0.1', '110', '测试商品', '测试描述', '测试备注', 100, 2, '2019-04-21 22:17:04', NULL, 'cn.iocoder.mall.order.api.OrderService#updatePaySuccess', 54, 9999, '2019-04-21 20:17:15', '2019-04-21 20:17:19', '1263683564201904219993710538', 4, '2019-04-21 20:17:04', '2019-04-27 01:37:59');
|
|
||||||
INSERT INTO `transaction` VALUES (26, 'POd4RC6a', '124.77.208.137', '111', '农夫山泉', '测试描述', '测试备注', 1000, 1, '2019-04-21 22:24:05', NULL, 'cn.iocoder.mall.order.api.OrderService#updatePaySuccess', NULL, NULL, NULL, NULL, NULL, 4, '2019-04-21 20:24:05', '2019-04-27 01:37:59');
|
|
||||||
INSERT INTO `transaction` VALUES (27, 'POd4RC6a', '124.77.208.137', '112', '农夫山泉', '测试描述', '测试备注', 1000, 2, '2019-04-21 22:37:45', '2019-04-22 19:32:35', 'cn.iocoder.mall.order.api.OrderService#updatePaySuccess', 63, 9999, '2019-04-22 19:32:30', '2019-04-22 19:32:31', '1244224811201904228521103170', 4, '2019-04-21 20:37:45', '2019-04-27 01:37:59');
|
|
||||||
INSERT INTO `transaction` VALUES (28, 'POd4RC6a', '124.77.208.137', '113', '农夫山泉', '测试描述', '测试备注', 1000, 2, '2019-04-21 22:51:38', '2019-04-22 19:35:58', 'cn.iocoder.mall.order.api.OrderService#updatePaySuccess', 64, 9999, '2019-04-22 19:35:57', '2019-04-22 19:35:58', '1213285149201904222299145413', 4, '2019-04-21 20:51:38', '2019-04-27 01:37:59');
|
|
||||||
INSERT INTO `transaction` VALUES (29, 'POd4RC6a', '124.77.208.137', '114', '农夫山泉', '测试描述', '测试备注', 1000, 2, '2019-04-22 00:38:24', '2019-04-21 22:38:34', 'cn.iocoder.mall.order.api.OrderService#updatePaySuccess', 60, 9999, '2019-04-21 22:38:32', '2019-04-21 22:38:33', '1290815313201904211598433725', 4, '2019-04-21 22:38:24', '2019-04-27 01:37:59');
|
|
||||||
INSERT INTO `transaction` VALUES (30, 'POd4RC6a', '124.77.208.137', '115', 'kafka 实战', '测试描述', '测试备注', 160, 2, '2019-04-22 01:29:21', '2019-04-22 19:36:16', 'cn.iocoder.mall.order.api.OrderService#updatePaySuccess', 65, 9999, '2019-04-22 19:36:15', '2019-04-22 19:36:16', '1245834775201904220995332009', 4, '2019-04-21 23:29:21', '2019-04-27 01:37:59');
|
|
||||||
INSERT INTO `transaction` VALUES (31, 'POd4RC6a', '127.0.0.1', '118', 'kafka 实战', '测试描述', '测试备注', 160, 1, '2019-04-22 19:06:00', NULL, 'cn.iocoder.mall.order.api.OrderService#updatePaySuccess', NULL, NULL, NULL, NULL, NULL, 4, '2019-04-22 17:06:00', '2019-04-27 01:37:59');
|
|
||||||
INSERT INTO `transaction` VALUES (32, 'POd4RC6a', '180.167.213.26', '119', 'kafka 实战', '测试描述', '测试备注', 160, 1, '2019-04-22 21:31:53', NULL, 'cn.iocoder.mall.order.api.OrderService#updatePaySuccess', NULL, NULL, NULL, NULL, NULL, 4, '2019-04-22 19:31:57', '2019-04-27 01:37:59');
|
|
||||||
INSERT INTO `transaction` VALUES (33, 'POd4RC6a', '180.167.213.26', '120', 'kafka 实战', '测试描述', '测试备注', 160, 1, '2019-04-22 21:31:55', NULL, 'cn.iocoder.mall.order.api.OrderService#updatePaySuccess', NULL, NULL, NULL, NULL, NULL, 4, '2019-04-22 19:31:57', '2019-04-27 01:37:59');
|
|
||||||
INSERT INTO `transaction` VALUES (37, 'POd4RC6a', '180.167.213.26', '121', 'Oracle', '测试描述', '测试备注', 44000, 1, '2019-04-22 21:35:45', NULL, 'cn.iocoder.mall.order.api.OrderService#updatePaySuccess', NULL, NULL, NULL, NULL, NULL, 4, '2019-04-22 19:35:45', '2019-04-27 01:37:59');
|
|
||||||
INSERT INTO `transaction` VALUES (38, 'POd4RC6a', '114.87.158.59', '122', 'kafka 实战', '测试描述', '测试备注', 160, 2, '2019-04-22 22:51:39', '2019-04-22 20:51:47', 'cn.iocoder.mall.order.api.OrderService#updatePaySuccess', 66, 9999, '2019-04-22 20:51:45', '2019-04-22 20:51:46', '1209794355201904229853980782', 4, '2019-04-22 20:51:39', '2019-04-27 01:37:59');
|
|
||||||
INSERT INTO `transaction` VALUES (39, 'POd4RC6a', '127.0.0.1', '124', 'kafka 实战', '测试描述', '测试备注', 160, 1, '2019-04-23 00:19:58', NULL, 'cn.iocoder.mall.order.api.OrderService#updatePaySuccess', NULL, NULL, NULL, NULL, NULL, 4, '2019-04-22 22:19:58', '2019-04-27 01:37:59');
|
|
||||||
INSERT INTO `transaction` VALUES (40, 'POd4RC6a', '127.0.0.1', '125', 'kafka 实战', '测试描述', '测试备注', 160, 1, '2019-04-23 00:21:26', NULL, 'cn.iocoder.mall.order.api.OrderService#updatePaySuccess', NULL, NULL, NULL, NULL, NULL, 4, '2019-04-22 22:21:26', '2019-04-27 01:37:59');
|
|
||||||
INSERT INTO `transaction` VALUES (41, 'POd4RC6a', '127.0.0.1', '126', 'kafka 实战', '测试描述', '测试备注', 160, 1, '2019-04-23 00:27:03', NULL, 'cn.iocoder.mall.order.api.OrderService#updatePaySuccess', NULL, NULL, NULL, NULL, NULL, 4, '2019-04-22 22:27:03', '2019-04-27 01:37:59');
|
|
||||||
INSERT INTO `transaction` VALUES (42, 'POd4RC6a', '127.0.0.1', '127', 'kafka 实战', '测试描述', '测试备注', 10, 1, '2019-04-23 00:28:21', NULL, 'cn.iocoder.mall.order.api.OrderService#updatePaySuccess', NULL, NULL, NULL, NULL, NULL, 4, '2019-04-22 22:28:21', '2019-04-27 01:37:59');
|
|
||||||
INSERT INTO `transaction` VALUES (43, 'POd4RC6a', '127.0.0.1', '128', 'kafka 实战', '测试描述', '测试备注', 10, 1, '2019-04-23 00:29:16', NULL, 'cn.iocoder.mall.order.api.OrderService#updatePaySuccess', NULL, NULL, NULL, NULL, NULL, 4, '2019-04-22 22:29:16', '2019-04-27 01:37:59');
|
|
||||||
INSERT INTO `transaction` VALUES (44, 'POd4RC6a', '127.0.0.1', '129', 'kafka 实战', '测试描述', '测试备注', 10, 1, '2019-04-23 00:37:18', NULL, 'cn.iocoder.mall.order.api.OrderService#updatePaySuccess', NULL, NULL, NULL, NULL, NULL, 4, '2019-04-22 22:37:19', '2019-04-27 01:37:59');
|
|
||||||
INSERT INTO `transaction` VALUES (45, 'POd4RC6a', '127.0.0.1', '130', 'kafka 实战', '测试描述', '测试备注', 10, 2, '2019-04-23 00:37:23', '2019-04-22 22:37:27', 'cn.iocoder.mall.order.api.OrderService#updatePaySuccess', 68, 9999, '2019-04-22 22:37:25', '2019-04-22 22:37:26', '1257829370201904225516383887', 4, '2019-04-22 22:37:23', '2019-04-27 01:37:59');
|
|
||||||
INSERT INTO `transaction` VALUES (46, 'POd4RC6a', '124.77.208.137', '131', 'kafka 实战', '测试描述', '测试备注', 10, 2, '2019-04-23 02:22:22', '2019-04-23 00:22:28', 'cn.iocoder.mall.order.api.OrderService#updatePaySuccess', 69, 9999, '2019-04-23 00:22:27', '2019-04-23 00:22:27', '1295079419201904238932409449', 4, '2019-04-23 00:22:22', '2019-04-27 01:37:59');
|
|
||||||
INSERT INTO `transaction` VALUES (47, 'POd4RC6a', '114.87.158.59', '132', 'kafka 实战', '测试描述', '测试备注', 10, 2, '2019-04-23 12:03:50', '2019-04-23 10:03:55', 'cn.iocoder.mall.order.api.OrderService#updatePaySuccess', 70, 9999, '2019-04-23 10:03:53', '2019-04-23 10:03:54', '1244341374201904238178164740', 4, '2019-04-23 10:03:50', '2019-04-27 01:37:59');
|
|
||||||
INSERT INTO `transaction` VALUES (48, 'POd4RC6a', '127.0.0.1', '133', 'Kafka 书籍汇总', '测试描述', '测试备注', 10000, 2, '2019-04-27 02:02:20', NULL, 'cn.iocoder.mall.order.api.OrderService#updatePaySuccess', 77, 9999, '2019-04-27 00:39:25', '2019-04-27 00:39:26', '1298384458201904270239520896', 4, '2019-04-27 00:02:20', '2019-04-27 01:37:59');
|
|
||||||
INSERT INTO `transaction` VALUES (49, 'POd4RC6a', '127.0.0.1', '134', 'Kafka 书籍汇总', '测试描述', '测试备注', 10000, 2, '2019-04-27 02:43:06', NULL, 'cn.iocoder.mall.order.api.OrderService#updatePaySuccess', 78, 9999, '2019-04-27 00:43:09', '2019-04-27 00:43:10', '1230418317201904273841336004', 4, '2019-04-27 00:43:06', '2019-04-27 01:37:59');
|
|
||||||
INSERT INTO `transaction` VALUES (50, 'POd4RC6a', '127.0.0.1', '135', 'Kafka 书籍汇总', '测试描述', '测试备注', 10000, 2, '2019-04-27 02:44:09', '2019-04-27 00:44:12', 'cn.iocoder.mall.order.api.OrderService#updatePaySuccess', 79, 9999, '2019-04-27 00:44:11', '2019-04-27 00:44:12', '1267784917201904270679599868', 4, '2019-04-27 00:44:09', '2019-04-27 01:37:59');
|
|
||||||
COMMIT;
|
|
||||||
|
|
||||||
-- ----------------------------
|
-- ----------------------------
|
||||||
-- Table structure for transaction_extension
|
-- Table structure for transaction_extension
|
||||||
@ -228,93 +136,25 @@ CREATE TABLE `transaction_extension` (
|
|||||||
`status` tinyint(4) NOT NULL COMMENT '状态',
|
`status` tinyint(4) NOT NULL COMMENT '状态',
|
||||||
`create_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
|
`create_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
|
||||||
`update_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '最后更新时间',
|
`update_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '最后更新时间',
|
||||||
PRIMARY KEY (`id`),
|
PRIMARY KEY (`id`) USING BTREE,
|
||||||
KEY `idx_transaction_code` (`transaction_code`) USING BTREE
|
KEY `idx_transaction_code` (`transaction_code`) USING BTREE
|
||||||
) ENGINE=InnoDB AUTO_INCREMENT=80 DEFAULT CHARSET=utf8mb4 COMMENT='transaction_extension';
|
) ENGINE=InnoDB AUTO_INCREMENT=107 DEFAULT CHARSET=utf8mb4 COMMENT='transaction_extension';
|
||||||
|
|
||||||
-- ----------------------------
|
-- ----------------------------
|
||||||
-- Records of transaction_extension
|
-- Table structure for undo_log
|
||||||
-- ----------------------------
|
-- ----------------------------
|
||||||
BEGIN;
|
DROP TABLE IF EXISTS `undo_log`;
|
||||||
INSERT INTO `transaction_extension` VALUES (1, 1, 9999, '20190313143449394595', NULL, '127.0.0.1', 1, '2019-03-13 14:34:49', '2019-03-13 14:34:49');
|
CREATE TABLE `undo_log` (
|
||||||
INSERT INTO `transaction_extension` VALUES (2, 1, 9999, '20190313143626850384', NULL, '127.0.0.1', 1, '2019-03-13 14:36:26', '2019-03-13 14:36:26');
|
`id` bigint(20) NOT NULL AUTO_INCREMENT,
|
||||||
INSERT INTO `transaction_extension` VALUES (3, 1, 9999, '20190313143709988585', NULL, '127.0.0.1', 1, '2019-03-13 14:37:09', '2019-03-13 14:37:09');
|
`branch_id` bigint(20) NOT NULL,
|
||||||
INSERT INTO `transaction_extension` VALUES (4, 1, 9999, '20190313170637270597', NULL, '127.0.0.1', 1, '2019-03-13 17:06:37', '2019-03-13 17:06:37');
|
`xid` varchar(100) NOT NULL,
|
||||||
INSERT INTO `transaction_extension` VALUES (5, 1, 9999, '20190313171109616337', NULL, '127.0.0.1', 1, '2019-03-13 17:11:09', '2019-03-13 17:11:09');
|
`rollback_info` longblob NOT NULL,
|
||||||
INSERT INTO `transaction_extension` VALUES (6, 1, 9999, '20190313171241800588', NULL, '127.0.0.1', 1, '2019-03-13 17:12:41', '2019-03-13 17:12:41');
|
`log_status` int(11) NOT NULL,
|
||||||
INSERT INTO `transaction_extension` VALUES (7, 1, 9999, '20190313171503236852', NULL, '127.0.0.1', 1, '2019-03-13 17:15:03', '2019-03-13 17:15:03');
|
`log_created` datetime NOT NULL,
|
||||||
INSERT INTO `transaction_extension` VALUES (8, 1, 9999, '20190313171700279790', NULL, '127.0.0.1', 1, '2019-03-13 17:17:00', '2019-03-13 17:17:00');
|
`log_modified` datetime NOT NULL,
|
||||||
INSERT INTO `transaction_extension` VALUES (9, 1, 9999, '20190313171824113222', NULL, '127.0.0.1', 1, '2019-03-13 17:18:24', '2019-03-13 17:18:24');
|
`ext` varchar(100) DEFAULT NULL,
|
||||||
INSERT INTO `transaction_extension` VALUES (10, 1, 9999, '20190313171953205276', NULL, '127.0.0.1', 1, '2019-03-13 17:19:53', '2019-03-13 17:19:53');
|
PRIMARY KEY (`id`),
|
||||||
INSERT INTO `transaction_extension` VALUES (11, 1, 9999, '20190313172111877048', NULL, '127.0.0.1', 1, '2019-03-13 17:21:11', '2019-03-13 17:21:11');
|
UNIQUE KEY `ux_undo_log` (`xid`,`branch_id`)
|
||||||
INSERT INTO `transaction_extension` VALUES (12, 1, 9999, '20190313172339490890', '{\"id\":\"evt_400190313172341499184603\",\"created\":1552469021,\"livemode\":false,\"type\":\"charge.succeeded\",\"data\":{\"object\":{\"id\":\"ch_OunLWDSKS8KO5ezfb1i9uLSC\",\"object\":\"charge\",\"created\":1552469020,\"livemode\":false,\"paid\":true,\"refunded\":false,\"reversed\":false,\"app\":\"app_aTyfXDjrvzDSbLuz\",\"channel\":\"wx_pub\",\"order_no\":\"20190313172339490890\",\"client_ip\":\"127.0.0.1\",\"amount\":10,\"amount_settle\":10,\"currency\":\"cny\",\"subject\":\"商品名\",\"body\":\"商品描述\",\"extra\":{\"open_id\":\"just_for_test\",\"bank_type\":\"your bank type\"},\"time_paid\":1552469021,\"time_expire\":1552476220,\"time_settle\":null,\"transaction_no\":\"1259319182201903139181631168\",\"refunds\":{\"object\":\"list\",\"url\":\"/v1/charges/ch_OunLWDSKS8KO5ezfb1i9uLSC/refunds\",\"has_more\":false,\"data\":[]},\"amount_refunded\":0,\"failure_code\":null,\"failure_msg\":null,\"metadata\":{},\"credential\":{},\"description\":\"商品备注\"}},\"object\":\"event\",\"request\":\"iar_4WLiHCajnjbTrXbb1OXnjnPG\",\"pending_webhooks\":0}', '127.0.0.1', 2, '2019-03-13 17:23:39', '2019-03-13 17:23:41');
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
||||||
INSERT INTO `transaction_extension` VALUES (13, 1, 9999, '20190313172431242571', NULL, '127.0.0.1', 1, '2019-03-13 17:24:31', '2019-03-13 17:24:31');
|
|
||||||
INSERT INTO `transaction_extension` VALUES (14, 1, 9999, '20190313172707704111', NULL, '127.0.0.1', 1, '2019-03-13 17:27:07', '2019-03-13 17:27:07');
|
|
||||||
INSERT INTO `transaction_extension` VALUES (15, 1, 9999, '20190313173019968025', '{\"id\":\"evt_400190313173021499408903\",\"created\":1552469421,\"livemode\":false,\"type\":\"charge.succeeded\",\"data\":{\"object\":{\"id\":\"ch_GmT4W94uvPOO4q9ibDa1Sm5O\",\"object\":\"charge\",\"created\":1552469419,\"livemode\":false,\"paid\":true,\"refunded\":false,\"reversed\":false,\"app\":\"app_aTyfXDjrvzDSbLuz\",\"channel\":\"wx_pub\",\"order_no\":\"20190313173019968025\",\"client_ip\":\"127.0.0.1\",\"amount\":10,\"amount_settle\":10,\"currency\":\"cny\",\"subject\":\"商品名\",\"body\":\"商品描述\",\"extra\":{\"open_id\":\"just_for_test\",\"bank_type\":\"your bank type\"},\"time_paid\":1552469421,\"time_expire\":1552476619,\"time_settle\":null,\"transaction_no\":\"1285076745201903130468978518\",\"refunds\":{\"object\":\"list\",\"url\":\"/v1/charges/ch_GmT4W94uvPOO4q9ibDa1Sm5O/refunds\",\"has_more\":false,\"data\":[]},\"amount_refunded\":0,\"failure_code\":null,\"failure_msg\":null,\"metadata\":{},\"credential\":{},\"description\":\"商品备注\"}},\"object\":\"event\",\"request\":\"iar_vfHyL0r58yvPrH0e9C084GGO\",\"pending_webhooks\":0}', '127.0.0.1', 2, '2019-03-13 17:30:19', '2019-03-13 17:30:21');
|
|
||||||
INSERT INTO `transaction_extension` VALUES (16, 2, 9999, '20190314160852733791', NULL, '127.0.0.1', 1, '2019-03-14 16:08:52', '2019-03-14 16:08:52');
|
|
||||||
INSERT INTO `transaction_extension` VALUES (17, 2, 9999, '20190314161024311302', NULL, '127.0.0.1', 1, '2019-03-14 16:10:24', '2019-03-14 16:10:24');
|
|
||||||
INSERT INTO `transaction_extension` VALUES (18, 2, 9999, '20190314161232723387', NULL, '127.0.0.1', 1, '2019-03-14 16:12:32', '2019-03-14 16:12:32');
|
|
||||||
INSERT INTO `transaction_extension` VALUES (19, 2, 9999, '20190314161232883479', NULL, '127.0.0.1', 1, '2019-03-14 16:12:32', '2019-03-14 16:12:32');
|
|
||||||
INSERT INTO `transaction_extension` VALUES (20, 2, 9999, '20190314161232705499', NULL, '127.0.0.1', 1, '2019-03-14 16:12:32', '2019-03-14 16:12:32');
|
|
||||||
INSERT INTO `transaction_extension` VALUES (21, 2, 9999, '20190314161232832483', NULL, '127.0.0.1', 1, '2019-03-14 16:12:32', '2019-03-14 16:12:32');
|
|
||||||
INSERT INTO `transaction_extension` VALUES (22, 2, 9999, '20190314161353474808', '{\"id\":\"evt_400190314161358532476503\",\"created\":1552551238,\"livemode\":false,\"type\":\"charge.succeeded\",\"data\":{\"object\":{\"id\":\"ch_GK8Cm5vj1m1OK0evD4DKWbzL\",\"object\":\"charge\",\"created\":1552551233,\"livemode\":false,\"paid\":true,\"refunded\":false,\"reversed\":false,\"app\":\"app_aTyfXDjrvzDSbLuz\",\"channel\":\"wx_pub\",\"order_no\":\"20190314161353474808\",\"client_ip\":\"127.0.0.1\",\"amount\":10,\"amount_settle\":10,\"currency\":\"cny\",\"subject\":\"商品名\",\"body\":\"商品描述\",\"extra\":{\"open_id\":\"just_for_test\",\"bank_type\":\"your bank type\"},\"time_paid\":1552551238,\"time_expire\":1552558433,\"time_settle\":null,\"transaction_no\":\"1282396661201903145620538794\",\"refunds\":{\"object\":\"list\",\"url\":\"/v1/charges/ch_GK8Cm5vj1m1OK0evD4DKWbzL/refunds\",\"has_more\":false,\"data\":[]},\"amount_refunded\":0,\"failure_code\":null,\"failure_msg\":null,\"metadata\":{},\"credential\":{},\"description\":\"商品备注\"}},\"object\":\"event\",\"request\":\"iar_jvbj5KSS4Sy1KmzHGGOaPe5S\",\"pending_webhooks\":0}', '127.0.0.1', 2, '2019-03-14 16:13:53', '2019-03-14 16:13:58');
|
|
||||||
INSERT INTO `transaction_extension` VALUES (23, 3, 9999, '20190421014711249244', NULL, '127.0.0.1', 1, '2019-04-21 01:47:11', '2019-04-21 01:47:11');
|
|
||||||
INSERT INTO `transaction_extension` VALUES (24, 3, 9999, '20190421014735167627', NULL, '127.0.0.1', 1, '2019-04-21 01:47:35', '2019-04-21 01:47:35');
|
|
||||||
INSERT INTO `transaction_extension` VALUES (25, 3, 9999, '20190421014758838219', NULL, '127.0.0.1', 1, '2019-04-21 01:47:58', '2019-04-21 01:47:58');
|
|
||||||
INSERT INTO `transaction_extension` VALUES (26, 3, 9999, '20190421014819399499', NULL, '127.0.0.1', 1, '2019-04-21 01:48:19', '2019-04-21 01:48:19');
|
|
||||||
INSERT INTO `transaction_extension` VALUES (27, 3, 9999, '20190421015427658470', NULL, '127.0.0.1', 1, '2019-04-21 01:54:27', '2019-04-21 01:54:27');
|
|
||||||
INSERT INTO `transaction_extension` VALUES (28, 3, 9999, '20190421015436543822', NULL, '127.0.0.1', 1, '2019-04-21 01:54:37', '2019-04-21 01:54:37');
|
|
||||||
INSERT INTO `transaction_extension` VALUES (29, 3, 9999, '20190421015615102559', NULL, '127.0.0.1', 1, '2019-04-21 01:56:15', '2019-04-21 01:56:15');
|
|
||||||
INSERT INTO `transaction_extension` VALUES (30, 3, 9999, '20190421015623565992', NULL, '127.0.0.1', 1, '2019-04-21 01:56:23', '2019-04-21 01:56:23');
|
|
||||||
INSERT INTO `transaction_extension` VALUES (31, 3, 9999, '20190421015811819687', NULL, '127.0.0.1', 1, '2019-04-21 01:58:11', '2019-04-21 01:58:11');
|
|
||||||
INSERT INTO `transaction_extension` VALUES (32, 3, 9999, '20190421015910105184', NULL, '127.0.0.1', 1, '2019-04-21 01:59:10', '2019-04-21 01:59:10');
|
|
||||||
INSERT INTO `transaction_extension` VALUES (33, 3, 9999, '20190421015930928739', NULL, '127.0.0.1', 1, '2019-04-21 01:59:30', '2019-04-21 01:59:30');
|
|
||||||
INSERT INTO `transaction_extension` VALUES (34, 3, 9999, '20190421020334246354', NULL, '127.0.0.1', 1, '2019-04-21 02:03:34', '2019-04-21 02:03:34');
|
|
||||||
INSERT INTO `transaction_extension` VALUES (35, 3, 9999, '20190421021251245269', NULL, '127.0.0.1', 1, '2019-04-21 02:12:51', '2019-04-21 02:12:51');
|
|
||||||
INSERT INTO `transaction_extension` VALUES (36, 10, 9999, '20190421021728641632', NULL, '127.0.0.1', 1, '2019-04-21 02:17:28', '2019-04-21 02:17:28');
|
|
||||||
INSERT INTO `transaction_extension` VALUES (37, 11, 9999, '20190421142300962227', '{\"id\":\"evt_400190421142304143197602\",\"created\":1555827784,\"livemode\":false,\"type\":\"charge.succeeded\",\"data\":{\"object\":{\"id\":\"ch_4qTib5zrHePSWzPyv5mjTunT\",\"object\":\"charge\",\"created\":1555827780,\"livemode\":false,\"paid\":true,\"refunded\":false,\"reversed\":false,\"app\":\"app_aTyfXDjrvzDSbLuz\",\"channel\":\"wx_pub\",\"order_no\":\"20190421142300962227\",\"client_ip\":\"127.0.0.1\",\"amount\":160,\"amount_settle\":160,\"currency\":\"cny\",\"subject\":\"kafka 实战\",\"body\":\"测试描述\",\"extra\":{\"open_id\":\"just_for_test\",\"bank_type\":\"your bank type\"},\"time_paid\":1555827784,\"time_expire\":1555834980,\"time_settle\":null,\"transaction_no\":\"1214878818201904214744765608\",\"refunds\":{\"object\":\"list\",\"url\":\"/v1/charges/ch_4qTib5zrHePSWzPyv5mjTunT/refunds\",\"has_more\":false,\"data\":[]},\"amount_refunded\":0,\"failure_code\":null,\"failure_msg\":null,\"metadata\":{},\"credential\":{},\"description\":\"测试备注\"}},\"object\":\"event\",\"request\":\"iar_XX184OWrHuvLm1uT84KSm1a5\",\"pending_webhooks\":0}', '127.0.0.1', 2, '2019-04-21 14:23:00', '2019-04-21 14:23:11');
|
|
||||||
INSERT INTO `transaction_extension` VALUES (38, 12, 9999, '20190421150154263163', '{\"id\":\"evt_400190421150156144555702\",\"created\":1555830116,\"livemode\":false,\"type\":\"charge.succeeded\",\"data\":{\"object\":{\"id\":\"ch_0y9i9SGaHyX9u14mT0m9qb58\",\"object\":\"charge\",\"created\":1555830114,\"livemode\":false,\"paid\":true,\"refunded\":false,\"reversed\":false,\"app\":\"app_aTyfXDjrvzDSbLuz\",\"channel\":\"wx_pub\",\"order_no\":\"20190421150154263163\",\"client_ip\":\"127.0.0.1\",\"amount\":160,\"amount_settle\":160,\"currency\":\"cny\",\"subject\":\"kafka 实战\",\"body\":\"测试描述\",\"extra\":{\"open_id\":\"just_for_test\",\"bank_type\":\"your bank type\"},\"time_paid\":1555830116,\"time_expire\":1555837314,\"time_settle\":null,\"transaction_no\":\"1242451315201904216613366351\",\"refunds\":{\"object\":\"list\",\"url\":\"/v1/charges/ch_0y9i9SGaHyX9u14mT0m9qb58/refunds\",\"has_more\":false,\"data\":[]},\"amount_refunded\":0,\"failure_code\":null,\"failure_msg\":null,\"metadata\":{},\"credential\":{},\"description\":\"测试备注\"}},\"object\":\"event\",\"request\":\"iar_m5ifTOGCWjzTP8mbn5WvfzfD\",\"pending_webhooks\":0}', '127.0.0.1', 2, '2019-04-21 15:01:54', '2019-04-21 15:01:57');
|
|
||||||
INSERT INTO `transaction_extension` VALUES (39, 13, 9999, '20190421150525625103', '{\"id\":\"evt_400190421150527957166903\",\"created\":1555830327,\"livemode\":false,\"type\":\"charge.succeeded\",\"data\":{\"object\":{\"id\":\"ch_ePGqLSWLCqjHS8GKuPan1Gi9\",\"object\":\"charge\",\"created\":1555830326,\"livemode\":false,\"paid\":true,\"refunded\":false,\"reversed\":false,\"app\":\"app_aTyfXDjrvzDSbLuz\",\"channel\":\"wx_pub\",\"order_no\":\"20190421150525625103\",\"client_ip\":\"127.0.0.1\",\"amount\":160,\"amount_settle\":160,\"currency\":\"cny\",\"subject\":\"kafka 实战\",\"body\":\"测试描述\",\"extra\":{\"open_id\":\"just_for_test\",\"bank_type\":\"your bank type\"},\"time_paid\":1555830327,\"time_expire\":1555837526,\"time_settle\":null,\"transaction_no\":\"1232163188201904219935216641\",\"refunds\":{\"object\":\"list\",\"url\":\"/v1/charges/ch_ePGqLSWLCqjHS8GKuPan1Gi9/refunds\",\"has_more\":false,\"data\":[]},\"amount_refunded\":0,\"failure_code\":null,\"failure_msg\":null,\"metadata\":{},\"credential\":{},\"description\":\"测试备注\"}},\"object\":\"event\",\"request\":\"iar_TOmXv11yznr9X1q9SSvbvrH4\",\"pending_webhooks\":0}', '127.0.0.1', 2, '2019-04-21 15:05:25', '2019-04-21 15:05:28');
|
|
||||||
INSERT INTO `transaction_extension` VALUES (40, 18, 9999, '20190421151112297666', '{\"id\":\"evt_400190421151113957401603\",\"created\":1555830673,\"livemode\":false,\"type\":\"charge.succeeded\",\"data\":{\"object\":{\"id\":\"ch_KCWL84nffXX5yjTK48eXD8a1\",\"object\":\"charge\",\"created\":1555830672,\"livemode\":false,\"paid\":true,\"refunded\":false,\"reversed\":false,\"app\":\"app_aTyfXDjrvzDSbLuz\",\"channel\":\"wx_pub\",\"order_no\":\"20190421151112297666\",\"client_ip\":\"127.0.0.1\",\"amount\":100,\"amount_settle\":100,\"currency\":\"cny\",\"subject\":\"测试商品\",\"body\":\"测试描述\",\"extra\":{\"open_id\":\"just_for_test\",\"bank_type\":\"your bank type\"},\"time_paid\":1555830673,\"time_expire\":1555837872,\"time_settle\":null,\"transaction_no\":\"1262352890201904219469841110\",\"refunds\":{\"object\":\"list\",\"url\":\"/v1/charges/ch_KCWL84nffXX5yjTK48eXD8a1/refunds\",\"has_more\":false,\"data\":[]},\"amount_refunded\":0,\"failure_code\":null,\"failure_msg\":null,\"metadata\":{},\"credential\":{},\"description\":\"测试备注\"}},\"object\":\"event\",\"request\":\"iar_COirb1GefXvTD40aH0ufDGi9\",\"pending_webhooks\":0}', '127.0.0.1', 2, '2019-04-21 15:11:12', '2019-04-21 15:11:14');
|
|
||||||
INSERT INTO `transaction_extension` VALUES (41, 19, 9999, '20190421151421784758', '{\"id\":\"evt_400190421151423144979702\",\"created\":1555830862,\"livemode\":false,\"type\":\"charge.succeeded\",\"data\":{\"object\":{\"id\":\"ch_Tqj9uT1mHm144CyvH8rP4y90\",\"object\":\"charge\",\"created\":1555830861,\"livemode\":false,\"paid\":true,\"refunded\":false,\"reversed\":false,\"app\":\"app_aTyfXDjrvzDSbLuz\",\"channel\":\"wx_pub\",\"order_no\":\"20190421151421784758\",\"client_ip\":\"127.0.0.1\",\"amount\":100,\"amount_settle\":100,\"currency\":\"cny\",\"subject\":\"测试商品\",\"body\":\"测试描述\",\"extra\":{\"open_id\":\"just_for_test\",\"bank_type\":\"your bank type\"},\"time_paid\":1555830862,\"time_expire\":1555838061,\"time_settle\":null,\"transaction_no\":\"1248585474201904212137778537\",\"refunds\":{\"object\":\"list\",\"url\":\"/v1/charges/ch_Tqj9uT1mHm144CyvH8rP4y90/refunds\",\"has_more\":false,\"data\":[]},\"amount_refunded\":0,\"failure_code\":null,\"failure_msg\":null,\"metadata\":{},\"credential\":{},\"description\":\"测试备注\"}},\"object\":\"event\",\"request\":\"iar_DOefD0inTiz5bbnvv11i1O04\",\"pending_webhooks\":0}', '127.0.0.1', 2, '2019-04-21 15:14:21', '2019-04-21 15:14:23');
|
|
||||||
INSERT INTO `transaction_extension` VALUES (42, 20, 9999, '20190421151923205372', '{\"id\":\"evt_400190421151924957716203\",\"created\":1555831164,\"livemode\":false,\"type\":\"charge.succeeded\",\"data\":{\"object\":{\"id\":\"ch_HOuvfD4SCCCCzfHOuHzPqbrP\",\"object\":\"charge\",\"created\":1555831163,\"livemode\":false,\"paid\":true,\"refunded\":false,\"reversed\":false,\"app\":\"app_aTyfXDjrvzDSbLuz\",\"channel\":\"wx_pub\",\"order_no\":\"20190421151923205372\",\"client_ip\":\"127.0.0.1\",\"amount\":100,\"amount_settle\":100,\"currency\":\"cny\",\"subject\":\"测试商品\",\"body\":\"测试描述\",\"extra\":{\"open_id\":\"just_for_test\",\"bank_type\":\"your bank type\"},\"time_paid\":1555831164,\"time_expire\":1555838363,\"time_settle\":null,\"transaction_no\":\"1214125122201904212507946245\",\"refunds\":{\"object\":\"list\",\"url\":\"/v1/charges/ch_HOuvfD4SCCCCzfHOuHzPqbrP/refunds\",\"has_more\":false,\"data\":[]},\"amount_refunded\":0,\"failure_code\":null,\"failure_msg\":null,\"metadata\":{},\"credential\":{},\"description\":\"测试备注\"}},\"object\":\"event\",\"request\":\"iar_mr1G4Gy1ubbDDGWPGOibXTO8\",\"pending_webhooks\":0}', '127.0.0.1', 2, '2019-04-21 15:19:23', '2019-04-21 15:19:25');
|
|
||||||
INSERT INTO `transaction_extension` VALUES (43, 21, 9999, '20190421185933879667', NULL, '124.77.208.137', 1, '2019-04-21 18:59:33', '2019-04-21 18:59:33');
|
|
||||||
INSERT INTO `transaction_extension` VALUES (44, 21, 9999, '20190421190040275638', NULL, '124.77.208.137', 1, '2019-04-21 19:00:40', '2019-04-21 19:00:40');
|
|
||||||
INSERT INTO `transaction_extension` VALUES (45, 21, 9999, '20190421190049129322', NULL, '124.77.208.137', 1, '2019-04-21 19:00:49', '2019-04-21 19:00:49');
|
|
||||||
INSERT INTO `transaction_extension` VALUES (46, 21, 9999, '20190421190148386359', NULL, '124.77.208.137', 1, '2019-04-21 19:01:48', '2019-04-21 19:01:48');
|
|
||||||
INSERT INTO `transaction_extension` VALUES (47, 21, 9999, '20190421190156394078', NULL, '124.77.208.137', 1, '2019-04-21 19:01:56', '2019-04-21 19:01:56');
|
|
||||||
INSERT INTO `transaction_extension` VALUES (48, 21, 9999, '20190421190202674025', NULL, '124.77.208.137', 1, '2019-04-21 19:02:02', '2019-04-21 19:02:02');
|
|
||||||
INSERT INTO `transaction_extension` VALUES (49, 21, 9999, '20190421190325916992', NULL, '124.77.208.137', 1, '2019-04-21 19:03:25', '2019-04-21 19:03:25');
|
|
||||||
INSERT INTO `transaction_extension` VALUES (50, 22, 9999, '20190421190820811877', NULL, '124.77.208.137', 1, '2019-04-21 19:08:20', '2019-04-21 19:08:20');
|
|
||||||
INSERT INTO `transaction_extension` VALUES (51, 23, 9999, '20190421192223484940', NULL, '124.77.208.137', 1, '2019-04-21 19:22:23', '2019-04-21 19:22:23');
|
|
||||||
INSERT INTO `transaction_extension` VALUES (52, 24, 9999, '20190421195724705545', NULL, '124.77.208.137', 1, '2019-04-21 19:57:24', '2019-04-21 19:57:24');
|
|
||||||
INSERT INTO `transaction_extension` VALUES (53, 24, 9999, '20190421200329944775', NULL, '124.77.208.137', 1, '2019-04-21 20:03:29', '2019-04-21 20:03:29');
|
|
||||||
INSERT INTO `transaction_extension` VALUES (54, 25, 9999, '20190421201713787629', '{\"id\":\"evt_400190421201715971291603\",\"created\":1555849035,\"livemode\":false,\"type\":\"charge.succeeded\",\"data\":{\"object\":{\"id\":\"ch_90Smv5KaXXHGyDynDOzDe9eD\",\"object\":\"charge\",\"created\":1555849034,\"livemode\":false,\"paid\":true,\"refunded\":false,\"reversed\":false,\"app\":\"app_aTyfXDjrvzDSbLuz\",\"channel\":\"wx_pub\",\"order_no\":\"20190421201713787629\",\"client_ip\":\"127.0.0.1\",\"amount\":100,\"amount_settle\":100,\"currency\":\"cny\",\"subject\":\"测试商品\",\"body\":\"测试描述\",\"extra\":{\"open_id\":\"just_for_test\",\"bank_type\":\"your bank type\"},\"time_paid\":1555849035,\"time_expire\":1555856234,\"time_settle\":null,\"transaction_no\":\"1263683564201904219993710538\",\"refunds\":{\"object\":\"list\",\"url\":\"/v1/charges/ch_90Smv5KaXXHGyDynDOzDe9eD/refunds\",\"has_more\":false,\"data\":[]},\"amount_refunded\":0,\"failure_code\":null,\"failure_msg\":null,\"metadata\":{},\"credential\":{},\"description\":\"测试备注\"}},\"object\":\"event\",\"request\":\"iar_LCS8uDPajzP8v94yfDKurfvP\",\"pending_webhooks\":0}', '127.0.0.1', 2, '2019-04-21 20:17:13', '2019-04-21 20:17:19');
|
|
||||||
INSERT INTO `transaction_extension` VALUES (55, 24, 9999, '20190421201835497879', NULL, '124.77.208.137', 1, '2019-04-21 20:18:35', '2019-04-21 20:18:35');
|
|
||||||
INSERT INTO `transaction_extension` VALUES (56, 24, 9999, '20190421202220830224', NULL, '124.77.208.137', 1, '2019-04-21 20:22:20', '2019-04-21 20:22:20');
|
|
||||||
INSERT INTO `transaction_extension` VALUES (57, 26, 9999, '20190421202410194081', NULL, '124.77.208.137', 1, '2019-04-21 20:24:10', '2019-04-21 20:24:10');
|
|
||||||
INSERT INTO `transaction_extension` VALUES (58, 27, 9999, '20190421203748920380', NULL, '124.77.208.137', 1, '2019-04-21 20:37:48', '2019-04-21 20:37:48');
|
|
||||||
INSERT INTO `transaction_extension` VALUES (59, 28, 9999, '20190421205144641928', NULL, '124.77.208.137', 1, '2019-04-21 20:51:44', '2019-04-21 20:51:44');
|
|
||||||
INSERT INTO `transaction_extension` VALUES (60, 29, 9999, '20190421223828915607', '{\"id\":\"evt_400190421223832162174102\",\"created\":1555857512,\"livemode\":false,\"type\":\"charge.succeeded\",\"data\":{\"object\":{\"id\":\"ch_1innTSWL88C4Lybvj5qDWn5G\",\"object\":\"charge\",\"created\":1555857510,\"livemode\":false,\"paid\":true,\"refunded\":false,\"reversed\":false,\"app\":\"app_aTyfXDjrvzDSbLuz\",\"channel\":\"wx_pub\",\"order_no\":\"20190421223828915607\",\"client_ip\":\"124.77.208.137\",\"amount\":1000,\"amount_settle\":1000,\"currency\":\"cny\",\"subject\":\"农夫山泉\",\"body\":\"测试描述\",\"extra\":{\"open_id\":\"just_for_test\",\"bank_type\":\"your bank type\"},\"time_paid\":1555857512,\"time_expire\":1555864710,\"time_settle\":null,\"transaction_no\":\"1290815313201904211598433725\",\"refunds\":{\"object\":\"list\",\"url\":\"/v1/charges/ch_1innTSWL88C4Lybvj5qDWn5G/refunds\",\"has_more\":false,\"data\":[]},\"amount_refunded\":0,\"failure_code\":null,\"failure_msg\":null,\"metadata\":{},\"credential\":{},\"description\":\"测试备注\"}},\"object\":\"event\",\"request\":\"iar_Cy5eXDK8SqDOn9Siv1n5Cm5K\",\"pending_webhooks\":0}', '124.77.208.137', 2, '2019-04-21 22:38:28', '2019-04-21 22:38:32');
|
|
||||||
INSERT INTO `transaction_extension` VALUES (61, 27, 9999, '20190422193220947110', NULL, '180.167.213.26', 1, '2019-04-22 19:32:20', '2019-04-22 19:32:20');
|
|
||||||
INSERT INTO `transaction_extension` VALUES (62, 27, 9999, '20190422193220963179', NULL, '180.167.213.26', 1, '2019-04-22 19:32:20', '2019-04-22 19:32:20');
|
|
||||||
INSERT INTO `transaction_extension` VALUES (63, 27, 9999, '20190422193228831286', '{\"id\":\"evt_400190422193230188658202\",\"created\":1555932750,\"livemode\":false,\"type\":\"charge.succeeded\",\"data\":{\"object\":{\"id\":\"ch_88KOiLK0SCKC9yjDyHbXTGi9\",\"object\":\"charge\",\"created\":1555932748,\"livemode\":false,\"paid\":true,\"refunded\":false,\"reversed\":false,\"app\":\"app_aTyfXDjrvzDSbLuz\",\"channel\":\"wx_pub\",\"order_no\":\"20190422193228831286\",\"client_ip\":\"180.167.213.26\",\"amount\":1000,\"amount_settle\":1000,\"currency\":\"cny\",\"subject\":\"农夫山泉\",\"body\":\"测试描述\",\"extra\":{\"open_id\":\"just_for_test\",\"bank_type\":\"your bank type\"},\"time_paid\":1555932750,\"time_expire\":1555939948,\"time_settle\":null,\"transaction_no\":\"1244224811201904228521103170\",\"refunds\":{\"object\":\"list\",\"url\":\"/v1/charges/ch_88KOiLK0SCKC9yjDyHbXTGi9/refunds\",\"has_more\":false,\"data\":[]},\"amount_refunded\":0,\"failure_code\":null,\"failure_msg\":null,\"metadata\":{},\"credential\":{},\"description\":\"测试备注\"}},\"object\":\"event\",\"request\":\"iar_OivrT0mDC0S0ebH084WfDurH\",\"pending_webhooks\":0}', '180.167.213.26', 2, '2019-04-22 19:32:28', '2019-04-22 19:32:30');
|
|
||||||
INSERT INTO `transaction_extension` VALUES (64, 28, 9999, '20190422193555407790', '{\"id\":\"evt_400190422193557007553903\",\"created\":1555932957,\"livemode\":false,\"type\":\"charge.succeeded\",\"data\":{\"object\":{\"id\":\"ch_bnHaj9OCCmHO0COi10PC84yH\",\"object\":\"charge\",\"created\":1555932956,\"livemode\":false,\"paid\":true,\"refunded\":false,\"reversed\":false,\"app\":\"app_aTyfXDjrvzDSbLuz\",\"channel\":\"wx_pub\",\"order_no\":\"20190422193555407790\",\"client_ip\":\"180.167.213.26\",\"amount\":1000,\"amount_settle\":1000,\"currency\":\"cny\",\"subject\":\"农夫山泉\",\"body\":\"测试描述\",\"extra\":{\"open_id\":\"just_for_test\",\"bank_type\":\"your bank type\"},\"time_paid\":1555932957,\"time_expire\":1555940156,\"time_settle\":null,\"transaction_no\":\"1213285149201904222299145413\",\"refunds\":{\"object\":\"list\",\"url\":\"/v1/charges/ch_bnHaj9OCCmHO0COi10PC84yH/refunds\",\"has_more\":false,\"data\":[]},\"amount_refunded\":0,\"failure_code\":null,\"failure_msg\":null,\"metadata\":{},\"credential\":{},\"description\":\"测试备注\"}},\"object\":\"event\",\"request\":\"iar_DmDWfDTKm5G48S4e1CzrLCqL\",\"pending_webhooks\":0}', '180.167.213.26', 2, '2019-04-22 19:35:55', '2019-04-22 19:35:57');
|
|
||||||
INSERT INTO `transaction_extension` VALUES (65, 30, 9999, '20190422193613519208', '{\"id\":\"evt_400190422193615007567003\",\"created\":1555932975,\"livemode\":false,\"type\":\"charge.succeeded\",\"data\":{\"object\":{\"id\":\"ch_Wr5ibDPO8CSCyv58OKzvz5SS\",\"object\":\"charge\",\"created\":1555932973,\"livemode\":false,\"paid\":true,\"refunded\":false,\"reversed\":false,\"app\":\"app_aTyfXDjrvzDSbLuz\",\"channel\":\"wx_pub\",\"order_no\":\"20190422193613519208\",\"client_ip\":\"180.167.213.26\",\"amount\":160,\"amount_settle\":160,\"currency\":\"cny\",\"subject\":\"kafka 实战\",\"body\":\"测试描述\",\"extra\":{\"open_id\":\"just_for_test\",\"bank_type\":\"your bank type\"},\"time_paid\":1555932975,\"time_expire\":1555940173,\"time_settle\":null,\"transaction_no\":\"1245834775201904220995332009\",\"refunds\":{\"object\":\"list\",\"url\":\"/v1/charges/ch_Wr5ibDPO8CSCyv58OKzvz5SS/refunds\",\"has_more\":false,\"data\":[]},\"amount_refunded\":0,\"failure_code\":null,\"failure_msg\":null,\"metadata\":{},\"credential\":{},\"description\":\"测试备注\"}},\"object\":\"event\",\"request\":\"iar_f5efrHa948CSrXnfHSSe5aDC\",\"pending_webhooks\":0}', '180.167.213.26', 2, '2019-04-22 19:36:13', '2019-04-22 19:36:15');
|
|
||||||
INSERT INTO `transaction_extension` VALUES (66, 38, 9999, '20190422205144153198', '{\"id\":\"evt_400190422205145191862702\",\"created\":1555937505,\"livemode\":false,\"type\":\"charge.succeeded\",\"data\":{\"object\":{\"id\":\"ch_94GyH4ePiTKOurLmzPjvHyfD\",\"object\":\"charge\",\"created\":1555937504,\"livemode\":false,\"paid\":true,\"refunded\":false,\"reversed\":false,\"app\":\"app_aTyfXDjrvzDSbLuz\",\"channel\":\"wx_pub\",\"order_no\":\"20190422205144153198\",\"client_ip\":\"114.87.158.59\",\"amount\":160,\"amount_settle\":160,\"currency\":\"cny\",\"subject\":\"kafka 实战\",\"body\":\"测试描述\",\"extra\":{\"open_id\":\"just_for_test\",\"bank_type\":\"your bank type\"},\"time_paid\":1555937505,\"time_expire\":1555944704,\"time_settle\":null,\"transaction_no\":\"1209794355201904229853980782\",\"refunds\":{\"object\":\"list\",\"url\":\"/v1/charges/ch_94GyH4ePiTKOurLmzPjvHyfD/refunds\",\"has_more\":false,\"data\":[]},\"amount_refunded\":0,\"failure_code\":null,\"failure_msg\":null,\"metadata\":{},\"credential\":{},\"description\":\"测试备注\"}},\"object\":\"event\",\"request\":\"iar_ujPebL4uXzfDDKyvP8OinDaD\",\"pending_webhooks\":0}', '114.87.158.59', 2, '2019-04-22 20:51:44', '2019-04-22 20:51:46');
|
|
||||||
INSERT INTO `transaction_extension` VALUES (67, 43, 9999, '20190422222919577859', NULL, '127.0.0.1', 1, '2019-04-22 22:29:19', '2019-04-22 22:29:19');
|
|
||||||
INSERT INTO `transaction_extension` VALUES (68, 45, 9999, '20190422223724521213', '{\"id\":\"evt_400190422223726196045502\",\"created\":1555943845,\"livemode\":false,\"type\":\"charge.succeeded\",\"data\":{\"object\":{\"id\":\"ch_vfXjrLzfvzv1D8aD0GvHW5mH\",\"object\":\"charge\",\"created\":1555943844,\"livemode\":false,\"paid\":true,\"refunded\":false,\"reversed\":false,\"app\":\"app_aTyfXDjrvzDSbLuz\",\"channel\":\"wx_pub\",\"order_no\":\"20190422223724521213\",\"client_ip\":\"127.0.0.1\",\"amount\":10,\"amount_settle\":10,\"currency\":\"cny\",\"subject\":\"kafka 实战\",\"body\":\"测试描述\",\"extra\":{\"open_id\":\"just_for_test\",\"bank_type\":\"your bank type\"},\"time_paid\":1555943845,\"time_expire\":1555951044,\"time_settle\":null,\"transaction_no\":\"1257829370201904225516383887\",\"refunds\":{\"object\":\"list\",\"url\":\"/v1/charges/ch_vfXjrLzfvzv1D8aD0GvHW5mH/refunds\",\"has_more\":false,\"data\":[]},\"amount_refunded\":0,\"failure_code\":null,\"failure_msg\":null,\"metadata\":{},\"credential\":{},\"description\":\"测试备注\"}},\"object\":\"event\",\"request\":\"iar_1CCSmHmjnT4San5yD44SmDiH\",\"pending_webhooks\":0}', '127.0.0.1', 2, '2019-04-22 22:37:24', '2019-04-22 22:37:26');
|
|
||||||
INSERT INTO `transaction_extension` VALUES (69, 46, 9999, '20190423002223556779', '{\"id\":\"evt_400190423002227198896602\",\"created\":1555950147,\"livemode\":false,\"type\":\"charge.succeeded\",\"data\":{\"object\":{\"id\":\"ch_ifn1y5bDqjL0rbTe54eLazPC\",\"object\":\"charge\",\"created\":1555950144,\"livemode\":false,\"paid\":true,\"refunded\":false,\"reversed\":false,\"app\":\"app_aTyfXDjrvzDSbLuz\",\"channel\":\"wx_pub\",\"order_no\":\"20190423002223556779\",\"client_ip\":\"124.77.208.137\",\"amount\":10,\"amount_settle\":10,\"currency\":\"cny\",\"subject\":\"kafka 实战\",\"body\":\"测试描述\",\"extra\":{\"open_id\":\"just_for_test\",\"bank_type\":\"your bank type\"},\"time_paid\":1555950147,\"time_expire\":1555957344,\"time_settle\":null,\"transaction_no\":\"1295079419201904238932409449\",\"refunds\":{\"object\":\"list\",\"url\":\"/v1/charges/ch_ifn1y5bDqjL0rbTe54eLazPC/refunds\",\"has_more\":false,\"data\":[]},\"amount_refunded\":0,\"failure_code\":null,\"failure_msg\":null,\"metadata\":{},\"credential\":{},\"description\":\"测试备注\"}},\"object\":\"event\",\"request\":\"iar_LKKun1S4KGS4L4Cmv980iznL\",\"pending_webhooks\":0}', '124.77.208.137', 2, '2019-04-23 00:22:23', '2019-04-23 00:22:27');
|
|
||||||
INSERT INTO `transaction_extension` VALUES (70, 47, 9999, '20190423100352158401', '{\"id\":\"evt_400190423100354205607502\",\"created\":1555985033,\"livemode\":false,\"type\":\"charge.succeeded\",\"data\":{\"object\":{\"id\":\"ch_DCGyXTmDGuHKb1C0yTzjPOGC\",\"object\":\"charge\",\"created\":1555985032,\"livemode\":false,\"paid\":true,\"refunded\":false,\"reversed\":false,\"app\":\"app_aTyfXDjrvzDSbLuz\",\"channel\":\"wx_pub\",\"order_no\":\"20190423100352158401\",\"client_ip\":\"114.87.158.59\",\"amount\":10,\"amount_settle\":10,\"currency\":\"cny\",\"subject\":\"kafka 实战\",\"body\":\"测试描述\",\"extra\":{\"open_id\":\"just_for_test\",\"bank_type\":\"your bank type\"},\"time_paid\":1555985033,\"time_expire\":1555992232,\"time_settle\":null,\"transaction_no\":\"1244341374201904238178164740\",\"refunds\":{\"object\":\"list\",\"url\":\"/v1/charges/ch_DCGyXTmDGuHKb1C0yTzjPOGC/refunds\",\"has_more\":false,\"data\":[]},\"amount_refunded\":0,\"failure_code\":null,\"failure_msg\":null,\"metadata\":{},\"credential\":{},\"description\":\"测试备注\"}},\"object\":\"event\",\"request\":\"iar_4e9mPODW5ujPqLen5OOmvL8S\",\"pending_webhooks\":0}', '114.87.158.59', 2, '2019-04-23 10:03:52', '2019-04-23 10:03:54');
|
|
||||||
INSERT INTO `transaction_extension` VALUES (71, 48, 9999, '20190427000222965600', NULL, '127.0.0.1', 1, '2019-04-27 00:02:22', '2019-04-27 00:02:22');
|
|
||||||
INSERT INTO `transaction_extension` VALUES (72, 48, 9999, '20190427001401428599', NULL, '127.0.0.1', 1, '2019-04-27 00:14:01', '2019-04-27 00:14:01');
|
|
||||||
INSERT INTO `transaction_extension` VALUES (73, 48, 9999, '20190427002729520230', NULL, '127.0.0.1', 1, '2019-04-27 00:27:29', '2019-04-27 00:27:29');
|
|
||||||
INSERT INTO `transaction_extension` VALUES (74, 48, 9999, '20190427003029372252', NULL, '127.0.0.1', 1, '2019-04-27 00:30:29', '2019-04-27 00:30:29');
|
|
||||||
INSERT INTO `transaction_extension` VALUES (75, 48, 9999, '20190427003306933611', NULL, '127.0.0.1', 1, '2019-04-27 00:33:06', '2019-04-27 00:33:06');
|
|
||||||
INSERT INTO `transaction_extension` VALUES (76, 48, 9999, '20190427003703859860', NULL, '127.0.0.1', 1, '2019-04-27 00:37:03', '2019-04-27 00:37:03');
|
|
||||||
INSERT INTO `transaction_extension` VALUES (77, 48, 9999, '20190427003923419775', '{\"id\":\"evt_400190427003925180938603\",\"created\":1556296765,\"livemode\":false,\"type\":\"charge.succeeded\",\"data\":{\"object\":{\"id\":\"ch_CGiLSC1OSubPOGSS0Ofv9urT\",\"object\":\"charge\",\"created\":1556296763,\"livemode\":false,\"paid\":true,\"refunded\":false,\"reversed\":false,\"app\":\"app_aTyfXDjrvzDSbLuz\",\"channel\":\"wx_pub\",\"order_no\":\"20190427003923419775\",\"client_ip\":\"127.0.0.1\",\"amount\":10000,\"amount_settle\":10000,\"currency\":\"cny\",\"subject\":\"Kafka 书籍汇总\",\"body\":\"测试描述\",\"extra\":{\"open_id\":\"just_for_test\",\"bank_type\":\"your bank type\"},\"time_paid\":1556296765,\"time_expire\":1556303963,\"time_settle\":null,\"transaction_no\":\"1298384458201904270239520896\",\"refunds\":{\"object\":\"list\",\"url\":\"/v1/charges/ch_CGiLSC1OSubPOGSS0Ofv9urT/refunds\",\"has_more\":false,\"data\":[]},\"amount_refunded\":0,\"failure_code\":null,\"failure_msg\":null,\"metadata\":{},\"credential\":{},\"description\":\"测试备注\"}},\"object\":\"event\",\"request\":\"iar_Lu14aDujv5i9OKyTa9jDGKm9\",\"pending_webhooks\":0}', '127.0.0.1', 2, '2019-04-27 00:39:23', '2019-04-27 00:39:25');
|
|
||||||
INSERT INTO `transaction_extension` VALUES (78, 49, 9999, '20190427004307995529', '{\"id\":\"evt_400190427004309341045702\",\"created\":1556296989,\"livemode\":false,\"type\":\"charge.succeeded\",\"data\":{\"object\":{\"id\":\"ch_ebH8u5a9mzL80qDqzP8qPybP\",\"object\":\"charge\",\"created\":1556296988,\"livemode\":false,\"paid\":true,\"refunded\":false,\"reversed\":false,\"app\":\"app_aTyfXDjrvzDSbLuz\",\"channel\":\"wx_pub\",\"order_no\":\"20190427004307995529\",\"client_ip\":\"127.0.0.1\",\"amount\":10000,\"amount_settle\":10000,\"currency\":\"cny\",\"subject\":\"Kafka 书籍汇总\",\"body\":\"测试描述\",\"extra\":{\"open_id\":\"just_for_test\",\"bank_type\":\"your bank type\"},\"time_paid\":1556296989,\"time_expire\":1556304188,\"time_settle\":null,\"transaction_no\":\"1230418317201904273841336004\",\"refunds\":{\"object\":\"list\",\"url\":\"/v1/charges/ch_ebH8u5a9mzL80qDqzP8qPybP/refunds\",\"has_more\":false,\"data\":[]},\"amount_refunded\":0,\"failure_code\":null,\"failure_msg\":null,\"metadata\":{},\"credential\":{},\"description\":\"测试备注\"}},\"object\":\"event\",\"request\":\"iar_GebHeP1effjL0OSOqDzLurHG\",\"pending_webhooks\":0}', '127.0.0.1', 2, '2019-04-27 00:43:07', '2019-04-27 00:43:10');
|
|
||||||
INSERT INTO `transaction_extension` VALUES (79, 50, 9999, '20190427004410165545', '{\"id\":\"evt_400190427004411341065302\",\"created\":1556297051,\"livemode\":false,\"type\":\"charge.succeeded\",\"data\":{\"object\":{\"id\":\"ch_y1iXjLnDS4G4OO4uT4a5C4W1\",\"object\":\"charge\",\"created\":1556297050,\"livemode\":false,\"paid\":true,\"refunded\":false,\"reversed\":false,\"app\":\"app_aTyfXDjrvzDSbLuz\",\"channel\":\"wx_pub\",\"order_no\":\"20190427004410165545\",\"client_ip\":\"127.0.0.1\",\"amount\":10000,\"amount_settle\":10000,\"currency\":\"cny\",\"subject\":\"Kafka 书籍汇总\",\"body\":\"测试描述\",\"extra\":{\"open_id\":\"just_for_test\",\"bank_type\":\"your bank type\"},\"time_paid\":1556297051,\"time_expire\":1556304250,\"time_settle\":null,\"transaction_no\":\"1267784917201904270679599868\",\"refunds\":{\"object\":\"list\",\"url\":\"/v1/charges/ch_y1iXjLnDS4G4OO4uT4a5C4W1/refunds\",\"has_more\":false,\"data\":[]},\"amount_refunded\":0,\"failure_code\":null,\"failure_msg\":null,\"metadata\":{},\"credential\":{},\"description\":\"测试备注\"}},\"object\":\"event\",\"request\":\"iar_0GW50C9mfnjLLuX5WDWXHGmD\",\"pending_webhooks\":0}', '127.0.0.1', 2, '2019-04-27 00:44:10', '2019-04-27 00:44:12');
|
|
||||||
COMMIT;
|
|
||||||
|
|
||||||
SET FOREIGN_KEY_CHECKS = 1;
|
SET FOREIGN_KEY_CHECKS = 1;
|
||||||
|
@ -3,15 +3,15 @@
|
|||||||
|
|
||||||
Source Server : mall_mysql
|
Source Server : mall_mysql
|
||||||
Source Server Type : MySQL
|
Source Server Type : MySQL
|
||||||
Source Server Version : 50643
|
Source Server Version : 50726
|
||||||
Source Host : 180.167.213.26:13306
|
Source Host : 180.167.213.26:13306
|
||||||
Source Schema : mall_product
|
Source Schema : mall_product
|
||||||
|
|
||||||
Target Server Type : MySQL
|
Target Server Type : MySQL
|
||||||
Target Server Version : 50643
|
Target Server Version : 50726
|
||||||
File Encoding : 65001
|
File Encoding : 65001
|
||||||
|
|
||||||
Date: 28/04/2019 18:05:35
|
Date: 05/06/2019 07:57:40
|
||||||
*/
|
*/
|
||||||
|
|
||||||
SET NAMES utf8mb4;
|
SET NAMES utf8mb4;
|
||||||
@ -28,8 +28,8 @@ CREATE TABLE `product_attr` (
|
|||||||
`create_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
|
`create_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
|
||||||
`update_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '最后更新时间',
|
`update_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '最后更新时间',
|
||||||
`deleted` bit(1) DEFAULT b'0' COMMENT '是否删除',
|
`deleted` bit(1) DEFAULT b'0' COMMENT '是否删除',
|
||||||
PRIMARY KEY (`id`)
|
PRIMARY KEY (`id`) USING BTREE
|
||||||
) ENGINE=InnoDB AUTO_INCREMENT=8 DEFAULT CHARSET=utf8mb4 COMMENT='product_attr';
|
) ENGINE=InnoDB AUTO_INCREMENT=9 DEFAULT CHARSET=utf8mb4 COMMENT='product_attr';
|
||||||
|
|
||||||
-- ----------------------------
|
-- ----------------------------
|
||||||
-- Table structure for product_attr_value
|
-- Table structure for product_attr_value
|
||||||
@ -43,8 +43,24 @@ CREATE TABLE `product_attr_value` (
|
|||||||
`create_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
|
`create_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
|
||||||
`update_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '最后更新时间',
|
`update_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '最后更新时间',
|
||||||
`deleted` bit(1) DEFAULT b'0' COMMENT '是否删除',
|
`deleted` bit(1) DEFAULT b'0' COMMENT '是否删除',
|
||||||
|
PRIMARY KEY (`id`) USING BTREE
|
||||||
|
) ENGINE=InnoDB AUTO_INCREMENT=44 DEFAULT CHARSET=utf8mb4 COMMENT='product_attr';
|
||||||
|
|
||||||
|
-- ----------------------------
|
||||||
|
-- Table structure for product_brand
|
||||||
|
-- ----------------------------
|
||||||
|
DROP TABLE IF EXISTS `product_brand`;
|
||||||
|
CREATE TABLE `product_brand` (
|
||||||
|
`id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '品牌编号(主键)',
|
||||||
|
`name` varchar(50) DEFAULT NULL COMMENT '品牌名称',
|
||||||
|
`description` varchar(255) DEFAULT NULL COMMENT '品牌描述',
|
||||||
|
`pic_url` varchar(1024) DEFAULT NULL COMMENT '品牌名图片',
|
||||||
|
`status` tinyint(4) DEFAULT NULL COMMENT '状态 1开启 2禁用',
|
||||||
|
`create_time` timestamp NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
|
||||||
|
`update_time` timestamp NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '最后更新时间',
|
||||||
|
`deleted` bit(1) DEFAULT b'0' COMMENT '是否删除 0正常1删除',
|
||||||
PRIMARY KEY (`id`)
|
PRIMARY KEY (`id`)
|
||||||
) ENGINE=InnoDB AUTO_INCREMENT=11 DEFAULT CHARSET=utf8mb4 COMMENT='product_attr';
|
) ENGINE=InnoDB AUTO_INCREMENT=6 DEFAULT CHARSET=utf8mb4;
|
||||||
|
|
||||||
-- ----------------------------
|
-- ----------------------------
|
||||||
-- Table structure for product_category
|
-- Table structure for product_category
|
||||||
@ -61,8 +77,8 @@ CREATE TABLE `product_category` (
|
|||||||
`update_time` datetime DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '最后更新时间',
|
`update_time` datetime DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '最后更新时间',
|
||||||
`status` tinyint(4) DEFAULT NULL COMMENT '状态',
|
`status` tinyint(4) DEFAULT NULL COMMENT '状态',
|
||||||
`deleted` bit(1) DEFAULT b'1' COMMENT '是否删除',
|
`deleted` bit(1) DEFAULT b'1' COMMENT '是否删除',
|
||||||
PRIMARY KEY (`id`)
|
PRIMARY KEY (`id`) USING BTREE
|
||||||
) ENGINE=InnoDB AUTO_INCREMENT=793 DEFAULT CHARSET=utf8mb4 ROW_FORMAT=DYNAMIC;
|
) ENGINE=InnoDB AUTO_INCREMENT=796 DEFAULT CHARSET=utf8mb4;
|
||||||
|
|
||||||
-- ----------------------------
|
-- ----------------------------
|
||||||
-- Table structure for product_sku
|
-- Table structure for product_sku
|
||||||
@ -79,8 +95,8 @@ CREATE TABLE `product_sku` (
|
|||||||
`create_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
|
`create_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
|
||||||
`update_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '最后更新时间',
|
`update_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '最后更新时间',
|
||||||
`deleted` bit(1) NOT NULL DEFAULT b'0' COMMENT '是否删除',
|
`deleted` bit(1) NOT NULL DEFAULT b'0' COMMENT '是否删除',
|
||||||
PRIMARY KEY (`id`)
|
PRIMARY KEY (`id`) USING BTREE
|
||||||
) ENGINE=InnoDB AUTO_INCREMENT=47 DEFAULT CHARSET=utf8mb4 COMMENT='product_sku';
|
) ENGINE=InnoDB AUTO_INCREMENT=57 DEFAULT CHARSET=utf8mb4 COMMENT='product_sku';
|
||||||
|
|
||||||
-- ----------------------------
|
-- ----------------------------
|
||||||
-- Table structure for product_spu
|
-- Table structure for product_spu
|
||||||
@ -100,7 +116,7 @@ CREATE TABLE `product_spu` (
|
|||||||
`create_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
|
`create_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
|
||||||
`update_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '最后更新时间',
|
`update_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '最后更新时间',
|
||||||
`deleted` bit(1) NOT NULL DEFAULT b'0' COMMENT '是否删除',
|
`deleted` bit(1) NOT NULL DEFAULT b'0' COMMENT '是否删除',
|
||||||
PRIMARY KEY (`id`)
|
PRIMARY KEY (`id`) USING BTREE
|
||||||
) ENGINE=InnoDB AUTO_INCREMENT=39 DEFAULT CHARSET=utf8mb4 COMMENT='product_spu';
|
) ENGINE=InnoDB AUTO_INCREMENT=43 DEFAULT CHARSET=utf8mb4 COMMENT='product_spu';
|
||||||
|
|
||||||
SET FOREIGN_KEY_CHECKS = 1;
|
SET FOREIGN_KEY_CHECKS = 1;
|
||||||
|
@ -3,15 +3,15 @@
|
|||||||
|
|
||||||
Source Server : mall_mysql
|
Source Server : mall_mysql
|
||||||
Source Server Type : MySQL
|
Source Server Type : MySQL
|
||||||
Source Server Version : 50643
|
Source Server Version : 50726
|
||||||
Source Host : 180.167.213.26:13306
|
Source Host : 180.167.213.26:13306
|
||||||
Source Schema : mall_promotion
|
Source Schema : mall_promotion
|
||||||
|
|
||||||
Target Server Type : MySQL
|
Target Server Type : MySQL
|
||||||
Target Server Version : 50643
|
Target Server Version : 50726
|
||||||
File Encoding : 65001
|
File Encoding : 65001
|
||||||
|
|
||||||
Date: 28/04/2019 18:05:45
|
Date: 05/06/2019 07:57:50
|
||||||
*/
|
*/
|
||||||
|
|
||||||
SET NAMES utf8mb4;
|
SET NAMES utf8mb4;
|
||||||
@ -33,7 +33,7 @@ CREATE TABLE `banner` (
|
|||||||
`update_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '最后更新时间',
|
`update_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '最后更新时间',
|
||||||
`deleted` bit(1) NOT NULL DEFAULT b'0' COMMENT '是否删除',
|
`deleted` bit(1) NOT NULL DEFAULT b'0' COMMENT '是否删除',
|
||||||
PRIMARY KEY (`id`) USING BTREE
|
PRIMARY KEY (`id`) USING BTREE
|
||||||
) ENGINE=InnoDB AUTO_INCREMENT=4 DEFAULT CHARSET=utf8mb4 COMMENT='banner';
|
) ENGINE=InnoDB AUTO_INCREMENT=5 DEFAULT CHARSET=utf8mb4 COMMENT='banner';
|
||||||
|
|
||||||
-- ----------------------------
|
-- ----------------------------
|
||||||
-- Table structure for coupon_card
|
-- Table structure for coupon_card
|
||||||
@ -87,7 +87,7 @@ CREATE TABLE `coupon_template` (
|
|||||||
`stat_fetch_num` int(11) NOT NULL COMMENT '领取优惠券的次数',
|
`stat_fetch_num` int(11) NOT NULL COMMENT '领取优惠券的次数',
|
||||||
`create_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
|
`create_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
|
||||||
`update_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '最后更新时间',
|
`update_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '最后更新时间',
|
||||||
PRIMARY KEY (`id`)
|
PRIMARY KEY (`id`) USING BTREE
|
||||||
) ENGINE=InnoDB AUTO_INCREMENT=8 DEFAULT CHARSET=utf8mb4 COMMENT='coupon_template';
|
) ENGINE=InnoDB AUTO_INCREMENT=8 DEFAULT CHARSET=utf8mb4 COMMENT='coupon_template';
|
||||||
|
|
||||||
-- ----------------------------
|
-- ----------------------------
|
||||||
@ -104,8 +104,8 @@ CREATE TABLE `product_recommend` (
|
|||||||
`create_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
|
`create_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
|
||||||
`update_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '最后更新时间',
|
`update_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '最后更新时间',
|
||||||
`deleted` bit(1) NOT NULL DEFAULT b'0' COMMENT '是否删除',
|
`deleted` bit(1) NOT NULL DEFAULT b'0' COMMENT '是否删除',
|
||||||
PRIMARY KEY (`id`)
|
PRIMARY KEY (`id`) USING BTREE
|
||||||
) ENGINE=InnoDB AUTO_INCREMENT=7 DEFAULT CHARSET=utf8mb4 COMMENT='product_recommend';
|
) ENGINE=InnoDB AUTO_INCREMENT=8 DEFAULT CHARSET=utf8mb4 COMMENT='product_recommend';
|
||||||
|
|
||||||
-- ----------------------------
|
-- ----------------------------
|
||||||
-- Table structure for promotion_activity
|
-- Table structure for promotion_activity
|
||||||
@ -124,7 +124,24 @@ CREATE TABLE `promotion_activity` (
|
|||||||
`full_privilege` varchar(2000) DEFAULT NULL COMMENT '限制折扣字符串,使用 JSON 序列化成字符串存储',
|
`full_privilege` varchar(2000) DEFAULT NULL COMMENT '限制折扣字符串,使用 JSON 序列化成字符串存储',
|
||||||
`create_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
|
`create_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
|
||||||
`update_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '最后更新时间',
|
`update_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '最后更新时间',
|
||||||
PRIMARY KEY (`id`)
|
PRIMARY KEY (`id`) USING BTREE
|
||||||
) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=utf8mb4 COMMENT='promotion_activity';
|
) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=utf8mb4 COMMENT='promotion_activity';
|
||||||
|
|
||||||
|
-- ----------------------------
|
||||||
|
-- Table structure for undo_log
|
||||||
|
-- ----------------------------
|
||||||
|
DROP TABLE IF EXISTS `undo_log`;
|
||||||
|
CREATE TABLE `undo_log` (
|
||||||
|
`id` bigint(20) NOT NULL AUTO_INCREMENT,
|
||||||
|
`branch_id` bigint(20) NOT NULL,
|
||||||
|
`xid` varchar(100) NOT NULL,
|
||||||
|
`rollback_info` longblob NOT NULL,
|
||||||
|
`log_status` int(11) NOT NULL,
|
||||||
|
`log_created` datetime NOT NULL,
|
||||||
|
`log_modified` datetime NOT NULL,
|
||||||
|
`ext` varchar(100) DEFAULT NULL,
|
||||||
|
PRIMARY KEY (`id`),
|
||||||
|
UNIQUE KEY `ux_undo_log` (`xid`,`branch_id`)
|
||||||
|
) ENGINE=InnoDB AUTO_INCREMENT=27 DEFAULT CHARSET=utf8;
|
||||||
|
|
||||||
SET FOREIGN_KEY_CHECKS = 1;
|
SET FOREIGN_KEY_CHECKS = 1;
|
||||||
|
@ -3,15 +3,15 @@
|
|||||||
|
|
||||||
Source Server : mall_mysql
|
Source Server : mall_mysql
|
||||||
Source Server Type : MySQL
|
Source Server Type : MySQL
|
||||||
Source Server Version : 50643
|
Source Server Version : 50726
|
||||||
Source Host : 180.167.213.26:13306
|
Source Host : 180.167.213.26:13306
|
||||||
Source Schema : mall_user
|
Source Schema : mall_user
|
||||||
|
|
||||||
Target Server Type : MySQL
|
Target Server Type : MySQL
|
||||||
Target Server Version : 50643
|
Target Server Version : 50726
|
||||||
File Encoding : 65001
|
File Encoding : 65001
|
||||||
|
|
||||||
Date: 28/04/2019 18:05:53
|
Date: 05/06/2019 07:58:03
|
||||||
*/
|
*/
|
||||||
|
|
||||||
SET NAMES utf8mb4;
|
SET NAMES utf8mb4;
|
||||||
@ -27,12 +27,12 @@ CREATE TABLE `mobile_code` (
|
|||||||
`code` varchar(6) NOT NULL,
|
`code` varchar(6) NOT NULL,
|
||||||
`today_index` tinyint(4) NOT NULL,
|
`today_index` tinyint(4) NOT NULL,
|
||||||
`used` tinyint(4) NOT NULL,
|
`used` tinyint(4) NOT NULL,
|
||||||
`userd_user_id` int(20) DEFAULT NULL,
|
`used_user_id` int(20) DEFAULT NULL,
|
||||||
`used_time` datetime DEFAULT NULL,
|
`used_time` datetime DEFAULT NULL,
|
||||||
`create_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP,
|
`create_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP,
|
||||||
`update_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
|
`update_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
|
||||||
PRIMARY KEY (`id`)
|
PRIMARY KEY (`id`) USING BTREE
|
||||||
) ENGINE=InnoDB AUTO_INCREMENT=135 DEFAULT CHARSET=utf8mb4 ROW_FORMAT=DYNAMIC;
|
) ENGINE=InnoDB AUTO_INCREMENT=236 DEFAULT CHARSET=utf8mb4;
|
||||||
|
|
||||||
-- ----------------------------
|
-- ----------------------------
|
||||||
-- Table structure for oauth2_access_token
|
-- Table structure for oauth2_access_token
|
||||||
@ -46,9 +46,9 @@ CREATE TABLE `oauth2_access_token` (
|
|||||||
`expires_time` datetime DEFAULT NULL,
|
`expires_time` datetime DEFAULT NULL,
|
||||||
`create_time` datetime DEFAULT CURRENT_TIMESTAMP,
|
`create_time` datetime DEFAULT CURRENT_TIMESTAMP,
|
||||||
`update_time` datetime DEFAULT NULL ON UPDATE CURRENT_TIMESTAMP,
|
`update_time` datetime DEFAULT NULL ON UPDATE CURRENT_TIMESTAMP,
|
||||||
PRIMARY KEY (`id`),
|
PRIMARY KEY (`id`) USING BTREE,
|
||||||
KEY `idx_uid` (`user_id`)
|
KEY `idx_uid` (`user_id`) USING BTREE
|
||||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 ROW_FORMAT=DYNAMIC;
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
|
||||||
|
|
||||||
-- ----------------------------
|
-- ----------------------------
|
||||||
-- Table structure for oauth2_refresh_token
|
-- Table structure for oauth2_refresh_token
|
||||||
@ -61,9 +61,9 @@ CREATE TABLE `oauth2_refresh_token` (
|
|||||||
`expires_time` datetime DEFAULT NULL,
|
`expires_time` datetime DEFAULT NULL,
|
||||||
`create_time` datetime DEFAULT CURRENT_TIMESTAMP,
|
`create_time` datetime DEFAULT CURRENT_TIMESTAMP,
|
||||||
`update_time` datetime DEFAULT NULL ON UPDATE CURRENT_TIMESTAMP,
|
`update_time` datetime DEFAULT NULL ON UPDATE CURRENT_TIMESTAMP,
|
||||||
PRIMARY KEY (`id`),
|
PRIMARY KEY (`id`) USING BTREE,
|
||||||
KEY `idx_uid` (`user_id`)
|
KEY `idx_uid` (`user_id`) USING BTREE
|
||||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 ROW_FORMAT=DYNAMIC;
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
|
||||||
|
|
||||||
-- ----------------------------
|
-- ----------------------------
|
||||||
-- Table structure for user_access_log
|
-- Table structure for user_access_log
|
||||||
@ -80,8 +80,8 @@ CREATE TABLE `user_access_log` (
|
|||||||
`start_time` datetime NOT NULL COMMENT '请求时间',
|
`start_time` datetime NOT NULL COMMENT '请求时间',
|
||||||
`response_time` int(11) NOT NULL COMMENT '响应时长 -- 毫秒级',
|
`response_time` int(11) NOT NULL COMMENT '响应时长 -- 毫秒级',
|
||||||
`create_time` datetime NOT NULL COMMENT '创建时间',
|
`create_time` datetime NOT NULL COMMENT '创建时间',
|
||||||
PRIMARY KEY (`id`)
|
PRIMARY KEY (`id`) USING BTREE
|
||||||
) ENGINE=InnoDB AUTO_INCREMENT=7772 DEFAULT CHARSET=utf8mb4 COMMENT='admin_access_log';
|
) ENGINE=InnoDB AUTO_INCREMENT=10579 DEFAULT CHARSET=utf8mb4 COMMENT='admin_access_log';
|
||||||
|
|
||||||
-- ----------------------------
|
-- ----------------------------
|
||||||
-- Table structure for user_address
|
-- Table structure for user_address
|
||||||
@ -98,8 +98,8 @@ CREATE TABLE `user_address` (
|
|||||||
`update_time` datetime DEFAULT NULL COMMENT '更新时间',
|
`update_time` datetime DEFAULT NULL COMMENT '更新时间',
|
||||||
`has_default` int(1) NOT NULL COMMENT '是否默认',
|
`has_default` int(1) NOT NULL COMMENT '是否默认',
|
||||||
`deleted` int(2) NOT NULL COMMENT '删除状态',
|
`deleted` int(2) NOT NULL COMMENT '删除状态',
|
||||||
PRIMARY KEY (`id`)
|
PRIMARY KEY (`id`) USING BTREE
|
||||||
) ENGINE=InnoDB AUTO_INCREMENT=8 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_bin;
|
) ENGINE=InnoDB AUTO_INCREMENT=18 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_bin;
|
||||||
|
|
||||||
-- ----------------------------
|
-- ----------------------------
|
||||||
-- Table structure for user_register
|
-- Table structure for user_register
|
||||||
@ -109,7 +109,7 @@ CREATE TABLE `user_register` (
|
|||||||
`id` int(20) NOT NULL,
|
`id` int(20) NOT NULL,
|
||||||
`create_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP,
|
`create_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP,
|
||||||
`udpate_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP
|
`udpate_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP
|
||||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 ROW_FORMAT=DYNAMIC;
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
|
||||||
|
|
||||||
-- ----------------------------
|
-- ----------------------------
|
||||||
-- Table structure for users
|
-- Table structure for users
|
||||||
@ -124,8 +124,8 @@ CREATE TABLE `users` (
|
|||||||
`create_time` datetime DEFAULT CURRENT_TIMESTAMP,
|
`create_time` datetime DEFAULT CURRENT_TIMESTAMP,
|
||||||
`update_time` datetime DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
|
`update_time` datetime DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
|
||||||
`deleted` bit(1) DEFAULT b'0' COMMENT '是否删除',
|
`deleted` bit(1) DEFAULT b'0' COMMENT '是否删除',
|
||||||
PRIMARY KEY (`id`),
|
PRIMARY KEY (`id`) USING BTREE,
|
||||||
UNIQUE KEY `idx_uid` (`id`)
|
UNIQUE KEY `idx_uid` (`id`) USING BTREE
|
||||||
) ENGINE=InnoDB AUTO_INCREMENT=43 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_bin;
|
) ENGINE=InnoDB AUTO_INCREMENT=108 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_bin;
|
||||||
|
|
||||||
SET FOREIGN_KEY_CHECKS = 1;
|
SET FOREIGN_KEY_CHECKS = 1;
|
||||||
|
Loading…
Reference in New Issue
Block a user