/*
Navicat MySQL Data Transfer

Source Server         : ifish_local
Source Server Version : 50643
Source Host           : localhost:3306
Source Database       : cwhelp

Target Server Type    : MYSQL
Target Server Version : 50643
File Encoding         : 65001

Date: 2019-07-29 00:38:33
*/

SET FOREIGN_KEY_CHECKS=0;

-- ----------------------------
-- Table structure for bss_platform
-- ----------------------------
DROP TABLE IF EXISTS `bss_platform`;
CREATE TABLE `bss_platform` (
  `id` bigint(10) NOT NULL AUTO_INCREMENT COMMENT 'ID',
  `name` varchar(255) CHARACTER SET utf8 DEFAULT NULL COMMENT '名称',
  `contact` varchar(255) CHARACTER SET utf8 DEFAULT NULL COMMENT '联系人',
  `contact_tel` varchar(100) COLLATE utf8_bin DEFAULT NULL COMMENT '联系电话',
  `contact_card` varchar(18) CHARACTER SET utf8 DEFAULT NULL COMMENT '联系人证件号码',
  `email` varchar(255) CHARACTER SET utf8 DEFAULT NULL COMMENT '邮箱',
  `type` int(10) DEFAULT NULL COMMENT '类型(1:自营 2:代理 3:个人 4:公司)',
  `create_date` datetime DEFAULT NULL COMMENT '创建时间',
  `update_date` datetime DEFAULT NULL COMMENT '更新时间',
  `create_by` bigint(20) DEFAULT NULL COMMENT '创建用户',
  `update_by` bigint(20) DEFAULT NULL COMMENT '更新用户',
  `status` tinyint(4) DEFAULT NULL COMMENT '状态（1:正常,2:冻结,3:删除）',
  `remark` varchar(255) COLLATE utf8_bin DEFAULT NULL COMMENT '备注',
  PRIMARY KEY (`id`),
  KEY `FKb3pkx0wbo6o8i8lj0gxr37v1s` (`create_by`) USING BTREE,
  KEY `FKb3pkx0wbo6o8i8lj0gxr37v2n` (`update_by`) USING BTREE,
  CONSTRAINT `bss_platform_ibfk_1` FOREIGN KEY (`create_by`) REFERENCES `sys_user` (`id`),
  CONSTRAINT `bss_platform_ibfk_2` FOREIGN KEY (`update_by`) REFERENCES `sys_user` (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=utf8 COLLATE=utf8_bin COMMENT='平台';

-- ----------------------------
-- Records of bss_platform
-- ----------------------------
INSERT INTO `bss_platform` VALUES ('1', '财务帮', '易焱', '18521303581', '430621199508207711', 'thelongcode@163.com', '1', '2019-07-28 22:13:21', '2019-07-29 00:03:40', '1', '1', '1', '');
INSERT INTO `bss_platform` VALUES ('2', '易焱工作室', '易焱', '18521303581', '430621199508207711', 'thelongcode@163.com', '2', '2019-07-29 00:09:57', '2019-07-29 00:09:57', '1', '1', '1', '');

-- ----------------------------
-- Table structure for sys_action_log
-- ----------------------------
DROP TABLE IF EXISTS `sys_action_log`;
CREATE TABLE `sys_action_log` (
  `id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '主键ID',
  `name` varchar(255) DEFAULT NULL COMMENT '日志名称',
  `type` tinyint(4) DEFAULT NULL COMMENT '日志类型',
  `ipaddr` varchar(255) DEFAULT NULL COMMENT '操作IP地址',
  `clazz` varchar(255) DEFAULT NULL COMMENT '产生日志的类',
  `method` varchar(255) DEFAULT NULL COMMENT '产生日志的方法',
  `model` varchar(255) DEFAULT NULL COMMENT '产生日志的表',
  `record_id` bigint(20) DEFAULT NULL COMMENT '产生日志的数据id',
  `message` text COMMENT '日志消息',
  `create_date` datetime DEFAULT NULL COMMENT '记录时间',
  `oper_name` varchar(255) DEFAULT NULL COMMENT '产生日志的用户昵称',
  `oper_by` bigint(20) DEFAULT NULL COMMENT '产生日志的用户',
  PRIMARY KEY (`id`),
  KEY `FK32gm4dja0jetx58r9dc2uljiu` (`oper_by`) USING BTREE,
  CONSTRAINT `sys_action_log_ibfk_1` FOREIGN KEY (`oper_by`) REFERENCES `sys_user` (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=1139 DEFAULT CHARSET=utf8;

-- ----------------------------
-- Records of sys_action_log
-- ----------------------------
INSERT INTO `sys_action_log` VALUES ('1082', '用户管理', '1', '0:0:0:0:0:0:0:1', 'com.cwhelp.admin.system.controller.UserController', 'save', 'sys_user', '1', '更新用户成功：admin', '2019-07-28 17:35:15', '超级管理员', '1');
INSERT INTO `sys_action_log` VALUES ('1083', '用户登录', '2', '0:0:0:0:0:0:0:1', 'com.cwhelp.admin.system.controller.LoginController', 'login', null, null, '后台登录成功', '2019-07-28 17:44:22', '超级管理员', '1');
INSERT INTO `sys_action_log` VALUES ('1084', '部门管理', '1', '0:0:0:0:0:0:0:1', 'com.cwhelp.admin.system.controller.DeptController', 'save', 'sys_dept', '8', '更新部门：1公司代理', '2019-07-28 17:59:16', '超级管理员', '1');
INSERT INTO `sys_action_log` VALUES ('1085', '部门管理', '1', '0:0:0:0:0:0:0:1', 'com.cwhelp.admin.system.controller.DeptController', 'save', 'sys_dept', '9', '更新部门：1个人代理', '2019-07-28 17:59:27', '超级管理员', '1');
INSERT INTO `sys_action_log` VALUES ('1086', '角色分配', '1', '0:0:0:0:0:0:0:1', 'com.cwhelp.admin.system.controller.UserController', 'auth', 'sys_user', '1', '角色分配成功：admin', '2019-07-28 18:00:30', '超级管理员', '1');
INSERT INTO `sys_action_log` VALUES ('1087', '部门管理', '1', '0:0:0:0:0:0:0:1', 'com.cwhelp.admin.system.controller.DeptController', 'save', 'sys_dept', '10', '添加部门：1公司代理-业务', '2019-07-28 18:01:54', '超级管理员', '1');
INSERT INTO `sys_action_log` VALUES ('1088', '用户管理', '1', '0:0:0:0:0:0:0:1', 'com.cwhelp.admin.system.controller.UserController', 'save', 'sys_user', '8', '添加用户成功：yiyan', '2019-07-28 18:02:41', '超级管理员', '1');
INSERT INTO `sys_action_log` VALUES ('1089', '角色授权', '1', '0:0:0:0:0:0:0:1', 'com.cwhelp.admin.system.controller.RoleController', 'auth', 'sys_role', '17', '角色授权成功：业务通用', '2019-07-28 18:03:02', '超级管理员', '1');
INSERT INTO `sys_action_log` VALUES ('1090', '用户登录', '2', '0:0:0:0:0:0:0:1', 'com.cwhelp.admin.system.controller.LoginController', 'login', null, null, '后台登录失败：[yiyan]您不是后台管理员！', '2019-07-28 18:03:17', 'yiyan', null);
INSERT INTO `sys_action_log` VALUES ('1091', '用户登录', '2', '0:0:0:0:0:0:0:1', 'com.cwhelp.admin.system.controller.LoginController', 'login', null, null, '后台登录成功', '2019-07-28 18:03:25', '超级管理员', '1');
INSERT INTO `sys_action_log` VALUES ('1092', '角色分配', '1', '0:0:0:0:0:0:0:1', 'com.cwhelp.admin.system.controller.UserController', 'auth', 'sys_user', '8', '角色分配成功：yiyan', '2019-07-28 18:03:34', '超级管理员', '1');
INSERT INTO `sys_action_log` VALUES ('1093', '用户登录', '2', '0:0:0:0:0:0:0:1', 'com.cwhelp.admin.system.controller.LoginController', 'login', null, null, '后台登录成功', '2019-07-28 18:03:45', '易焱', '8');
INSERT INTO `sys_action_log` VALUES ('1094', '用户登录', '2', '0:0:0:0:0:0:0:1', 'com.cwhelp.admin.system.controller.LoginController', 'login', null, null, '后台登录成功', '2019-07-28 18:04:26', '超级管理员', '1');
INSERT INTO `sys_action_log` VALUES ('1095', '角色授权', '1', '0:0:0:0:0:0:0:1', 'com.cwhelp.admin.system.controller.RoleController', 'auth', 'sys_role', '17', '角色授权成功：业务通用', '2019-07-28 18:04:41', '超级管理员', '1');
INSERT INTO `sys_action_log` VALUES ('1096', '用户登录', '2', '0:0:0:0:0:0:0:1', 'com.cwhelp.admin.system.controller.LoginController', 'login', null, null, '后台登录成功', '2019-07-28 18:04:53', '易焱', '8');
INSERT INTO `sys_action_log` VALUES ('1097', '用户登录', '2', '0:0:0:0:0:0:0:1', 'com.cwhelp.admin.system.controller.LoginController', 'login', null, null, '后台登录成功', '2019-07-28 18:17:17', '易焱', '8');
INSERT INTO `sys_action_log` VALUES ('1098', '用户登录', '2', '0:0:0:0:0:0:0:1', 'com.cwhelp.admin.system.controller.LoginController', 'login', null, null, '后台登录成功', '2019-07-28 18:19:55', '易焱', '8');
INSERT INTO `sys_action_log` VALUES ('1099', '用户登录', '2', '0:0:0:0:0:0:0:1', 'com.cwhelp.admin.system.controller.LoginController', 'login', null, null, '后台登录成功', '2019-07-28 18:20:19', '超级管理员', '1');
INSERT INTO `sys_action_log` VALUES ('1100', '用户登录', '2', '0:0:0:0:0:0:0:1', 'com.cwhelp.admin.system.controller.LoginController', 'login', null, null, '后台登录成功', '2019-07-28 18:26:07', '超级管理员', '1');
INSERT INTO `sys_action_log` VALUES ('1101', '用户管理', '1', '0:0:0:0:0:0:0:1', 'com.cwhelp.admin.system.controller.UserController', 'save', 'sys_user', '1', '更新用户成功：admin', '2019-07-28 18:26:28', '超级管理员', '1');
INSERT INTO `sys_action_log` VALUES ('1102', '用户登录', '2', '0:0:0:0:0:0:0:1', 'com.cwhelp.admin.system.controller.LoginController', 'login', null, null, '后台登录成功', '2019-07-28 18:26:46', '易焱', '8');
INSERT INTO `sys_action_log` VALUES ('1103', '用户登录', '2', '0:0:0:0:0:0:0:1', 'com.cwhelp.admin.system.controller.LoginController', 'login', null, null, '后台登录成功', '2019-07-28 18:27:44', '易焱', '8');
INSERT INTO `sys_action_log` VALUES ('1104', '用户登录', '2', '0:0:0:0:0:0:0:1', 'com.cwhelp.admin.system.controller.LoginController', 'login', null, null, '后台登录成功', '2019-07-28 18:43:18', '超级管理员', '1');
INSERT INTO `sys_action_log` VALUES ('1105', '用户登录', '2', '127.0.0.1', 'com.cwhelp.admin.system.controller.LoginController', 'login', null, null, '后台登录失败：[admin]用户名或密码错误', '2019-07-28 18:43:59', 'admin', null);
INSERT INTO `sys_action_log` VALUES ('1106', '用户登录', '2', '127.0.0.1', 'com.cwhelp.admin.system.controller.LoginController', 'login', null, null, '后台登录成功', '2019-07-28 18:44:04', '超级管理员', '1');
INSERT INTO `sys_action_log` VALUES ('1107', '用户登录', '2', '0:0:0:0:0:0:0:1', 'com.cwhelp.admin.system.controller.LoginController', 'login', null, null, '后台登录成功', '2019-07-28 18:44:53', '超级管理员', '1');
INSERT INTO `sys_action_log` VALUES ('1108', '用户登录', '2', '0:0:0:0:0:0:0:1', 'com.cwhelp.admin.system.controller.LoginController', 'login', null, null, '后台登录成功', '2019-07-28 18:45:16', '易焱', '8');
INSERT INTO `sys_action_log` VALUES ('1109', '用户登录', '2', '0:0:0:0:0:0:0:1', 'com.cwhelp.admin.system.controller.LoginController', 'login', null, null, '后台登录成功', '2019-07-28 18:46:49', '超级管理员', '1');
INSERT INTO `sys_action_log` VALUES ('1110', '用户登录', '2', '0:0:0:0:0:0:0:1', 'com.cwhelp.admin.system.controller.LoginController', 'login', null, null, '后台登录成功', '2019-07-28 20:35:44', '超级管理员', '1');
INSERT INTO `sys_action_log` VALUES ('1111', '用户登录', '2', '0:0:0:0:0:0:0:1', 'com.cwhelp.admin.system.controller.LoginController', 'login', null, null, '后台登录成功', '2019-07-28 20:46:06', '超级管理员', '1');
INSERT INTO `sys_action_log` VALUES ('1112', '用户登录', '2', '0:0:0:0:0:0:0:1', 'com.cwhelp.admin.system.controller.LoginController', 'login', null, null, '后台登录成功', '2019-07-28 20:46:49', '超级管理员', '1');
INSERT INTO `sys_action_log` VALUES ('1113', '用户登录', '2', '0:0:0:0:0:0:0:1', 'com.cwhelp.admin.system.controller.LoginController', 'login', null, null, '后台登录成功', '2019-07-28 20:48:11', '超级管理员', '1');
INSERT INTO `sys_action_log` VALUES ('1114', '用户登录', '2', '0:0:0:0:0:0:0:1', 'com.cwhelp.admin.system.controller.LoginController', 'login', null, null, '后台登录成功', '2019-07-28 21:24:43', '超级管理员', '1');
INSERT INTO `sys_action_log` VALUES ('1115', '字典管理', '1', '0:0:0:0:0:0:0:1', 'com.cwhelp.admin.system.controller.DictController', 'save', 'sys_dict', '3', '更新字典：用户性别', '2019-07-28 22:06:57', '超级管理员', '1');
INSERT INTO `sys_action_log` VALUES ('1116', '角色状态', '1', '0:0:0:0:0:0:0:1', 'com.cwhelp.admin.system.controller.RoleController', 'status', null, null, '删除ID：[16]', '2019-07-28 22:07:54', '超级管理员', '1');
INSERT INTO `sys_action_log` VALUES ('1117', '用户管理', '1', '0:0:0:0:0:0:0:1', 'com.cwhelp.admin.system.controller.UserController', 'save', 'sys_user', '8', '更新用户成功：yiyan', '2019-07-28 22:22:50', '超级管理员', '1');
INSERT INTO `sys_action_log` VALUES ('1118', '部门管理', '1', '0:0:0:0:0:0:0:1', 'com.cwhelp.admin.system.controller.DeptController', 'save', 'sys_dept', '1', '更新部门：财务帮', '2019-07-28 22:24:30', '超级管理员', '1');
INSERT INTO `sys_action_log` VALUES ('1119', '用户登录', '2', '0:0:0:0:0:0:0:1', 'com.cwhelp.admin.system.controller.LoginController', 'login', null, null, '后台登录成功', '2019-07-28 22:26:27', '超级管理员', '1');
INSERT INTO `sys_action_log` VALUES ('1120', '角色授权', '1', '0:0:0:0:0:0:0:1', 'com.cwhelp.admin.system.controller.RoleController', 'auth', 'sys_role', '1', '角色授权成功：超级管理员', '2019-07-28 22:30:08', '超级管理员', '1');
INSERT INTO `sys_action_log` VALUES ('1121', '角色授权', '1', '0:0:0:0:0:0:0:1', 'com.cwhelp.admin.system.controller.RoleController', 'auth', 'sys_role', '17', '角色授权成功：业务通用', '2019-07-28 22:30:22', '超级管理员', '1');
INSERT INTO `sys_action_log` VALUES ('1122', '角色授权', '1', '0:0:0:0:0:0:0:1', 'com.cwhelp.admin.system.controller.RoleController', 'auth', 'sys_role', '16', '角色授权成功：业务管理', '2019-07-28 22:30:28', '超级管理员', '1');
INSERT INTO `sys_action_log` VALUES ('1123', '用户登录', '2', '0:0:0:0:0:0:0:1', 'com.cwhelp.admin.system.controller.LoginController', 'login', null, null, '后台登录成功', '2019-07-28 22:30:47', '超级管理员', '1');
INSERT INTO `sys_action_log` VALUES ('1124', '角色分配', '1', '0:0:0:0:0:0:0:1', 'com.cwhelp.admin.system.controller.UserController', 'auth', 'sys_user', '1', '角色分配成功：admin', '2019-07-28 22:31:16', '超级管理员', '1');
INSERT INTO `sys_action_log` VALUES ('1125', '菜单管理', '1', '0:0:0:0:0:0:0:1', 'com.cwhelp.admin.system.controller.MenuController', 'save', 'sys_menu', '26', '更新菜单：行为日志', '2019-07-28 22:32:45', '超级管理员', '1');
INSERT INTO `sys_action_log` VALUES ('1126', '用户登录', '2', '0:0:0:0:0:0:0:1', 'com.cwhelp.admin.system.controller.LoginController', 'login', null, null, '后台登录成功', '2019-07-28 22:33:00', '超级管理员', '1');
INSERT INTO `sys_action_log` VALUES ('1127', '用户登录', '2', '0:0:0:0:0:0:0:1', 'com.cwhelp.admin.system.controller.LoginController', 'login', null, null, '后台登录成功', '2019-07-28 23:03:10', '超级管理员', '1');
INSERT INTO `sys_action_log` VALUES ('1128', '用户登录', '2', '0:0:0:0:0:0:0:1', 'com.cwhelp.admin.system.controller.LoginController', 'login', null, null, '后台登录成功', '2019-07-28 23:54:04', '超级管理员', '1');
INSERT INTO `sys_action_log` VALUES ('1129', '菜单管理', '1', '0:0:0:0:0:0:0:1', 'com.cwhelp.admin.system.controller.MenuController', 'save', 'sys_menu', '164', '添加菜单：财务帮', '2019-07-28 23:58:27', '超级管理员', '1');
INSERT INTO `sys_action_log` VALUES ('1130', '菜单管理', '1', '0:0:0:0:0:0:0:1', 'com.cwhelp.admin.system.controller.MenuController', 'save', 'sys_menu', '159', '更新菜单：平台信息', '2019-07-29 00:02:07', '超级管理员', '1');
INSERT INTO `sys_action_log` VALUES ('1131', '菜单管理', '1', '0:0:0:0:0:0:0:1', 'com.cwhelp.admin.system.controller.MenuController', 'save', 'sys_menu', '160', '更新菜单：添加', '2019-07-29 00:02:20', '超级管理员', '1');
INSERT INTO `sys_action_log` VALUES ('1132', '菜单管理', '1', '0:0:0:0:0:0:0:1', 'com.cwhelp.admin.system.controller.MenuController', 'save', 'sys_menu', '161', '更新菜单：编辑', '2019-07-29 00:02:29', '超级管理员', '1');
INSERT INTO `sys_action_log` VALUES ('1133', '菜单管理', '1', '0:0:0:0:0:0:0:1', 'com.cwhelp.admin.system.controller.MenuController', 'save', 'sys_menu', '162', '更新菜单：详细', '2019-07-29 00:02:41', '超级管理员', '1');
INSERT INTO `sys_action_log` VALUES ('1134', '菜单管理', '1', '0:0:0:0:0:0:0:1', 'com.cwhelp.admin.system.controller.MenuController', 'save', 'sys_menu', '163', '更新菜单：修改状态', '2019-07-29 00:02:50', '超级管理员', '1');
INSERT INTO `sys_action_log` VALUES ('1135', '用户登录', '2', '0:0:0:0:0:0:0:1', 'com.cwhelp.admin.system.controller.LoginController', 'login', null, null, '后台登录成功', '2019-07-29 00:03:03', '超级管理员', '1');
INSERT INTO `sys_action_log` VALUES ('1136', '字典管理', '1', '0:0:0:0:0:0:0:1', 'com.cwhelp.admin.system.controller.DictController', 'save', 'sys_dict', '11', '添加字典：平台类型', '2019-07-29 00:07:58', '超级管理员', '1');
INSERT INTO `sys_action_log` VALUES ('1137', '用户登录', '2', '0:0:0:0:0:0:0:1', 'com.cwhelp.admin.system.controller.LoginController', 'login', null, null, '后台登录成功', '2019-07-29 00:09:17', '超级管理员', '1');
INSERT INTO `sys_action_log` VALUES ('1138', '用户登录', '2', '0:0:0:0:0:0:0:1', 'com.cwhelp.admin.system.controller.LoginController', 'login', null, null, '后台登录成功', '2019-07-29 00:13:11', '超级管理员', '1');

-- ----------------------------
-- Table structure for sys_dept
-- ----------------------------
DROP TABLE IF EXISTS `sys_dept`;
CREATE TABLE `sys_dept` (
  `id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '主键ID',
  `title` varchar(255) DEFAULT NULL COMMENT '部门名称',
  `pid` bigint(20) DEFAULT NULL COMMENT '父级ID',
  `pids` varchar(255) DEFAULT NULL COMMENT '所有父级编号',
  `sort` int(11) DEFAULT NULL COMMENT '排序',
  `remark` varchar(255) DEFAULT NULL COMMENT '备注',
  `create_date` datetime DEFAULT NULL COMMENT '创建时间',
  `update_date` datetime DEFAULT NULL COMMENT '更新时间',
  `create_by` bigint(20) DEFAULT NULL COMMENT '创建用户',
  `update_by` bigint(20) DEFAULT NULL COMMENT '更新用户',
  `status` tinyint(4) DEFAULT NULL COMMENT '状态（1:正常,2:冻结,3:删除）',
  PRIMARY KEY (`id`),
  KEY `FKifwd1h4ciusl3nnxrpfpv316u` (`create_by`) USING BTREE,
  KEY `FK83g45s1cjqqfpifhulqhv807m` (`update_by`) USING BTREE,
  CONSTRAINT `sys_dept_ibfk_1` FOREIGN KEY (`update_by`) REFERENCES `sys_user` (`id`),
  CONSTRAINT `sys_dept_ibfk_2` FOREIGN KEY (`create_by`) REFERENCES `sys_user` (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=11 DEFAULT CHARSET=utf8;

-- ----------------------------
-- Records of sys_dept
-- ----------------------------
INSERT INTO `sys_dept` VALUES ('1', '财务帮', '1', '[0]', '1', '', '2018-12-02 17:41:23', '2019-07-28 22:24:30', '1', '1', '1');

-- ----------------------------
-- Table structure for sys_dict
-- ----------------------------
DROP TABLE IF EXISTS `sys_dict`;
CREATE TABLE `sys_dict` (
  `id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '主键ID',
  `title` varchar(255) DEFAULT NULL COMMENT '字典名称',
  `name` varchar(255) DEFAULT NULL COMMENT '字典键名',
  `type` tinyint(4) DEFAULT NULL COMMENT '字典类型',
  `value` text COMMENT '字典键值',
  `remark` varchar(255) DEFAULT NULL COMMENT '备注',
  `create_date` datetime DEFAULT NULL COMMENT '创建时间',
  `update_date` datetime DEFAULT NULL COMMENT '更新时间',
  `create_by` bigint(20) DEFAULT NULL COMMENT '创建用户',
  `update_by` bigint(20) DEFAULT NULL COMMENT '更新用户',
  `status` tinyint(4) DEFAULT NULL COMMENT '状态（1:正常,2:冻结,3:删除）',
  PRIMARY KEY (`id`),
  KEY `FKag4shuprf2tjot9i1mhh37kk6` (`create_by`) USING BTREE,
  KEY `FKoyng5jlifhsme0gc1lwiub0lr` (`update_by`) USING BTREE,
  CONSTRAINT `sys_dict_ibfk_1` FOREIGN KEY (`create_by`) REFERENCES `sys_user` (`id`),
  CONSTRAINT `sys_dict_ibfk_2` FOREIGN KEY (`update_by`) REFERENCES `sys_user` (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=12 DEFAULT CHARSET=utf8;

-- ----------------------------
-- Records of sys_dict
-- ----------------------------
INSERT INTO `sys_dict` VALUES ('1', '数据状态', 'DATA_STATUS', '2', '1:正常,2:冻结,3:删除', '', '2018-10-05 16:03:11', '2018-10-05 16:11:41', '1', '1', '1');
INSERT INTO `sys_dict` VALUES ('2', '字典类型', 'DICT_TYPE', '2', '2:键值对', '', '2018-10-05 20:08:55', '2019-01-17 23:39:23', '1', '1', '1');
INSERT INTO `sys_dict` VALUES ('3', '用户性别', 'USER_SEX', '2', '1:男,2:女', '', '2018-10-05 20:12:32', '2019-07-28 22:06:57', '1', '1', '1');
INSERT INTO `sys_dict` VALUES ('4', '菜单类型', 'MENU_TYPE', '2', '1:一级菜单,2:子级菜单,3:不是菜单', '', '2018-10-05 20:24:57', '2018-10-13 13:56:05', '1', '1', '1');
INSERT INTO `sys_dict` VALUES ('5', '搜索栏状态', 'SEARCH_STATUS', '2', '1:正常,2:冻结', '', '2018-10-05 20:25:45', '2019-02-26 00:34:34', '1', '1', '1');
INSERT INTO `sys_dict` VALUES ('6', '日志类型', 'LOG_TYPE', '2', '1:业务,2:登录,3:系统', '', '2018-10-05 20:28:47', '2019-02-26 00:31:43', '1', '1', '1');
INSERT INTO `sys_dict` VALUES ('11', '平台类型', 'PLATFORM_TYPE', '2', '1:自营,2:代理,3:个人,4:公司', '', '2019-07-29 00:07:58', '2019-07-29 00:07:58', '1', '1', '1');

-- ----------------------------
-- Table structure for sys_file
-- ----------------------------
DROP TABLE IF EXISTS `sys_file`;
CREATE TABLE `sys_file` (
  `id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '主键ID',
  `name` varchar(255) DEFAULT NULL COMMENT '文件名',
  `path` varchar(255) DEFAULT NULL COMMENT '文件路径',
  `mime` varchar(255) DEFAULT NULL COMMENT 'MIME文件类型',
  `size` bigint(20) DEFAULT NULL COMMENT '文件大小',
  `md5` varchar(255) DEFAULT NULL COMMENT 'MD5值',
  `sha1` varchar(255) DEFAULT NULL COMMENT 'SHA1值',
  `create_by` bigint(20) DEFAULT NULL COMMENT '上传者',
  `create_date` datetime DEFAULT NULL COMMENT '创建时间',
  PRIMARY KEY (`id`),
  KEY `FKkkles8yp0a156p4247cc22ovn` (`create_by`) USING BTREE,
  CONSTRAINT `sys_file_ibfk_1` FOREIGN KEY (`create_by`) REFERENCES `sys_user` (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=utf8;

-- ----------------------------
-- Records of sys_file
-- ----------------------------
INSERT INTO `sys_file` VALUES ('2', 'c3b2a31dca404ad0bf96bb10719bf689.jpg', '/upload/picture/20190726/c3b2a31dca404ad0bf96bb10719bf689.jpg', 'image/jpeg', '28481', 'd66845460db278aebea5177a61acd55', '1f11ebf41da73951a7c884404f8ac42c012830c3', '1', '2019-07-26 21:24:49');

-- ----------------------------
-- Table structure for sys_menu
-- ----------------------------
DROP TABLE IF EXISTS `sys_menu`;
CREATE TABLE `sys_menu` (
  `id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '主键ID',
  `title` varchar(255) DEFAULT NULL COMMENT '菜单名称',
  `pid` bigint(20) DEFAULT NULL COMMENT '父级编号',
  `pids` varchar(255) DEFAULT NULL COMMENT '所有父级编号',
  `url` varchar(255) DEFAULT NULL COMMENT 'URL地址',
  `perms` varchar(255) DEFAULT NULL COMMENT '权限标识',
  `icon` varchar(255) DEFAULT NULL COMMENT '图标',
  `type` tinyint(4) DEFAULT NULL COMMENT '类型（1:一级菜单,2:子级菜单,3:不是菜单）',
  `sort` int(11) DEFAULT NULL COMMENT '排序',
  `remark` varchar(255) DEFAULT NULL COMMENT '备注',
  `create_date` datetime DEFAULT NULL COMMENT '创建时间',
  `update_date` datetime DEFAULT NULL COMMENT '更新时间',
  `create_by` bigint(20) DEFAULT NULL COMMENT '创建用户',
  `update_by` bigint(20) DEFAULT NULL COMMENT '更新用户',
  `status` tinyint(4) DEFAULT NULL COMMENT '状态（1:正常,2:冻结,3:删除）',
  PRIMARY KEY (`id`),
  KEY `FKoxg2hi96yr9pf2m0stjomr3we` (`create_by`) USING BTREE,
  KEY `FKsiko0qcr8ddamvrxf1tk4opgc` (`update_by`) USING BTREE,
  CONSTRAINT `sys_menu_ibfk_1` FOREIGN KEY (`create_by`) REFERENCES `sys_user` (`id`),
  CONSTRAINT `sys_menu_ibfk_2` FOREIGN KEY (`update_by`) REFERENCES `sys_user` (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=165 DEFAULT CHARSET=utf8;

-- ----------------------------
-- Records of sys_menu
-- ----------------------------
INSERT INTO `sys_menu` VALUES ('1', '菜单管理', '2', '[0],[2]', '/system/menu/index', 'system:menu:index', '', '2', '3', '', '2018-09-29 00:02:10', '2019-02-24 16:10:40', '1', '1', '1');
INSERT INTO `sys_menu` VALUES ('2', '系统管理', '0', '[0]', '#', '#', 'fa fa-cog', '1', '3', '', '2018-09-29 00:05:50', '2019-07-28 23:58:27', '1', '1', '1');
INSERT INTO `sys_menu` VALUES ('3', '添加', '1', '[0],[2],[1]', '/system/menu/add', 'system:menu:add', '', '3', '1', '', '2018-09-29 00:06:57', '2019-02-24 16:12:59', '1', '1', '1');
INSERT INTO `sys_menu` VALUES ('4', '角色管理', '2', '[0],[2]', '/system/role/index', 'system:role:index', '', '2', '2', '', '2018-09-29 00:08:14', '2019-02-24 16:10:34', '1', '1', '1');
INSERT INTO `sys_menu` VALUES ('5', '添加', '4', '[0],[2],[4]', '/system/role/add', 'system:role:add', '', '3', '1', '', '2018-09-29 00:09:04', '2019-02-24 16:12:04', '1', '1', '1');
INSERT INTO `sys_menu` VALUES ('6', '主页', '0', '[0]', '/index', 'index', 'layui-icon layui-icon-home', '1', '1', '', '2018-09-29 00:09:56', '2019-02-27 21:34:56', '1', '1', '1');
INSERT INTO `sys_menu` VALUES ('7', '用户管理', '2', '[0],[2]', '/system/user/index', 'system:user:index', '', '2', '1', '', '2018-09-29 00:43:50', '2019-04-05 17:43:25', '1', '1', '1');
INSERT INTO `sys_menu` VALUES ('8', '编辑', '1', '[0],[2],[1]', '/system/menu/edit', 'system:menu:edit', '', '3', '2', '', '2018-09-29 00:57:33', '2019-02-24 16:13:05', '1', '1', '1');
INSERT INTO `sys_menu` VALUES ('9', '详细', '1', '[0],[2],[1]', '/system/menu/detail', 'system:menu:detail', '', '3', '3', '', '2018-09-29 01:03:00', '2019-02-24 16:13:12', '1', '1', '1');
INSERT INTO `sys_menu` VALUES ('10', '修改状态', '1', '[0],[2],[1]', '/system/menu/status', 'system:menu:status', '', '3', '4', '', '2018-09-29 01:03:43', '2019-02-24 16:13:21', '1', '1', '1');
INSERT INTO `sys_menu` VALUES ('11', '编辑', '4', '[0],[2],[4]', '/system/role/edit', 'system:role:edit', '', '3', '2', '', '2018-09-29 01:06:13', '2019-02-24 16:12:10', '1', '1', '1');
INSERT INTO `sys_menu` VALUES ('12', '授权', '4', '[0],[2],[4]', '/system/role/auth', 'system:role:auth', '', '3', '3', '', '2018-09-29 01:06:57', '2019-02-24 16:12:17', '1', '1', '1');
INSERT INTO `sys_menu` VALUES ('13', '详细', '4', '[0],[2],[4]', '/system/role/detail', 'system:role:detail', '', '3', '4', '', '2018-09-29 01:08:00', '2019-02-24 16:12:24', '1', '1', '1');
INSERT INTO `sys_menu` VALUES ('14', '修改状态', '4', '[0],[2],[4]', '/system/role/status', 'system:role:status', '', '3', '5', '', '2018-09-29 01:08:22', '2019-02-24 16:12:43', '1', '1', '1');
INSERT INTO `sys_menu` VALUES ('15', '编辑', '7', '[0],[2],[7]', '/system/user/edit', 'system:user:edit', '', '3', '2', '', '2018-09-29 21:17:17', '2019-02-24 16:11:03', '1', '1', '1');
INSERT INTO `sys_menu` VALUES ('16', '添加', '7', '[0],[2],[7]', '/system/user/add', 'system:user:add', '', '3', '1', '', '2018-09-29 21:17:58', '2019-02-24 16:10:28', '1', '1', '1');
INSERT INTO `sys_menu` VALUES ('17', '修改密码', '7', '[0],[2],[7]', '/system/user/pwd', 'system:user:pwd', '', '3', '3', '', '2018-09-29 21:19:40', '2019-02-24 16:11:11', '1', '1', '1');
INSERT INTO `sys_menu` VALUES ('18', '权限分配', '7', '[0],[2],[7]', '/system/user/role', 'system:user:role', '', '3', '4', '', '2018-09-29 21:20:35', '2019-02-24 16:11:18', '1', '1', '1');
INSERT INTO `sys_menu` VALUES ('19', '详细', '7', '[0],[2],[7]', '/system/user/detail', 'system:user:detail', '', '3', '5', '', '2018-09-29 21:21:00', '2019-02-24 16:11:26', '1', '1', '1');
INSERT INTO `sys_menu` VALUES ('20', '修改状态', '7', '[0],[2],[7]', '/system/user/status', 'system:user:status', '', '3', '6', '', '2018-09-29 21:21:18', '2019-02-24 16:11:35', '1', '1', '1');
INSERT INTO `sys_menu` VALUES ('21', '字典管理', '2', '[0],[2]', '/system/dict/index', 'system:dict:index', '', '2', '5', '', '2018-10-05 00:55:52', '2019-02-24 16:14:24', '1', '1', '1');
INSERT INTO `sys_menu` VALUES ('22', '字典添加', '21', '[0],[2],[21]', '/system/dict/add', 'system:dict:add', '', '3', '1', '', '2018-10-05 00:56:26', '2019-02-24 16:14:10', '1', '1', '1');
INSERT INTO `sys_menu` VALUES ('23', '字典编辑', '21', '[0],[2],[21]', '/system/dict/edit', 'system:dict:edit', '', '3', '2', '', '2018-10-05 00:57:08', '2019-02-24 16:14:34', '1', '1', '1');
INSERT INTO `sys_menu` VALUES ('24', '字典详细', '21', '[0],[2],[21]', '/system/dict/detail', 'system:dict:detail', '', '3', '3', '', '2018-10-05 00:57:42', '2019-02-24 16:14:41', '1', '1', '1');
INSERT INTO `sys_menu` VALUES ('25', '修改状态', '21', '[0],[2],[21]', '/system/dict/status', 'system:dict:status', '', '3', '4', '', '2018-10-05 00:58:27', '2019-02-24 16:14:49', '1', '1', '1');
INSERT INTO `sys_menu` VALUES ('26', '行为日志', '30', '[0],[2]', '/system/actionLog/index', 'system:actionLog:index', '', '2', '4', '', '2018-10-14 16:52:01', '2019-07-28 22:32:45', '1', '1', '1');
INSERT INTO `sys_menu` VALUES ('27', '日志详细', '26', '[0],[2],[26]', '/system/actionLog/detail', 'system:actionLog:detail', '', '3', '1', '', '2018-10-14 21:07:11', '2019-02-27 21:34:15', '1', '1', '1');
INSERT INTO `sys_menu` VALUES ('28', '日志删除', '26', '[0],[2],[26]', '/system/actionLog/delete', 'system:actionLog:delete', '', '3', '2', '', '2018-10-14 21:08:17', '2019-02-27 21:34:15', '1', '1', '1');
INSERT INTO `sys_menu` VALUES ('30', '开发中心', '0', '[0]', '#', '#', 'fa fa-gavel', '1', '4', '', '2018-10-19 16:38:23', '2019-07-28 23:58:27', '1', '1', '1');
INSERT INTO `sys_menu` VALUES ('31', '代码生成', '30', '[0],[30]', '/dev/code', '#', '', '2', '1', '', '2018-10-19 16:39:04', '2019-03-13 17:43:58', '1', '1', '1');
INSERT INTO `sys_menu` VALUES ('125', '表单构建', '30', '[0],[30]', '/dev/build', '#', '', '2', '2', '', '2018-11-25 16:12:23', '2019-02-24 16:16:40', '1', '1', '1');
INSERT INTO `sys_menu` VALUES ('136', '部门管理', '2', '[0],[2]', '/system/bssDept/index', 'system:bssDept:index', '', '2', '4', '', '2018-12-02 16:33:23', '2019-02-24 16:10:50', '1', '1', '3');
INSERT INTO `sys_menu` VALUES ('137', '添加', '136', '[0],[2],[136]', '/system/bssDept/add', 'system:bssDept:add', '', '3', '1', '', '2018-12-02 16:33:23', '2019-02-24 16:13:34', '1', '1', '3');
INSERT INTO `sys_menu` VALUES ('138', '编辑', '136', '[0],[2],[136]', '/system/bssDept/edit', 'system:bssDept:edit', '', '3', '2', '', '2018-12-02 16:33:23', '2019-02-24 16:13:42', '1', '1', '3');
INSERT INTO `sys_menu` VALUES ('139', '详细', '136', '[0],[2],[136]', '/system/bssDept/detail', 'system:bssDept:detail', '', '3', '3', '', '2018-12-02 16:33:23', '2019-02-24 16:13:49', '1', '1', '3');
INSERT INTO `sys_menu` VALUES ('140', '改变状态', '136', '[0],[2],[136]', '/system/bssDept/status', 'system:bssDept:status', '', '3', '4', '', '2018-12-02 16:33:23', '2019-02-24 16:13:57', '1', '1', '1');
INSERT INTO `sys_menu` VALUES ('146', '数据接口', '30', '[0],[30]', '/dev/swagger', '#', '', '2', '3', '', '2018-12-09 21:11:11', '2019-02-24 23:38:18', '1', '1', '1');
INSERT INTO `sys_menu` VALUES ('159', '平台信息', '164', '[0]', '/bss/bssPlatform/index', 'bss:bssPlatform:index', 'fa fa-television', '1', '1', '', '2019-07-28 23:30:18', '2019-07-29 00:02:07', '1', '1', '1');
INSERT INTO `sys_menu` VALUES ('160', '添加', '159', '[0],[159]', '/bss/bssPlatform/add', 'bss:bssPlatform:add', '', '3', '1', '', '2019-07-28 23:30:18', '2019-07-29 00:02:20', '1', '1', '1');
INSERT INTO `sys_menu` VALUES ('161', '编辑', '159', '[0],[159]', '/bss/bssPlatform/edit', 'bss:bssPlatform:edit', '', '3', '2', '', '2019-07-28 23:30:18', '2019-07-29 00:02:29', '1', '1', '1');
INSERT INTO `sys_menu` VALUES ('162', '详细', '159', '[0],[159]', '/bss/bssPlatform/detail', 'bss:bssPlatform:detail', '', '3', '3', '', '2019-07-28 23:30:18', '2019-07-29 00:02:41', '1', '1', '1');
INSERT INTO `sys_menu` VALUES ('163', '修改状态', '159', '[0],[159]', '/bss/bssPlatform/status', 'bss:bssPlatform:status', '', '3', '4', '', '2019-07-28 23:30:18', '2019-07-29 00:02:50', '1', '1', '1');
INSERT INTO `sys_menu` VALUES ('164', '财务帮', '0', '[0]', '#', 'bss', 'fa fa-bars', '1', '2', '', '2019-07-28 23:58:27', '2019-07-28 23:58:27', '1', '1', '1');

-- ----------------------------
-- Table structure for sys_role
-- ----------------------------
DROP TABLE IF EXISTS `sys_role`;
CREATE TABLE `sys_role` (
  `id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '主键ID',
  `title` varchar(255) DEFAULT NULL COMMENT '角色名称（中文名）',
  `name` varchar(255) DEFAULT NULL COMMENT '标识名称',
  `remark` varchar(255) DEFAULT NULL COMMENT '备注',
  `create_date` datetime DEFAULT NULL COMMENT '创建时间',
  `update_date` datetime DEFAULT NULL COMMENT '更新时间',
  `create_by` bigint(20) DEFAULT NULL COMMENT '创建用户',
  `update_by` bigint(20) DEFAULT NULL COMMENT '更新用户',
  `status` tinyint(4) DEFAULT NULL COMMENT '状态（1:正常,2:冻结,3:删除）',
  PRIMARY KEY (`id`),
  KEY `FKdkwvv0rm6j3d5l6hwsy2dplol` (`create_by`) USING BTREE,
  KEY `FKrouqqi3f2bgc5o83wdstlh6q4` (`update_by`) USING BTREE,
  CONSTRAINT `sys_role_ibfk_1` FOREIGN KEY (`create_by`) REFERENCES `sys_user` (`id`),
  CONSTRAINT `sys_role_ibfk_2` FOREIGN KEY (`update_by`) REFERENCES `sys_user` (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=18 DEFAULT CHARSET=utf8;

-- ----------------------------
-- Records of sys_role
-- ----------------------------
INSERT INTO `sys_role` VALUES ('1', '超级管理员', 'admin', '', '2018-09-29 00:12:40', '2019-07-28 22:30:08', '1', '1', '1');
INSERT INTO `sys_role` VALUES ('16', '业务管理', 'business_admin', '业务管理人员角色', '2019-07-28 17:25:46', '2019-07-28 22:30:28', '1', '1', '1');
INSERT INTO `sys_role` VALUES ('17', '业务通用', 'business_common', '业务通用人员角色', '2019-07-28 17:26:40', '2019-07-28 22:30:22', '1', '1', '1');

-- ----------------------------
-- Table structure for sys_role_menu
-- ----------------------------
DROP TABLE IF EXISTS `sys_role_menu`;
CREATE TABLE `sys_role_menu` (
  `role_id` bigint(20) NOT NULL,
  `menu_id` bigint(20) NOT NULL,
  PRIMARY KEY (`role_id`,`menu_id`),
  KEY `FKf3mud4qoc7ayew8nml4plkevo` (`menu_id`) USING BTREE,
  CONSTRAINT `sys_role_menu_ibfk_1` FOREIGN KEY (`menu_id`) REFERENCES `sys_menu` (`id`),
  CONSTRAINT `sys_role_menu_ibfk_2` FOREIGN KEY (`role_id`) REFERENCES `sys_role` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

-- ----------------------------
-- Records of sys_role_menu
-- ----------------------------
INSERT INTO `sys_role_menu` VALUES ('1', '1');
INSERT INTO `sys_role_menu` VALUES ('1', '2');
INSERT INTO `sys_role_menu` VALUES ('1', '3');
INSERT INTO `sys_role_menu` VALUES ('1', '4');
INSERT INTO `sys_role_menu` VALUES ('1', '5');
INSERT INTO `sys_role_menu` VALUES ('1', '6');
INSERT INTO `sys_role_menu` VALUES ('16', '6');
INSERT INTO `sys_role_menu` VALUES ('17', '6');
INSERT INTO `sys_role_menu` VALUES ('1', '7');
INSERT INTO `sys_role_menu` VALUES ('1', '8');
INSERT INTO `sys_role_menu` VALUES ('1', '9');
INSERT INTO `sys_role_menu` VALUES ('1', '10');
INSERT INTO `sys_role_menu` VALUES ('1', '11');
INSERT INTO `sys_role_menu` VALUES ('1', '12');
INSERT INTO `sys_role_menu` VALUES ('1', '13');
INSERT INTO `sys_role_menu` VALUES ('1', '14');
INSERT INTO `sys_role_menu` VALUES ('1', '15');
INSERT INTO `sys_role_menu` VALUES ('1', '16');
INSERT INTO `sys_role_menu` VALUES ('1', '17');
INSERT INTO `sys_role_menu` VALUES ('1', '18');
INSERT INTO `sys_role_menu` VALUES ('1', '19');
INSERT INTO `sys_role_menu` VALUES ('1', '20');
INSERT INTO `sys_role_menu` VALUES ('1', '21');
INSERT INTO `sys_role_menu` VALUES ('1', '22');
INSERT INTO `sys_role_menu` VALUES ('1', '23');
INSERT INTO `sys_role_menu` VALUES ('1', '24');
INSERT INTO `sys_role_menu` VALUES ('1', '25');
INSERT INTO `sys_role_menu` VALUES ('1', '26');
INSERT INTO `sys_role_menu` VALUES ('1', '27');
INSERT INTO `sys_role_menu` VALUES ('1', '28');
INSERT INTO `sys_role_menu` VALUES ('1', '30');
INSERT INTO `sys_role_menu` VALUES ('1', '31');
INSERT INTO `sys_role_menu` VALUES ('1', '125');
INSERT INTO `sys_role_menu` VALUES ('1', '146');
INSERT INTO `sys_role_menu` VALUES ('1', '159');
INSERT INTO `sys_role_menu` VALUES ('1', '160');
INSERT INTO `sys_role_menu` VALUES ('1', '161');
INSERT INTO `sys_role_menu` VALUES ('1', '162');
INSERT INTO `sys_role_menu` VALUES ('1', '163');

-- ----------------------------
-- Table structure for sys_user
-- ----------------------------
DROP TABLE IF EXISTS `sys_user`;
CREATE TABLE `sys_user` (
  `id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '主键ID',
  `username` varchar(255) DEFAULT NULL COMMENT '用户名',
  `nickname` varchar(255) DEFAULT NULL COMMENT '用户昵称',
  `password` varchar(255) DEFAULT NULL COMMENT '密码',
  `salt` varchar(255) DEFAULT NULL COMMENT '密码盐',
  `dept_id` bigint(20) DEFAULT NULL COMMENT '部门ID',
  `picture` varchar(255) DEFAULT NULL COMMENT '头像',
  `sex` varchar(255) DEFAULT NULL COMMENT '性别（1:男,2:女）',
  `email` varchar(255) DEFAULT NULL COMMENT '邮箱',
  `phone` varchar(255) DEFAULT NULL COMMENT '电话号码',
  `remark` varchar(255) DEFAULT NULL COMMENT '备注',
  `create_date` datetime DEFAULT NULL COMMENT '创建时间',
  `update_date` datetime DEFAULT NULL COMMENT '更新时间',
  `status` tinyint(4) DEFAULT NULL COMMENT '状态（1:正常,2:冻结,3:删除）',
  PRIMARY KEY (`id`),
  KEY `FKb3pkx0wbo6o8i8lj0gxr37v1n` (`dept_id`) USING BTREE,
  CONSTRAINT `sys_user_ibfk_1` FOREIGN KEY (`dept_id`) REFERENCES `sys_dept` (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=9 DEFAULT CHARSET=utf8;

-- ----------------------------
-- Records of sys_user
-- ----------------------------
INSERT INTO `sys_user` VALUES ('1', 'admin', '超级管理员', '3dd0affe1e514fa059d00bf63134fe48d45acd3f350aaed83b0b54ef05579092', '3ABR79', '1', '/upload/picture/20190726/c3b2a31dca404ad0bf96bb10719bf689.jpg', '1', 'thelongcode@163.com', '18521303581', '', '2018-08-09 23:00:03', '2019-07-28 22:31:16', '1');
INSERT INTO `sys_user` VALUES ('8', 'yiyan', '易焱', 'b382eecc12388c6dc7d6f3d3ded24a088eed35e15264d628e7c4e9b81e2854b6', 'VWO8Aw', '1', null, '1', 'thelongcode@163.com', '175017730036', '', '2019-07-28 18:02:41', '2019-07-28 22:22:50', '1');

-- ----------------------------
-- Table structure for sys_user_role
-- ----------------------------
DROP TABLE IF EXISTS `sys_user_role`;
CREATE TABLE `sys_user_role` (
  `user_id` bigint(20) NOT NULL,
  `role_id` bigint(20) NOT NULL,
  PRIMARY KEY (`user_id`,`role_id`),
  KEY `FKhh52n8vd4ny9ff4x9fb8v65qx` (`role_id`) USING BTREE,
  CONSTRAINT `sys_user_role_ibfk_1` FOREIGN KEY (`user_id`) REFERENCES `sys_user` (`id`),
  CONSTRAINT `sys_user_role_ibfk_2` FOREIGN KEY (`role_id`) REFERENCES `sys_role` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

-- ----------------------------
-- Records of sys_user_role
-- ----------------------------
INSERT INTO `sys_user_role` VALUES ('1', '1');
INSERT INTO `sys_user_role` VALUES ('8', '17');
