/*
 Navicat Premium Data Transfer

 Source Server         : 服务器数据库
 Source Server Type    : MySQL
 Source Server Version : 50734
 Source Host           : 42.193.11.150:3306
 Source Schema         : test

 Target Server Type    : MySQL
 Target Server Version : 50734
 File Encoding         : 65001

 Date: 16/09/2022 16:33:53
*/

SET NAMES utf8mb4;
SET FOREIGN_KEY_CHECKS = 0;

-- ----------------------------
-- Table structure for activity_manage
-- ----------------------------
DROP TABLE IF EXISTS `activity_manage`;
CREATE TABLE `activity_manage`  (
 `activity_id` int(11) NOT NULL AUTO_INCREMENT COMMENT '活动id',
 `activity_title` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '活动标题',
 `activity_content` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '活动内容介绍',
 `activity_image` text CHARACTER SET utf8 COLLATE utf8_general_ci NULL COMMENT '活动图片',
 `is_enable` int(1) NULL DEFAULT NULL COMMENT '是否启用(0否 1是)',
 `create_time` datetime(0) NULL DEFAULT NULL COMMENT '创建时间',
 `update_time` datetime(0) NULL DEFAULT NULL COMMENT '更新时间',
 `is_allow_shop` int(1) NULL DEFAULT 0 COMMENT '是否允许商户主动加入 0否 1是',
 PRIMARY KEY (`activity_id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 21 CHARACTER SET = utf8 COLLATE = utf8_general_ci ROW_FORMAT = Dynamic;

-- ----------------------------
-- Records of activity_manage
-- ----------------------------
INSERT INTO `activity_manage` VALUES (14, '推荐商家', '<p>精选商家活动,不自动开启,加入需要同意.</p>', 'https://tcwm.xianmaxiong.com/file/uploadPath/2022/11/24/fbe5ceb30cb350e1c9cc058d0b354a53.png', 1, '2022-11-14 13:52:26', '2022-11-14 13:52:26', 1);
INSERT INTO `activity_manage` VALUES (16, '会员特卖', '<p>各位老板,快来参加活动吧，会员超值特惠，更多惊喜等您参与~</p>', 'https://tcwm.xianmaxiong.com/file/uploadPath/2022/11/24/018085a0ed97baffbfffb8e4715e97b0.png', 1, '2022-11-15 10:56:30', '2022-11-15 10:56:30', 1);
INSERT INTO `activity_manage` VALUES (19, '新客专享', '<p>新客专享</p>', 'https://tcwm.xianmaxiong.com/file/uploadPath/2022/11/24/ee0f73f9422901f61d5fad6b8aaf3c1d.png', 1, '2022-11-24 12:06:36', '2022-11-24 12:06:36', 1);
INSERT INTO `activity_manage` VALUES (20, '新店推荐', '<p>新店推荐</p>', 'https://tcwm.xianmaxiong.com/file/uploadPath/2022/11/24/dbc982227797f751c0defc24f88accac.png', 1, '2022-11-24 13:24:08', '2022-11-24 13:24:08', 1);


-- ----------------------------
-- Table structure for address
-- ----------------------------
DROP TABLE IF EXISTS `address`;
CREATE TABLE `address`  (
  `address_id` int(11) NOT NULL AUTO_INCREMENT COMMENT '主键id',
  `user_id` int(11) NULL DEFAULT NULL COMMENT '用户id',
  `user_name` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '用户姓名',
  `user_phone` varchar(20) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '用户电话',
  `province` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '省',
  `city` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '市',
  `district` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '区',
  `address_detail` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '用户详细地址（用户手动输入的地址）',
  `lng` double(20, 10) NULL DEFAULT NULL COMMENT '经度',
  `lat` double(20, 10) NULL DEFAULT NULL COMMENT '维度',
  `create_time` datetime(0) NULL DEFAULT NULL COMMENT '创建时间',
  `delete_flag` int(11) NULL DEFAULT NULL COMMENT '是否删除（0：未删除；1：删除）',
  `address_default` int(11) NULL DEFAULT NULL COMMENT '默认地址 0：非默认   1：默认',
  `update_time` datetime(0) NULL DEFAULT NULL COMMENT '修改时间',
  PRIMARY KEY (`address_id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 346 CHARACTER SET = utf8 COLLATE = utf8_general_ci ROW_FORMAT = Dynamic;

-- ----------------------------
-- Records of address
-- ----------------------------

-- ----------------------------
-- Table structure for app
-- ----------------------------
DROP TABLE IF EXISTS `app`;
CREATE TABLE `app`  (
  `id` bigint(20) NOT NULL AUTO_INCREMENT,
  `android_wgt_url` varchar(600) CHARACTER SET utf8 COLLATE utf8_unicode_ci NULL DEFAULT NULL,
  `create_at` varchar(600) CHARACTER SET big5 COLLATE big5_chinese_ci NULL DEFAULT NULL,
  `des` varchar(600) CHARACTER SET utf8 COLLATE utf8_unicode_ci NULL DEFAULT NULL,
  `ios_version` varchar(255) CHARACTER SET big5 COLLATE big5_chinese_ci NULL DEFAULT NULL,
  `ios_wgt_url` varchar(600) CHARACTER SET utf8 COLLATE utf8_unicode_ci NULL DEFAULT NULL,
  `method` varchar(600) CHARACTER SET big5 COLLATE big5_chinese_ci NULL DEFAULT NULL,
  `version` varchar(600) CHARACTER SET big5 COLLATE big5_chinese_ci NULL DEFAULT NULL,
  `wgt_url` varchar(600) CHARACTER SET utf8 COLLATE utf8_unicode_ci NULL DEFAULT NULL,
  PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 8 CHARACTER SET = big5 COLLATE = big5_chinese_ci ROW_FORMAT = Dynamic;

-- ----------------------------
-- Records of app
-- ----------------------------
INSERT INTO `app` VALUES (5, 'https://www.pgyer.com/hb2v', '2020-07-20 18:35:00', '升级', '', '', 'false', '1.0.0', 'https://www.pgyer.com/hb2v');
INSERT INTO `app` VALUES (6, 'https://www.pgyer.com/hb2v', '2020-07-20 18:35:00', '升级', NULL, '', 'false', '1.0.0', 'https://www.pgyer.com/hb2v');
INSERT INTO `app` VALUES (7, 'https://www.pgyer.com/hb2v', '2020-07-20 18:35:00', '升级', NULL, '', 'false', '1.0.0', 'https://www.pgyer.com/hb2v');

-- ----------------------------
-- Table structure for banner
-- ----------------------------
DROP TABLE IF EXISTS `banner`;
CREATE TABLE `banner`  (
  `id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT 'id',
  `create_time` varchar(255) CHARACTER SET big5 COLLATE big5_chinese_ci NULL DEFAULT NULL COMMENT '创建时间',
  `image_url` varchar(255) CHARACTER SET big5 COLLATE big5_chinese_ci NULL DEFAULT NULL COMMENT '图片地址',
  `state` int(11) NULL DEFAULT 1 COMMENT '状态 1正常 2隐藏',
  `url` varchar(255) CHARACTER SET utf8 COLLATE utf8_unicode_ci NULL DEFAULT NULL COMMENT '跳转页面地址',
  `sort` int(11) NULL DEFAULT 1 COMMENT '顺序',
  `classify` int(11) NULL DEFAULT NULL COMMENT '分类 1banner图 2首页分类 3活动 4首页功能路由入口 5团购轮播图 6团购首页分类',
  `name` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '名称',
  `describess` varchar(1000) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '描述',
  PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 76 CHARACTER SET = big5 COLLATE = big5_chinese_ci ROW_FORMAT = Dynamic;

-- ----------------------------
-- Records of banner
-- ----------------------------
INSERT INTO `banner`(`id`, `create_time`, `image_url`, `state`, `url`, `sort`, `classify`, `name`, `describess`) VALUES (3, '2022-04-24 18:10:36', 'https://tcwm.xianmaxiong.com/file/uploadPath/2022/04/24/f5c2a463b29e562aa4520988557e553f.png', 1, '', 3, 1, 'banner3', 'banner3');
INSERT INTO `banner`(`id`, `create_time`, `image_url`, `state`, `url`, `sort`, `classify`, `name`, `describess`) VALUES (17, '2020-08-07 11:27:00', 'https://shegnqx.oss-cn-beijing.aliyuncs.com/20200804/02c2d30281084f4cbfad093aadf1af7a.png', 1, '/pages/task/new', 1, 2, '发布任务', '');
INSERT INTO `banner`(`id`, `create_time`, `image_url`, `state`, `url`, `sort`, `classify`, `name`, `describess`) VALUES (18, '2020-09-03 17:27:38', 'https://shegnqx.oss-cn-beijing.aliyuncs.com/20200903/ff3931c6710144dabf814360ff34b4f3.png', 1, '/pages/invitation/invitationUser', 1, 3, '活动', '');
INSERT INTO `banner`(`id`, `create_time`, `image_url`, `state`, `url`, `sort`, `classify`, `name`, `describess`) VALUES (21, '2020-09-03 22:14:20', 'https://shegnqx.oss-cn-beijing.aliyuncs.com/20200807/c5ce2475564f4b54b37f08f74e6a25ee.png', 1, '/pages/task/new', 1, 2, '任务分类', '任务分类');
INSERT INTO `banner`(`id`, `create_time`, `image_url`, `state`, `url`, `sort`, `classify`, `name`, `describess`) VALUES (22, '2022-12-20 14:21:11', 'https://diancan.xianmxkj.com/file/uploadPath/2022/02/18/9c6bac5a332188f22d7a692831b09c1c.png', 1, '/pages/index/shopList/index?value=1', 1, 4, '外卖', '精品1');
INSERT INTO `banner`(`id`, `create_time`, `image_url`, `state`, `url`, `sort`, `classify`, `name`, `describess`) VALUES (26, '2022-12-20 14:21:11', 'https://diancan.xianmxkj.com/file/uploadPath/2022/02/18/8aa4e61ded3fc8b341be14acba170607.png', 1, '/pages/index/shopList/index?value=2', 4, 4, '水果', '精品2');
INSERT INTO `banner`(`id`, `create_time`, `image_url`, `state`, `url`, `sort`, `classify`, `name`, `describess`) VALUES (33, '2020-08-07 11:27:00', 'https://shegnqx.oss-cn-beijing.aliyuncs.com/20200804/0b93447cc82c4a13a8e230fadff5d685.png', 1, '/pages/invitation/invitationUser', 1, 2, '邀请好友', '');
INSERT INTO `banner`(`id`, `create_time`, `image_url`, `state`, `url`, `sort`, `classify`, `name`, `describess`) VALUES (34, '2020-09-03 15:07:07', 'https://shegnqx.oss-cn-beijing.aliyuncs.com/20200804/173005af80344924a32a5fa56f4df70c.png', 1, '/pages/platformtask/index', 1, 2, '活动派送', '');
INSERT INTO `banner`(`id`, `create_time`, `image_url`, `state`, `url`, `sort`, `classify`, `name`, `describess`) VALUES (37, '2020-08-07 11:27:00', 'https://shegnqx.oss-cn-beijing.aliyuncs.com/20200804/1b95d1ad7dc142c7934a27c5621de41c.png', 1, '/pages/my/wallet', 1, 2, '我的钱包', '');
INSERT INTO `banner`(`id`, `create_time`, `image_url`, `state`, `url`, `sort`, `classify`, `name`, `describess`) VALUES (40, '2021-12-31 17:52:22', 'https://diancan.xianmxkj.com/file/uploadPath/2021/12/31/4bed1d04d28efc7e672f3684ce2c6f4e.png', 1, '', 1, 5, '背景图', '快来和我一起跑腿赚零花钱吧！');
INSERT INTO `banner`(`id`, `create_time`, `image_url`, `state`, `url`, `sort`, `classify`, `name`, `describess`) VALUES (51, '2022-12-20 14:21:11', 'https://diancan.xianmxkj.com/file/uploadPath/2022/02/18/c52f353674722c5db28186850607ea6d.png', 1, '/pages/index/shopList/index?value=3', 10, 4, '日用好货', '美食类型商铺');
INSERT INTO `banner`(`id`, `create_time`, `image_url`, `state`, `url`, `sort`, `classify`, `name`, `describess`) VALUES (52, '2022-01-04 16:31:21', 'https://pt2.0.xianmxkj.com/file/uploadPath/2022/01/04/9b3775eaad6c9fea52378277497263e5.png', 1, '/running/Helpsend/Helpsend?index=1', 1, 6, '帮我送', NULL);
INSERT INTO `banner`(`id`, `create_time`, `image_url`, `state`, `url`, `sort`, `classify`, `name`, `describess`) VALUES (53, '2022-01-04 16:31:21', 'https://pt2.0.xianmxkj.com/file/uploadPath/2022/01/04/4fdc7154c007f9d75e4b1abcc6490eb6.png', 1, '/running/Helpsend/Helpsend?index=2', 1, 6, '帮我取', NULL);
INSERT INTO `banner`(`id`, `create_time`, `image_url`, `state`, `url`, `sort`, `classify`, `name`, `describess`) VALUES (54, '2022-01-04 16:31:21', 'https://pt2.0.xianmxkj.com/file/uploadPath/2022/01/04/da25041bd1bce5773477fe27e8fd52c9.png', 1, '/running/Helppay/Helppay', 1, 6, '同城帮买', NULL);
INSERT INTO `banner`(`id`, `create_time`, `image_url`, `state`, `url`, `sort`, `classify`, `name`, `describess`) VALUES (55, '2022-01-04 16:31:21', 'https://pt2.0.xianmxkj.com/file/uploadPath/2022/01/04/0e18e935a110032a9b6b04b9ff3d0cfd.png', 1, '/running/Cityservice/Cityservice', 1, 6, '同城服务', NULL);
INSERT INTO `banner`(`id`, `create_time`, `image_url`, `state`, `url`, `sort`, `classify`, `name`, `describess`) VALUES (56, '2022-01-04 16:31:21', 'https://pt2.0.xianmxkj.com/file/uploadPath/2022/01/04/30146e37f9c8b982735888928c9568cc.png', 1, '/running/Cityservice/Cityservice?title=陪玩服务', 1, 6, '陪玩服务', '');
INSERT INTO `banner`(`id`, `create_time`, `image_url`, `state`, `url`, `sort`, `classify`, `name`, `describess`) VALUES (57, '2022-01-04 16:31:21', 'https://pt2.0.xianmxkj.com/file/uploadPath/2022/01/04/b6ad2f780204ab80221414aed84a51ad.png', 1, '/running/Cityservice/Cityservice?title=帮忙服务', 1, 6, '帮忙服务', '');
INSERT INTO `banner`(`id`, `create_time`, `image_url`, `state`, `url`, `sort`, `classify`, `name`, `describess`) VALUES (59, '2022-12-20 14:21:11', 'https://diancan.xianmxkj.com/file/uploadPath/2022/02/18/81a44aeb97590c8961afa6a642ab0a7a.png', 1, '/pages/index/shopList/index?value=4', 2, 4, '肉蛋蔬菜', NULL);
INSERT INTO `banner`(`id`, `create_time`, `image_url`, `state`, `url`, `sort`, `classify`, `name`, `describess`) VALUES (60, '2022-12-20 14:21:11', 'https://diancan.xianmxkj.com/file/uploadPath/2022/02/18/62d5d5700811720d601a448e21fd4564.png', 1, '/pages/index/shopList/index?value=5', 3, 4, '大牌乳品', NULL);
INSERT INTO `banner`(`id`, `create_time`, `image_url`, `state`, `url`, `sort`, `classify`, `name`, `describess`) VALUES (61, '2022-12-20 14:21:11', 'https://tcwm.xianmaxiong.com/file/uploadPath/2022/02/21/d74b114ef9219f530774bbfeaf466ebd.png', 1, '/running/Helpsend/Helpsend?index=1', 5, 4, '帮我送', NULL);
INSERT INTO `banner`(`id`, `create_time`, `image_url`, `state`, `url`, `sort`, `classify`, `name`, `describess`) VALUES (62, '2022-12-20 14:21:11', 'https://tcwm.xianmaxiong.com/file/uploadPath/2022/02/21/2c851f668c27dae0096b5affc96c6c49.png', 1, '/running/Helpsend/Helpsend?index=2', 6, 4, '帮我取', NULL);
INSERT INTO `banner`(`id`, `create_time`, `image_url`, `state`, `url`, `sort`, `classify`, `name`, `describess`) VALUES (63, '2022-12-20 14:21:11', 'https://tcwm.xianmaxiong.com/file/uploadPath/2022/02/21/e9b1add1eb6677d799ceebe869a9405e.png', 1, '/running/Cityservice/Cityservice', 7, 4, '同城服务', NULL);
INSERT INTO `banner`(`id`, `create_time`, `image_url`, `state`, `url`, `sort`, `classify`, `name`, `describess`) VALUES (64, '2022-12-20 14:21:11', 'https://tcwm.xianmaxiong.com/file/uploadPath/2022/02/21/5044ddd944eef593dfddb6a01cd96fd9.png', 1, '/running/Cityservice/Cityservice?title=陪玩服务', 8, 4, '陪玩服务', NULL);
INSERT INTO `banner`(`id`, `create_time`, `image_url`, `state`, `url`, `sort`, `classify`, `name`, `describess`) VALUES (65, '2022-12-20 14:21:11', 'https://tcwm.xianmaxiong.com/file/uploadPath/2022/02/21/7f6de1e3e2fff86b87d5fc278d08808b.png', 1, '/running/Helppay/Helppay', 9, 4, '同城帮买', NULL);
INSERT INTO `banner`(`id`, `create_time`, `image_url`, `state`, `url`, `sort`, `classify`, `name`, `describess`) VALUES (66, '2023-03-17 15:08:28', 'https://tcwm.xianmaxiong.com/file/uploadPath/2022/03/18/535fbe7ad7fbda660469aad24bdf32ae.png', 1, 'cee', 1, 7, 'sd1', 'asdf222');
INSERT INTO `banner`(`id`, `create_time`, `image_url`, `state`, `url`, `sort`, `classify`, `name`, `describess`) VALUES (70, '2022-05-10 13:39:37', 'https://tcwm.xianmaxiong.com/file/uploadPath/2022/05/10/33130d6b6e6b25c3a28c87427f2d9801.png', 1, '234', 1, 10, '12', NULL);
INSERT INTO `banner`(`id`, `create_time`, `image_url`, `state`, `url`, `sort`, `classify`, `name`, `describess`) VALUES (71, '2022-05-10 13:40:07', 'https://tcwm.xianmaxiong.com/file/uploadPath/2022/05/10/c0384fa27b953b29dbed55eef39159ae.png', 1, 'wert', 1, 10, 'wer', NULL);
INSERT INTO `banner`(`id`, `create_time`, `image_url`, `state`, `url`, `sort`, `classify`, `name`, `describess`) VALUES (72, '2022-05-10 13:38:53', 'https://tcwm.xianmaxiong.com/file/uploadPath/2022/05/10/22710629983e039de504302abf985d71.png', 1, 'sad', 1, 11, '分类1', NULL);
INSERT INTO `banner`(`id`, `create_time`, `image_url`, `state`, `url`, `sort`, `classify`, `name`, `describess`) VALUES (73, '2022-05-10 13:41:08', 'https://tcwm.xianmaxiong.com/file/uploadPath/2022/05/10/decc3e8e67878f679c6a6a9a2513e50e.png', 1, 'asd', 1, 11, '分类2', NULL);
INSERT INTO `banner`(`id`, `create_time`, `image_url`, `state`, `url`, `sort`, `classify`, `name`, `describess`) VALUES (74, '2022-05-10 13:41:40', 'https://tcwm.xianmaxiong.com/file/uploadPath/2022/05/10/8151e3bd326bf1ddadf55a56690a13f9.png', 1, '34', 1, 11, '分类3', NULL);
INSERT INTO `banner`(`id`, `create_time`, `image_url`, `state`, `url`, `sort`, `classify`, `name`, `describess`) VALUES (75, '2022-05-10 13:41:54', 'https://tcwm.xianmaxiong.com/file/uploadPath/2022/05/10/2fa0e75f30dc26f740de701d6d9bcd72.png', 1, '234', 1, 11, '分类4', NULL);
INSERT INTO `banner`(`id`, `create_time`, `image_url`, `state`, `url`, `sort`, `classify`, `name`, `describess`) VALUES (77, '2022-11-24 11:51:06', 'https://tcwm.xianmaxiong.com/file/uploadPath/2022/11/24/001d4365963f4cb2c701451bbb30d54c.png', 1, '/running/huodong/list', 1, 12, '新客专享', NULL);
INSERT INTO `banner`(`id`, `create_time`, `image_url`, `state`, `url`, `sort`, `classify`, `name`, `describess`) VALUES (78, '2022-11-24 11:51:06', 'https://tcwm.xianmaxiong.com/file/uploadPath/2022/11/24/405d42a3939b7d46db6d5f8dbccb4b2a.png', 1, '/running/huodong/list', 1, 12, '会员特卖', NULL);
INSERT INTO `banner`(`id`, `create_time`, `image_url`, `state`, `url`, `sort`, `classify`, `name`, `describess`) VALUES (79, '2022-11-24 13:26:23', 'https://tcwm.xianmaxiong.com/file/uploadPath/2022/11/24/bd62a0b427803eb0daf927437a40e7f6.png', 1, '/running/huodong/list', 1, 12, '新店推荐', NULL);
INSERT INTO `banner`(`id`, `create_time`, `image_url`, `state`, `url`, `sort`, `classify`, `name`, `describess`) VALUES (81, '2022-11-24 13:32:52', 'https://tcwm.xianmaxiong.com/file/uploadPath/2022/11/24/a5f643ef232d8042d9581bc87fa1a2b4.png', 1, '/running/huodong/list', 1, 12, '推荐商家', NULL);
INSERT INTO `banner`(`id`, `create_time`, `image_url`, `state`, `url`, `sort`, `classify`, `name`, `describess`) VALUES (82, '2023-03-16 18:05:33', 'https://tcwm.xianmaxiong.com/file/uploadPath/2023/03/16/8d6e40d4eaf0db24525fb97e86cd491c.png', 1, NULL, 1, 1, '2', NULL);
INSERT INTO `banner`(`id`, `create_time`, `image_url`, `state`, `url`, `sort`, `classify`, `name`, `describess`) VALUES (83, '2023-03-16 18:05:43', 'https://tcwm.xianmaxiong.com/file/uploadPath/2023/03/16/d2ea2d224748aab9fcb927c6a300d67c.png', 1, NULL, 1, 1, '3', NULL);
INSERT INTO `banner`(`id`, `create_time`, `image_url`, `state`, `url`, `sort`, `classify`, `name`, `describess`) VALUES (84, '2023-03-16 18:05:51', 'https://tcwm.xianmaxiong.com/file/uploadPath/2023/03/16/942a3ce9d205528cb70c8d015c8ec981.png', 1, NULL, 1, 1, '4', NULL);
INSERT INTO `banner`(`id`, `create_time`, `image_url`, `state`, `url`, `sort`, `classify`, `name`, `describess`) VALUES (85, '2023-03-16 18:06:00', 'https://tcwm.xianmaxiong.com/file/uploadPath/2023/03/16/c32909817dda0d6ac888e2364a5e2966.png', 1, NULL, 1, 1, '5', NULL);


-- ----------------------------
-- Table structure for cancel_after_verification
-- ----------------------------
DROP TABLE IF EXISTS `cancel_after_verification`;
CREATE TABLE `cancel_after_verification`  (
  `code_id` int(11) NOT NULL AUTO_INCREMENT,
  `code` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '核销码',
  `create_time` datetime(0) NULL DEFAULT NULL COMMENT '创建时间',
  `use_time` datetime(0) NULL DEFAULT NULL COMMENT '销码时间',
  `code_status` int(3) NULL DEFAULT NULL COMMENT '是否使用（0未使用 1已使用 2已过期）',
  `order_number` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '绑定订单号',
  `usage_time` time(0) NULL DEFAULT NULL COMMENT '每天几点开始可以使用',
  `end_time` time(0) NULL DEFAULT NULL COMMENT '每天几点后不可使用',
  `apply_num_people` int(11) NULL DEFAULT NULL COMMENT '适用人群',
  `effective_time` datetime(0) NULL DEFAULT NULL COMMENT '计算有效时间开始时间',
  `invalid_time` datetime(0) NULL DEFAULT NULL COMMENT '计算有效时间结束时间',
  `usage_rules` varchar(500) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '使用规则',
  PRIMARY KEY (`code_id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci ROW_FORMAT = Dynamic;

-- ----------------------------
-- Records of cancel_after_verification
-- ----------------------------

-- ----------------------------
-- Table structure for cargo_class
-- ----------------------------
DROP TABLE IF EXISTS `cargo_class`;
CREATE TABLE `cargo_class`  (
  `class_id` int(11) NOT NULL AUTO_INCREMENT COMMENT '品类id',
  `class_name` varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '品类名称',
  `parent_id` int(11) NULL DEFAULT NULL COMMENT '父id',
  `create_time` datetime(0) NULL DEFAULT NULL COMMENT '创建时间',
  PRIMARY KEY (`class_id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci ROW_FORMAT = Dynamic;

-- ----------------------------
-- Records of cargo_class
-- ----------------------------

-- ----------------------------
-- Table structure for cash_out
-- ----------------------------
DROP TABLE IF EXISTS `cash_out`;
CREATE TABLE `cash_out`  (
  `id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '申请提现id',
  `create_at` varchar(255) CHARACTER SET big5 COLLATE big5_chinese_ci NULL DEFAULT NULL COMMENT '申请时间',
  `is_out` bit(1) NULL DEFAULT NULL COMMENT '是否转账',
  `money` varchar(255) CHARACTER SET big5 COLLATE big5_chinese_ci NULL DEFAULT NULL COMMENT '提现金额',
  `out_at` varchar(255) CHARACTER SET big5 COLLATE big5_chinese_ci NULL DEFAULT NULL COMMENT '转账时间',
  `relation_id` varchar(255) CHARACTER SET big5 COLLATE big5_chinese_ci NULL DEFAULT NULL COMMENT '会员编号',
  `user_id` int(11) NULL DEFAULT NULL COMMENT '用户id',
  `zhifubao` varchar(255) CHARACTER SET big5 COLLATE big5_chinese_ci NULL DEFAULT NULL COMMENT '支付宝账号',
  `zhifubao_name` varchar(64) CHARACTER SET utf8 COLLATE utf8_unicode_ci NULL DEFAULT NULL COMMENT '支付宝姓名',
  `order_number` varchar(255) CHARACTER SET big5 COLLATE big5_chinese_ci NULL DEFAULT NULL COMMENT '订单编号',
  `state` int(11) NULL DEFAULT NULL COMMENT '状态 0待转账 1成功 -1退款',
  `refund` varchar(1000) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '原因',
  `type` int(11) NULL DEFAULT NULL COMMENT '分类  1用户提现  2退保障金',
  `classify` int(11) NULL DEFAULT NULL COMMENT '1 支付宝  2 小程序  3公众号  4 微信app',
  `rate` decimal(10, 2) NULL DEFAULT NULL,
  `phone` varchar(255) CHARACTER SET big5 COLLATE big5_chinese_ci NULL DEFAULT NULL COMMENT '用户手机号',
  `cash_qr_code` varchar(255) CHARACTER SET big5 COLLATE big5_chinese_ci NULL DEFAULT NULL COMMENT '用户提现二维码',
  `shop_id` int(11) NULL DEFAULT NULL,
  PRIMARY KEY (`id`) USING BTREE,
  INDEX `index_name`(`relation_id`, `user_id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 319 CHARACTER SET = big5 COLLATE = big5_chinese_ci ROW_FORMAT = Dynamic;

-- ----------------------------
-- Records of cash_out
-- ----------------------------

-- ----------------------------
-- Table structure for chat_content
-- ----------------------------
DROP TABLE IF EXISTS `chat_content`;
CREATE TABLE `chat_content`  (
  `chat_content_id` int(11) NOT NULL AUTO_INCREMENT COMMENT '聊天内容id',
  `chat_conversation_id` int(11) NULL DEFAULT NULL COMMENT '聊天会话id',
  `content` varchar(2000) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '内容',
  `message_type` int(11) NULL DEFAULT NULL COMMENT '类型 1文字 2图片 3语音',
  `width` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '图片宽度',
  `height` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '图片高度',
  `user_id` int(11) NULL DEFAULT NULL COMMENT '发送用户id',
  `status` int(11) NULL DEFAULT NULL COMMENT '0未读 1已读',
  `create_time` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '发送时间',
  `voice_length` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL,
  PRIMARY KEY (`chat_content_id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 611 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci ROW_FORMAT = Dynamic;

-- ----------------------------
-- Records of chat_content
-- ----------------------------

-- ----------------------------
-- Table structure for chat_content_tcwm
-- ----------------------------
DROP TABLE IF EXISTS `chat_content_tcwm`;
CREATE TABLE `chat_content_tcwm`  (
  `chat_content_id` int(11) NOT NULL AUTO_INCREMENT COMMENT '聊天内容id',
  `orders_id` int(11) NULL DEFAULT NULL COMMENT '聊天会话id',
  `content` varchar(2000) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '内容',
  `message_type` int(11) NULL DEFAULT NULL COMMENT '类型 1文字 2图片 3语音',
  `width` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '图片宽度',
  `height` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '图片高度',
  `user_id` int(11) NULL DEFAULT NULL COMMENT '用户id',
  `rider_id` int(11) NULL DEFAULT NULL COMMENT '骑手id',
  `shop_id` int(11) NULL DEFAULT NULL COMMENT '商家id',
  `user_status` int(11) NULL DEFAULT NULL COMMENT '用户是否已读 0未读 1已读',
  `rider_status` int(11) NULL DEFAULT NULL COMMENT '骑手是否已读 0未读 1已读',
  `shop_status` int(11) NULL DEFAULT NULL COMMENT '商户是否已读 0未读 1已读',
  `create_time` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '发送时间',
  `voice_length` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL,
  PRIMARY KEY (`chat_content_id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 1022 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci ROW_FORMAT = Dynamic;

-- ----------------------------
-- Records of chat_content_tcwm
-- ----------------------------

-- ----------------------------
-- Table structure for chat_conversation
-- ----------------------------
DROP TABLE IF EXISTS `chat_conversation`;
CREATE TABLE `chat_conversation`  (
  `chat_conversation_id` int(11) NOT NULL AUTO_INCREMENT COMMENT '聊天会话id',
  `user_id` int(11) NULL DEFAULT NULL COMMENT '发送用户id',
  `focused_user_id` int(11) NULL DEFAULT NULL COMMENT '接受用户id',
  `status` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '状态',
  `create_time` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '创建时间',
  `update_time` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '更新时间',
  `remark` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '备注',
  `is_send_msg` int(11) NULL DEFAULT NULL,
  `is_wx_msg` int(11) NULL DEFAULT NULL,
  PRIMARY KEY (`chat_conversation_id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 81 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci ROW_FORMAT = Dynamic;

-- ----------------------------
-- Records of chat_conversation
-- ----------------------------

-- ----------------------------
-- Table structure for chats
-- ----------------------------
DROP TABLE IF EXISTS `chats`;
CREATE TABLE `chats`  (
  `chat_id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '会话id',
  `create_time` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '创建时间',
  `store_id` bigint(20) NULL DEFAULT NULL COMMENT '总后台id(总后台传0',
  `store_head` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '后台头像',
  `store_name` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '商户昵称',
  `store_count` int(11) NULL DEFAULT 0 COMMENT '后台未读条数',
  `user_id` bigint(20) NULL DEFAULT NULL COMMENT '用户id',
  `user_head` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '用户头像',
  `user_name` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '用户昵称',
  `user_count` int(20) NULL DEFAULT 0 COMMENT '用户未读条数',
  `sys_user_id` bigint(20) NULL DEFAULT NULL COMMENT '商户id',
  `sys_user_head` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '商户头像',
  `sys_user_name` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '商户昵称',
  `sys_user_count` int(20) NULL DEFAULT 0 COMMENT '商户未读条数',
  `is_shop` int(11) NULL DEFAULT NULL,
  PRIMARY KEY (`chat_id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 1737 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '聊天会话' ROW_FORMAT = Dynamic;

-- ----------------------------
-- Records of chats
-- ----------------------------

-- ----------------------------
-- Table structure for chats_content
-- ----------------------------
DROP TABLE IF EXISTS `chats_content`;
CREATE TABLE `chats_content`  (
  `chat_content_id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '会话内容id',
  `chat_id` bigint(20) NULL DEFAULT NULL COMMENT '会话Id',
  `content` text CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL COMMENT '聊天内容',
  `create_time` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '创建时间',
  `send_type` bigint(20) NULL DEFAULT NULL COMMENT '消息来源（1用户消息 2好友消息）',
  `status` int(11) NULL DEFAULT 1 COMMENT '是否已读(1未读 2已读)',
  `type` int(1) NULL DEFAULT NULL COMMENT '类型（1文字 2图片 3链接）',
  `user_id` bigint(20) NULL DEFAULT NULL COMMENT '用户id',
  `sys_user_id` bigint(20) NULL DEFAULT NULL COMMENT '管理端用户id',
  `store_id` bigint(20) NULL DEFAULT NULL COMMENT '后台id（总后台传0）',
  PRIMARY KEY (`chat_content_id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 1347 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '聊天会话内容' ROW_FORMAT = Dynamic;

-- ----------------------------
-- Records of chats_content
-- ----------------------------

-- ----------------------------
-- Table structure for common_info
-- ----------------------------
DROP TABLE IF EXISTS `common_info`;
CREATE TABLE `common_info`  (
  `id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '配置id',
  `create_at` varchar(255) CHARACTER SET big5 COLLATE big5_chinese_ci NULL DEFAULT NULL COMMENT '时间',
  `max` varchar(255) CHARACTER SET big5 COLLATE big5_chinese_ci NULL DEFAULT NULL,
  `min` varchar(2000) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '配置名称',
  `type` int(11) NULL DEFAULT NULL COMMENT '类型',
  `value` text CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NULL COMMENT '对应值',
  `condition_from` varchar(255) CHARACTER SET big5 COLLATE big5_chinese_ci NULL DEFAULT NULL COMMENT '分类',
  PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 352 CHARACTER SET = big5 COLLATE = big5_chinese_ci ROW_FORMAT = Dynamic;

-- ----------------------------
-- Records of common_info
-- ----------------------------
INSERT INTO `common_info` VALUES (1, '2022-10-10 13:59:02', '1', '用户端客服二维码', 1, 'https://tcwm.xianmaxiong.com/file/uploadPath/2022/10/10/e1681cd0e754fa315dd25dae2aa5fbc6.jpeg', 'image');
INSERT INTO `common_info` VALUES (5, '2020-07-09 17:59:45', NULL, '用户端微信公众号APPID', 5, '', 'weixin');
INSERT INTO `common_info` VALUES (12, '2021-09-22 22:38:33', NULL, '后台服务名称	', 12, '省钱兄', 'xitong');
INSERT INTO `common_info` VALUES (17, '2021-11-26 10:20:24', NULL, '商户端h5域名配置', 17, 'https://tcwmshop.xianmaxiong.com', 'xitong');
INSERT INTO `common_info` VALUES (18, '2021-11-26 10:20:24', NULL, '骑手端h5域名配置', 18, 'https://tcwmqs.xianmaxiong.com', 'xitong');
INSERT INTO `common_info` VALUES (19, '2021-11-26 10:20:24', NULL, '用户端h5域名配置', 19, 'https://tcwm.xianmaxiong.com', 'xitong');
INSERT INTO `common_info` VALUES (20, '2022-09-13 16:55:57', NULL, '后台管理平台域名配置', 20, 'https://tcwmadmin.xianmaxiong.com', 'xitong');
INSERT INTO `common_info` VALUES (21, '2020-02-25 20:43:38', NULL, '用户端微信公众号秘钥', 21, '', 'weixin');
INSERT INTO `common_info` VALUES (31, '2020-03-28 00:46:38', NULL, '腾讯云短信clientId	', 31, '', 'duanxin');
INSERT INTO `common_info` VALUES (32, '2020-03-28 00:47:05', NULL, '腾讯云短信clientSecret	', 32, '', 'duanxin');
INSERT INTO `common_info` VALUES (44, '2022-09-13 16:56:08', NULL, '客服微信号', 44, 'maxdlln', 'xitong');
INSERT INTO `common_info` VALUES (45, '2020-03-29 00:21', NULL, '用户端微信小程序APPID', 45, '', 'weixin');
INSERT INTO `common_info` VALUES (46, '2020-03-29 00:21', NULL, '用户端微信小程序秘钥', 46, '', 'weixin');
INSERT INTO `common_info` VALUES (54, '2022-03-11 16:36:32', NULL, '商家端-APP消息推送PushAppKey', 54, 'EnChblMCpKAtfRv5Eoh2n7', 'push');
INSERT INTO `common_info` VALUES (55, '2022-03-11 16:36:21', NULL, '商家端-APP消息推送PushAppId', 55, 'ugzGYfKEFj5SkxsAKrl964', 'push');
INSERT INTO `common_info` VALUES (56, '2022-03-11 16:36:43', NULL, '商家端-APP消息推送PushMasterSecret', 56, 'NwSK5dvLWV8lX2oe97Wph2', 'push');
INSERT INTO `common_info` VALUES (57, '2022-03-11 16:36:32', NULL, '骑手端-APP消息推送PushAppKey', 57, 'EnChblMCpKAtfRv5Eoh2n7', 'push');
INSERT INTO `common_info` VALUES (58, '2022-03-11 16:36:21', NULL, '骑手端-APP消息推送PushAppId', 58, 'ugzGYfKEFj5SkxsAKrl964', 'push');
INSERT INTO `common_info` VALUES (59, '2022-03-11 16:36:43', NULL, '骑手端-APP消息推送PushMasterSecret', 59, 'NwSK5dvLWV8lX2oe97Wph2', 'push');
INSERT INTO `common_info` VALUES (60, '2022-02-28 18:13:01', NULL, '用户端-APP消息推送PushAppKey', 60, '0n6PRHS4ph85bBI9nbRCs7', 'push');
INSERT INTO `common_info` VALUES (61, '2022-02-28 18:13:11', NULL, '用户端-APP消息推送PushAppId', 61, 'kmAYxzB5Ys93Kn7ysprSx3', 'push');
INSERT INTO `common_info` VALUES (62, '2022-02-28 18:13:27', NULL, '用户端-APP消息推送PushMasterSecret', 62, 'KZQn7eeT9I9q6U3CsDjcK2', 'push');
INSERT INTO `common_info` VALUES (71, '2020-06-04 16:34', NULL, '企业支付宝APPID', 63, '', 'zhifubao');
INSERT INTO `common_info` VALUES (72, '2020-06-04 16:34', NULL, '企业支付宝公钥', 64, '', 'zhifubao');
INSERT INTO `common_info` VALUES (73, '2020-06-04 16:34', NULL, '企业支付宝应用秘钥', 65, '', 'zhifubao');
INSERT INTO `common_info` VALUES (74, '2020-07-27 15:1', NULL, '用户端微信AppappId', 74, '', 'weixin');
INSERT INTO `common_info` VALUES (75, '2020-07-27 15:1', NULL, '微信商户key', 75, '', 'weixin');
INSERT INTO `common_info` VALUES (76, '2020-07-27 15:1', NULL, '微信商户号mchId', 76, '', 'weixin');
INSERT INTO `common_info` VALUES (77, '2020-07-13 15:17', NULL, '文件上传阿里云Endpoint', 68, '', 'xitong');
INSERT INTO `common_info` VALUES (78, '2020-07-13 15:17', NULL, '文件上传阿里云账号accessKeyId', 69, '', 'xitong');
INSERT INTO `common_info` VALUES (79, '2020-07-27 15:17', NULL, '短信服务商（1 腾讯云  2阿里云  3短信宝）', 79, '3', 'duanxin');
INSERT INTO `common_info` VALUES (80, '2020-07-13 15:17', NULL, '文件上传阿里云账号accessKeySecret', 70, '', 'xitong');
INSERT INTO `common_info` VALUES (81, '2020-07-13 15:17', NULL, '文件上传阿里云Bucket名称', 71, '', 'xitong');
INSERT INTO `common_info` VALUES (82, '2020-07-13 15:17', NULL, '文件上传阿里云Bucket域名', 72, '', 'xitong');
INSERT INTO `common_info` VALUES (88, '2020-11-04 10:31:40', NULL, '系统默认邀请码', 88, 'XTYQM', 'xitong');
INSERT INTO `common_info` VALUES (93, '2020-10-22 14:39:10', NULL, '阿里云短信accessKeyId', 93, '', 'duanxin');
INSERT INTO `common_info` VALUES (94, '2020-10-22 14:39:15', NULL, '阿里云短信accessSecret', 94, '', 'duanxin');
INSERT INTO `common_info` VALUES (98, '2022-05-13 13:40:29', NULL, '转账方式 1支付宝秘钥  2 支付宝证书 3手动', 98, '3', 'zhifubao');
INSERT INTO `common_info` VALUES (100, '2020-10-22 14:38:53', NULL, '阿里云登陆或注册模板code（开启阿里云短信必须配置）', 100, 'SMS_200190994', 'duanxin');
INSERT INTO `common_info` VALUES (101, '2020-10-22 14:38:53', NULL, '阿里云找回密码模板（开启阿里云短信必须配置）', 101, 'SMS_200190994', 'duanxin');
INSERT INTO `common_info` VALUES (102, '2020-10-22 14:38:53', NULL, '阿里云绑定手机号模板（开启阿里云短信必须配置）', 102, 'SMS_200190994', 'duanxin');
INSERT INTO `common_info` VALUES (103, '2020-10-22 14:38:53', NULL, '阿里云入驻商户模板（开启阿里云短信必须配置）', 103, 'SMS_200190994', 'duanxin');
INSERT INTO `common_info` VALUES (104, '2020-10-22 14:38:53', NULL, '阿里云自动派单（开启阿里云短信必须配置）', 104, 'SMS_200190994', 'duanxin');
INSERT INTO `common_info` VALUES (105, '2020-10-22 14:38:53', NULL, '阿里云商户资料审核成功通知（开启阿里云短信必须配置）', 105, 'SMS_200190994', 'duanxin');
INSERT INTO `common_info` VALUES (106, '2020-10-22 14:38:53', NULL, '阿里云商户资料审核失败通知（开启阿里云短信必须配置）', 106, 'SMS_200190994', 'duanxin');
INSERT INTO `common_info` VALUES (107, '2020-10-22 14:38:53', NULL, '阿里云入驻申请通知（开启阿里云短信必须配置）', 107, 'SMS_200190994', 'duanxin');
INSERT INTO `common_info` VALUES (108, '2020-10-22 14:38:53', NULL, '阿里云违规通知（开启阿里云短信必须配置）', 108, 'SMS_200190994', 'duanxin');
INSERT INTO `common_info` VALUES (109, '2020-10-22 14:38:53', NULL, '阿里云查询商户信息（开启阿里云短信必须配置）', 109, 'SMS_200190994', 'duanxin');
INSERT INTO `common_info` VALUES (111, '2020-07-27 15:17', NULL, '用户端是否开启签到积分', 111, '是', 'kaiguan');
INSERT INTO `common_info` VALUES (112, '2020-11-04 10:31:40', NULL, '最低提现金额', 112, '10', 'fuwufei');
INSERT INTO `common_info` VALUES (114, '2022-02-21 15:24:58', NULL, '骑手端提现手续费', 114, '0.1', 'fuwufei');
INSERT INTO `common_info` VALUES (115, '2022-05-04 17:11:29', NULL, '商家提现手续费', 115, '0.02', 'fuwufei');
INSERT INTO `common_info` VALUES (116, '2022-02-18 20:48:05', NULL, '是否开启提现手续费', 116, '是', 'kaiguan');
INSERT INTO `common_info` VALUES (118, '2021-12-20 14:43:56', NULL, '用户端签到模块签到规则周期', 118, '3', 'xitong');
INSERT INTO `common_info` VALUES (119, '2020-11-13 13:06:39', NULL, '用户端每日签到积分', 119, '10', 'xitong');
INSERT INTO `common_info` VALUES (120, '2020-11-13 13:06:39', NULL, '用户端每天增加签到积分', 120, '10', 'xitong');
INSERT INTO `common_info` VALUES (153, '2020-11-04 10:31:40', NULL, '最高提现金额', 153, '200', 'fuwufei');
INSERT INTO `common_info` VALUES (164, '2020-07-27 15:17', NULL, '短信宝用户名', 164, '', 'duanxin');
INSERT INTO `common_info` VALUES (165, '2022-08-09 18:14:41', NULL, '短信宝密码', 165, '', 'duanxin');
INSERT INTO `common_info` VALUES (188, '2020-11-04 10:31:40', NULL, '用户端小程序是否开启获取手机号', 188, '是', 'kaiguan');
INSERT INTO `common_info` VALUES (232, '2022-02-23 17:45:55', '1', '新用户注册默认头像', 232, 'https://tcwm.xianmaxiong.com/file/uploadPath/2022/02/26/70402841794b11e525a31143519b9bf8.png', 'image');
INSERT INTO `common_info` VALUES (233, '2022-02-18 20:48:05', NULL, '关于我们', 233, '关于我们', 'xieyi');
INSERT INTO `common_info` VALUES (234, '2020-11-04 10:31:40', NULL, '上传方式 1阿里云oss  2本地', 234, '2', 'xitong');
INSERT INTO `common_info` VALUES (235, '2021-12-30 15:40:56', NULL, '腾讯地图key', 235, 'WI7BZ-YZCKF-U3BJQ-JUMBB-XUQ3E-UXFYU', 'weixin');
INSERT INTO `common_info` VALUES (236, '2021-11-29 10:29:35', NULL, '全局用户协议', 236, '<p><strong style=\"color: rgb(255, 153, 0);\">尊敬的用户您好：在您使用本服务之前，请您认真阅读本用户协议，更好的了解我们所提供的服务以及您享有的权利义务。您开始使用时，即表示您已经了解并确认接受了本文件中的全部条款，包括我们对本服务条款随时做的任何修改。</strong></p><p>一、协议的效力<span style=\"color: rgb(255, 153, 0);\"><span class=\"ql-cursor\">﻿</span></span></p><p>本协议内容包括协议正文及所有已经发布或将来可能发布的各类规则。所有规则为本协议不可分割的组成部分，与协议正文具有同等法律效力。您承诺接受并遵守本协议的约定。如果您不同意本协议的约定，您应立即停止使用本平台服务。</p><p>二、用户行为规范</p><p>用户同意将不会利用本服务进行任何违法或不正当的活动，包括但不限于下列行为∶</p><p>发布或以其它方式传送含有下列内容之一的信息：</p><p>反对宪法所确定的基本原则的；</p><p>危害国家安全，泄露国家秘密，颠覆国家政权，破坏国家统一的；</p><p>损害国家荣誉和利益的；</p><p>煽动民族仇恨、民族歧视、破坏民族团结的；</p><p>破坏国家宗教政策，宣扬邪教和封建迷信的；</p><p>散布谣言，扰乱社会秩序，破坏社会稳定的；</p><p>散布淫秽、色情、赌博、暴力、凶杀、恐怖或者教唆犯罪的；</p><p>侮辱或者诽谤他人，侵害他人合法权利的；</p><p>含有虚假、诈骗、有害、胁迫、侵害他人隐私、骚扰、侵害、中伤、粗俗、猥亵、或其它道德上令人反感的内容；</p><p>含有当地法律、法规、规章、条例以及任何具有法律效力之规范所限制或禁止的其它内容的；</p><p>含有不适合在本平台展示的内容；</p><p>以任何方式危害他人的合法权益；</p><p>冒充其他任何人或机构，或以虚伪不实的方式陈述或谎称与任何人或机构有关；</p><p>将依据任何法律或合约或法定关系（例如由于雇佣关系和依据保密合约所得知或揭露之内部资料、专属及机密资料）知悉但无权传送之任何内容加以发布、发送电子邮件或以其它方式传送；</p><p>将侵害他人著作权、专利权、商标权、商业秘密、或其它专属权利（以下简称“专属权利”）之内容加以发布或以其它方式传送；</p><p>将任何广告信函、促销资料、“垃圾邮件”、““滥发信件”、“连锁信件”、“直销”或其它任何形式的劝诱资料加以发布、发送或以其它方式传送；</p><p>将设计目的在于干扰、破坏或限制任何计算机软件、硬件或通讯设备功能之计算机病毒（包括但不限于木马程序（trojan horses）、蠕虫（worms）、定时炸弹、删除蝇（cancelbots）（以下简称“病毒”）或其它计算机代码、档案和程序之任何资料，加以发布、发送或以其它方式传送；</p><p>干扰或破坏本服务或与本服务相连线之服务器和网络，或违反任何关于本服务连线网络之规定、程序、政策或规范；</p><p>跟踪、人肉搜索或以其它方式骚扰他人；</p><p>故意或非故意地违反任何适用的当地、国家法律，以及任何具有法律效力的规则；</p><p>未经合法授权而截获、篡改、收集、储存或删除他人个人信息、站内邮件或其它数据资料，或将获知的此类资料用于任何非法或不正当目的。</p><p>三、知识产权</p><p>本平台所有设计图样以及其他图样、产品及服务名称。任何人不得使用、复制或用作其他用途。未经我们许可，任何单位和个人不得私自复制、传播、展示、镜像、上载、下载、使用，或者从事任何其他侵犯我们知识产权的行为。否则，我们将追究相关法律责任。</p><p>我们鼓励用户充分利用平台自由地张贴和共享自己的信息，但这些内容必须位于公共领域内，或者用户拥有这些内容的使用权。同时，用户对于其创作并在本平台上发布的合法内容依法享有著作权及其相关权利。</p><p>四、免责声明</p><p>互联网是一个开放平台，用户将照片等个人资料上传到互联网上，有可能会被其他组织或个人复制、转载、擅改或做其它非法用途，用户必须充分意识此类风险的存在。用户明确同意其使用本服务所存在的风险将完全由其自己承担；因其使用本服务而产生的一切后果也由其自己承担，我们对用户不承担任何责任。</p><p>对于用户上传的照片、资料、证件等，已采用相关措施并已尽合理努力进行审核，但不保证其内容的正确性、合法性或可靠性，相关责任由上传上述内容的会员负责。</p><p>尽管已采取相应的技术保障措施 ，但用户仍有可能收到各类的广告信或其他不以招聘/应聘为目的邮件或其它方式传送的任何内容，本平台不承担责任。</p><p>对于各种广告信息、链接、资讯等，不保证其内容的正确性、合法性或可靠性，相关责任由广告商承担；用户通过本服务与广告商进行任何形式的通讯或商业往来，或参与促销活动，包含相关商品或服务之付款及交付，以及达成的其它任何相关条款、条件、保证或声明，完全为用户与广告商之间之行为，与本平台无关。用户因前述任何交易或前述广告商而遭受的任何性质的损失或损害，本平台不承担任何责任。</p><p>本平台不保证其提供的服务一定能满足用户的要求和期望，也不保证服务不会中断，对服务的及时性、安全性、准确性也都不作保证。对于因不可抗力或无法控制的原因造成的网络服务中断或其他缺陷，不承担任何责任。我们不对用户所发布信息的删除或储存失败承担责任。我们有权判断用户的行为是否符合本网站使用协议条款之规定，如果我们认为用户违背了协议条款的规定，我们有终止向其提供服务的权利。</p><p>本平台保留变更、中断或终止部分网络服务的权利。保留根据实际情况随时调整平台提供的服务种类、形式的权利。本平台不承担因业务调整给用户造成的损失。本平台仅提供相关服务，除此之外与本服务有关的设备（如电脑、调制解调器及其他与接入互联网有关的装置）及所需的费用（如为接入互联网而支付的电话费及上网费）均应由用户自行负担。</p>', 'xieyi');
INSERT INTO `common_info` VALUES (237, '2020-11-04 10:31:40', NULL, '全局隐私政策', 237, '<p>尊敬的用户您好：在您使用本服务之前，请您认真阅读本用户协议，更好的了解我们所提供的服务以及您享有的权利义务。您开始使用时，即表示您已经了解并确认接受了本文件中的全部条款，包括我们对本服务条款随时做的任何修改。</p><p>一、协议的效力</p><p>本协议内容包括协议正文及所有已经发布或将来可能发布的各类规则。所有规则为本协议不可分割的组成部分，与协议正文具有同等法律效力。您承诺接受并遵守本协议的约定。如果您不同意本协议的约定，您应立即停止使用本平台服务。</p><p>二、用户行为规范</p><p>用户同意将不会利用本服务进行任何违法或不正当的活动，包括但不限于下列行为∶</p><p>发布或以其它方式传送含有下列内容之一的信息：</p><p>反对宪法所确定的基本原则的；</p><p>危害国家安全，泄露国家秘密，颠覆国家政权，破坏国家统一的；</p><p>损害国家荣誉和利益的；</p><p>煽动民族仇恨、民族歧视、破坏民族团结的；</p><p>破坏国家宗教政策，宣扬邪教和封建迷信的；</p><p>散布谣言，扰乱社会秩序，破坏社会稳定的；</p><p>散布淫秽、色情、赌博、暴力、凶杀、恐怖或者教唆犯罪的；</p><p>侮辱或者诽谤他人，侵害他人合法权利的；</p><p>含有虚假、诈骗、有害、胁迫、侵害他人隐私、骚扰、侵害、中伤、粗俗、猥亵、或其它道德上令人反感的内容；</p><p>含有当地法律、法规、规章、条例以及任何具有法律效力之规范所限制或禁止的其它内容的；</p><p>含有不适合在本平台展示的内容；</p><p>以任何方式危害他人的合法权益；</p><p>冒充其他任何人或机构，或以虚伪不实的方式陈述或谎称与任何人或机构有关；</p><p>将依据任何法律或合约或法定关系（例如由于雇佣关系和依据保密合约所得知或揭露之内部资料、专属及机密资料）知悉但无权传送之任何内容加以发布、发送电子邮件或以其它方式传送；</p><p>将侵害他人著作权、专利权、商标权、商业秘密、或其它专属权利（以下简称“专属权利”）之内容加以发布或以其它方式传送；</p><p>将任何广告信函、促销资料、“垃圾邮件”、““滥发信件”、“连锁信件”、“直销”或其它任何形式的劝诱资料加以发布、发送或以其它方式传送；</p><p>将设计目的在于干扰、破坏或限制任何计算机软件、硬件或通讯设备功能之计算机病毒（包括但不限于木马程序（trojan horses）、蠕虫（worms）、定时炸弹、删除蝇（cancelbots）（以下简称“病毒”）或其它计算机代码、档案和程序之任何资料，加以发布、发送或以其它方式传送；</p><p>干扰或破坏本服务或与本服务相连线之服务器和网络，或违反任何关于本服务连线网络之规定、程序、政策或规范；</p><p>跟踪、人肉搜索或以其它方式骚扰他人；</p><p>故意或非故意地违反任何适用的当地、国家法律，以及任何具有法律效力的规则；</p><p>未经合法授权而截获、篡改、收集、储存或删除他人个人信息、站内邮件或其它数据资料，或将获知的此类资料用于任何非法或不正当目的。</p><p>三、知识产权</p><p>本平台所有设计图样以及其他图样、产品及服务名称。任何人不得使用、复制或用作其他用途。未经我们许可，任何单位和个人不得私自复制、传播、展示、镜像、上载、下载、使用，或者从事任何其他侵犯我们知识产权的行为。否则，我们将追究相关法律责任。</p><p>我们鼓励用户充分利用平台自由地张贴和共享自己的信息，但这些内容必须位于公共领域内，或者用户拥有这些内容的使用权。同时，用户对于其创作并在本平台上发布的合法内容依法享有著作权及其相关权利。</p><p>四、免责声明</p><p>互联网是一个开放平台，用户将照片等个人资料上传到互联网上，有可能会被其他组织或个人复制、转载、擅改或做其它非法用途，用户必须充分意识此类风险的存在。用户明确同意其使用本服务所存在的风险将完全由其自己承担；因其使用本服务而产生的一切后果也由其自己承担，我们对用户不承担任何责任。</p><p>对于用户上传的照片、资料、证件等，已采用相关措施并已尽合理努力进行审核，但不保证其内容的正确性、合法性或可靠性，相关责任由上传上述内容的会员负责。</p><p>尽管已采取相应的技术保障措施 ，但用户仍有可能收到各类的广告信或其他不以招聘/应聘为目的邮件或其它方式传送的任何内容，本平台不承担责任。</p><p>对于各种广告信息、链接、资讯等，不保证其内容的正确性、合法性或可靠性，相关责任由广告商承担；用户通过本服务与广告商进行任何形式的通讯或商业往来，或参与促销活动，包含相关商品或服务之付款及交付，以及达成的其它任何相关条款、条件、保证或声明，完全为用户与广告商之间之行为，与本平台无关。用户因前述任何交易或前述广告商而遭受的任何性质的损失或损害，本平台不承担任何责任。</p><p>本平台不保证其提供的服务一定能满足用户的要求和期望，也不保证服务不会中断，对服务的及时性、安全性、准确性也都不作保证。对于因不可抗力或无法控制的原因造成的网络服务中断或其他缺陷，不承担任何责任。我们不对用户所发布信息的删除或储存失败承担责任。我们有权判断用户的行为是否符合本网站使用协议条款之规定，如果我们认为用户违背了协议条款的规定，我们有终止向其提供服务的权利。</p><p>本平台保留变更、中断或终止部分网络服务的权利。保留根据实际情况随时调整平台提供的服务种类、形式的权利。本平台不承担因业务调整给用户造成的损失。本平台仅提供相关服务，除此之外与本服务有关的设备（如电脑、调制解调器及其他与接入互联网有关的装置）及所需的费用（如为接入互联网而支付的电话费及上网费）均应由用户自行负担。</p>', 'xieyi');
INSERT INTO `common_info` VALUES (238, '2021-12-31 18:03:27', '1', '用户端推广图片', 238, 'https://diancan.xianmxkj.com/file/uploadPath/2021/12/31/4bed1d04d28efc7e672f3684ce2c6f4e.png', 'image');
INSERT INTO `common_info` VALUES (239, '2021-12-01 13:41:47', NULL, '用户端推广文案', 239, '快来加入我们吧', 'xitong');
INSERT INTO `common_info` VALUES (240, '2021-12-18 15:20:39', NULL, '用户端优惠券兑换规则', 240, '优惠券兑换规则', 'xitongs');
INSERT INTO `common_info` VALUES (248, '2022-01-01 17:29:51', NULL, '跑腿师傅端微信小程序APPID', 248, '', 'weixin');
INSERT INTO `common_info` VALUES (249, '2022-01-01 17:29:59', NULL, '跑腿师傅端微信小程序秘钥', 249, '', 'weixin');
INSERT INTO `common_info` VALUES (250, '2020-07-27 15:1', NULL, '跑腿师傅端微信商户key', 250, '', 'weixin');
INSERT INTO `common_info` VALUES (251, '2020-07-27 15:1', NULL, '跑腿师傅端微信商户号mchId', 251, '', 'weixin');
INSERT INTO `common_info` VALUES (256, '2022-05-23 10:33:34', NULL, '是否开启赠送跑腿新用户红包', 256, '否', 'kaiguan');
INSERT INTO `common_info` VALUES (260, '2020-11-04 10:31:40', NULL, '是否开启腾讯云实名认证', 260, '否', 'kaiguan');
INSERT INTO `common_info` VALUES (261, '2022-11-24 13:24:50', NULL, '用户端小程序上架规则', 261, '是', 'kaiguan');
INSERT INTO `common_info` VALUES (262, '2020-07-09 17:59:45', NULL, '跑腿师傅微信公众号APPID', 262, '', 'weixin');
INSERT INTO `common_info` VALUES (263, '2020-02-25 20:43:38', NULL, '跑腿师傅微信公众号秘钥', 263, '', 'weixin');
INSERT INTO `common_info` VALUES (264, '2022-11-24 11:18:16', NULL, '用户端小程序上架规则(2)', 264, '是', 'kaiguan');
INSERT INTO `common_info` VALUES (265, '2021-12-21 14:00:52', NULL, '用户端充值金额额度配置', 265, '0.01,100,200,500', 'xitong');
INSERT INTO `common_info` VALUES (266, '2021-12-21 14:00:52', NULL, '用户端订单取消通知', 266, 'krPQy2CalktiDVPoAteAym9a0yEXQBjwul6fTdtqUJA', 'tongzhi');
INSERT INTO `common_info` VALUES (268, '2022-06-02 23:12:30', NULL, '多长时间后自动完成订单（整数小时）', 268, '2', 'fuwufei');
INSERT INTO `common_info` VALUES (269, '2021-12-30 15:40:56', NULL, '用户端订单状态通知', 269, 'qcWiWUil_daknAWExGad-AwiRVEYWAACuVOxYJKNh-A', 'tongzhi');
INSERT INTO `common_info` VALUES (270, '2021-12-30 15:40:56', NULL, '商户发布商品所需保证金', 270, '0.01', 'fuwufei');
INSERT INTO `common_info` VALUES (271, '2021-12-30 15:40:56', NULL, '骑手端到达时间计算系数（距离m/x）', 271, '100', 'fuwufei');
INSERT INTO `common_info` VALUES (272, '2021-12-30 15:40:56', NULL, '跑腿模块骑手收入占跑腿费的比例', 272, '0.5', 'fuwufei');
INSERT INTO `common_info` VALUES (273, '2021-12-30 15:40:56', NULL, '骑手接单所需保证金(元)', 273, '0.01', 'fuwufei');
INSERT INTO `common_info` VALUES (274, '2022-04-24 15:10:28', NULL, '骑手端近单模式距离（米）', 274, '1000000', 'fuwufei');
INSERT INTO `common_info` VALUES (275, '2020-02-25 20:43:38', NULL, '跑腿模块骑手取消订单扣款比例（0.5表示50%）', 275, '0.5', 'fuwufei');
INSERT INTO `common_info` VALUES (276, '2022-01-01 19:00:49', NULL, '帮我送、取订单跑腿费计算方式（(重量*距离)/X）', 276, '2000', 'fuwufei');
INSERT INTO `common_info` VALUES (277, '2022-05-05 13:14:02', NULL, '帮我送订单最低金额（元）', 277, '1', 'fuwufei');
INSERT INTO `common_info` VALUES (278, '2020-11-04 10:30:40', NULL, '帮我取、帮我送订单，骑手收入占订单价格的百分比', 278, '0.5', 'fuwufei');
INSERT INTO `common_info` VALUES (279, '2022-01-01 19:00:49', NULL, '帮我买订单跑腿费计算方式（X米/元）', 279, '500', 'fuwufei');
INSERT INTO `common_info` VALUES (280, '2022-05-05 13:15:13', NULL, '帮我买订单最低金额（元）', 280, '1', 'fuwufei');
INSERT INTO `common_info` VALUES (281, '2020-11-04 10:31:40', NULL, '帮我买订单，骑手收入占订单价格的百分比', 281, '0.5', 'fuwufei');
INSERT INTO `common_info` VALUES (282, '2022-04-25 10:37:41', NULL, '跑腿模块同城师傅上门价格（元）', 282, '20', 'fuwufei');
INSERT INTO `common_info` VALUES (283, '2020-11-04 10:30:40', NULL, '同城服务订单同城师傅收入占订单价格的百分比', 283, '0.7', 'fuwufei');
INSERT INTO `common_info` VALUES (284, '2020-11-04 10:31:40', NULL, '用户取消帮我买、帮我送订单扣款比例', 284, '0.5', 'fuwufei');
INSERT INTO `common_info` VALUES (285, '2020-11-04 10:31:40', NULL, '骑手取消帮我买、帮我送订单扣款比例', 285, '0.5', 'fuwufei');
INSERT INTO `common_info` VALUES (286, '2022-02-22 19:36:44', NULL, '全局关于我们', 286, '公司简介 省钱兄成立于2019年9月26日，21年高新技术企业，21年科技型中小企业，20年3A企业认证，21年优秀民营企业，21年优秀民营企业家，ISO9001国军标企业，ISO9001质量体系企业，主要领域商标代理；版权代理；知识产权服务（专利代理服务除外）；信息技术咨询服务；信息系统集成服务；计算机系统服务；电竞信息科技；数据处理和存储支持服务；技术服务、技术开发、技术咨询、技术交流、技术转让、技术推广；软件开发；网络与信息安全软件开发；网络设备销售；市场营销策划；专业设计服务；平面设计；广告设计、代理；广告制作；办公服务；图文设计制作  业务简介 公司拥有现成多商户电商系统、单商户电商系统、o2o核销系统、淘宝客系统、任务系统、分销会员系统、社区团购系统、拼多多返利小程序、京东返利小程序、支付系统、好差评系统、积分系统、校园跑腿系统、任务兼职系统、知识付费系统、外卖跑腿系统、外卖点餐系统、短视频电商系统、众包接单系统、任务悬赏系统、各类电商、跨境电商、游戏竞赛、霸王餐，外卖红包，外卖点餐、同城外卖、校园外卖,陪玩系统，同城跑腿、同城外卖、校园跑腿、校园外卖系统，好差评系统，社区兼职，游戏陪玩，家政服务，预约服务，月嫂服务等系统，拥有各类行业解决方案，专业承接小程序、微信公众号、APP开发、软著商标各种资质办理、官网网站开发业务。', 'xieyi');
INSERT INTO `common_info` VALUES (287, '2022-10-10 13:58:24', NULL, '商户端-联系客服-电话', 287, '13895585204', 'xitong');
INSERT INTO `common_info` VALUES (288, '2022-10-10 13:58:33', NULL, '商户端-联系客服-微信', 288, 'maxdlln', 'xitong');
INSERT INTO `common_info` VALUES (289, '2022-10-10 13:58:49', '1', '商户端-联系客服-微信二维码', 289, 'https://tcwm.xianmaxiong.com/file/uploadPath/2022/10/10/1b1986123b389c618a717d5cb4016fd4.jpeg', 'image');
INSERT INTO `common_info` VALUES (290, '2021-12-22 10:11:36', NULL, '微信提现方式 1自动 2手动', 290, '2', 'weixin');
INSERT INTO `common_info` VALUES (291, '2021-12-22 10:11:36', NULL, '微信证书地址url', 291, '/weixin', 'weixin');
INSERT INTO `common_info` VALUES (292, '2022-04-28 18:09:19', NULL, '外卖商家计算配送时间系数', 292, '100', 'fuwufei');
INSERT INTO `common_info` VALUES (293, '2021-12-22 10:11:36', NULL, '外卖商家最小配送时间（分钟）', 293, '30', 'fuwufei');
INSERT INTO `common_info` VALUES (297, '2022-01-18 16:13:07', NULL, '跑腿端新用户领取红包数额（元）', 297, '5', 'paotuihongbao');
INSERT INTO `common_info` VALUES (298, '2022-01-18 16:13:19', NULL, '跑腿算新用户领取红包数量（个）', 298, '5', 'paotuihongbao');
INSERT INTO `common_info` VALUES (299, '2020-11-04 10:30:40', NULL, '跑腿端新用户红包过期时间（天）', 299, '30', 'paotuihongbao');
INSERT INTO `common_info` VALUES (300, '2020-11-04 10:30:40', NULL, '外卖订单平台抽成比例(0.3表示30%)', 300, '0.3', 'fuwufei');
INSERT INTO `common_info` VALUES (301, '2021-12-30 15:40:56', NULL, '到达时间计算系数（距离m/x）', 301, '100000', 'fuwufei');
INSERT INTO `common_info` VALUES (302, '2022-06-02 23:11:49', NULL, '用户端下单后多长时间开始自动派单（分钟）', 302, '1', 'fuwufei');
INSERT INTO `common_info` VALUES (303, '2022-04-25 10:33:50', NULL, '骑手端自动派单距离限制（m）', 303, '30000', 'fuwufei');
INSERT INTO `common_info` VALUES (304, '2022-09-16 16:59:26', NULL, '是否自动派单给骑手 （是-自动派单，否-非自动派单）', 304, '否', 'kaiguan');
INSERT INTO `common_info` VALUES (305, '2021-12-30 15:40:56', NULL, '商户端微信小程序APPID', 305, '', 'weixin');
INSERT INTO `common_info` VALUES (306, '2021-12-30 15:40:56', NULL, '商户端微信小程序秘钥', 306, '', 'weixin');
INSERT INTO `common_info` VALUES (307, '2022-11-24 09:10:21', NULL, '商户端小程序上架规则(是和否)', 307, '是', 'kaiguan');
INSERT INTO `common_info` VALUES (308, '2022-11-24 11:18:26', NULL, '骑手端小程序上架规则(是和否)', 308, '是', 'kaiguan');
INSERT INTO `common_info` VALUES (309, '2022-11-03 16:36:55', NULL, '用户端热门搜索配置', 309, '饮料,米饭,火锅', 'xitong');
INSERT INTO `common_info` VALUES (310, '2022-02-18 20:48:05', NULL, '骑手端接单成功通知', 310, 'p8TxRhk2PrzJ2qTKkSpiEj2MWZH5apXvJJ9gAYLchpY', 'tongzhi');
INSERT INTO `common_info` VALUES (311, '2022-02-18 20:48:05', NULL, '骑手端订单完成通知', 311, 'C9iVlurvRaLCa7EiSq_qE731h7vifji2jUtqC7GVrUk', 'tongzhi');
INSERT INTO `common_info` VALUES (312, '2022-02-23 17:45:55', '1', '商户端客服二维码', 312, 'https://bug.xianmxkj.com/index.php?m=file&f=read&t=png&fileID=452', 'xitong');
INSERT INTO `common_info` VALUES (313, '2022-04-28 17:19:45', NULL, '用户端开通会员价格（元）', 313, '9.9', 'huiyuan');
INSERT INTO `common_info` VALUES (314, '2022-02-23 17:45:55', NULL, '会员期限（天）', 314, '30', 'huiyuan');
INSERT INTO `common_info` VALUES (315, '2022-02-23 17:45:55', NULL, '会员赠送红包数（个）', 315, '5', 'huiyuan');
INSERT INTO `common_info` VALUES (316, '2022-02-23 17:45:55', NULL, '会员赠送红包金额（元）', 316, '5', 'huiyuan');
INSERT INTO `common_info` VALUES (317, '2022-02-23 17:45:55', NULL, '骑手端腾讯地图key', 317, 'CFLBZ-DRHW6-4KJSW-EITQY-LAJQ2-WLBWM', 'weixin');
INSERT INTO `common_info` VALUES (318, '2021-12-22 10:11:36', NULL, '跑腿端腾讯地图名字', 318, '同城外卖骑手端', 'weixin');
INSERT INTO `common_info` VALUES (319, '2022-01-18 16:13:07', NULL, '新用户领取外卖红包数额（元）', 319, '5', 'waimaihongbao');
INSERT INTO `common_info` VALUES (320, '2022-01-18 16:13:19', NULL, '新用户领取外卖红包数量（个）', 320, '5', 'waimaihongbao');
INSERT INTO `common_info` VALUES (321, '2020-11-04 10:30:40', NULL, '新用户外卖红包过期时间（天）', 321, '30', 'waimaihongbao');
INSERT INTO `common_info` VALUES (322, '2020-11-04 10:30:40', '1', '新用户外卖红包封面', 322, 'https://thirdwx.qlogo.cn/mmopen/vi_32/FjA86EluTjickRGbztPVT82biaRVUXCTsw571ctlGiatLOCT31dialF8k7Wialm8tPJ7B12Mib6tnCD0tM6Ed0o5ZVicA/132', 'waimaihongbao');
INSERT INTO `common_info` VALUES (323, '2022-11-28 19:38:54', NULL, '商户端小程序上架规则(2)(是和否)', 323, '是', 'kaiguan');
INSERT INTO `common_info` VALUES (324, '2022-05-23 10:28:53', NULL, '是否开启赠送外卖新用户红包(是和否)', 324, '是', 'kaiguan');
INSERT INTO `common_info` VALUES (325, '2020-07-27 15:17', NULL, '飞鹅打印apiUrl（http://help.feieyun.com/）', 325, 'http://api.feieyun.cn/Api/Open/', 'xitong');
INSERT INTO `common_info` VALUES (326, '2020-07-27 15:17', NULL, '飞鹅打印账号名USER（http://help.feieyun.com/）', 326, '', 'xitong');
INSERT INTO `common_info` VALUES (327, '2020-07-27 15:17', NULL, '飞鹅打印生成秘钥UKEY（http://help.feieyun.com/）', 327, '', 'xitong');
INSERT INTO `common_info` VALUES (328, '2020-02-25 20:43:38', NULL, '支付宝证书路径', 328, NULL, 'zhifubao');
INSERT INTO `common_info` VALUES (329, '2020-02-25 20:43:38', NULL, '支付宝证书appid', 329, NULL, 'zhifubao');
INSERT INTO `common_info` VALUES (330, '2020-02-25 20:43:38', NULL, '支付宝证书密钥', 330, '', 'zhifubao');
INSERT INTO `common_info` VALUES (331, '2022-02-23 17:45:55', NULL, '跑腿端分享文案', 331, '同城外卖骑手端', 'xitong');
INSERT INTO `common_info` VALUES (332, '2022-04-25 14:38:56', '1', '跑腿端分享图片（图片链接）', 332, 'https://diancan.xianmxkj.com/file/uploadPath/2021/12/31/4bed1d04d28efc7e672f3684ce2c6f4e.png', 'image');
INSERT INTO `common_info` VALUES (333, '2022-06-12 18:40:24', '', '外卖员平台配送费佣金抽成设置（单/元）', 333, '1', 'fuwufei');
INSERT INTO `common_info` VALUES (334, '2022-07-14 15:41:27', '1', '商家端小程序二维码', 334, 'https://bwc.xianmxkj.com/file/uploadPath/2022/07/14/c9c02b4ccb75963128059222927ca841.jpg', 'image');
INSERT INTO `common_info` VALUES (335, '2022-07-14 15:41:27', '', '用户订单变更通知', 335, 'qcWiWUil_daknAWExGad-KClZ4UaXmjL3YSFj_wPct4', 'tongzhi');
INSERT INTO `common_info` VALUES (336, '2022-09-19 18:25:07', NULL, '骑手微信AppId', 336, '', 'weixin');
INSERT INTO `common_info` VALUES (337, '2022-09-19 18:25:07', NULL, '商家微信AppId', 337, '', 'weixin');
INSERT INTO `common_info` VALUES (338, '2022-09-19 18:25:07', NULL, '骑手新订单通知', 338, 'otZnR7sgCht3PDOn_UzkzPBevtsLCx8ppGwzQ5E9no8', 'tongzhi');
INSERT INTO `common_info` VALUES (339, '2022-10-26 13:47:20', NULL, '骑手新订单通知范围（km）', 339, '10', 'fuwufei');
INSERT INTO `common_info` VALUES (340, '2022-09-19 18:25:07', NULL, '是否开启骑手新订单推送', 340, '是', 'kaiguan');
INSERT INTO `common_info` VALUES (341, '2022-11-24 13:25:01', NULL, '骑手端小程序上架规则2(是和否)', 341, '是', 'kaiguan');
INSERT INTO `common_info` VALUES (342, '2022-12-06 14:45:25', NULL, '骑手最大接单数量', 342, '10', 'fuwufei');
INSERT INTO `common_info` VALUES (343, '2022-12-06 16:12:54', NULL, '物品重量25斤以内系数', 343, '12', 'fuwufei');
INSERT INTO `common_info` VALUES (344, '2022-12-06 14:45:25', NULL, '物品重量26-30斤系数', 344, '14', 'fuwufei');
INSERT INTO `common_info` VALUES (345, '2022-12-06 14:45:25', NULL, '物品重量31-40斤系数', 345, '18', 'fuwufei');
INSERT INTO `common_info` VALUES (346, '2022-12-06 14:45:25', NULL, '物品重量41-50斤系数', 346, '23', 'fuwufei');
INSERT INTO `common_info` VALUES (347, '2022-12-06 14:45:25', NULL, '保价费50元以下系数', 347, '2', 'fuwufei');
INSERT INTO `common_info` VALUES (348, '2022-12-06 14:45:25', NULL, '保价费50-150元系数', 348, '5', 'fuwufei');
INSERT INTO `common_info` VALUES (349, '2022-12-06 14:45:25', NULL, '保价费150-350元系数', 349, '8', 'fuwufei');
INSERT INTO `common_info` VALUES (350, '2022-12-06 14:45:25', NULL, '保价费350-500元系数', 350, '10', 'fuwufei');
INSERT INTO `common_info` VALUES (351, '2022-12-06 14:45:25', NULL, '保价费500-1000元系数', 351, '15', 'fuwufei');
INSERT INTO `common_info` VALUES (352, '2022-12-06 14:45:25', NULL, '商家端新订单通知', 352, '6x5S_TpHMay4iz3PlX7s0vQknxs_CHnkC8n-7oHrGUs', 'tongzhi');
INSERT INTO `common_info` VALUES (353, '2022-12-06 14:45:25', NULL, '商家端订单取消通知', 353, '_RNu0goWDKuI6rJygvasQxdg56VM2SN6LZeA7J6r-rY', 'tongzhi');
INSERT INTO `common_info` VALUES (354, '2022-12-06 14:45:25', NULL, '商家端订单变更通知', 354, 'Zbqe0HHH6okLzdBFAhAT7RNWATV_c7hDF5GE0ZpMxMI', 'tongzhi');
INSERT INTO `common_info` VALUES (416, '2023-07-26 16:27:15', NULL, '地图方式 1腾讯 2天地图', 416, '2', 'xitong');
INSERT INTO `common_info` VALUES (417, '2023-07-26 16:27:15', NULL, '天地图key', 417, '', 'xitong');
INSERT INTO `common_info` VALUES (418, '2023-07-26 16:27:15', NULL, '是否开启自动定时制作完成', 418, '是', 'kaiguan');
INSERT INTO `common_info` VALUES (419, '2023-07-26 16:27:15', NULL, '定时制作完成时间（分）', 419, '10', 'xitong');
INSERT INTO `common_info` VALUES (420, '2023-07-26 16:27:15', NULL, '打印机打印纸数量', 420, '1', 'xitong');


-- ----------------------------
-- Table structure for errand_address
-- ----------------------------
DROP TABLE IF EXISTS `errand_address`;
CREATE TABLE `errand_address`  (
  `address_id` int(11) NOT NULL AUTO_INCREMENT COMMENT '主键id',
  `user_id` int(11) NULL DEFAULT NULL COMMENT '用户id',
  `user_name` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '用户姓名',
  `user_phone` varchar(20) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '用户电话',
  `address` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '用户地址',
  `address_longitude` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '用户地址经度',
  `address_latitude` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '用户地址维度',
  `address_detail` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '用户详细地址（用户手动输入的地址）',
  `create_time` datetime(0) NULL DEFAULT NULL COMMENT '创建时间',
  `delete_flag` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '是否删除（0：未删除；1：删除）',
  `address_default` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '默认地址 0：非默认   1：默认',
  `update_time` datetime(0) NULL DEFAULT NULL COMMENT '修改时间',
  PRIMARY KEY (`address_id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 276 CHARACTER SET = utf8 COLLATE = utf8_general_ci ROW_FORMAT = Dynamic;

-- ----------------------------
-- Records of errand_address
-- ----------------------------

-- ----------------------------
-- Table structure for errand_complaint
-- ----------------------------
DROP TABLE IF EXISTS `errand_complaint`;
CREATE TABLE `errand_complaint`  (
  `complaint_id` int(11) NOT NULL AUTO_INCREMENT COMMENT '投诉id',
  `type` int(255) NULL DEFAULT NULL COMMENT '1：用户投诉  2：商户投诉',
  `user_id` int(11) NULL DEFAULT NULL COMMENT '用户id',
  `shop_id` int(11) NULL DEFAULT NULL COMMENT '商户id',
  `rider_user_id` int(11) NULL DEFAULT NULL COMMENT '被投诉骑手id',
  `shop_illegal_id` int(11) NULL DEFAULT NULL COMMENT '商户投诉类型id',
  `indent_type` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '订单类型（1：帮我送；2：帮我取；3：同城帮买；4：同城服务 5：同城外卖）',
  `indent_number` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '订单号',
  `illegal_id` int(255) NULL DEFAULT NULL COMMENT '投诉类型id',
  `deduct_money` double(10, 2) NULL DEFAULT NULL COMMENT '扣款金额',
  `wrong_explain` text CHARACTER SET utf8mb4 COLLATE utf8mb4_croatian_ci NULL COMMENT '违规说明',
  `complaint_time` datetime(0) NULL DEFAULT NULL COMMENT '投诉时间',
  `complaint_state` int(11) NULL DEFAULT NULL COMMENT '本投诉状态（1可申诉；2申诉中；3申诉未通过；4申诉通过；5用户发起投诉；6用户投诉被拒绝）',
  `audit_message` text CHARACTER SET utf8 COLLATE utf8_general_ci NULL COMMENT '管理员审核理由',
  `appeal_message` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_croatian_ci NULL DEFAULT NULL COMMENT '申诉理由',
  `appeal_time` datetime(0) NULL DEFAULT NULL COMMENT '申诉时间',
  PRIMARY KEY (`complaint_id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 170 CHARACTER SET = utf8 COLLATE = utf8_general_ci ROW_FORMAT = Dynamic;

-- ----------------------------
-- Records of errand_complaint
-- ----------------------------

-- ----------------------------
-- Table structure for errand_evaluate
-- ----------------------------
DROP TABLE IF EXISTS `errand_evaluate`;
CREATE TABLE `errand_evaluate`  (
  `evaluate_id` int(11) NOT NULL AUTO_INCREMENT COMMENT '主键id',
  `user_id` int(11) NULL DEFAULT NULL COMMENT '用户id',
  `rider_user_id` int(11) NULL DEFAULT NULL COMMENT '骑手id',
  `indent_number` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '订单号',
  `evaluate_message` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL COMMENT '评价内容',
  `satisfaction_flag` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '是否满意 0：满意  1：不满意',
  `create_time` datetime(0) NULL DEFAULT NULL COMMENT '评价时间',
  PRIMARY KEY (`evaluate_id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 3168 CHARACTER SET = utf8 COLLATE = utf8_general_ci ROW_FORMAT = Dynamic;

-- ----------------------------
-- Records of errand_evaluate
-- ----------------------------

-- ----------------------------
-- Table structure for errand_illegal_type
-- ----------------------------
DROP TABLE IF EXISTS `errand_illegal_type`;
CREATE TABLE `errand_illegal_type`  (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `illegal` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '投诉类型',
  `forfeit_money` double(10, 2) NULL DEFAULT NULL COMMENT '该投诉罚款金额',
  PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 22 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci ROW_FORMAT = Dynamic;

-- ----------------------------
-- Records of errand_illegal_type
-- ----------------------------
INSERT INTO `errand_illegal_type` VALUES (1, '联系不上骑手', 1.00);
INSERT INTO `errand_illegal_type` VALUES (3, '骑手未按时送达', 2.00);
INSERT INTO `errand_illegal_type` VALUES (4, '骑手丢失货物', 3.00);
INSERT INTO `errand_illegal_type` VALUES (5, '骑手态度恶劣', 4.00);
INSERT INTO `errand_illegal_type` VALUES (6, '其他', 5.00);

-- ----------------------------
-- Table structure for errand_user_red_packet
-- ----------------------------
DROP TABLE IF EXISTS `errand_user_red_packet`;
CREATE TABLE `errand_user_red_packet`  (
  `red_packet_id` int(11) NOT NULL AUTO_INCREMENT COMMENT '红包主键id',
  `user_id` int(11) NULL DEFAULT NULL COMMENT '用户id',
  `red_packet_type` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '红包类型（0：全部可用；1：帮我送可用；2：帮我取可用；3：帮我买可用；4：同城服务可用）',
  `minimum_amount` decimal(10, 2) NULL DEFAULT NULL COMMENT '订单最小金额',
  `red_packet_amount` decimal(10, 2) NULL DEFAULT NULL COMMENT '红包数额',
  `red_packet_title` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '红包名称',
  `expiration_time` date NULL DEFAULT NULL COMMENT '红包过期时间',
  `delete_flag` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '红包是否被使用（0：未使用；1：已使用）',
  `create_time` datetime(0) NULL DEFAULT NULL COMMENT '红包领取时间',
  PRIMARY KEY (`red_packet_id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 768 CHARACTER SET = utf8 COLLATE = utf8_general_ci ROW_FORMAT = Dynamic;

-- ----------------------------
-- Records of errand_user_red_packet
-- ----------------------------

-- ----------------------------
-- Table structure for evaluate
-- ----------------------------
DROP TABLE IF EXISTS `evaluate`;
CREATE TABLE `evaluate`  (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `user_id` int(11) NULL DEFAULT NULL COMMENT '用户id',
  `order_number` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '订单号',
  `shop_id` int(11) NULL DEFAULT NULL COMMENT '商户id',
  `goods_id` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '商品id',
  `evaluate_message` text CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL COMMENT '评价内容',
  `pictures` varchar(2000) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '评论图',
  `score` int(11) NULL DEFAULT NULL COMMENT '评分',
  `shop_reply_message` text CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL COMMENT '商户回复',
  `create_time` datetime(0) NULL DEFAULT NULL COMMENT '评论时间',
  PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 59 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci ROW_FORMAT = Dynamic;

-- ----------------------------
-- Records of evaluate
-- ----------------------------

-- ----------------------------
-- Table structure for goods
-- ----------------------------
DROP TABLE IF EXISTS `goods`;
CREATE TABLE `goods`  (
  `goods_id` int(11) NOT NULL AUTO_INCREMENT,
  `goods_name` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '商品名称',
  `goods_synopsis` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '商品简介',
  `goods_describe` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '商品描述',
  `classify_id` int(11) NULL DEFAULT NULL COMMENT '商品分类id（商品左侧菜单）',
  `goods_cover` text CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL COMMENT '商品封面图',
  `goods_picture` text CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL COMMENT '商品图片',
  `goods_particulars_picture` text CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL COMMENT '商品详情图',
  `goods_label` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '商品标签',
  `create_time` datetime(0) NULL DEFAULT NULL COMMENT '上架时间',
  `sales_volume` int(11) NULL DEFAULT NULL COMMENT '销量',
  `status` int(11) NULL DEFAULT NULL COMMENT '是否上架 0上架  1下架',
  `pack_money` decimal(10, 2) NULL DEFAULT NULL COMMENT '商品打包费',
  `goods_money` decimal(10, 2) NULL DEFAULT NULL COMMENT '商品价格',
  `original_money` decimal(10, 2) NULL DEFAULT NULL COMMENT '原价',
  `shop_id` int(11) NULL DEFAULT NULL COMMENT '商铺id',
  `usage_rules` varchar(500) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL,
  `recommend` int(11) NULL DEFAULT NULL,
  `effective_days` int(11) NULL DEFAULT NULL,
  `usage_time` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL,
  `goods_type` int(11) NULL DEFAULT NULL,
  `end_time` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL,
  `apply_num_people` int(11) NULL DEFAULT NULL,
  `sort` varchar(255) DEFAULT NULL,
  PRIMARY KEY (`goods_id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 270 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci ROW_FORMAT = Dynamic;

-- ----------------------------
-- Records of goods
-- ----------------------------

-- ----------------------------
-- Table structure for goods_attr
-- ----------------------------
DROP TABLE IF EXISTS `goods_attr`;
CREATE TABLE `goods_attr`  (
  `id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '规格id',
  `attr_name` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NULL DEFAULT NULL COMMENT '属性名称',
  `goods_id` bigint(20) NULL DEFAULT NULL COMMENT '商品id',
  `rule_id` bigint(20) NULL DEFAULT NULL COMMENT '规格模板id',
  PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 500 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_bin ROW_FORMAT = Dynamic;

-- ----------------------------
-- Records of goods_attr
-- ----------------------------

-- ----------------------------
-- Table structure for goods_attr_value
-- ----------------------------
DROP TABLE IF EXISTS `goods_attr_value`;
CREATE TABLE `goods_attr_value`  (
  `id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '属性id',
  `detail` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NULL DEFAULT NULL COMMENT '属性值组合:{尺寸: \'7寸\', 颜色: \'红底\'}',
  `goods_id` bigint(20) NULL DEFAULT NULL COMMENT '商品id',
  `attr_id` bigint(20) NULL DEFAULT NULL COMMENT '商品规格id',
  `value` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NULL DEFAULT NULL COMMENT '规格属性名称',
  PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 1104 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_bin ROW_FORMAT = Dynamic;

-- ----------------------------
-- Records of goods_attr_value
-- ----------------------------

-- ----------------------------
-- Table structure for goods_classify
-- ----------------------------
DROP TABLE IF EXISTS `goods_classify`;
CREATE TABLE `goods_classify`  (
  `classify_id` int(11) NOT NULL AUTO_INCREMENT,
  `classify_name` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '商品类型名称',
  `shop_id` int(11) NULL DEFAULT NULL COMMENT '商户id',
  `sort` int(11) DEFAULT NULL COMMENT '排序',
  PRIMARY KEY (`classify_id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 126 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci ROW_FORMAT = Dynamic;

-- ----------------------------
-- Records of goods_classify
-- ----------------------------

-- ----------------------------
-- Table structure for goods_rule
-- ----------------------------
DROP TABLE IF EXISTS `goods_rule`;
CREATE TABLE `goods_rule`  (
  `id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT 'id',
  `create_time` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NULL DEFAULT NULL COMMENT '创建时间',
  `rule_name` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NULL DEFAULT NULL COMMENT '规格名称',
  `shop_id` int(11) NULL DEFAULT NULL COMMENT '所属商铺id',
  `shop_name` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NULL DEFAULT NULL,
  PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 135 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_bin ROW_FORMAT = Dynamic;

-- ----------------------------
-- Records of goods_rule
-- ----------------------------

-- ----------------------------
-- Table structure for goods_rule_value
-- ----------------------------
DROP TABLE IF EXISTS `goods_rule_value`;
CREATE TABLE `goods_rule_value`  (
  `id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT 'id',
  `detail` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NULL DEFAULT NULL COMMENT '规格属性值',
  `rule_id` bigint(20) NULL DEFAULT NULL COMMENT '规格id',
  `value` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NULL DEFAULT NULL COMMENT '规格属性名称',
  PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 262 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_bin ROW_FORMAT = Dynamic;

-- ----------------------------
-- Records of goods_rule_value
-- ----------------------------

-- ----------------------------
-- Table structure for goods_shop
-- ----------------------------
DROP TABLE IF EXISTS `goods_shop`;
CREATE TABLE `goods_shop`  (
  `shop_id` int(11) NOT NULL AUTO_INCREMENT,
  `shop_name` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '商铺名',
  `user_id` int(11) NULL DEFAULT NULL COMMENT '用户id ',
  `shop_type_id` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '商铺类型id',
  `shop_lable` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '商铺标签',
  `detailed_address` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '详细地址',
  `shop_lng` double(20, 10) NULL DEFAULT NULL COMMENT '商铺经度',
  `shop_lat` double(20, 10) NULL DEFAULT NULL COMMENT '商铺维度',
  `province` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '省',
  `city` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '市',
  `district` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '区',
  `access_number` bigint(20) NULL DEFAULT NULL COMMENT '商铺访问人数',
  `shop_notice` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '商铺公告',
  `shop_score` double(10, 5) NULL DEFAULT NULL COMMENT '商铺评分',
  `shop_sales` int(11) NULL DEFAULT NULL COMMENT '商铺销量',
  `business_hours` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '营业时间',
  `lock_hours` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '关门时间',
  `shop_cover` text CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL COMMENT '商户封面图',
  `shop_banner` text CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL COMMENT '商户banner图片',
  `create_time` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '创建时间',
  `real_name` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '真实姓名',
  `identitycard_number` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '身份证号',
  `phone` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '手机',
  `business_license` text CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL COMMENT '营业执照',
  `identitycard_pro` text CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL COMMENT '身份证正面照片',
  `identitycard_con` text CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL COMMENT '身份证反面照片',
  `audit_reason` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '审核理由',
  `cash_deposit` double(10, 2) NULL DEFAULT 0.00 COMMENT '保证金',
  `audit_time` datetime(0) NULL DEFAULT NULL COMMENT '审核时间',
  `status` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '商铺状态 0审核中  1通过  2拒绝',
  `errand_money` double(10, 2) NULL DEFAULT NULL COMMENT '配送费',
  `distribution_distance` double NULL DEFAULT NULL COMMENT '配送距离',
  `exempt_errand_flag` int(11) NULL DEFAULT NULL COMMENT '是否减免配送费',
  `exempt_min_money` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '减免配送费最小订单金额',
  `minimum_delivery` double(10, 2) NULL DEFAULT NULL COMMENT '最低起送金额',
  `putaway_flag` int(11) NULL DEFAULT NULL COMMENT '商铺是否上架 0上架 1下架',
  `auto_send_order` int(11) NULL DEFAULT NULL COMMENT '是否开启自动派单 0开启 1关闭',
  `banned_flag` int(11) NULL DEFAULT NULL COMMENT '商铺是否被封禁 0未封禁 1封禁',
  `sn_code` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '打印机SN编码',
  `value` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '打印机key密钥',
  `facility` int(11) NULL DEFAULT NULL,
  `auto_accept_order` int(11) NULL DEFAULT 1 COMMENT '是否自动接单  0开启 1关闭',
  `vip_expiration_time` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL,
  `is_vip` int(11) NULL DEFAULT NULL,
  `activity_id` int(11) DEFAULT NULL COMMENT '活动id',
  `is_recommend` int(1) DEFAULT '0' COMMENT '是否是推荐 0否 1是',
  `shop_rate` decimal(10,2) DEFAULT NULL COMMENT '商家比例',
  `sort` int(11) DEFAULT NULL COMMENT '排序',
  PRIMARY KEY (`shop_id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 110 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci ROW_FORMAT = Dynamic;

-- ----------------------------
-- Records of goods_shop
-- ----------------------------

-- ----------------------------
-- Table structure for goods_shop_relevancy
-- ----------------------------
DROP TABLE IF EXISTS `goods_shop_relevancy`;
CREATE TABLE `goods_shop_relevancy`  (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `shop_id` int(11) NULL DEFAULT NULL COMMENT '商户id',
  `goods_id` int(11) NULL DEFAULT NULL COMMENT '商品id',
  `sales` int(11) NULL DEFAULT NULL COMMENT '销量',
  `inventory` int(11) NULL DEFAULT NULL COMMENT '库存',
  `status` int(11) NULL DEFAULT NULL COMMENT '商铺是否上架  0上架  1下架',
  `create_time` datetime(0) NULL DEFAULT NULL COMMENT '添加时间',
  PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 300 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci ROW_FORMAT = Dynamic;

-- ----------------------------
-- Records of goods_shop_relevancy
-- ----------------------------

-- ----------------------------
-- Table structure for goods_sku
-- ----------------------------
DROP TABLE IF EXISTS `goods_sku`;
CREATE TABLE `goods_sku`  (
  `id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT 'id',
  `goods_id` bigint(20) NULL DEFAULT NULL COMMENT '商品id',
  `sku_img` varchar(500) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NULL DEFAULT NULL COMMENT 'sku图片',
  `sku_original_price` decimal(10, 2) NULL DEFAULT NULL COMMENT 'sku原价',
  `sku_price` decimal(10, 2) NULL DEFAULT NULL COMMENT 'sku商品售价',
  `stock` int(11) NULL DEFAULT 0 COMMENT '库存',
  `sales` int(11) NULL DEFAULT 0 COMMENT '销量',
  `detail_json` text CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NULL COMMENT 'sku信息，json封装',
  PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 5332 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_bin ROW_FORMAT = Dynamic;

-- ----------------------------
-- Records of goods_sku
-- ----------------------------

-- ----------------------------
-- Table structure for group_buying_type
-- ----------------------------
DROP TABLE IF EXISTS `group_buying_type`;
CREATE TABLE `group_buying_type`  (
  `type_id` int(11) NOT NULL AUTO_INCREMENT COMMENT 'id',
  `name` varchar(200) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '类型名称',
  `is_enable` int(1) NULL DEFAULT NULL COMMENT '是否启用 0:是 1否',
  `create_time` datetime(0) NULL DEFAULT NULL COMMENT '创建时间',
  INDEX `id`(`type_id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci ROW_FORMAT = Dynamic;

-- ----------------------------
-- Records of group_buying_type
-- ----------------------------

-- ----------------------------
-- Table structure for member
-- ----------------------------
DROP TABLE IF EXISTS `member`;
CREATE TABLE `member`  (
  `member_id` int(11) NOT NULL AUTO_INCREMENT COMMENT '会员特权id',
  `member_img` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '特权图标',
  `member_name` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '特权名称',
  `sort` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '排序',
  PRIMARY KEY (`member_id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 17 CHARACTER SET = utf8 COLLATE = utf8_general_ci ROW_FORMAT = Dynamic;

-- ----------------------------
-- Records of member
-- ----------------------------
INSERT INTO `member` VALUES (3, 'https://pw.xianmxkj.com/file/uploadPath/2022/01/19/2ef451b3e0f7f98464b38430c13051b0.png', '无门槛优惠券', '3');
INSERT INTO `member` VALUES (6, 'https://pw.xianmxkj.com/file/uploadPath/2022/01/19/d03a8a0f55240c438209777b896ebd94.png', '身份标识', '4');
INSERT INTO `member` VALUES (11, 'https://pw.xianmxkj.com/file/uploadPath/2022/01/19/423a302253532b6a993788efab1ce8f7.png', '生日特权', '7');

-- ----------------------------
-- Table structure for message_info
-- ----------------------------
DROP TABLE IF EXISTS `message_info`;
CREATE TABLE `message_info`  (
  `id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '消息id',
  `content` varchar(1024) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NULL DEFAULT NULL COMMENT '内容',
  `create_at` varchar(600) CHARACTER SET big5 COLLATE big5_chinese_ci NULL DEFAULT NULL COMMENT '创建时间',
  `image` varchar(600) CHARACTER SET big5 COLLATE big5_chinese_ci NULL DEFAULT NULL COMMENT '图片',
  `is_see` varchar(600) CHARACTER SET big5 COLLATE big5_chinese_ci NULL DEFAULT NULL,
  `send_state` varchar(600) CHARACTER SET big5 COLLATE big5_chinese_ci NULL DEFAULT NULL,
  `send_time` varchar(600) CHARACTER SET big5 COLLATE big5_chinese_ci NULL DEFAULT NULL,
  `state` varchar(600) CHARACTER SET big5 COLLATE big5_chinese_ci NULL DEFAULT NULL COMMENT '分类',
  `title` varchar(600) CHARACTER SET utf8 COLLATE utf8_unicode_ci NULL DEFAULT NULL COMMENT '标题',
  `url` varchar(600) CHARACTER SET big5 COLLATE big5_chinese_ci NULL DEFAULT NULL COMMENT '地址',
  `type` varchar(600) CHARACTER SET big5 COLLATE big5_chinese_ci NULL DEFAULT NULL,
  `platform` varchar(255) CHARACTER SET big5 COLLATE big5_chinese_ci NULL DEFAULT NULL,
  `user_id` varchar(255) CHARACTER SET big5 COLLATE big5_chinese_ci NULL DEFAULT NULL COMMENT '用户id',
  `user_name` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '用户名',
  `shop_id` int(11) NULL DEFAULT NULL COMMENT '商铺id',
  `read_flag` int(11) NULL DEFAULT NULL COMMENT '消息是否已读 1已读  2未读',
  PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 13838 CHARACTER SET = big5 COLLATE = big5_chinese_ci ROW_FORMAT = Dynamic;

-- ----------------------------
-- Records of message_info
-- ----------------------------

-- ----------------------------
-- Table structure for msg
-- ----------------------------
DROP TABLE IF EXISTS `msg`;
CREATE TABLE `msg`  (
  `id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '验证码id',
  `code` varchar(255) CHARACTER SET big5 COLLATE big5_chinese_ci NULL DEFAULT NULL COMMENT '验证码',
  `phone` varchar(255) CHARACTER SET big5 COLLATE big5_chinese_ci NULL DEFAULT NULL COMMENT '手机号',
  PRIMARY KEY (`id`) USING BTREE,
  INDEX `index_name`(`code`, `phone`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 444 CHARACTER SET = big5 COLLATE = big5_chinese_ci ROW_FORMAT = Dynamic;

-- ----------------------------
-- Records of msg
-- ----------------------------

-- ----------------------------
-- Table structure for notice
-- ----------------------------
DROP TABLE IF EXISTS `notice`;
CREATE TABLE `notice`  (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `title` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '公告标题',
  `url` text CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL COMMENT '公告链接',
  `create_time` datetime(0) NULL DEFAULT NULL COMMENT '创建时间',
  `update_time` datetime(0) NULL DEFAULT NULL COMMENT '修改时间',
  `status` int(11) NULL DEFAULT NULL COMMENT '状态 0正常 1删除',
  `type` int(11) NULL DEFAULT NULL COMMENT '公告类型 1word  2url',
  PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 10 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci ROW_FORMAT = Dynamic;

-- ----------------------------
-- Records of notice
-- ----------------------------
INSERT INTO `notice` VALUES (9, '新版2.0上线啦！！上线啦！！', '1234', '2021-12-30 13:57:28', '2022-06-12 18:00:31', 0, 1);

-- ----------------------------
-- Table structure for order_goods
-- ----------------------------
DROP TABLE IF EXISTS `order_goods`;
CREATE TABLE `order_goods`  (
  `id` int(11) NOT NULL AUTO_INCREMENT COMMENT '主键id',
  `order_id` int(11) NULL DEFAULT NULL COMMENT '订单id',
  `goods_name` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '商品名字',
  `sku_id` int(11) NULL DEFAULT NULL COMMENT '规格id',
  `sku_message` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '规格信息',
  `goods_price` decimal(10, 2) NULL DEFAULT NULL COMMENT '商品价格',
  `goods_pack` decimal(10, 2) NULL DEFAULT NULL COMMENT '商品打包费',
  `goods_num` int(11) NULL DEFAULT NULL COMMENT '商品数量',
  `goods_picture` text CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL COMMENT '商品封面',
  `goods_id` int(11) NULL DEFAULT NULL COMMENT '商品id',
  `shop_id` int(11) NULL DEFAULT NULL COMMENT '商铺id',
  `user_id` int(11) NULL DEFAULT NULL,
  PRIMARY KEY (`id`) USING BTREE,
  INDEX `order_id`(`order_id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 2684 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci ROW_FORMAT = Dynamic;

-- ----------------------------
-- Records of order_goods
-- ----------------------------

-- ----------------------------
-- Table structure for pay_details
-- ----------------------------
DROP TABLE IF EXISTS `pay_details`;
CREATE TABLE `pay_details`  (
  `id` int(11) NOT NULL AUTO_INCREMENT COMMENT '充值记录id',
  `order_id` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '订单id',
  `user_id` int(11) NULL DEFAULT NULL COMMENT '用户id',
  `shop_id` int(11) NULL DEFAULT NULL COMMENT '商户id',
  `classify` int(255) NULL DEFAULT NULL COMMENT '分类 1支付订单  2充值 3商户交保证金 4购买会员',
  `type` int(11) NULL DEFAULT NULL COMMENT '支付类型 1微信app支付  2微信公众号支付  3微信小程序支付 4支付宝app  5支付宝H5',
  `money` decimal(10, 2) NULL DEFAULT NULL COMMENT '充值金额',
  `state` int(11) NULL DEFAULT 0 COMMENT '0待支付 1支付成功 2失败',
  `create_time` datetime(0) NULL DEFAULT NULL COMMENT '创建时间',
  `pay_time` datetime(0) NULL DEFAULT NULL COMMENT '支付时间',
  `remark` text CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NULL COMMENT '备注',
  `trade_no` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NULL DEFAULT NULL COMMENT '支付宝交易订单号',
  PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 1266 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_bin COMMENT = '充值记录' ROW_FORMAT = Dynamic;

-- ----------------------------
-- Records of pay_details
-- ----------------------------

-- ----------------------------
-- Table structure for rider_location
-- ----------------------------
DROP TABLE IF EXISTS `rider_location`;
CREATE TABLE `rider_location`  (
  `id` int(11) NOT NULL AUTO_INCREMENT COMMENT '主键id',
  `user_id` int(11) NULL DEFAULT NULL COMMENT '骑手id',
  `lng` double(20, 10) NULL DEFAULT NULL COMMENT '骑手当前经度',
  `lat` double(20, 10) NULL DEFAULT NULL COMMENT '骑手当前纬度',
  `province` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '骑手当前所在省',
  `city` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '骑手当前所在市',
  `district` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '骑手当前所在区',
  PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 1947 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci ROW_FORMAT = Dynamic;

-- ----------------------------
-- Records of rider_location
-- ----------------------------

-- ----------------------------
-- Table structure for search_history
-- ----------------------------
DROP TABLE IF EXISTS `search_history`;
CREATE TABLE `search_history`  (
  `id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '主键id',
  `user_id` int(11) NULL DEFAULT NULL COMMENT '用户id',
  `message` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '搜索内容',
  `create_time` datetime(0) NULL DEFAULT NULL COMMENT '搜索时间',
  PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 648 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci ROW_FORMAT = Dynamic;

-- ----------------------------
-- Records of search_history
-- ----------------------------

-- ----------------------------
-- Table structure for self_goods_rule
-- ----------------------------
DROP TABLE IF EXISTS `self_goods_rule`;
CREATE TABLE `self_goods_rule`  (
  `id` bigint(20) NOT NULL AUTO_INCREMENT,
  `create_time` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NULL DEFAULT NULL,
  `rule_name` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NULL DEFAULT NULL,
  PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 44 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_bin ROW_FORMAT = Dynamic;

-- ----------------------------
-- Records of self_goods_rule
-- ----------------------------

-- ----------------------------
-- Table structure for service_type
-- ----------------------------
DROP TABLE IF EXISTS `service_type`;
CREATE TABLE `service_type`  (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `service_name` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '服务类型',
  PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 22 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci ROW_FORMAT = Dynamic;

-- ----------------------------
-- Records of service_type
-- ----------------------------
INSERT INTO `service_type` VALUES (1, '帮忙整理家务');
INSERT INTO `service_type` VALUES (2, '帮忙做饭');
INSERT INTO `service_type` VALUES (3, '帮忙招工');
INSERT INTO `service_type` VALUES (4, '帮忙凑人数');
INSERT INTO `service_type` VALUES (5, '帮忙买票');
INSERT INTO `service_type` VALUES (6, '接送上下班');
INSERT INTO `service_type` VALUES (7, '送餐');
INSERT INTO `service_type` VALUES (8, '帮忙告白');
INSERT INTO `service_type` VALUES (9, '陪聊天');
INSERT INTO `service_type` VALUES (10, '传话1');

-- ----------------------------
-- Table structure for shop_illegal_type
-- ----------------------------
DROP TABLE IF EXISTS `shop_illegal_type`;
CREATE TABLE `shop_illegal_type`  (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `illegal` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '投诉类型',
  `forfeit_money` double(10, 2) NULL DEFAULT NULL COMMENT '该投诉罚款金额',
  PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 22 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci ROW_FORMAT = Dynamic;

-- ----------------------------
-- Records of shop_illegal_type
-- ----------------------------

-- ----------------------------
-- Table structure for shop_message
-- ----------------------------
DROP TABLE IF EXISTS `shop_message`;
CREATE TABLE `shop_message`  (
  `shop_id` int(11) NOT NULL AUTO_INCREMENT COMMENT 'id',
  `shop_name` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '商铺名',
  `shop_type_id` int(11) NULL DEFAULT NULL COMMENT '商铺类型id',
  `shop_address_detail` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '商铺详细地址',
  `province` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '省',
  `city` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '市',
  `district` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '区',
  `lng` double(20, 10) NULL DEFAULT NULL COMMENT '经度',
  `lat` double(20, 10) NULL DEFAULT NULL COMMENT '纬度',
  `real_name` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '真实姓名',
  `identitycard_number` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '身份证',
  `phone` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '手机',
  `shop_cover` text CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL COMMENT '商铺封面图',
  `shop_picture` text CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL COMMENT '商铺图片',
  `business_license` text CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL COMMENT '营业执照',
  `identitycard_pro` text CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL COMMENT '身份证正面照片',
  `identitycard_con` text CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL COMMENT '身份证反面照片',
  `audit_status` int(11) NULL DEFAULT NULL COMMENT '审核状态 0审核中 1审核通过 2审核未通过',
  `audit_reason` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '审核理由',
  `cash_deposit` double(10, 2) NULL DEFAULT NULL COMMENT '保证金',
  `create_time` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '提交时间',
  `audit_time` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '审核时间',
  PRIMARY KEY (`shop_id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 13 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci ROW_FORMAT = Dynamic;

-- ----------------------------
-- Records of shop_message
-- ----------------------------

-- ----------------------------
-- Table structure for shop_money
-- ----------------------------
DROP TABLE IF EXISTS `shop_money`;
CREATE TABLE `shop_money`  (
  `id` int(11) NOT NULL COMMENT 'id',
  `sum_money` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '总金额',
  `can_withdraw_money` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '可提现金额',
  `sum_withdraw_money` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '累计提现金额',
  PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci ROW_FORMAT = Dynamic;

-- ----------------------------
-- Records of shop_money
-- ----------------------------

-- ----------------------------
-- Table structure for shop_money_details
-- ----------------------------
DROP TABLE IF EXISTS `shop_money_details`;
CREATE TABLE `shop_money_details`  (
  `id` int(11) NOT NULL COMMENT '钱包详情id',
  `shop_id` int(11) NULL DEFAULT NULL COMMENT '商户id',
  `title` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '标题',
  `content` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '内容',
  `type` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '类别 1收入  2提现',
  `classify` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '途径 1零钱 2支付宝 3微信',
  `money` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '金额',
  `create_time` datetime(0) NULL DEFAULT NULL COMMENT '创建时间',
  PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci ROW_FORMAT = Dynamic;

-- ----------------------------
-- Records of shop_money_details
-- ----------------------------

-- ----------------------------
-- Table structure for shop_type
-- ----------------------------
DROP TABLE IF EXISTS `shop_type`;
CREATE TABLE `shop_type`  (
  `id` int(11) NOT NULL AUTO_INCREMENT COMMENT '主键id',
  `shop_type_name` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '主营业务类型',
  PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 10 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci ROW_FORMAT = Dynamic;

-- ----------------------------
-- Records of shop_type
-- ----------------------------

-- ----------------------------
-- Table structure for sys_captcha
-- ----------------------------
DROP TABLE IF EXISTS `sys_captcha`;
CREATE TABLE `sys_captcha`  (
  `uuid` char(36) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT 'uuid',
  `code` varchar(6) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '验证码',
  `expire_time` datetime(0) NULL DEFAULT NULL COMMENT '过期时间',
  PRIMARY KEY (`uuid`) USING BTREE
) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '系统验证码' ROW_FORMAT = Dynamic;

-- ----------------------------
-- Table structure for sys_config
-- ----------------------------
DROP TABLE IF EXISTS `sys_config`;
CREATE TABLE `sys_config`  (
  `id` bigint(20) NOT NULL AUTO_INCREMENT,
  `param_key` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT 'key',
  `param_value` varchar(2000) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT 'value',
  `status` tinyint(4) NULL DEFAULT 1 COMMENT '状态   0：隐藏   1：显示',
  `remark` varchar(500) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '备注',
  PRIMARY KEY (`id`) USING BTREE,
  UNIQUE INDEX `param_key`(`param_key`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 2 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '系统配置信息表' ROW_FORMAT = Dynamic;

-- ----------------------------
-- Records of sys_config
-- ----------------------------
INSERT INTO `sys_config` VALUES (1, 'CLOUD_STORAGE_CONFIG_KEY', '{\"aliyunAccessKeyId\":\"\",\"aliyunAccessKeySecret\":\"\",\"aliyunBucketName\":\"\",\"aliyunDomain\":\"\",\"aliyunEndPoint\":\"\",\"aliyunPrefix\":\"\",\"qcloudBucketName\":\"\",\"qcloudDomain\":\"\",\"qcloudPrefix\":\"\",\"qcloudSecretId\":\"\",\"qcloudSecretKey\":\"\",\"qiniuAccessKey\":\"NrgMfABZxWLo5B-YYSjoE8-AZ1EISdi1Z3ubLOeZ\",\"qiniuBucketName\":\"ios-app\",\"qiniuDomain\":\"http://7xqbwh.dl1.z0.glb.clouddn.com\",\"qiniuPrefix\":\"upload\",\"qiniuSecretKey\":\"uIwJHevMRWU0VLxFvgy0tAcOdGqasdtVlJkdy6vV\",\"type\":1}', 0, '云存储配置信息');

-- ----------------------------
-- Table structure for sys_dict
-- ----------------------------
DROP TABLE IF EXISTS `sys_dict`;
CREATE TABLE `sys_dict`  (
  `id` bigint(20) NOT NULL AUTO_INCREMENT,
  `name` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '字典名称',
  `type` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '字典类型',
  `code` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '字典码',
  `value` varchar(1000) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '字典值',
  `order_num` int(11) NULL DEFAULT 0 COMMENT '排序',
  `remark` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '备注',
  `del_flag` tinyint(4) NULL DEFAULT 0 COMMENT '删除标记  -1：已删除  0：正常',
  PRIMARY KEY (`id`) USING BTREE,
  UNIQUE INDEX `type`(`type`, `code`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '数据字典表' ROW_FORMAT = Dynamic;

-- ----------------------------
-- Records of sys_dict
-- ----------------------------

-- ----------------------------
-- Table structure for sys_feedback
-- ----------------------------
DROP TABLE IF EXISTS `sys_feedback`;
CREATE TABLE `sys_feedback`  (
  `feedback_id` int(11) NOT NULL AUTO_INCREMENT COMMENT '主键id',
  `feedback_type` int(11) NULL DEFAULT NULL COMMENT '反馈人类型 1：用户反馈  2商户反馈',
  `user_id` int(11) NULL DEFAULT NULL COMMENT '用户id',
  `shop_id` int(11) NULL DEFAULT NULL COMMENT '商户id',
  `user_email` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '用户邮箱',
  `feedback_score` int(11) NULL DEFAULT NULL COMMENT '用户反馈评分',
  `feedback_message` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '反馈内容',
  `feedback_time` datetime(0) NULL DEFAULT NULL COMMENT '反馈提交时间',
  PRIMARY KEY (`feedback_id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 63 CHARACTER SET = utf8 COLLATE = utf8_general_ci ROW_FORMAT = Dynamic;

-- ----------------------------
-- Records of sys_feedback
-- ----------------------------
INSERT INTO `sys_feedback` VALUES (46, 2, NULL, 45, '40334033', NULL, '商家反馈商家反馈', '2022-02-23 17:04:23');
INSERT INTO `sys_feedback` VALUES (47, NULL, 1330, NULL, '999999999', NULL, '用户反馈', '2022-02-23 17:10:38');
INSERT INTO `sys_feedback` VALUES (48, NULL, 1340, NULL, '851010488@163.com', NULL, '用户反馈', '2022-02-23 17:12:23');
INSERT INTO `sys_feedback` VALUES (49, NULL, 1330, NULL, '88888888', NULL, '用户反馈', '2022-02-23 17:17:48');
INSERT INTO `sys_feedback` VALUES (50, NULL, 1330, NULL, '7777777', NULL, '用户反馈', '2022-02-23 17:19:52');
INSERT INTO `sys_feedback` VALUES (51, 1, 1330, NULL, '6666666666', NULL, '用户反馈', '2022-02-23 17:23:24');
INSERT INTO `sys_feedback` VALUES (52, 2, NULL, 51, '179074357', NULL, '用户反馈711044', '2022-02-23 17:52:09');
INSERT INTO `sys_feedback` VALUES (53, 2, NULL, 56, '182828282828', NULL, '商户反馈反馈', '2022-02-25 17:48:43');
INSERT INTO `sys_feedback` VALUES (54, 2, NULL, NULL, NULL, NULL, NULL, '2022-03-01 09:40:59');
INSERT INTO `sys_feedback` VALUES (55, 2, NULL, 62, '112111@qq.com', NULL, '123', '2022-05-09 10:18:12');
INSERT INTO `sys_feedback` VALUES (56, 2, NULL, 62, '112111@qq.com', NULL, '123', '2022-05-09 10:19:12');
INSERT INTO `sys_feedback` VALUES (57, 2, NULL, NULL, NULL, NULL, NULL, '2022-05-09 13:17:55');
INSERT INTO `sys_feedback` VALUES (58, 2, NULL, NULL, NULL, NULL, NULL, '2022-05-09 13:19:00');
INSERT INTO `sys_feedback` VALUES (59, 2, NULL, 50, '721400@qq.com', NULL, '界面显示错乱', '2022-07-09 14:32:40');
INSERT INTO `sys_feedback` VALUES (60, 2, NULL, NULL, '3221sdf', NULL, 'asdfasdfasdfas', '2022-07-09 14:40:30');
INSERT INTO `sys_feedback` VALUES (61, 2, NULL, NULL, '1065466961', NULL, '的就撒肯德基卡四角打送货妈妈', '2022-07-14 10:00:54');
INSERT INTO `sys_feedback` VALUES (62, 1, 1729, NULL, '少数少', NULL, '对对对', '2022-08-03 17:39:00');

-- ----------------------------
-- Table structure for sys_log
-- ----------------------------
DROP TABLE IF EXISTS `sys_log`;
CREATE TABLE `sys_log`  (
  `id` bigint(20) NOT NULL AUTO_INCREMENT,
  `username` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '用户名',
  `operation` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '用户操作',
  `method` varchar(200) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '请求方法',
  `params` varchar(5000) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '请求参数',
  `time` bigint(20) NOT NULL COMMENT '执行时长(毫秒)',
  `ip` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT 'IP地址',
  `create_date` datetime(0) NULL DEFAULT NULL COMMENT '创建时间',
  PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 392 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '系统日志' ROW_FORMAT = Dynamic;

-- ----------------------------
-- Records of sys_log
-- ----------------------------

-- ----------------------------
-- Table structure for sys_menu
-- ----------------------------
DROP TABLE IF EXISTS `sys_menu`;
CREATE TABLE `sys_menu`  (
  `menu_id` bigint(20) NOT NULL AUTO_INCREMENT,
  `parent_id` bigint(20) NULL DEFAULT NULL COMMENT '父菜单ID，一级菜单为0',
  `name` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '菜单名称',
  `url` varchar(200) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '菜单URL',
  `perms` varchar(500) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '授权(多个用逗号分隔，如：user:list,user:create)',
  `type` int(11) NULL DEFAULT NULL COMMENT '类型   0：目录   1：菜单   2：按钮',
  `icon` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '菜单图标',
  `order_num` int(11) NULL DEFAULT NULL COMMENT '排序',
  PRIMARY KEY (`menu_id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 287 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '菜单管理' ROW_FORMAT = Dynamic;

-- ----------------------------
-- Records of sys_menu
-- ----------------------------
INSERT INTO `sys_menu` VALUES (1, 0, '系统管理', NULL, NULL, 0, 'system', 20);
INSERT INTO `sys_menu` VALUES (2, 1, '管理员列表', 'sys/user', NULL, 1, 'admin', 1);
INSERT INTO `sys_menu` VALUES (3, 1, '角色管理', 'sys/role', NULL, 1, 'role', 2);
INSERT INTO `sys_menu` VALUES (4, 1, '菜单管理', 'sys/menu', NULL, 1, 'menu', 3);
INSERT INTO `sys_menu` VALUES (15, 2, '查看', NULL, 'sys:user:list,sys:user:info', 2, NULL, 0);
INSERT INTO `sys_menu` VALUES (16, 2, '新增', NULL, 'sys:user:save,sys:role:select', 2, NULL, 0);
INSERT INTO `sys_menu` VALUES (17, 2, '修改', NULL, 'sys:user:update,sys:role:select', 2, NULL, 0);
INSERT INTO `sys_menu` VALUES (18, 2, '删除', NULL, 'sys:user:delete', 2, NULL, 0);
INSERT INTO `sys_menu` VALUES (19, 3, '查看', NULL, 'sys:role:list,sys:role:info', 2, NULL, 0);
INSERT INTO `sys_menu` VALUES (20, 3, '新增', NULL, 'sys:role:save,sys:menu:list', 2, NULL, 0);
INSERT INTO `sys_menu` VALUES (21, 3, '修改', NULL, 'sys:role:update,sys:menu:list', 2, NULL, 0);
INSERT INTO `sys_menu` VALUES (22, 3, '删除', NULL, 'sys:role:delete', 2, NULL, 0);
INSERT INTO `sys_menu` VALUES (23, 4, '查看', NULL, 'sys:menu:list,sys:menu:info', 2, NULL, 0);
INSERT INTO `sys_menu` VALUES (24, 4, '新增', NULL, 'sys:menu:save,sys:menu:select', 2, NULL, 0);
INSERT INTO `sys_menu` VALUES (25, 4, '修改', NULL, 'sys:menu:update,sys:menu:select', 2, NULL, 0);
INSERT INTO `sys_menu` VALUES (26, 4, '删除', NULL, 'sys:menu:delete', 2, NULL, 0);
INSERT INTO `sys_menu` VALUES (32, 0, '用户中心', 'userList', NULL, 1, 'yonghul', 1);
INSERT INTO `sys_menu` VALUES (34, 0, '财务中心', 'financeList', '', 1, 'caiwu', 2);
INSERT INTO `sys_menu` VALUES (35, 0, '消息中心', 'message', '', 1, 'pinglun', 3);
INSERT INTO `sys_menu` VALUES (38, 0, '首页装修', 'bannerList', '', 1, 'shangpin', 8);
INSERT INTO `sys_menu` VALUES (39, 0, '系统配置', 'allocationList', '', 1, 'zhedie', 19);
INSERT INTO `sys_menu` VALUES (40, 0, '数据中心', 'home', '', 1, 'shuju', 0);
INSERT INTO `sys_menu` VALUES (46, 32, '查看', '', 'userList:list', 2, '', 0);
INSERT INTO `sys_menu` VALUES (47, 32, '删除', '', 'userList:delete', 2, '', 0);
INSERT INTO `sys_menu` VALUES (48, 34, '查看', '', 'financeList:list', 2, '', 0);
INSERT INTO `sys_menu` VALUES (49, 34, '转账', '', 'financeList:transfer', 2, '', 0);
INSERT INTO `sys_menu` VALUES (50, 34, '退款', '', 'financeList:refund', 2, '', 0);
INSERT INTO `sys_menu` VALUES (78, 38, '查看', '', 'bannerList:list', 2, '', 0);
INSERT INTO `sys_menu` VALUES (79, 38, '添加', '', 'bannerList:add', 2, '', 0);
INSERT INTO `sys_menu` VALUES (80, 38, '修改', '', 'bannerList:update', 2, '', 0);
INSERT INTO `sys_menu` VALUES (81, 38, '删除', '', 'bannerList:delete', 2, '', 0);
INSERT INTO `sys_menu` VALUES (82, 39, '查看', '', 'allocationList:list', 2, '', 0);
INSERT INTO `sys_menu` VALUES (83, 39, '修改', '', 'allocationList:update', 2, '', 0);
INSERT INTO `sys_menu` VALUES (124, 35, '查看', 'message', 'message:list', 2, 'pinglun', 3);
INSERT INTO `sys_menu` VALUES (145, 0, '订单中心', 'mission', '', 1, 'renwu1', 4);
INSERT INTO `sys_menu` VALUES (146, 145, '查看', '', 'mission:list', 2, '', 0);
INSERT INTO `sys_menu` VALUES (148, 145, '修改', '', 'mission:update', 2, '', 0);
INSERT INTO `sys_menu` VALUES (161, 0, '商品管理', '', '', 0, 'shangpin', 5);
INSERT INTO `sys_menu` VALUES (162, 161, '商品中心', 'shopAdmin', '', 1, 'renwu', 0);
INSERT INTO `sys_menu` VALUES (163, 162, '查看', '', 'shopAdmin:list', 2, '', 0);
INSERT INTO `sys_menu` VALUES (164, 162, '添加', '', 'shopAdmin:add', 2, '', 0);
INSERT INTO `sys_menu` VALUES (165, 162, '修改', '', 'shopAdmin:update', 2, '', 0);
INSERT INTO `sys_menu` VALUES (166, 162, '删除', '', 'shopAdmin:delete', 2, '', 0);
INSERT INTO `sys_menu` VALUES (167, 161, '商品分类', 'classifyAdmin', '', 1, 'peizhilb', 0);
INSERT INTO `sys_menu` VALUES (168, 167, '查看', '', 'classifyAdmin:list', 2, '', 0);
INSERT INTO `sys_menu` VALUES (169, 167, '添加', '', 'classifyAdmin:add', 2, '', 0);
INSERT INTO `sys_menu` VALUES (170, 167, '修改', '', 'classifyAdmin:update', 2, '', 0);
INSERT INTO `sys_menu` VALUES (171, 167, '删除', '', 'classifyAdmin:delete', 2, '', 0);
INSERT INTO `sys_menu` VALUES (172, 161, '商品规格', 'specification', '', 1, 'fenleilist', 0);
INSERT INTO `sys_menu` VALUES (173, 172, '查看', '', 'specification:list', 2, '', 0);
INSERT INTO `sys_menu` VALUES (174, 172, '添加', '', 'specification:add', 2, '', 0);
INSERT INTO `sys_menu` VALUES (175, 172, '修改', '', 'specification:update', 2, '', 0);
INSERT INTO `sys_menu` VALUES (176, 172, '删除', '', 'specification:delete', 2, '', 0);
INSERT INTO `sys_menu` VALUES (177, 0, '商户管理', 'shopsList', '', 1, 'tubiao', 6);
INSERT INTO `sys_menu` VALUES (178, 177, '查看', '', 'shopsList:list', 2, '', 0);
INSERT INTO `sys_menu` VALUES (179, 177, '添加', '', 'shopsList:add', 2, '', 0);
INSERT INTO `sys_menu` VALUES (180, 177, '修改', '', 'shopsList:update', 2, '', 0);
INSERT INTO `sys_menu` VALUES (181, 177, '删除', '', 'shopsList:delete', 2, '', 0);
INSERT INTO `sys_menu` VALUES (182, 255, '优惠券管理', 'coupon', '', 1, 'order', 4);
INSERT INTO `sys_menu` VALUES (183, 182, '查看', '', 'coupon:list', 2, '', 0);
INSERT INTO `sys_menu` VALUES (184, 182, '添加', '', 'coupon:add', 2, '', 0);
INSERT INTO `sys_menu` VALUES (185, 182, '修改', '', 'coupon:update', 2, '', 0);
INSERT INTO `sys_menu` VALUES (186, 182, '删除', '', 'coupon:delete', 2, '', 0);
INSERT INTO `sys_menu` VALUES (187, 255, '充值配置', 'topupmoney', '4', 1, 'config', 4);
INSERT INTO `sys_menu` VALUES (188, 187, '查看', '', 'topupmoney:list', 2, '', 0);
INSERT INTO `sys_menu` VALUES (189, 187, '添加', '', 'topupmoney:add', 2, '', 0);
INSERT INTO `sys_menu` VALUES (190, 187, '修改', '', 'topupmoney:update', 2, '', 0);
INSERT INTO `sys_menu` VALUES (191, 187, '删除', '', 'topupmoney:delete', 2, '', 0);
INSERT INTO `sys_menu` VALUES (202, 32, '修改金额', '', 'userList:updateMoney', 2, '', 0);
INSERT INTO `sys_menu` VALUES (203, 32, '修改状态', '', 'userList:updateStatus', 2, '', 0);
INSERT INTO `sys_menu` VALUES (205, 177, '退款', '', 'shopsList:tuikuan', 2, '', 0);
INSERT INTO `sys_menu` VALUES (207, 145, '取餐', '', 'mission:qucan', 2, '', 0);
INSERT INTO `sys_menu` VALUES (208, 0, '商户审核', 'shopAutonym', '', 1, 'order', 7);
INSERT INTO `sys_menu` VALUES (209, 208, '查看', '', 'shopAutonym:list', 2, '', 0);
INSERT INTO `sys_menu` VALUES (210, 208, '通过', '', 'shopAutonym:pass', 2, '', 0);
INSERT INTO `sys_menu` VALUES (211, 208, '拒绝', '', 'shopAutonym:refuse', 2, '', 0);
INSERT INTO `sys_menu` VALUES (212, 0, '跑腿模块', '', '', 0, 'fenleilist', 10);
INSERT INTO `sys_menu` VALUES (213, 212, '跑腿任务', 'missionRun', '', 1, 'log', 0);
INSERT INTO `sys_menu` VALUES (214, 213, '查看', '', 'missionRun:list', 2, '', 0);
INSERT INTO `sys_menu` VALUES (216, 213, '修改', '', 'missionRun:update', 2, '', 0);
INSERT INTO `sys_menu` VALUES (218, 212, '跑腿订单', 'orderCenterRun', '', 1, 'shuju', 0);
INSERT INTO `sys_menu` VALUES (219, 218, '查看', '', 'orderCenterRun:list', 2, '', 0);
INSERT INTO `sys_menu` VALUES (220, 212, '跑腿财务中心', 'financeListRun', '', 1, 'caiwu', 0);
INSERT INTO `sys_menu` VALUES (221, 220, '查看', '', 'financeListRun:list', 2, '', 0);
INSERT INTO `sys_menu` VALUES (222, 212, '申诉中心', 'business', '', 1, 'renwu1', 0);
INSERT INTO `sys_menu` VALUES (223, 222, '查看', '', 'business:list', 2, '', 0);
INSERT INTO `sys_menu` VALUES (224, 222, '通过', '', 'business:tongguo', 2, '', 0);
INSERT INTO `sys_menu` VALUES (225, 222, '拒绝', '', 'business:jujue', 2, '', 0);
INSERT INTO `sys_menu` VALUES (226, 212, '实名验证', 'autonym', '', 1, 'renwu1', 0);
INSERT INTO `sys_menu` VALUES (227, 226, '查看', '', 'autonym:list', 2, '', 0);
INSERT INTO `sys_menu` VALUES (228, 226, '审核通过', '', 'autonym:tongguo', 2, '', 0);
INSERT INTO `sys_menu` VALUES (229, 226, '审核拒绝', '', 'autonym:jujue', 2, '', 0);
INSERT INTO `sys_menu` VALUES (230, 222, '添加', '', 'business:add', 2, '', 0);
INSERT INTO `sys_menu` VALUES (231, 222, '修改', '', 'business:update', 2, '', 0);
INSERT INTO `sys_menu` VALUES (232, 222, '删除', '', 'business:delete', 2, '', 0);
INSERT INTO `sys_menu` VALUES (235, 212, '骑手调度', 'riderScheduling', '', 1, 'shousuo', 5);
INSERT INTO `sys_menu` VALUES (236, 212, '同城服务类型', 'serviceType', '', 1, 'fenleilist', 0);
INSERT INTO `sys_menu` VALUES (237, 236, '查看', '', 'serviceType:list', 2, '', 0);
INSERT INTO `sys_menu` VALUES (238, 236, '添加', '', 'serviceType:add', 2, '', 0);
INSERT INTO `sys_menu` VALUES (239, 236, '修改', '', 'serviceType:update', 2, '', 0);
INSERT INTO `sys_menu` VALUES (240, 236, '删除', '', 'serviceType:delete', 2, '', 0);
INSERT INTO `sys_menu` VALUES (241, 212, '骑手排行', 'riderTop', '', 1, 'tubiao', 0);
INSERT INTO `sys_menu` VALUES (242, 241, '查看', '', 'riderTop:list', 2, '', 0);
INSERT INTO `sys_menu` VALUES (244, 212, '跑腿消息中心', 'messageRun', '', 1, 'pinglun', 0);
INSERT INTO `sys_menu` VALUES (245, 244, '查看', '', 'messageRun:list', 2, '', 0);
INSERT INTO `sys_menu` VALUES (246, 212, '跑腿反馈中心', 'feedback', '', 1, 'renwu1', 0);
INSERT INTO `sys_menu` VALUES (247, 246, '查看', '', 'feedback:list', 2, '', 0);
INSERT INTO `sys_menu` VALUES (248, 299, '在线客服', 'vueMchat', '', 1, 'yonghul', 0);
INSERT INTO `sys_menu` VALUES (251, 220, '转账', '', 'financeListRun:transfer', 2, '', 0);
INSERT INTO `sys_menu` VALUES (252, 220, '拒绝', '', 'financeListRun:refund', 2, '', 0);
INSERT INTO `sys_menu` VALUES (253, 255, '优惠券记录', 'couponList', '', 1, 'order', 4);
INSERT INTO `sys_menu` VALUES (254, 253, '查看', '', 'couponList:list', 2, '', 0);
INSERT INTO `sys_menu` VALUES (255, 0, '营销管理', '', '', 0, 'job', 9);
INSERT INTO `sys_menu` VALUES (256, 299, '帮助中心', 'materialLink', '', 1, 'order', 3);
INSERT INTO `sys_menu` VALUES (257, 256, '查看', '', 'materialLink:list', 2, '', 0);
INSERT INTO `sys_menu` VALUES (258, 256, '添加', '', 'materialLink:add', 2, '', 0);
INSERT INTO `sys_menu` VALUES (259, 256, '修改', '', 'materialLink:update', 2, '', 0);
INSERT INTO `sys_menu` VALUES (260, 256, '删除', '', 'materialLink:delete', 2, '', 0);
INSERT INTO `sys_menu` VALUES (261, 1, '升级配置', 'app', '', 1, 'config', 0);
INSERT INTO `sys_menu` VALUES (262, 261, '查看', '', 'app:list', 2, '', 0);
INSERT INTO `sys_menu` VALUES (263, 261, '添加', '', 'app:add', 2, '', 0);
INSERT INTO `sys_menu` VALUES (264, 261, '修改', '', 'app:update', 2, '', 0);
INSERT INTO `sys_menu` VALUES (265, 261, '删除', '', 'app:delete', 2, '', 0);
INSERT INTO `sys_menu` VALUES (271, 255, '会员特权', 'vipPrivilege', '', 1, 'renwu', 0);
INSERT INTO `sys_menu` VALUES (272, 271, '查看', '', 'vipPrivilege:list', 2, '', 0);
INSERT INTO `sys_menu` VALUES (273, 271, '添加', '', 'vipPrivilege:add', 2, '', 0);
INSERT INTO `sys_menu` VALUES (274, 271, '修改', '', 'vipPrivilege:update', 2, '', 0);
INSERT INTO `sys_menu` VALUES (275, 271, '删除', '', 'vipPrivilege:delete', 2, '', 0);
INSERT INTO `sys_menu` VALUES (276, 32, '设置会员', '', 'userList:updateVip', 2, '', 0);
INSERT INTO `sys_menu` VALUES (277, 145, '退款', '', 'mission:tuikuan', 2, '', 0);
INSERT INTO `sys_menu` VALUES (278, 212, '跑腿首页装修', 'bannerListRun', '', 1, 'config', 0);
INSERT INTO `sys_menu` VALUES (279, 278, '查看', '', 'bannerListRun:list', 2, '', 0);
INSERT INTO `sys_menu` VALUES (280, 278, '添加', '', 'bannerListRun:add', 2, '', 0);
INSERT INTO `sys_menu` VALUES (281, 278, '修改', '', 'bannerListRun:update', 2, '', 0);
INSERT INTO `sys_menu` VALUES (282, 278, '删除', '', 'bannerListRun:delete', 2, '', 0);
INSERT INTO `sys_menu` VALUES (286, 218, '转单', '', 'orderCenterRun:zhuandan', 2, '', 0);
INSERT INTO `sys_menu` VALUES (287, 177, '删除评论', '', 'shopsList:deletePl', 2, '', 0);
INSERT INTO `sys_menu` VALUES (288, 299, '聊天记录', 'chatRecord', NULL, 1, 'order', 1);
INSERT INTO `sys_menu` VALUES (289, 288, '查看', NULL, 'chatRecord:list', 2, NULL, 0);
INSERT INTO `sys_menu` VALUES (290, 288, '删除', NULL, 'chatRecord:delete', 2, NULL, 0);
INSERT INTO `sys_menu` VALUES (291, 299, '评价中心', 'comment', NULL, 1, 'pinglun', 2);
INSERT INTO `sys_menu` VALUES (292, 291, '查看', NULL, 'comment:list', 2, NULL, 0);
INSERT INTO `sys_menu` VALUES (293, 291, '删除', NULL, 'comment:delete', 2, NULL, 0);
INSERT INTO `sys_menu` VALUES (294, 255, '活动管理', 'integral', NULL, 1, 'leibie', 0);
INSERT INTO `sys_menu` VALUES (295, 294, '查看', NULL, 'integral:list', 2, NULL, 0);
INSERT INTO `sys_menu` VALUES (296, 294, '添加', NULL, 'integral:add', 2, NULL, 0);
INSERT INTO `sys_menu` VALUES (297, 294, '修改', NULL, 'integral:update', 2, NULL, 0);
INSERT INTO `sys_menu` VALUES (298, 294, '删除', NULL, 'integral:delete', 2, NULL, 0);
INSERT INTO `sys_menu` VALUES (299, 0, '安全中心', NULL, NULL, 0, 'leibie', 11);

-- ----------------------------
-- Table structure for sys_oss
-- ----------------------------
DROP TABLE IF EXISTS `sys_oss`;
CREATE TABLE `sys_oss`  (
  `id` bigint(20) NOT NULL AUTO_INCREMENT,
  `url` varchar(200) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT 'URL地址',
  `create_date` datetime(0) NULL DEFAULT NULL COMMENT '创建时间',
  PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '文件上传' ROW_FORMAT = Dynamic;

-- ----------------------------
-- Records of sys_oss
-- ----------------------------

-- ----------------------------
-- Table structure for sys_role
-- ----------------------------
DROP TABLE IF EXISTS `sys_role`;
CREATE TABLE `sys_role`  (
  `role_id` bigint(20) NOT NULL AUTO_INCREMENT,
  `role_name` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '角色名称',
  `remark` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '备注',
  `create_user_id` bigint(20) NULL DEFAULT NULL COMMENT '创建者ID',
  `create_time` datetime(0) NULL DEFAULT NULL COMMENT '创建时间',
  PRIMARY KEY (`role_id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 15 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '角色' ROW_FORMAT = Dynamic;

-- ----------------------------
-- Records of sys_role
-- ----------------------------
INSERT INTO `sys_role` VALUES (3, '超级管理员', '超级管理员', 34, '2020-08-10 14:28:56');
INSERT INTO `sys_role` VALUES (4, '普通管理员', '普通管理员', 34, '2020-08-10 14:35:08');
INSERT INTO `sys_role` VALUES (5, '运营人员', '运营人员', 1, '2020-08-10 14:35:29');
INSERT INTO `sys_role` VALUES (12, '店铺管理员', '店铺管理员', 34, '2021-12-20 14:05:35');

-- ----------------------------
-- Table structure for sys_role_menu
-- ----------------------------
DROP TABLE IF EXISTS `sys_role_menu`;
CREATE TABLE `sys_role_menu`  (
  `id` bigint(20) NOT NULL AUTO_INCREMENT,
  `role_id` bigint(20) NULL DEFAULT NULL COMMENT '角色ID',
  `menu_id` bigint(20) NULL DEFAULT NULL COMMENT '菜单ID',
  PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 8760 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '角色与菜单对应关系' ROW_FORMAT = Dynamic;

-- ----------------------------
-- Records of sys_role_menu
-- ----------------------------
INSERT INTO `sys_role_menu` VALUES (123, 7, 0);
INSERT INTO `sys_role_menu` VALUES (4018, 5, 40);
INSERT INTO `sys_role_menu` VALUES (4019, 5, 46);
INSERT INTO `sys_role_menu` VALUES (4020, 5, 48);
INSERT INTO `sys_role_menu` VALUES (4021, 5, 35);
INSERT INTO `sys_role_menu` VALUES (4022, 5, 124);
INSERT INTO `sys_role_menu` VALUES (4024, 5, 78);
INSERT INTO `sys_role_menu` VALUES (4025, 5, 163);
INSERT INTO `sys_role_menu` VALUES (4026, 5, 165);
INSERT INTO `sys_role_menu` VALUES (4027, 5, 168);
INSERT INTO `sys_role_menu` VALUES (4028, 5, 164);
INSERT INTO `sys_role_menu` VALUES (4029, 5, 167);
INSERT INTO `sys_role_menu` VALUES (4030, 5, 82);
INSERT INTO `sys_role_menu` VALUES (4031, 5, 15);
INSERT INTO `sys_role_menu` VALUES (4032, 5, 19);
INSERT INTO `sys_role_menu` VALUES (4033, 5, 23);
INSERT INTO `sys_role_menu` VALUES (4034, 5, -666666);
INSERT INTO `sys_role_menu` VALUES (4035, 5, 32);
INSERT INTO `sys_role_menu` VALUES (4036, 5, 34);
INSERT INTO `sys_role_menu` VALUES (4037, 5, 38);
INSERT INTO `sys_role_menu` VALUES (4038, 5, 39);
INSERT INTO `sys_role_menu` VALUES (4039, 5, 1);
INSERT INTO `sys_role_menu` VALUES (4040, 5, 2);
INSERT INTO `sys_role_menu` VALUES (4041, 5, 3);
INSERT INTO `sys_role_menu` VALUES (4042, 5, 4);
INSERT INTO `sys_role_menu` VALUES (4352, 10, 40);
INSERT INTO `sys_role_menu` VALUES (4353, 10, 32);
INSERT INTO `sys_role_menu` VALUES (4354, 10, 46);
INSERT INTO `sys_role_menu` VALUES (4355, 10, 47);
INSERT INTO `sys_role_menu` VALUES (4356, 10, 34);
INSERT INTO `sys_role_menu` VALUES (4357, 10, 48);
INSERT INTO `sys_role_menu` VALUES (4358, 10, 49);
INSERT INTO `sys_role_menu` VALUES (4359, 10, 50);
INSERT INTO `sys_role_menu` VALUES (4363, 10, 35);
INSERT INTO `sys_role_menu` VALUES (4364, 10, 124);
INSERT INTO `sys_role_menu` VALUES (4366, 10, 38);
INSERT INTO `sys_role_menu` VALUES (4367, 10, 78);
INSERT INTO `sys_role_menu` VALUES (4368, 10, 79);
INSERT INTO `sys_role_menu` VALUES (4369, 10, 80);
INSERT INTO `sys_role_menu` VALUES (4370, 10, 81);
INSERT INTO `sys_role_menu` VALUES (4371, 10, 145);
INSERT INTO `sys_role_menu` VALUES (4372, 10, 146);
INSERT INTO `sys_role_menu` VALUES (4374, 10, 148);
INSERT INTO `sys_role_menu` VALUES (4387, 10, 39);
INSERT INTO `sys_role_menu` VALUES (4388, 10, 82);
INSERT INTO `sys_role_menu` VALUES (4389, 10, 83);
INSERT INTO `sys_role_menu` VALUES (4390, 10, 1);
INSERT INTO `sys_role_menu` VALUES (4391, 10, 2);
INSERT INTO `sys_role_menu` VALUES (4392, 10, 15);
INSERT INTO `sys_role_menu` VALUES (4393, 10, 16);
INSERT INTO `sys_role_menu` VALUES (4394, 10, 17);
INSERT INTO `sys_role_menu` VALUES (4395, 10, 18);
INSERT INTO `sys_role_menu` VALUES (4396, 10, 3);
INSERT INTO `sys_role_menu` VALUES (4397, 10, 19);
INSERT INTO `sys_role_menu` VALUES (4398, 10, 20);
INSERT INTO `sys_role_menu` VALUES (4399, 10, 21);
INSERT INTO `sys_role_menu` VALUES (4400, 10, 22);
INSERT INTO `sys_role_menu` VALUES (4401, 10, 4);
INSERT INTO `sys_role_menu` VALUES (4402, 10, 23);
INSERT INTO `sys_role_menu` VALUES (4403, 10, 24);
INSERT INTO `sys_role_menu` VALUES (4404, 10, 25);
INSERT INTO `sys_role_menu` VALUES (4405, 10, 26);
INSERT INTO `sys_role_menu` VALUES (4406, 10, -666666);
INSERT INTO `sys_role_menu` VALUES (6878, 12, -666666);
INSERT INTO `sys_role_menu` VALUES (8097, 4, 40);
INSERT INTO `sys_role_menu` VALUES (8098, 4, 276);
INSERT INTO `sys_role_menu` VALUES (8099, 4, 46);
INSERT INTO `sys_role_menu` VALUES (8100, 4, 202);
INSERT INTO `sys_role_menu` VALUES (8101, 4, 203);
INSERT INTO `sys_role_menu` VALUES (8102, 4, 34);
INSERT INTO `sys_role_menu` VALUES (8103, 4, 48);
INSERT INTO `sys_role_menu` VALUES (8104, 4, 49);
INSERT INTO `sys_role_menu` VALUES (8105, 4, 50);
INSERT INTO `sys_role_menu` VALUES (8106, 4, 208);
INSERT INTO `sys_role_menu` VALUES (8107, 4, 209);
INSERT INTO `sys_role_menu` VALUES (8108, 4, 210);
INSERT INTO `sys_role_menu` VALUES (8109, 4, 211);
INSERT INTO `sys_role_menu` VALUES (8110, 4, 35);
INSERT INTO `sys_role_menu` VALUES (8111, 4, 124);
INSERT INTO `sys_role_menu` VALUES (8112, 4, 145);
INSERT INTO `sys_role_menu` VALUES (8113, 4, 277);
INSERT INTO `sys_role_menu` VALUES (8114, 4, 146);
INSERT INTO `sys_role_menu` VALUES (8115, 4, 148);
INSERT INTO `sys_role_menu` VALUES (8116, 4, 207);
INSERT INTO `sys_role_menu` VALUES (8117, 4, 163);
INSERT INTO `sys_role_menu` VALUES (8118, 4, 164);
INSERT INTO `sys_role_menu` VALUES (8119, 4, 165);
INSERT INTO `sys_role_menu` VALUES (8120, 4, 168);
INSERT INTO `sys_role_menu` VALUES (8121, 4, 169);
INSERT INTO `sys_role_menu` VALUES (8122, 4, 170);
INSERT INTO `sys_role_menu` VALUES (8123, 4, 173);
INSERT INTO `sys_role_menu` VALUES (8124, 4, 174);
INSERT INTO `sys_role_menu` VALUES (8125, 4, 175);
INSERT INTO `sys_role_menu` VALUES (8126, 4, 178);
INSERT INTO `sys_role_menu` VALUES (8127, 4, 179);
INSERT INTO `sys_role_menu` VALUES (8128, 4, 180);
INSERT INTO `sys_role_menu` VALUES (8129, 4, 78);
INSERT INTO `sys_role_menu` VALUES (8130, 4, 272);
INSERT INTO `sys_role_menu` VALUES (8131, 4, 183);
INSERT INTO `sys_role_menu` VALUES (8132, 4, 184);
INSERT INTO `sys_role_menu` VALUES (8133, 4, 185);
INSERT INTO `sys_role_menu` VALUES (8134, 4, 188);
INSERT INTO `sys_role_menu` VALUES (8135, 4, 189);
INSERT INTO `sys_role_menu` VALUES (8136, 4, 190);
INSERT INTO `sys_role_menu` VALUES (8137, 4, 253);
INSERT INTO `sys_role_menu` VALUES (8138, 4, 254);
INSERT INTO `sys_role_menu` VALUES (8139, 4, 213);
INSERT INTO `sys_role_menu` VALUES (8140, 4, 214);
INSERT INTO `sys_role_menu` VALUES (8141, 4, 216);
INSERT INTO `sys_role_menu` VALUES (8142, 4, 218);
INSERT INTO `sys_role_menu` VALUES (8143, 4, 219);
INSERT INTO `sys_role_menu` VALUES (8144, 4, 220);
INSERT INTO `sys_role_menu` VALUES (8145, 4, 221);
INSERT INTO `sys_role_menu` VALUES (8146, 4, 251);
INSERT INTO `sys_role_menu` VALUES (8147, 4, 252);
INSERT INTO `sys_role_menu` VALUES (8148, 4, 222);
INSERT INTO `sys_role_menu` VALUES (8149, 4, 223);
INSERT INTO `sys_role_menu` VALUES (8150, 4, 224);
INSERT INTO `sys_role_menu` VALUES (8151, 4, 225);
INSERT INTO `sys_role_menu` VALUES (8152, 4, 230);
INSERT INTO `sys_role_menu` VALUES (8153, 4, 231);
INSERT INTO `sys_role_menu` VALUES (8154, 4, 232);
INSERT INTO `sys_role_menu` VALUES (8155, 4, 226);
INSERT INTO `sys_role_menu` VALUES (8156, 4, 227);
INSERT INTO `sys_role_menu` VALUES (8157, 4, 228);
INSERT INTO `sys_role_menu` VALUES (8158, 4, 229);
INSERT INTO `sys_role_menu` VALUES (8159, 4, 237);
INSERT INTO `sys_role_menu` VALUES (8160, 4, 238);
INSERT INTO `sys_role_menu` VALUES (8161, 4, 239);
INSERT INTO `sys_role_menu` VALUES (8162, 4, 241);
INSERT INTO `sys_role_menu` VALUES (8163, 4, 242);
INSERT INTO `sys_role_menu` VALUES (8164, 4, 244);
INSERT INTO `sys_role_menu` VALUES (8165, 4, 245);
INSERT INTO `sys_role_menu` VALUES (8166, 4, 246);
INSERT INTO `sys_role_menu` VALUES (8167, 4, 247);
INSERT INTO `sys_role_menu` VALUES (8168, 4, 235);
INSERT INTO `sys_role_menu` VALUES (8169, 4, 248);
INSERT INTO `sys_role_menu` VALUES (8172, 4, 82);
INSERT INTO `sys_role_menu` VALUES (8173, 4, 262);
INSERT INTO `sys_role_menu` VALUES (8174, 4, 15);
INSERT INTO `sys_role_menu` VALUES (8175, 4, 19);
INSERT INTO `sys_role_menu` VALUES (8176, 4, 23);
INSERT INTO `sys_role_menu` VALUES (8177, 4, 256);
INSERT INTO `sys_role_menu` VALUES (8178, 4, 257);
INSERT INTO `sys_role_menu` VALUES (8179, 4, 258);
INSERT INTO `sys_role_menu` VALUES (8180, 4, 259);
INSERT INTO `sys_role_menu` VALUES (8181, 4, 260);
INSERT INTO `sys_role_menu` VALUES (8182, 4, -666666);
INSERT INTO `sys_role_menu` VALUES (8183, 4, 32);
INSERT INTO `sys_role_menu` VALUES (8184, 4, 161);
INSERT INTO `sys_role_menu` VALUES (8185, 4, 162);
INSERT INTO `sys_role_menu` VALUES (8186, 4, 167);
INSERT INTO `sys_role_menu` VALUES (8187, 4, 172);
INSERT INTO `sys_role_menu` VALUES (8188, 4, 177);
INSERT INTO `sys_role_menu` VALUES (8189, 4, 38);
INSERT INTO `sys_role_menu` VALUES (8190, 4, 255);
INSERT INTO `sys_role_menu` VALUES (8191, 4, 271);
INSERT INTO `sys_role_menu` VALUES (8192, 4, 182);
INSERT INTO `sys_role_menu` VALUES (8193, 4, 187);
INSERT INTO `sys_role_menu` VALUES (8194, 4, 212);
INSERT INTO `sys_role_menu` VALUES (8195, 4, 236);
INSERT INTO `sys_role_menu` VALUES (8196, 4, 39);
INSERT INTO `sys_role_menu` VALUES (8197, 4, 1);
INSERT INTO `sys_role_menu` VALUES (8198, 4, 261);
INSERT INTO `sys_role_menu` VALUES (8199, 4, 2);
INSERT INTO `sys_role_menu` VALUES (8200, 4, 3);
INSERT INTO `sys_role_menu` VALUES (8201, 4, 4);
INSERT INTO `sys_role_menu` VALUES (9047, 3, 40);
INSERT INTO `sys_role_menu` VALUES (9048, 3, 32);
INSERT INTO `sys_role_menu` VALUES (9049, 3, 276);
INSERT INTO `sys_role_menu` VALUES (9050, 3, 46);
INSERT INTO `sys_role_menu` VALUES (9051, 3, 47);
INSERT INTO `sys_role_menu` VALUES (9052, 3, 202);
INSERT INTO `sys_role_menu` VALUES (9053, 3, 203);
INSERT INTO `sys_role_menu` VALUES (9054, 3, 34);
INSERT INTO `sys_role_menu` VALUES (9055, 3, 48);
INSERT INTO `sys_role_menu` VALUES (9056, 3, 49);
INSERT INTO `sys_role_menu` VALUES (9057, 3, 50);
INSERT INTO `sys_role_menu` VALUES (9058, 3, 35);
INSERT INTO `sys_role_menu` VALUES (9059, 3, 124);
INSERT INTO `sys_role_menu` VALUES (9060, 3, 145);
INSERT INTO `sys_role_menu` VALUES (9061, 3, 277);
INSERT INTO `sys_role_menu` VALUES (9062, 3, 146);
INSERT INTO `sys_role_menu` VALUES (9063, 3, 148);
INSERT INTO `sys_role_menu` VALUES (9064, 3, 207);
INSERT INTO `sys_role_menu` VALUES (9065, 3, 161);
INSERT INTO `sys_role_menu` VALUES (9066, 3, 162);
INSERT INTO `sys_role_menu` VALUES (9067, 3, 163);
INSERT INTO `sys_role_menu` VALUES (9068, 3, 164);
INSERT INTO `sys_role_menu` VALUES (9069, 3, 165);
INSERT INTO `sys_role_menu` VALUES (9070, 3, 166);
INSERT INTO `sys_role_menu` VALUES (9071, 3, 167);
INSERT INTO `sys_role_menu` VALUES (9072, 3, 168);
INSERT INTO `sys_role_menu` VALUES (9073, 3, 169);
INSERT INTO `sys_role_menu` VALUES (9074, 3, 170);
INSERT INTO `sys_role_menu` VALUES (9075, 3, 171);
INSERT INTO `sys_role_menu` VALUES (9076, 3, 172);
INSERT INTO `sys_role_menu` VALUES (9077, 3, 173);
INSERT INTO `sys_role_menu` VALUES (9078, 3, 174);
INSERT INTO `sys_role_menu` VALUES (9079, 3, 175);
INSERT INTO `sys_role_menu` VALUES (9080, 3, 176);
INSERT INTO `sys_role_menu` VALUES (9081, 3, 177);
INSERT INTO `sys_role_menu` VALUES (9082, 3, 287);
INSERT INTO `sys_role_menu` VALUES (9083, 3, 178);
INSERT INTO `sys_role_menu` VALUES (9084, 3, 179);
INSERT INTO `sys_role_menu` VALUES (9085, 3, 180);
INSERT INTO `sys_role_menu` VALUES (9086, 3, 181);
INSERT INTO `sys_role_menu` VALUES (9087, 3, 205);
INSERT INTO `sys_role_menu` VALUES (9088, 3, 208);
INSERT INTO `sys_role_menu` VALUES (9089, 3, 209);
INSERT INTO `sys_role_menu` VALUES (9090, 3, 210);
INSERT INTO `sys_role_menu` VALUES (9091, 3, 211);
INSERT INTO `sys_role_menu` VALUES (9092, 3, 38);
INSERT INTO `sys_role_menu` VALUES (9093, 3, 78);
INSERT INTO `sys_role_menu` VALUES (9094, 3, 79);
INSERT INTO `sys_role_menu` VALUES (9095, 3, 80);
INSERT INTO `sys_role_menu` VALUES (9096, 3, 81);
INSERT INTO `sys_role_menu` VALUES (9097, 3, 255);
INSERT INTO `sys_role_menu` VALUES (9098, 3, 271);
INSERT INTO `sys_role_menu` VALUES (9099, 3, 272);
INSERT INTO `sys_role_menu` VALUES (9100, 3, 273);
INSERT INTO `sys_role_menu` VALUES (9101, 3, 274);
INSERT INTO `sys_role_menu` VALUES (9102, 3, 275);
INSERT INTO `sys_role_menu` VALUES (9103, 3, 294);
INSERT INTO `sys_role_menu` VALUES (9104, 3, 295);
INSERT INTO `sys_role_menu` VALUES (9105, 3, 296);
INSERT INTO `sys_role_menu` VALUES (9106, 3, 297);
INSERT INTO `sys_role_menu` VALUES (9107, 3, 298);
INSERT INTO `sys_role_menu` VALUES (9108, 3, 182);
INSERT INTO `sys_role_menu` VALUES (9109, 3, 183);
INSERT INTO `sys_role_menu` VALUES (9110, 3, 184);
INSERT INTO `sys_role_menu` VALUES (9111, 3, 185);
INSERT INTO `sys_role_menu` VALUES (9112, 3, 186);
INSERT INTO `sys_role_menu` VALUES (9113, 3, 187);
INSERT INTO `sys_role_menu` VALUES (9114, 3, 188);
INSERT INTO `sys_role_menu` VALUES (9115, 3, 189);
INSERT INTO `sys_role_menu` VALUES (9116, 3, 190);
INSERT INTO `sys_role_menu` VALUES (9117, 3, 191);
INSERT INTO `sys_role_menu` VALUES (9118, 3, 253);
INSERT INTO `sys_role_menu` VALUES (9119, 3, 254);
INSERT INTO `sys_role_menu` VALUES (9120, 3, 212);
INSERT INTO `sys_role_menu` VALUES (9121, 3, 278);
INSERT INTO `sys_role_menu` VALUES (9122, 3, 279);
INSERT INTO `sys_role_menu` VALUES (9123, 3, 280);
INSERT INTO `sys_role_menu` VALUES (9124, 3, 281);
INSERT INTO `sys_role_menu` VALUES (9125, 3, 282);
INSERT INTO `sys_role_menu` VALUES (9126, 3, 213);
INSERT INTO `sys_role_menu` VALUES (9127, 3, 214);
INSERT INTO `sys_role_menu` VALUES (9128, 3, 216);
INSERT INTO `sys_role_menu` VALUES (9129, 3, 218);
INSERT INTO `sys_role_menu` VALUES (9130, 3, 286);
INSERT INTO `sys_role_menu` VALUES (9131, 3, 219);
INSERT INTO `sys_role_menu` VALUES (9132, 3, 220);
INSERT INTO `sys_role_menu` VALUES (9133, 3, 221);
INSERT INTO `sys_role_menu` VALUES (9134, 3, 251);
INSERT INTO `sys_role_menu` VALUES (9135, 3, 252);
INSERT INTO `sys_role_menu` VALUES (9136, 3, 222);
INSERT INTO `sys_role_menu` VALUES (9137, 3, 223);
INSERT INTO `sys_role_menu` VALUES (9138, 3, 224);
INSERT INTO `sys_role_menu` VALUES (9139, 3, 225);
INSERT INTO `sys_role_menu` VALUES (9140, 3, 230);
INSERT INTO `sys_role_menu` VALUES (9141, 3, 231);
INSERT INTO `sys_role_menu` VALUES (9142, 3, 232);
INSERT INTO `sys_role_menu` VALUES (9143, 3, 226);
INSERT INTO `sys_role_menu` VALUES (9144, 3, 227);
INSERT INTO `sys_role_menu` VALUES (9145, 3, 228);
INSERT INTO `sys_role_menu` VALUES (9146, 3, 229);
INSERT INTO `sys_role_menu` VALUES (9147, 3, 236);
INSERT INTO `sys_role_menu` VALUES (9148, 3, 237);
INSERT INTO `sys_role_menu` VALUES (9149, 3, 238);
INSERT INTO `sys_role_menu` VALUES (9150, 3, 239);
INSERT INTO `sys_role_menu` VALUES (9151, 3, 240);
INSERT INTO `sys_role_menu` VALUES (9152, 3, 241);
INSERT INTO `sys_role_menu` VALUES (9153, 3, 242);
INSERT INTO `sys_role_menu` VALUES (9154, 3, 244);
INSERT INTO `sys_role_menu` VALUES (9155, 3, 245);
INSERT INTO `sys_role_menu` VALUES (9156, 3, 246);
INSERT INTO `sys_role_menu` VALUES (9157, 3, 247);
INSERT INTO `sys_role_menu` VALUES (9158, 3, 235);
INSERT INTO `sys_role_menu` VALUES (9159, 3, 299);
INSERT INTO `sys_role_menu` VALUES (9160, 3, 248);
INSERT INTO `sys_role_menu` VALUES (9161, 3, 288);
INSERT INTO `sys_role_menu` VALUES (9162, 3, 289);
INSERT INTO `sys_role_menu` VALUES (9163, 3, 290);
INSERT INTO `sys_role_menu` VALUES (9164, 3, 291);
INSERT INTO `sys_role_menu` VALUES (9165, 3, 292);
INSERT INTO `sys_role_menu` VALUES (9166, 3, 293);
INSERT INTO `sys_role_menu` VALUES (9167, 3, 256);
INSERT INTO `sys_role_menu` VALUES (9168, 3, 257);
INSERT INTO `sys_role_menu` VALUES (9169, 3, 258);
INSERT INTO `sys_role_menu` VALUES (9170, 3, 259);
INSERT INTO `sys_role_menu` VALUES (9171, 3, 260);
INSERT INTO `sys_role_menu` VALUES (9172, 3, 39);
INSERT INTO `sys_role_menu` VALUES (9173, 3, 82);
INSERT INTO `sys_role_menu` VALUES (9174, 3, 83);
INSERT INTO `sys_role_menu` VALUES (9175, 3, 1);
INSERT INTO `sys_role_menu` VALUES (9176, 3, 261);
INSERT INTO `sys_role_menu` VALUES (9177, 3, 262);
INSERT INTO `sys_role_menu` VALUES (9178, 3, 263);
INSERT INTO `sys_role_menu` VALUES (9179, 3, 264);
INSERT INTO `sys_role_menu` VALUES (9180, 3, 265);
INSERT INTO `sys_role_menu` VALUES (9181, 3, 2);
INSERT INTO `sys_role_menu` VALUES (9182, 3, 15);
INSERT INTO `sys_role_menu` VALUES (9183, 3, 16);
INSERT INTO `sys_role_menu` VALUES (9184, 3, 17);
INSERT INTO `sys_role_menu` VALUES (9185, 3, 18);
INSERT INTO `sys_role_menu` VALUES (9186, 3, 3);
INSERT INTO `sys_role_menu` VALUES (9187, 3, 19);
INSERT INTO `sys_role_menu` VALUES (9188, 3, 20);
INSERT INTO `sys_role_menu` VALUES (9189, 3, 21);
INSERT INTO `sys_role_menu` VALUES (9190, 3, 22);
INSERT INTO `sys_role_menu` VALUES (9191, 3, 4);
INSERT INTO `sys_role_menu` VALUES (9192, 3, 23);
INSERT INTO `sys_role_menu` VALUES (9193, 3, 24);
INSERT INTO `sys_role_menu` VALUES (9194, 3, 25);
INSERT INTO `sys_role_menu` VALUES (9195, 3, 26);
INSERT INTO `sys_role_menu` VALUES (9196, 3, -666666);

-- ----------------------------
-- Table structure for sys_user
-- ----------------------------
DROP TABLE IF EXISTS `sys_user`;
CREATE TABLE `sys_user`  (
  `user_id` bigint(20) NOT NULL AUTO_INCREMENT,
  `username` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '用户名',
  `password` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '密码',
  `salt` varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '盐',
  `email` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '邮箱',
  `mobile` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '手机号',
  `status` tinyint(4) NULL DEFAULT NULL COMMENT '状态  0：禁用   1：正常',
  `create_user_id` bigint(20) NULL DEFAULT NULL COMMENT '创建者ID',
  `create_time` datetime(0) NULL DEFAULT NULL COMMENT '创建时间',
  `user_type` int(11) NULL DEFAULT NULL COMMENT '用户类型 1管理员 2商家管理员',
  PRIMARY KEY (`user_id`, `username`) USING BTREE,
  UNIQUE INDEX `username`(`username`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 151 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '系统用户' ROW_FORMAT = Dynamic;

-- ----------------------------
-- Records of sys_user
-- ----------------------------
INSERT INTO `sys_user` VALUES (1, 'admin', '1cc7f0f4e29524bfbfb2a299dde135e6ebad047b2c0ef70eceb7fbc198293927', 'YKJpTRPDurwTYVsIhd0P', '1212121254@qq.com', '13612345678', 1, 1, '2016-11-11 11:11:11', 1);

-- ----------------------------
-- Table structure for sys_user_role
-- ----------------------------
DROP TABLE IF EXISTS `sys_user_role`;
CREATE TABLE `sys_user_role`  (
  `id` bigint(20) NOT NULL AUTO_INCREMENT,
  `user_id` bigint(20) NULL DEFAULT NULL COMMENT '用户ID',
  `role_id` bigint(20) NULL DEFAULT NULL COMMENT '角色ID',
  PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 191 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '用户与角色对应关系' ROW_FORMAT = Dynamic;

-- ----------------------------
-- Records of sys_user_role
-- ----------------------------
INSERT INTO `sys_user_role` VALUES (1, 1, 3);

-- ----------------------------
-- Table structure for sys_user_shop
-- ----------------------------
DROP TABLE IF EXISTS `sys_user_shop`;
CREATE TABLE `sys_user_shop`  (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `user_id` int(11) NULL DEFAULT NULL COMMENT '用户id',
  `shop_id` int(11) NULL DEFAULT NULL COMMENT '商铺id',
  PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 131 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci ROW_FORMAT = Dynamic;

-- ----------------------------
-- Records of sys_user_shop
-- ----------------------------

-- ----------------------------
-- Table structure for sys_user_token
-- ----------------------------
DROP TABLE IF EXISTS `sys_user_token`;
CREATE TABLE `sys_user_token`  (
  `user_id` bigint(20) NOT NULL,
  `token` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT 'token',
  `expire_time` datetime(0) NULL DEFAULT NULL COMMENT '过期时间',
  `update_time` datetime(0) NULL DEFAULT NULL COMMENT '更新时间',
  PRIMARY KEY (`user_id`) USING BTREE,
  UNIQUE INDEX `token`(`token`) USING BTREE
) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '系统用户Token' ROW_FORMAT = Dynamic;

-- ----------------------------
-- Records of sys_user_token
-- ----------------------------

-- ----------------------------
-- Table structure for tb_coupon
-- ----------------------------
DROP TABLE IF EXISTS `tb_coupon`;
CREATE TABLE `tb_coupon`  (
  `coupon_id` int(11) NOT NULL AUTO_INCREMENT,
  `coupon_name` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '优惠券名称',
  `coupon_picture` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '优惠券图片',
  `end_date` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '有效期天数',
  `min_money` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '优惠券可使用订单最低金额',
  `goods_type` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '优惠券可使用商品类型',
  `need_integral` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '购买此优惠券需要积分数',
  `money` decimal(10, 2) NULL DEFAULT NULL COMMENT '优惠券金额',
  `delete_flag` int(1) NULL DEFAULT NULL COMMENT '是否删除 0未删除 1已删除',
  `shop_id` int(11) NULL DEFAULT NULL COMMENT '所属商铺 0为总后台发布的优惠券',
  PRIMARY KEY (`coupon_id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 24 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci ROW_FORMAT = Dynamic;

-- ----------------------------
-- Records of tb_coupon
-- ----------------------------

-- ----------------------------
-- Table structure for tb_coupon_user
-- ----------------------------
DROP TABLE IF EXISTS `tb_coupon_user`;
CREATE TABLE `tb_coupon_user`  (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `user_id` int(11) NULL DEFAULT NULL COMMENT '用户id',
  `coupon_name` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '优惠券名称',
  `coupon_picture` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '优惠券图片',
  `create_time` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '优惠券领取时间',
  `employ_time` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '优惠券使用时间',
  `expiration_time` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '优惠券过期时间',
  `min_money` decimal(10, 2) NULL DEFAULT NULL COMMENT '优惠券可使用订单最低金额',
  `goods_type` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '优惠券可使用商品类型',
  `money` decimal(10, 2) NULL DEFAULT NULL COMMENT '优惠券金额',
  `status` int(11) NULL DEFAULT NULL COMMENT '优惠券状态 0正常  1已使用  2已失效',
  `end_time` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '有效天数',
  `need_integral` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '购买此优惠券需要积分数',
  `shop_id` int(11) NULL DEFAULT NULL COMMENT '限定商铺可用',
  `coupon_id` int(11) DEFAULT NULL COMMENT '优惠券id',
  PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 1652 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci ROW_FORMAT = Dynamic;

-- ----------------------------
-- Records of tb_coupon_user
-- ----------------------------

-- ----------------------------
-- Table structure for tb_indent
-- ----------------------------
DROP TABLE IF EXISTS `tb_indent`;
CREATE TABLE `tb_indent`  (
  `indent_id` int(11) NOT NULL AUTO_INCREMENT COMMENT '主键id',
  `indent_type` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '订单类型（1：帮我送；2：帮我取；3：同城帮买；4：同城服务；5：同城外卖）',
  `order_id` int(11) NULL DEFAULT NULL COMMENT '外卖订单id',
  `indent_number` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '订单号',
  `shop_name` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '发货人名称',
  `shop_phone` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '发货人手机',
  `shop_province` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '发货人地址（省）',
  `shop_city` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '发货人地址（市）',
  `shop_district` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '发货人地址（区）',
  `shop_lng` double(20, 8) NULL DEFAULT NULL COMMENT '发货人经度',
  `shop_lat` double(20, 8) NULL DEFAULT NULL COMMENT '发货人维度',
  `shop_address_detail` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '发货人详细地址',
  `user_name` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '收货人姓名',
  `user_phone` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '收货人手机',
  `user_province` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '收货人地址（省）',
  `user_city` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '收货人地址（市）',
  `user_district` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '收货人地址（区）',
  `user_lng` double(20, 8) NULL DEFAULT NULL COMMENT '收货地址经度',
  `user_lat` double(20, 8) NULL DEFAULT NULL COMMENT '收货地址维度',
  `user_address_detail` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '用户详细地址',
  `send_out_time` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '帮我送的送货时间',
  `item_type` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '物品类型',
  `item_value` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '物品价值',
  `item_weight` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '物品重量',
  `item_money` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '物品保价金额',
  `cargo_insurance` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '保价费',
  `cargo_insurance_flag` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '用户是否需要保价费 0：需要 1：不需要',
  `errand_money` decimal(10, 2) NULL DEFAULT NULL COMMENT '跑腿费',
  `product_details` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '商品详情',
  `buy_type` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '购买类型（0：骑手就近购买；1：用户指定地址购买',
  `prepay_money` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '商品费',
  `distance` double NULL DEFAULT NULL COMMENT '距离',
  `service_type` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '同城服务类型',
  `service_details` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '服务详情',
  `tool` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '自带配件',
  `warranty_period` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '保修期',
  `item_code_flag` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '是否有收货码 0：有收货码 1：没有收货码',
  `order_code` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '收货码',
  `remarks` varchar(2000) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '备注',
  `rider_money` decimal(10, 2) NULL DEFAULT NULL COMMENT '骑手/同城师傅收入(跑腿费+小费）',
  `tip` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '小费金额',
  `red_packet_id` int(11) NULL DEFAULT NULL COMMENT '红包id',
  `indent_basics_money` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '订单基础价格',
  `indent_money` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '订单价格（总价格）',
  `platform_money` decimal(10, 2) NULL DEFAULT NULL COMMENT '平台收入',
  `mode_of_payment` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '支付方式',
  `indent_state` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '订单状态（0：已下单未支付1：超时关闭未支付订单2：已支付3：骑手已接单4：骑手已取货/购买6：订单已完成8：用户取消订单9：骑手取消订单10：平台下架订单 11：外卖订单下单后生成跑腿订单，只参与群聊，无法被接单',
  `create_time` datetime(0) NULL DEFAULT NULL COMMENT '下单时间',
  `receiving_time` datetime(0) NULL DEFAULT NULL COMMENT '接单时间',
  `finish_time` datetime(0) NULL DEFAULT NULL COMMENT '完成订单时间',
  `cancel_indent_time` datetime(0) NULL DEFAULT NULL COMMENT '取消订单时间',
  `user_fine` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '用户取消订单罚金',
  `rider_fine` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '骑手取消订单的罚金',
  `rider_user_id` int(11) NULL DEFAULT NULL COMMENT '骑手id',
  `user_id` int(11) NULL DEFAULT NULL COMMENT '用户id',
  `shop_id` int(11) NULL DEFAULT NULL COMMENT '商户id',
  `is_rider` int(11) NULL DEFAULT NULL,
  `pay_orders_no` varchar(64) DEFAULT NULL,
  PRIMARY KEY (`indent_id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 1982 CHARACTER SET = utf8 COLLATE = utf8_general_ci ROW_FORMAT = Dynamic;

-- ----------------------------
-- Records of tb_indent
-- ----------------------------

-- ----------------------------
-- Table structure for tb_order
-- ----------------------------
DROP TABLE IF EXISTS `tb_order`;
CREATE TABLE `tb_order`  (
  `order_id` int(11) NOT NULL AUTO_INCREMENT,
  `coupon_id` int(11) NULL DEFAULT NULL COMMENT '优惠券id',
  `user_id` int(11) NULL DEFAULT NULL COMMENT '用户id',
  `user_name` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '用户名',
  `phone` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '手机号',
  `address_id` int(11) NULL DEFAULT NULL COMMENT '地址id',
  `address` text CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL COMMENT '地址信息',
  `order_number` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '订单号',
  `is_pay` int(11) NULL DEFAULT NULL COMMENT '是否支付 0未支付  1已支付',
  `create_time` datetime(0) NULL DEFAULT NULL COMMENT '下单时间',
  `pay_time` datetime(0) NULL DEFAULT NULL COMMENT '支付时间',
  `update_time` datetime(0) NULL DEFAULT NULL COMMENT '最后一次修改订单状态时间',
  `pay_type` int(11) NULL DEFAULT NULL COMMENT '支付方式  1微信支付  2余额支付  3支付宝支付',
  `order_code` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '取餐号码',
  `order_type` int(11) NULL DEFAULT NULL COMMENT '订单类型 1上门 2外卖',
  `parent_id` int(11) NULL DEFAULT NULL COMMENT '订单父id',
  `pack_money` decimal(10, 2) NULL DEFAULT NULL COMMENT '打包费',
  `errand_money` decimal(10, 2) NULL DEFAULT NULL COMMENT '跑腿费',
  `status` int(11) NULL DEFAULT NULL COMMENT '订单状态 0待结算 1待支付 2直接购买（未支付） 7商家待接单 8商家拒绝接单 6制作中  3待取餐/派送中 4已完成 5已取消 ',
  `delete_flag` int(11) NULL DEFAULT NULL COMMENT '是否删除该订单 0未删除 1删除',
  `pay_money` decimal(10, 2) NULL DEFAULT NULL COMMENT '支付金额',
  `parent_user_id` int(11) NULL DEFAULT NULL COMMENT '创建拼单人的id',
  `shop_id` int(11) NULL DEFAULT NULL COMMENT '商铺id',
  `add_goods_time` datetime(0) NULL DEFAULT NULL COMMENT '最后一次添加购物车的时间',
  `shop_receiving_time` datetime(0) NULL DEFAULT NULL COMMENT '商家接单时间',
  `shop_income_money` decimal(10, 2) NULL DEFAULT NULL COMMENT '商家本单收入',
  `shop_refuse_to_order` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '商家拒绝接单理由',
  `comment_flag` int(11) NULL DEFAULT NULL COMMENT '用户是否已经评论该订单 0未评论 1已评论',
  `auto_send_order` int(11) NULL DEFAULT NULL COMMENT '是否开启自动派单 0开启 1关闭',
  `remark` varchar(500) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '备注',
  `is_third_party` int(11) NULL DEFAULT NULL,
  `errand_money_is_shop` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '商家是否承担跑腿费',
  PRIMARY KEY (`order_id`) USING BTREE,
  INDEX `order_id_index`(`order_id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 2185 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci ROW_FORMAT = Dynamic;

-- ----------------------------
-- Records of tb_order
-- ----------------------------

-- ----------------------------
-- Table structure for tb_user
-- ----------------------------
DROP TABLE IF EXISTS `tb_user`;
CREATE TABLE `tb_user` (
  `user_id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '用户id',
  `user_name` varchar(500) DEFAULT NULL COMMENT '用户名',
  `user_type` int(11) DEFAULT NULL COMMENT '用户类型 1用户  2骑手师傅',
  `phone` varchar(20) DEFAULT NULL COMMENT '手机号',
  `avatar` varchar(255) DEFAULT NULL COMMENT '头像',
  `nick_name` varchar(255) DEFAULT NULL COMMENT '昵称',
  `sex` int(11) DEFAULT NULL COMMENT '性别 1男 2女',
  `age` int(4) DEFAULT NULL COMMENT '年龄',
  `cash_deposit` decimal(10,2) DEFAULT NULL COMMENT '保证金',
  `balance` decimal(10,2) DEFAULT NULL COMMENT '账户余额',
  `identity_card_number` varchar(255) DEFAULT NULL COMMENT '证件号码',
  `identity_card_front` varchar(255) DEFAULT NULL COMMENT '身份证正面图片',
  `identity_card_verso` varchar(255) DEFAULT NULL COMMENT '身份证反面图片',
  `self_identity_card` varchar(255) DEFAULT NULL COMMENT '手持身份证正面图片',
  `check_certification` varchar(255) DEFAULT NULL COMMENT '实名认证审核状态（0：待审核；1：审核通过；2：审核不通过）',
  `check_certification_message` varchar(255) DEFAULT NULL COMMENT '实名认证审核说明',
  `invitation_code` varchar(255) DEFAULT NULL COMMENT '邀请码',
  `inviter_code` varchar(255) DEFAULT NULL COMMENT '邀请人邀请码',
  `wx_open_id` varchar(500) DEFAULT NULL COMMENT '微信App  openId',
  `rider_wx_open_id` varchar(500) DEFAULT NULL,
  `open_id` varchar(500) DEFAULT NULL COMMENT '普通用户微信小程序openId',
  `rider_open_id` varchar(255) DEFAULT NULL COMMENT '骑手用户微信小程序openId',
  `shop_open_id` varchar(64) DEFAULT NULL COMMENT '商家用户微信小程序openid',
  `password` varchar(64) DEFAULT NULL COMMENT '密码',
  `apple_id` varchar(64) DEFAULT NULL COMMENT '苹果id',
  `sys_phone` int(11) DEFAULT NULL COMMENT '手机类型 1安卓 2ios',
  `status` int(11) DEFAULT NULL COMMENT '状态 1正常 2禁用',
  `platform` varchar(255) DEFAULT NULL COMMENT '来源 APP 小程序  公众号',
  `jifen` int(11) DEFAULT NULL COMMENT '积分',
  `clientid` varchar(255) DEFAULT NULL COMMENT '设备id',
  `rider_clientid` varchar(255) DEFAULT NULL COMMENT '骑手设备id',
  `shop_client_id` varchar(64) DEFAULT NULL COMMENT '商家设备id',
  `zhi_fu_bao_name` varchar(255) DEFAULT NULL COMMENT '支付宝名字',
  `zhi_fu_bao` varchar(255) DEFAULT NULL COMMENT '支付宝账号',
  `create_time` datetime DEFAULT NULL COMMENT '创建时间',
  `update_time` datetime DEFAULT NULL COMMENT '更新时间',
  `type` int(11) DEFAULT NULL COMMENT '用户类型',
  `audit_time` datetime DEFAULT NULL COMMENT '用户提交实名认证时间',
  `new_user_flag` int(11) DEFAULT NULL COMMENT '该用户是否是跑腿新用户 1：是新用户  2：是老用户',
  `new_user_flag_wm` int(11) DEFAULT NULL COMMENT '该用户是否是外卖新用户 1：是新用户  2：是老用户',
  `station_lng` double(20,10) DEFAULT NULL COMMENT '骑手当前经度',
  `station_lat` double(20,10) DEFAULT NULL COMMENT '骑手当前维度',
  `on_line_flag` int(11) DEFAULT NULL COMMENT '0空闲 1忙碌中',
  `check_number` varchar(255) DEFAULT NULL COMMENT '实名认证支付保证金订单号',
  `shop_admin_flag` int(255) DEFAULT NULL COMMENT '是否是门店用户 1是',
  `admin_user_id` int(11) DEFAULT NULL COMMENT '门店管理员id',
  `cash_qr_code` varchar(255) DEFAULT NULL COMMENT '用户提现二维码',
  `is_send_msg` int(11) DEFAULT NULL COMMENT '是否推送消息',
  `msg` text,
  `is_vip` int(11) DEFAULT NULL COMMENT '是否是会员 0不是  1是',
  `vip_expiration_time` varchar(64) DEFAULT NULL COMMENT '会员到期时间',
  `shop_wx_open_id` varchar(64) DEFAULT NULL,
  PRIMARY KEY (`user_id`) USING BTREE
) ENGINE=InnoDB AUTO_INCREMENT=2021 DEFAULT CHARSET=utf8mb4 COMMENT='用户';
-- ----------------------------
-- Records of tb_user
-- ----------------------------
INSERT INTO `tb_user`(`user_id`, `user_name`, `user_type`, `phone`, `avatar`, `nick_name`, `sex`, `age`, `cash_deposit`, `balance`, `identity_card_number`, `identity_card_front`, `identity_card_verso`, `self_identity_card`, `check_certification`, `check_certification_message`, `invitation_code`, `inviter_code`, `wx_open_id`, `rider_wx_open_id`, `open_id`, `rider_open_id`, `shop_open_id`, `password`, `apple_id`, `sys_phone`, `status`, `platform`, `jifen`, `clientid`, `rider_clientid`, `shop_client_id`, `zhi_fu_bao_name`, `zhi_fu_bao`, `create_time`, `update_time`, `type`, `audit_time`, `new_user_flag`, `new_user_flag_wm`, `station_lng`, `station_lat`, `on_line_flag`, `check_number`, `shop_admin_flag`, `admin_user_id`, `cash_qr_code`, `is_send_msg`, `msg`, `is_vip`, `vip_expiration_time`, `shop_wx_open_id`) VALUES (1, '官方', 1, '13212345678', 'https://jiaoyu.xianmxkj.com/file/uploadPath/2021/08/30/18d20e9a11701fbe6dbb31454ec37eb8.jpg', '', 0, NULL, 110.00, 100.00, NULL, NULL, NULL, NULL, NULL, NULL, '666666', '666666', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 1, 'H5', NULL, NULL, NULL, NULL, NULL, NULL, '2021-08-24 10:14:40', '2021-08-30 18:31:44', NULL, NULL, 1, 1, 108.9064720000, 34.2457920000, 2, NULL, NULL, NULL, NULL, NULL, NULL, 0, NULL, NULL);

-- ----------------------------
-- Table structure for third_party_order
-- ----------------------------
DROP TABLE IF EXISTS `third_party_order`;
CREATE TABLE `third_party_order`  (
  `id` int(11) NOT NULL AUTO_INCREMENT COMMENT 'id',
  `shop_id` int(11) NULL DEFAULT NULL COMMENT '商户id',
  `shop_name` varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '商户名称',
  `seller_address` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '发货地址',
  `buyer_phone` varchar(22) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '买家手机号',
  `buyer_address` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '收货地址',
  `order_number` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '本地订单号',
  `delivery_order_number` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '配送方订单号',
  `delivery_id` varchar(25) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '配送方式标识(标识不可更改)顺丰同城急送:\"SFTC\",闪送:\"SS\",美团配送:\"MTPS\",达达:\"DADA\"',
  `create_time` datetime(0) NULL DEFAULT NULL COMMENT '创建时间',
  `finish_code` int(11) NULL DEFAULT NULL COMMENT '收货码',
  `pickup_code` int(11) NULL DEFAULT NULL COMMENT '取货码',
  `order_status` int(11) NULL DEFAULT NULL COMMENT '状态(这里存储的是配送方订单状态)',
  `status_explain` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '订单状态说明',
  `fee` decimal(10, 2) NULL DEFAULT NULL COMMENT '实际运费(单位：元)，运费减去优惠券费用',
  `reach_time` int(10) NULL DEFAULT NULL COMMENT '预计送达(秒级)时间戳, 配送中返回',
  `deliverfee` decimal(10, 2) NULL DEFAULT NULL COMMENT '运费(单位：元)',
  `couponfee` decimal(10, 2) NULL DEFAULT NULL COMMENT '优惠券费用(单位：元)',
  `tips` decimal(10, 2) NULL DEFAULT NULL COMMENT '小费(单位：元)',
  `distance` int(11) NULL DEFAULT NULL COMMENT '配送距离(整数单位：米)',
  `insurancefee` decimal(10, 2) NULL DEFAULT NULL COMMENT '保价费(单位：元)',
  `dispatch_duration` int(11) NULL DEFAULT NULL COMMENT '预计骑手接单时间',
  `name` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '骑手姓名',
  `phone` varchar(25) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '骑手电话',
  `weight` decimal(10, 2) NULL DEFAULT NULL COMMENT '总重量',
  PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci ROW_FORMAT = Dynamic;

-- ----------------------------
-- Records of third_party_order
-- ----------------------------

-- ----------------------------
-- Table structure for top_up_money
-- ----------------------------
DROP TABLE IF EXISTS `top_up_money`;
CREATE TABLE `top_up_money`  (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `money` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '充值金额',
  PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 10 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci ROW_FORMAT = Dynamic;

-- ----------------------------
-- Records of top_up_money
-- ----------------------------
INSERT INTO `top_up_money` VALUES (1, '50');
INSERT INTO `top_up_money` VALUES (2, '100');
INSERT INTO `top_up_money` VALUES (3, '200');
INSERT INTO `top_up_money` VALUES (4, '500');

-- ----------------------------
-- Table structure for training_center
-- ----------------------------
DROP TABLE IF EXISTS `training_center`;
CREATE TABLE `training_center`  (
  `training_id` int(11) NOT NULL AUTO_INCREMENT,
  `title` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '标题',
  `message` text CHARACTER SET utf8 COLLATE utf8_general_ci NULL COMMENT '内容',
  `create_time` datetime(0) NULL DEFAULT NULL COMMENT '创建时间',
  `update_time` datetime(0) NULL DEFAULT NULL COMMENT '修改时间',
  `delete_flag` int(11) NULL DEFAULT NULL COMMENT '删除状态 0：未删除 1：删除',
  `type` int(11) NULL DEFAULT NULL COMMENT '类型：1用户端  2骑手端  3商户端',
  PRIMARY KEY (`training_id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 15 CHARACTER SET = utf8 COLLATE = utf8_general_ci ROW_FORMAT = Dynamic;

-- ----------------------------
-- Records of training_center
-- ----------------------------
INSERT INTO `training_center` VALUES (5, '如何成为骑手呢？', '<p><br></p><p>打扫打扫大所大所大所大多；</p><p>第二段：到is多军偶奥军所大但女军军军军军军军军军军多所 斤哦赛都爱的哦啊死到屁事多怕死的怕死的泡；</p><p>第三段eeeeeee</p>', '2022-01-06 18:03:58', '2022-06-12 11:18:05', 0, 2);
INSERT INTO `training_center` VALUES (6, '测试的', '<p>的点点滴滴多多多多多多多多多多多多多撒旦法师打发撒旦法撒旦法师打发</p>', '2022-02-23 10:08:01', NULL, NULL, 1);
INSERT INTO `training_center` VALUES (7, '撒的发生的', '<p>的点点滴滴多多多多多多</p>', '2022-02-23 10:10:45', NULL, NULL, 1);
INSERT INTO `training_center` VALUES (8, '阿斯顿发生', '<p>所得到的多多多多多多多多多多多多</p>', '2022-02-23 10:13:28', NULL, 0, 1);
INSERT INTO `training_center` VALUES (9, '的发送到发送到发', '<p>的点点滴滴多多多多多多多多多多多多多多多多多多多多多多多多多多多多多多多多多多多多多</p>', '2022-02-23 10:14:08', NULL, 0, 1);
INSERT INTO `training_center` VALUES (11, '商户注意看我是标题', '<p>商户内容商户内容<img src=\"https://pt2.0.xianmxkj.com/file/uploadPath/2022/02/23/087a766754ee1f8a204b106c61fbe3aa.png\"></p>', '2022-02-23 17:58:15', '2022-02-23 17:58:33', 0, 3);
INSERT INTO `training_center` VALUES (14, 'fff', '<p>fffffff</p>', '2022-06-12 11:18:17', NULL, 0, 1);

-- ----------------------------
-- Table structure for user_browse
-- ----------------------------
DROP TABLE IF EXISTS `user_browse`;
CREATE TABLE `user_browse`  (
  `id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT 'id',
  `user_id` bigint(20) NULL DEFAULT NULL COMMENT '用户id',
  `by_browse_id` bigint(20) NULL DEFAULT NULL COMMENT '浏览用户id',
  `update_time` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '更新时间',
  `taking_id` bigint(20) NULL DEFAULT NULL COMMENT '接单id',
  PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 984 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci ROW_FORMAT = Dynamic;

-- ----------------------------
-- Records of user_browse
-- ----------------------------

-- ----------------------------
-- Table structure for user_integral
-- ----------------------------
DROP TABLE IF EXISTS `user_integral`;
CREATE TABLE `user_integral`  (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `user_id` int(11) NULL DEFAULT NULL COMMENT '用户id',
  `integral_num` int(11) NULL DEFAULT NULL COMMENT '积分数量',
  PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 516 CHARACTER SET = utf8 COLLATE = utf8_general_ci ROW_FORMAT = Dynamic;

-- ----------------------------
-- Records of user_integral
-- ----------------------------

-- ----------------------------
-- Table structure for user_integral_details
-- ----------------------------
DROP TABLE IF EXISTS `user_integral_details`;
CREATE TABLE `user_integral_details`  (
  `id` int(11) NOT NULL AUTO_INCREMENT COMMENT '积分详情id',
  `content` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '内容',
  `classify` int(255) NULL DEFAULT NULL COMMENT '获取类型 1签到 2积分兑换优惠券 3系统赠送积分',
  `type` int(255) NULL DEFAULT NULL COMMENT '分类 1增加 2减少',
  `num` int(11) NULL DEFAULT NULL COMMENT '数量',
  `user_id` int(11) NULL DEFAULT NULL COMMENT '用户id',
  `create_time` varchar(64) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '创建时间',
  `day` int(11) NULL DEFAULT NULL COMMENT '连续签到天数',
  PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 1327 CHARACTER SET = utf8 COLLATE = utf8_general_ci ROW_FORMAT = Dynamic;

-- ----------------------------
-- Records of user_integral_details
-- ----------------------------

-- ----------------------------
-- Table structure for user_money
-- ----------------------------
DROP TABLE IF EXISTS `user_money`;
CREATE TABLE `user_money`  (
  `id` int(11) NOT NULL AUTO_INCREMENT COMMENT '钱包id',
  `user_id` int(11) NOT NULL COMMENT '用户id',
  `money` decimal(10, 2) NULL DEFAULT NULL COMMENT '账户余额',
  PRIMARY KEY (`id`) USING BTREE,
  UNIQUE INDEX `user_id`(`user_id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 551 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_bin COMMENT = '用户钱包' ROW_FORMAT = Dynamic;

-- ----------------------------
-- Records of user_money
-- ----------------------------

-- ----------------------------
-- Table structure for user_money_details
-- ----------------------------
DROP TABLE IF EXISTS `user_money_details`;
CREATE TABLE `user_money_details`  (
  `id` int(11) NOT NULL AUTO_INCREMENT COMMENT '钱包详情id',
  `user_id` int(11) NULL DEFAULT NULL COMMENT '用户id',
  `shop_id` int(11) NULL DEFAULT NULL COMMENT '商户id',
  `title` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '标题',
  `content` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '内容',
  `type` int(11) NULL DEFAULT NULL COMMENT '类别 1充值  2支出',
  `classify` int(11) NULL DEFAULT NULL COMMENT '类别 1骑手保证金  2商户保证金  3钱包明细',
  `money` decimal(10, 2) NULL DEFAULT NULL COMMENT '金额',
  `create_time` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NULL DEFAULT NULL COMMENT '创建时间',
  `state` int(11) NULL DEFAULT NULL COMMENT '状态 1待支付 2已到账 3取消',
  `children_id` int(11) NULL DEFAULT NULL,
  PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 12848 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_bin ROW_FORMAT = Dynamic;

-- ----------------------------
-- Records of user_money_details
-- ----------------------------

-- ----------------------------
-- Table structure for user_vip
-- ----------------------------
DROP TABLE IF EXISTS `user_vip`;
CREATE TABLE `user_vip`  (
  `vip_id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '会员id',
  `vip_name_type` int(2) NULL DEFAULT NULL COMMENT '会员类型0月1季2年',
  `user_id` bigint(20) NULL DEFAULT NULL COMMENT '用户id',
  `create_time` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '购买时间',
  `end_time` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '到期时间',
  `is_vip` int(255) NULL DEFAULT NULL COMMENT '1是会员2不是',
  PRIMARY KEY (`vip_id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 29 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci ROW_FORMAT = Dynamic;

-- ----------------------------
-- Records of user_vip
-- ----------------------------

-- ----------------------------
-- Table structure for vip_details
-- ----------------------------
DROP TABLE IF EXISTS `vip_details`;
CREATE TABLE `vip_details`  (
  `id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT 'id',
  `vip_name_type` int(2) NULL DEFAULT NULL COMMENT '会员类型0月1季2年',
  `money` decimal(10, 0) NULL DEFAULT NULL COMMENT '会员价格',
  `vip_name` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '会员名称',
  `rate` decimal(10, 2) NULL DEFAULT NULL,
  `award` decimal(10, 2) NULL DEFAULT NULL,
  PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 9 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci ROW_FORMAT = Dynamic;

-- ----------------------------
-- Records of vip_details
-- ----------------------------
INSERT INTO `vip_details` VALUES (2, 0, 2, '月会员', NULL, 1.00);
INSERT INTO `vip_details` VALUES (3, 1, 4, '季会员', NULL, 2.00);
INSERT INTO `vip_details` VALUES (8, 2, 6, '年会员', NULL, 3.00);

SET FOREIGN_KEY_CHECKS = 1;
