/*
 Navicat Premium Data Transfer

 Source Server         : 本地
 Source Server Type    : MySQL
 Source Server Version : 50732
 Source Host           : localhost:3306
 Source Schema         : kicc

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

 Date: 21/03/2022 21:50:21
*/

SET NAMES utf8mb4;
SET FOREIGN_KEY_CHECKS = 0;

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

-- ----------------------------
-- Records of demo_seata_order
-- ----------------------------
INSERT INTO `demo_seata_order` VALUES ('1', 100);

-- ----------------------------
-- Table structure for demo_seata_point
-- ----------------------------
DROP TABLE IF EXISTS `demo_seata_point`;
CREATE TABLE `demo_seata_point`  (
  `id` varchar(32) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '主键',
  `count` int(11) NULL DEFAULT NULL COMMENT '积分数量',
  PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci ROW_FORMAT = Dynamic;

-- ----------------------------
-- Records of demo_seata_point
-- ----------------------------
INSERT INTO `demo_seata_point` VALUES ('2', 10);

-- ----------------------------
-- Table structure for demo_seata_user
-- ----------------------------
DROP TABLE IF EXISTS `demo_seata_user`;
CREATE TABLE `demo_seata_user`  (
  `id` varchar(32) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '主键',
  `name` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '用户名称',
  `age` int(11) NULL DEFAULT NULL COMMENT '用户年龄',
  PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci ROW_FORMAT = Dynamic;

-- ----------------------------
-- Records of demo_seata_user
-- ----------------------------
INSERT INTO `demo_seata_user` VALUES ('2', '测试员', 18);

-- ----------------------------
-- Table structure for sys_config
-- ----------------------------
DROP TABLE IF EXISTS `sys_config`;
CREATE TABLE `sys_config`  (
  `id` varchar(32) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '编号',
  `name` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '' COMMENT '参数名称',
  `key` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '' COMMENT '参数键名',
  `value` varchar(500) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '' COMMENT '参数键值',
  `is_sys` char(1) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '0' COMMENT '系统内置 0-是|1-否',
  `create_by_id` varchar(32) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '创建id',
  `create_by_name` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '' COMMENT '创建者',
  `create_time` datetime NULL DEFAULT NULL COMMENT '创建时间',
  `update_by_id` varchar(32) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '更新id',
  `update_by_name` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '' COMMENT '更新者',
  `update_time` datetime NULL DEFAULT NULL COMMENT '更新时间',
  `remarks` varchar(500) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '备注',
  `del_flag` char(1) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '0' COMMENT '删除标记',
  PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_general_ci ROW_FORMAT = Dynamic;

-- ----------------------------
-- Records of sys_config
-- ----------------------------
INSERT INTO `sys_config` VALUES ('1', '初始密码', 'user.initPassword', '123456', '0', NULL, '', '2020-03-15 21:51:13', NULL, '', NULL, NULL, '0');

-- ----------------------------
-- Table structure for sys_dept
-- ----------------------------
DROP TABLE IF EXISTS `sys_dept`;
CREATE TABLE `sys_dept`  (
  `dept_id` varchar(32) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL,
  `code` varchar(30) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '机构编码',
  `name` varchar(60) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '机构名称',
  `parent_id` varchar(32) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '0' COMMENT '父级编号',
  `ancestors` varchar(120) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '0' COMMENT '祖级列表',
  `sort` int(11) NULL DEFAULT 1 COMMENT '排序',
  `contacts` varchar(30) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '联系人',
  `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 '联系地址',
  `email` varchar(60) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '邮箱',
  `status` char(1) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '0' COMMENT '帐号状态（0正常 1停用）',
  `create_by_id` varchar(32) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '创建id',
  `create_by_name` varchar(64) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '创建人',
  `create_time` datetime NULL DEFAULT NULL COMMENT '创建时间',
  `update_by_id` varchar(32) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '更新id',
  `update_by_name` varchar(64) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '更新者',
  `update_time` datetime NULL DEFAULT NULL ON UPDATE CURRENT_TIMESTAMP COMMENT '修改时间',
  `remarks` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '备注信息',
  `del_flag` char(1) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL DEFAULT '0' COMMENT '删除标记',
  PRIMARY KEY (`dept_id`) USING BTREE
) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci ROW_FORMAT = Dynamic;

-- ----------------------------
-- Records of sys_dept
-- ----------------------------
INSERT INTO `sys_dept` VALUES ('1', '100001', '康来生物长沙总公司', '0', '0', 1, '杨总', '15688888888', NULL, NULL, '0', NULL, 'entfrm', '2020-02-13 20:55:57', NULL, 'admin', '2020-03-19 20:49:29', NULL, '0');
INSERT INTO `sys_dept` VALUES ('2', '10000101', '康来生物北京分公司', '1', '0,1', 1, NULL, NULL, NULL, NULL, '0', NULL, NULL, NULL, NULL, 'admin', '2020-03-15 20:22:11', NULL, '0');
INSERT INTO `sys_dept` VALUES ('3', '10000102', '康来生物上海分公司', '1', '0,1', 2, '123', '', NULL, NULL, '0', NULL, NULL, NULL, NULL, 'entfrm', '2020-03-15 20:37:02', NULL, '0');

-- ----------------------------
-- Table structure for sys_dict
-- ----------------------------
DROP TABLE IF EXISTS `sys_dict`;
CREATE TABLE `sys_dict`  (
  `id` varchar(32) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL,
  `name` varchar(100) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '' COMMENT '字典名称',
  `type` varchar(100) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '' COMMENT '字典类型',
  `is_sys` char(1) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL DEFAULT '0' COMMENT '0-是|1-否',
  `status` char(1) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '0' COMMENT '状态（0正常 1停用）',
  `create_by_id` varchar(32) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '创建id',
  `create_by_name` varchar(64) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '创建人',
  `create_time` datetime NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
  `update_by_id` varchar(32) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '更新id',
  `update_by_name` varchar(64) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '修改人',
  `update_time` datetime NULL DEFAULT NULL ON UPDATE CURRENT_TIMESTAMP COMMENT '修改时间',
  `remarks` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '' COMMENT '备注',
  `del_flag` char(1) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NULL DEFAULT '0' COMMENT '0-正常，1-删除',
  PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_general_ci ROW_FORMAT = Dynamic;

-- ----------------------------
-- Records of sys_dict
-- ----------------------------
INSERT INTO `sys_dict` VALUES ('1', '用户性别', 'user_sex', '0', '0', NULL, 'admin', '2018-03-16 11:33:00', NULL, 'admin', '2020-03-17 14:19:40', '用户性别列表', '0');
INSERT INTO `sys_dict` VALUES ('10', '快捷方式类型', 'shortcut_type', '0', '0', NULL, 'entfrm', '2020-03-27 09:48:05', NULL, 'entfrm', '2020-03-27 10:14:27', '快捷方式类型列表', '0');
INSERT INTO `sys_dict` VALUES ('11', '模型分类', 'model_category', '0', '0', NULL, 'entfrm', '2020-04-04 22:09:36', '1', 'admin', '2022-03-21 21:23:55', '', '1');
INSERT INTO `sys_dict` VALUES ('12', '请假类型', 'leave_type', '0', '0', NULL, 'entfrm', '2020-04-05 10:08:18', '1', 'admin', '2022-03-21 21:23:55', '', '1');
INSERT INTO `sys_dict` VALUES ('13', '任务状态', 'job_status', '0', '0', NULL, 'entfrm', '2020-04-11 18:54:20', '1', 'admin', '2022-03-21 21:23:55', '', '1');
INSERT INTO `sys_dict` VALUES ('14', 'Activiti流程状态', 'process_status', '0', '0', NULL, 'entfrm', '2020-04-12 14:30:52', NULL, 'entfrm', '2021-05-12 01:37:16', 'Activiti流程状态', '1');
INSERT INTO `sys_dict` VALUES ('15', '应用类型', 'application_type', '0', '0', NULL, 'entfrm', '2020-04-23 18:54:07', '1', 'admin', '2022-03-21 21:23:55', '', '1');
INSERT INTO `sys_dict` VALUES ('16', '消息类型', 'msg_type', '0', '0', NULL, 'entfrm', '2020-05-10 16:02:20', '1', 'admin', '2022-03-21 21:23:55', '', '1');
INSERT INTO `sys_dict` VALUES ('17', '应用状态', 'application_status', '0', '0', NULL, 'entfrm', '2020-05-15 22:56:49', '1', 'admin', '2022-03-21 21:23:55', '应用状态列表', '1');
INSERT INTO `sys_dict` VALUES ('18', '消息通知类型', 'content_type', '0', '0', NULL, 'entfrm', '2020-05-25 15:45:41', '1', 'admin', '2022-03-21 21:23:55', '', '1');
INSERT INTO `sys_dict` VALUES ('19', '数据格式类型', 'data_type', '0', '0', NULL, 'entfrm', '2020-06-13 08:51:07', NULL, NULL, NULL, '', '0');
INSERT INTO `sys_dict` VALUES ('2', '菜单状态', 'menu_status', '0', '0', NULL, 'admin', '2018-03-16 11:33:00', NULL, 'admin', '2020-03-17 14:19:41', '菜单状态列表', '0');
INSERT INTO `sys_dict` VALUES ('20', '表单类型', 'form_type', '0', '0', NULL, 'entfrm', '2021-03-26 23:30:49', '1', 'admin', '2022-03-21 21:24:11', '', '1');
INSERT INTO `sys_dict` VALUES ('21', '流程状态', 'process_status', '1', '0', NULL, 'entfrm', '2021-05-12 01:37:30', '1', 'admin', '2022-03-21 21:24:11', 'Activiti流程状态', '1');
INSERT INTO `sys_dict` VALUES ('3', '是否', 'yes_no', '0', '0', NULL, 'admin', '2018-03-16 11:33:00', NULL, 'admin', '2020-03-17 14:19:42', '是否列表', '0');
INSERT INTO `sys_dict` VALUES ('4', '状态', 'status', '0', '0', NULL, 'admin', '2018-03-16 11:33:00', NULL, 'admin', '2020-03-17 14:19:42', '状态列表', '0');
INSERT INTO `sys_dict` VALUES ('5', '成功失败', 'success_fail', '0', '0', NULL, 'admin', '2019-08-24 10:02:57', NULL, 'admin', '2020-03-17 14:19:43', '成功失败列表', '0');
INSERT INTO `sys_dict` VALUES ('6', '文件类别', 'file_type', '0', '0', NULL, 'entfrm', '2020-03-17 13:57:44', NULL, 'entfrm', '2020-03-20 22:48:19', '文件类别列表', '0');
INSERT INTO `sys_dict` VALUES ('7', '数据库类型', 'datasource_type', '0', '0', NULL, 'entfrm', '2020-03-21 11:33:14', '1', 'admin', '2022-03-21 21:24:15', '数据库类型列表', '1');
INSERT INTO `sys_dict` VALUES ('8', '任务类型', 'job_type', '0', '0', NULL, 'entfrm', '2020-03-21 21:21:46', NULL, NULL, NULL, '任务类型列表', '0');
INSERT INTO `sys_dict` VALUES ('9', '登录类型', 'login_type', '0', '0', NULL, 'entfrm', '2020-03-22 09:55:59', NULL, NULL, NULL, '登录类型列表', '0');

-- ----------------------------
-- Table structure for sys_dict_data
-- ----------------------------
DROP TABLE IF EXISTS `sys_dict_data`;
CREATE TABLE `sys_dict_data`  (
  `id` varchar(32) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '编号',
  `dict_id` varchar(32) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '字典编号',
  `dict_type` varchar(100) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '类型',
  `label` varchar(100) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '标签名',
  `value` varchar(100) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '数据值',
  `sort` int(10) NOT NULL COMMENT '排序（升序）',
  `create_by_id` varchar(32) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '创建id',
  `create_by_name` varchar(64) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '创建人',
  `create_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
  `update_by_id` varchar(32) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '更新id',
  `update_by_name` varchar(64) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '修改人',
  `update_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '更新时间',
  `remarks` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '备注信息',
  `del_flag` char(1) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL DEFAULT '0' COMMENT '删除标记',
  PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_general_ci ROW_FORMAT = Dynamic;

-- ----------------------------
-- Records of sys_dict_data
-- ----------------------------
INSERT INTO `sys_dict_data` VALUES ('1', '1', 'user_sex', '男', '0', 1, NULL, NULL, '2019-08-13 18:33:37', NULL, NULL, '2019-08-13 18:33:40', NULL, '0');
INSERT INTO `sys_dict_data` VALUES ('10', NULL, 'success_fail', '失败', '1', 20, NULL, 'admin', '2019-08-24 11:48:27', NULL, NULL, '2019-08-24 11:48:26', '', '0');
INSERT INTO `sys_dict_data` VALUES ('11', NULL, 'file_type', '图片', 'image', 1, NULL, 'entfrm', '2020-03-20 22:48:39', NULL, NULL, '2020-03-28 16:27:48', NULL, '0');
INSERT INTO `sys_dict_data` VALUES ('12', NULL, 'file_type', '媒体', 'media', 2, NULL, 'entfrm', '2020-03-20 22:48:48', NULL, 'entfrm', '2020-03-28 16:28:32', NULL, '0');
INSERT INTO `sys_dict_data` VALUES ('13', NULL, 'file_type', '文档', 'file', 3, NULL, 'entfrm', '2020-03-20 22:49:03', NULL, NULL, '2020-03-28 16:28:21', NULL, '0');
INSERT INTO `sys_dict_data` VALUES ('14', NULL, 'datasource_type', 'Mysql', 'com.mysql.cj.jdbc.Driver', 1, NULL, 'entfrm', '2020-03-21 11:33:59', NULL, 'entfrm', '2020-03-21 11:33:59', NULL, '0');
INSERT INTO `sys_dict_data` VALUES ('15', NULL, 'datasource_type', 'Sqlserver', 'com.microsoft.sqlserver.jdbc.SQLServerDriver', 2, NULL, 'entfrm', '2020-03-21 11:34:59', NULL, 'entfrm', '2020-03-21 11:34:58', NULL, '0');
INSERT INTO `sys_dict_data` VALUES ('16', NULL, 'datasource_type', 'Postgresql', 'org.postgresql.Driver', 3, NULL, 'entfrm', '2020-03-21 11:36:16', NULL, NULL, '2020-03-21 11:36:15', NULL, '0');
INSERT INTO `sys_dict_data` VALUES ('17', NULL, 'job_type', 'Java类', '1', 1, NULL, 'entfrm', '2020-03-21 21:22:35', NULL, NULL, '2020-03-21 21:22:35', NULL, '0');
INSERT INTO `sys_dict_data` VALUES ('18', NULL, 'job_type', 'Spring bean名称', '2', 2, NULL, 'entfrm', '2020-03-21 21:22:50', NULL, NULL, '2020-03-21 21:22:50', NULL, '0');
INSERT INTO `sys_dict_data` VALUES ('19', NULL, 'job_type', 'Rest调用', '3', 3, NULL, 'entfrm', '2020-03-21 21:23:06', NULL, NULL, '2020-03-21 21:23:05', NULL, '0');
INSERT INTO `sys_dict_data` VALUES ('2', '1', 'user_sex', '女', '1', 2, NULL, NULL, '2019-08-13 18:34:03', NULL, NULL, '2019-08-13 18:34:07', NULL, '0');
INSERT INTO `sys_dict_data` VALUES ('20', NULL, 'job_type', 'Jar调用', '4', 4, NULL, 'entfrm', '2020-03-21 21:23:19', NULL, NULL, '2020-03-21 21:23:18', NULL, '0');
INSERT INTO `sys_dict_data` VALUES ('21', NULL, 'job_type', '其他', '5', 0, NULL, 'entfrm', '2020-03-21 21:23:24', NULL, NULL, '2020-03-21 21:23:24', NULL, '0');
INSERT INTO `sys_dict_data` VALUES ('22', NULL, 'login_type', '登录', '0', 1, NULL, 'entfrm', '2020-03-22 09:56:41', NULL, NULL, '2020-03-22 09:56:40', NULL, '0');
INSERT INTO `sys_dict_data` VALUES ('23', NULL, 'login_type', '退出', '1', 2, NULL, 'entfrm', '2020-03-22 09:56:51', NULL, NULL, '2020-03-22 09:56:51', NULL, '0');
INSERT INTO `sys_dict_data` VALUES ('24', NULL, 'shortcut_type', '顶部', '1', 1, NULL, 'entfrm', '2020-03-27 09:48:24', NULL, NULL, '2020-03-27 09:48:23', NULL, '0');
INSERT INTO `sys_dict_data` VALUES ('25', NULL, 'shortcut_type', '首页', '2', 2, NULL, 'entfrm', '2020-03-27 09:48:38', NULL, NULL, '2020-03-27 09:48:38', NULL, '0');
INSERT INTO `sys_dict_data` VALUES ('26', NULL, 'model_category', '办公流程', 'office', 1, NULL, 'entfrm', '2020-04-04 22:10:14', NULL, NULL, '2020-04-04 22:10:13', NULL, '0');
INSERT INTO `sys_dict_data` VALUES ('27', NULL, 'model_category', '项目流程', 'project', 2, NULL, 'entfrm', '2020-04-04 22:10:27', NULL, NULL, '2020-04-04 22:10:26', NULL, '0');
INSERT INTO `sys_dict_data` VALUES ('28', NULL, 'leave_type', '事假', '1', 1, NULL, 'entfrm', '2020-04-05 10:08:52', NULL, NULL, '2020-04-05 10:08:52', NULL, '0');
INSERT INTO `sys_dict_data` VALUES ('29', NULL, 'leave_type', '病假', '2', 2, NULL, 'entfrm', '2020-04-05 10:09:05', NULL, NULL, '2020-04-05 10:09:05', NULL, '0');
INSERT INTO `sys_dict_data` VALUES ('3', '2', 'menu_status', '隐藏', '1', 2, NULL, NULL, '2019-08-13 18:33:37', NULL, NULL, '2019-08-19 15:42:29', NULL, '0');
INSERT INTO `sys_dict_data` VALUES ('30', NULL, 'leave_type', '产假', '3', 3, NULL, 'entfrm', '2020-04-05 10:09:37', NULL, 'entfrm', '2020-04-05 10:09:37', NULL, '0');
INSERT INTO `sys_dict_data` VALUES ('31', NULL, 'job_status', '未发布', '1', 1, NULL, 'entfrm', '2020-04-11 18:54:37', NULL, NULL, '2020-04-11 18:54:37', NULL, '0');
INSERT INTO `sys_dict_data` VALUES ('32', NULL, 'job_status', '运行中', '2', 2, NULL, 'entfrm', '2020-04-11 18:54:48', NULL, NULL, '2020-04-11 18:54:47', NULL, '0');
INSERT INTO `sys_dict_data` VALUES ('33', NULL, 'job_status', '暂停', '3', 3, NULL, 'entfrm', '2020-04-11 18:54:57', NULL, NULL, '2020-04-11 18:54:57', NULL, '0');
INSERT INTO `sys_dict_data` VALUES ('34', NULL, 'leave_status', '未提交', '0', 0, NULL, 'entfrm', '2020-04-12 14:31:12', NULL, NULL, '2020-04-12 14:31:11', NULL, '0');
INSERT INTO `sys_dict_data` VALUES ('35', NULL, 'leave_status', '未审批', '1', 1, NULL, 'entfrm', '2020-04-12 14:31:29', NULL, NULL, '2020-04-12 14:31:28', NULL, '0');
INSERT INTO `sys_dict_data` VALUES ('36', NULL, 'leave_status', '批准', '2', 2, NULL, 'entfrm', '2020-04-12 14:31:38', NULL, NULL, '2020-04-12 14:31:38', NULL, '0');
INSERT INTO `sys_dict_data` VALUES ('37', NULL, 'leave_status', '驳回', '9', 3, NULL, 'entfrm', '2020-04-12 14:31:51', NULL, '小狗', '2020-04-12 14:31:51', NULL, '0');
INSERT INTO `sys_dict_data` VALUES ('38', NULL, 'application_type', 'PC', '1', 1, NULL, 'entfrm', '2020-04-23 18:54:36', NULL, NULL, '2020-04-23 18:54:36', NULL, '0');
INSERT INTO `sys_dict_data` VALUES ('39', NULL, 'application_type', 'APP', '2', 2, NULL, 'entfrm', '2020-04-23 18:54:44', NULL, NULL, '2020-04-23 18:54:44', NULL, '0');
INSERT INTO `sys_dict_data` VALUES ('4', '2', 'menu_status', '显示', '0', 1, NULL, NULL, '2019-08-13 18:33:37', NULL, NULL, '2019-08-19 15:42:28', NULL, '0');
INSERT INTO `sys_dict_data` VALUES ('40', NULL, 'application_type', '小程序', '3', 3, NULL, 'entfrm', '2020-04-23 18:54:58', NULL, NULL, '2020-04-23 18:54:57', NULL, '0');
INSERT INTO `sys_dict_data` VALUES ('41', NULL, 'msg_type', '短信', '0', 0, NULL, 'entfrm', '2020-05-10 16:02:40', NULL, NULL, '2020-05-10 16:02:40', NULL, '0');
INSERT INTO `sys_dict_data` VALUES ('42', NULL, 'msg_type', '邮件', '1', 1, NULL, 'entfrm', '2020-05-10 16:02:50', NULL, NULL, '2020-05-10 16:02:50', NULL, '0');
INSERT INTO `sys_dict_data` VALUES ('43', NULL, 'application_status', '未发布', '0', 0, NULL, 'entfrm', '2020-05-15 22:57:27', NULL, NULL, '2020-05-15 22:57:27', NULL, '0');
INSERT INTO `sys_dict_data` VALUES ('44', NULL, 'application_status', '已发布', '1', 1, NULL, 'entfrm', '2020-05-15 22:57:36', NULL, NULL, '2020-05-15 22:57:35', NULL, '0');
INSERT INTO `sys_dict_data` VALUES ('45', NULL, 'msg_type', 'PC', '2', 2, NULL, 'entfrm', '2020-05-25 15:44:18', NULL, NULL, '2020-05-25 15:44:17', NULL, '0');
INSERT INTO `sys_dict_data` VALUES ('46', NULL, 'msg_type', 'APP', '3', 3, NULL, 'entfrm', '2020-05-25 15:44:44', NULL, NULL, '2020-05-25 15:44:43', NULL, '0');
INSERT INTO `sys_dict_data` VALUES ('47', NULL, 'msg_type', '微信', '4', 4, NULL, 'entfrm', '2020-05-25 15:44:56', NULL, NULL, '2020-05-25 15:44:56', NULL, '0');
INSERT INTO `sys_dict_data` VALUES ('48', NULL, 'content_type', '通知', '0', 0, NULL, 'entfrm', '2020-05-25 15:46:28', NULL, NULL, '2020-05-25 15:46:28', NULL, '0');
INSERT INTO `sys_dict_data` VALUES ('49', NULL, 'content_type', '公告', '1', 1, NULL, 'entfrm', '2020-05-25 15:46:38', NULL, NULL, '2020-05-25 15:46:38', NULL, '0');
INSERT INTO `sys_dict_data` VALUES ('5', '3', 'yes_no', '是', '0', 1, NULL, NULL, '2019-08-13 18:33:37', NULL, 'admin', '2020-03-17 12:05:05', '', '0');
INSERT INTO `sys_dict_data` VALUES ('50', NULL, 'content_type', '其他', '2', 2, NULL, 'entfrm', '2020-05-25 15:46:46', NULL, NULL, '2020-05-25 15:46:45', NULL, '0');
INSERT INTO `sys_dict_data` VALUES ('51', NULL, 'data_type', 'json', 'json', 1, NULL, 'entfrm', '2020-06-13 08:51:24', NULL, NULL, '2020-06-13 08:51:24', NULL, '0');
INSERT INTO `sys_dict_data` VALUES ('52', NULL, 'form_type', '普通表单', '0', 0, NULL, 'entfrm', '2021-03-26 23:31:12', NULL, NULL, '2021-03-26 23:31:12', NULL, '0');
INSERT INTO `sys_dict_data` VALUES ('53', NULL, 'form_type', '工作流表单', '1', 1, NULL, 'entfrm', '2021-03-26 23:31:20', NULL, NULL, '2021-03-26 23:31:19', NULL, '0');
INSERT INTO `sys_dict_data` VALUES ('54', NULL, 'leave_status', '作废', '8', 4, NULL, '小狗', '2021-04-15 01:03:15', NULL, NULL, '2021-04-15 01:03:14', '作废流程', '0');
INSERT INTO `sys_dict_data` VALUES ('55', NULL, 'application_type', '已挂起', '0', 0, NULL, 'entfrm', '2021-05-12 01:37:45', NULL, NULL, '2021-05-12 01:37:45', NULL, '0');
INSERT INTO `sys_dict_data` VALUES ('56', NULL, 'process_status', '已挂起', '0', 0, NULL, 'entfrm', '2021-05-12 01:38:51', NULL, NULL, '2021-05-12 01:38:50', NULL, '0');
INSERT INTO `sys_dict_data` VALUES ('57', NULL, 'process_status', '等待审核', '1', 1, NULL, 'entfrm', '2021-05-12 01:38:59', NULL, 'entfrm', '2021-05-12 01:38:59', NULL, '0');
INSERT INTO `sys_dict_data` VALUES ('58', NULL, 'process_status', '审核通过', '2', 2, NULL, 'entfrm', '2021-05-12 01:39:08', NULL, 'entfrm', '2021-05-12 01:39:07', NULL, '0');
INSERT INTO `sys_dict_data` VALUES ('59', NULL, 'process_status', '流程撤回', '3', 3, NULL, 'entfrm', '2021-05-12 01:39:14', NULL, 'entfrm', '2021-05-12 01:39:14', NULL, '0');
INSERT INTO `sys_dict_data` VALUES ('6', '3', 'yes_no', '否', '1', 2, NULL, NULL, '2019-08-13 18:33:37', NULL, 'admin', '2020-03-17 12:05:06', '', '0');
INSERT INTO `sys_dict_data` VALUES ('60', NULL, 'process_status', '审核驳回', '4', 4, NULL, 'entfrm', '2021-05-12 01:39:22', NULL, 'entfrm', '2021-05-12 01:39:21', NULL, '0');
INSERT INTO `sys_dict_data` VALUES ('61', NULL, 'process_status', '审核终止', '5', 5, NULL, 'entfrm', '2021-05-12 01:39:32', NULL, 'entfrm', '2021-05-12 01:39:31', NULL, '0');
INSERT INTO `sys_dict_data` VALUES ('62', NULL, 'process_status', '流程作废', '6', 6, NULL, 'entfrm', '2021-05-12 01:39:52', NULL, 'entfrm', '2021-05-12 01:39:51', NULL, '0');
INSERT INTO `sys_dict_data` VALUES ('7', '4', 'status', '停用', '1', 2, NULL, NULL, '2019-08-13 18:34:03', NULL, 'admin', '2019-08-19 15:43:00', '', '0');
INSERT INTO `sys_dict_data` VALUES ('8', '4', 'status', '正常', '0', 1, NULL, NULL, '2019-08-13 18:33:37', NULL, NULL, '2019-08-19 15:42:59', NULL, '0');
INSERT INTO `sys_dict_data` VALUES ('9', NULL, 'success_fail', '成功', '0', 10, NULL, 'admin', '2019-08-24 11:48:18', NULL, 'entfrm', '2019-08-24 11:48:17', '', '0');

-- ----------------------------
-- Table structure for sys_file
-- ----------------------------
DROP TABLE IF EXISTS `sys_file`;
CREATE TABLE `sys_file`  (
  `id` varchar(32) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL,
  `file_name` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL,
  `bucket_name` varchar(200) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL,
  `original` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL,
  `type` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL,
  `file_size` bigint(20) NULL DEFAULT NULL COMMENT '文件大小',
  `del_flag` char(1) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '0' COMMENT '0-正常，1-删除',
  `create_by_id` varchar(32) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '创建id',
  `create_by_name` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '创建者',
  `create_time` datetime NULL DEFAULT NULL COMMENT '创建时间',
  `update_by_id` varchar(32) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '更新id',
  `update_by_name` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '更新人',
  `update_time` datetime NULL DEFAULT NULL COMMENT '修改时间',
  PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '文件管理表' ROW_FORMAT = Dynamic;

-- ----------------------------
-- Records of sys_file
-- ----------------------------

-- ----------------------------
-- Table structure for sys_menu
-- ----------------------------
DROP TABLE IF EXISTS `sys_menu`;
CREATE TABLE `sys_menu`  (
  `id` varchar(32) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '编号',
  `name` varchar(30) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '菜单名称',
  `parent_id` varchar(32) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '父菜单ID',
  `parent_ids` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '父菜单IDS',
  `type` char(1) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '菜单类型 ',
  `path` varchar(128) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '前端URL',
  `component` varchar(64) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '#' COMMENT 'VUE页面',
  `perms` varchar(60) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '菜单权限标识',
  `icon` varchar(60) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '图标',
  `no_cache` char(1) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '1' COMMENT '路由缓存',
  `sort` int(11) NULL DEFAULT 1 COMMENT '排序值',
  `status` char(1) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '0' COMMENT '菜单状态（0显示 1隐藏）',
  `create_by_id` varchar(32) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '创建id',
  `create_by_name` varchar(64) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '创建人',
  `create_time` datetime NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
  `update_by_id` varchar(32) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '更新id',
  `update_by_name` varchar(64) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '修改人',
  `update_time` datetime NULL DEFAULT NULL ON UPDATE CURRENT_TIMESTAMP COMMENT '修改时间',
  `remarks` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NULL DEFAULT NULL COMMENT '备注',
  `del_flag` char(1) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NULL DEFAULT '0' COMMENT '删除标识（0-正常,1-删除）',
  PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci ROW_FORMAT = Dynamic;

-- ----------------------------
-- Records of sys_menu
-- ----------------------------
INSERT INTO `sys_menu` VALUES ('1', '系统管理', '0', NULL, 'M', 'system', '#', '', 'system', '0', 10, '0', NULL, 'admin', '2019-03-16 11:33:00', NULL, 'admin', '2020-03-16 20:45:21', '系统管理模块', '0');
INSERT INTO `sys_menu` VALUES ('10', '机构删除', '4', NULL, 'F', NULL, '#', 'dept_del', NULL, '0', 3, '0', NULL, NULL, '2020-03-12 20:42:57', NULL, NULL, '2020-03-16 20:43:02', NULL, '0');
INSERT INTO `sys_menu` VALUES ('105', '快捷方式新增', '43', NULL, 'F', NULL, '#', 'shortcut_add', NULL, '0', 1, '0', NULL, 'entfrm', '2020-03-27 09:44:13', NULL, NULL, NULL, NULL, '0');
INSERT INTO `sys_menu` VALUES ('106', '快捷方式修改', '43', NULL, 'F', NULL, '#', 'shortcut_edit', NULL, '0', 2, '0', NULL, 'entfrm', '2020-03-27 09:44:36', NULL, NULL, NULL, NULL, '0');
INSERT INTO `sys_menu` VALUES ('107', '快捷方式删除', '43', NULL, 'F', NULL, '#', 'shortcut_del', NULL, '0', 3, '0', NULL, 'entfrm', '2020-03-27 09:44:57', NULL, NULL, NULL, NULL, '0');
INSERT INTO `sys_menu` VALUES ('108', '快捷方式查看', '43', NULL, 'F', NULL, '#', 'shortcut_view', NULL, '0', 4, '0', NULL, 'entfrm', '2020-03-27 09:45:16', NULL, NULL, NULL, NULL, '0');
INSERT INTO `sys_menu` VALUES ('11', '机构查看', '4', NULL, 'F', NULL, '#', 'dept_view', NULL, '0', 4, '0', NULL, NULL, '2020-03-12 20:43:03', NULL, NULL, '2020-03-16 20:43:06', NULL, '0');
INSERT INTO `sys_menu` VALUES ('13', '角色新增', '5', NULL, 'F', NULL, '#', 'role_add', NULL, '0', 1, '0', NULL, 'entfrm', '2020-03-16 11:50:24', NULL, NULL, '2020-03-16 20:41:51', NULL, '0');
INSERT INTO `sys_menu` VALUES ('139', '应用管理', '1', NULL, 'C', 'application', 'system/application/index', NULL, 'tool', '1', 0, '0', NULL, 'entfrm', '2020-04-23 18:35:21', '1', 'admin', '2022-03-21 20:29:25', NULL, '1');
INSERT INTO `sys_menu` VALUES ('14', '角色修改', '5', NULL, 'F', NULL, '#', 'role_edit', NULL, '0', 2, '0', NULL, 'entfrm', '2020-03-16 11:51:05', NULL, NULL, '2020-03-16 20:41:44', NULL, '0');
INSERT INTO `sys_menu` VALUES ('140', '应用新增', '139', NULL, 'F', NULL, '#', 'application_add', '#', '1', 1, '0', NULL, 'entfrm', '2020-02-02 00:00:00', '1', 'admin', '2022-03-21 20:29:22', NULL, '1');
INSERT INTO `sys_menu` VALUES ('141', '应用修改', '139', NULL, 'F', NULL, '#', 'application_edit', '#', '1', 2, '0', NULL, 'entfrm', '2020-02-02 00:00:00', '1', 'admin', '2022-03-21 20:29:20', NULL, '1');
INSERT INTO `sys_menu` VALUES ('142', '应用删除', '139', NULL, 'F', NULL, '#', 'application_del', '#', '1', 3, '0', NULL, 'entfrm', '2020-02-02 00:00:00', '1', 'admin', '2022-03-21 20:29:18', NULL, '1');
INSERT INTO `sys_menu` VALUES ('143', '应用查询', '139', NULL, 'F', NULL, '#', 'application_view', '#', '1', 4, '0', NULL, 'entfrm', '2020-02-02 00:00:00', '1', 'admin', '2022-03-21 20:29:16', NULL, '1');
INSERT INTO `sys_menu` VALUES ('145', 'redis监控', '2', NULL, 'C', 'redis', 'monitor/redis/index', NULL, 'component', '1', 5, '1', NULL, 'entfrm', '2020-04-24 22:26:31', NULL, 'entfrm', '2020-05-17 16:49:59', NULL, '0');
INSERT INTO `sys_menu` VALUES ('15', '角色删除', '5', NULL, 'F', NULL, '#', 'role_del', NULL, '0', 3, '0', NULL, 'entfrm', '2020-03-16 11:51:21', NULL, NULL, '2020-03-16 20:41:41', NULL, '0');
INSERT INTO `sys_menu` VALUES ('16', '角色查看', '5', NULL, 'F', NULL, '#', 'role_view', NULL, '0', 4, '0', NULL, 'entfrm', '2020-03-16 11:51:40', NULL, NULL, '2020-03-16 20:41:37', NULL, '0');
INSERT INTO `sys_menu` VALUES ('17', '数据权限', '5', NULL, 'F', NULL, '#', 'role_data', NULL, '0', 5, '0', NULL, 'entfrm', '2020-03-16 12:15:50', NULL, NULL, '2020-03-16 20:41:34', NULL, '0');
INSERT INTO `sys_menu` VALUES ('18', '用户添加', '6', NULL, 'F', NULL, '#', 'user_add', NULL, '0', 1, '0', NULL, 'entfrm', '2020-03-16 20:31:15', NULL, NULL, '2020-03-16 20:41:31', NULL, '0');
INSERT INTO `sys_menu` VALUES ('19', '用户修改', '6', NULL, 'F', NULL, '#', 'user_edit', NULL, '0', 2, '0', NULL, 'entfrm', '2020-03-16 20:32:19', NULL, 'entfrm', '2020-03-16 20:41:28', NULL, '0');
INSERT INTO `sys_menu` VALUES ('2', '运维监控', '0', NULL, 'M', 'monitor', '#', '', 'monitor', '0', 20, '0', NULL, 'admin', '2019-03-16 11:33:00', NULL, 'admin', '2020-03-17 19:14:27', '运维监控模块', '0');
INSERT INTO `sys_menu` VALUES ('20', '用户删除', '6', NULL, 'F', NULL, '#', 'user_del', NULL, '0', 3, '0', NULL, 'entfrm', '2020-03-16 20:32:41', NULL, NULL, '2020-03-16 20:41:25', NULL, '0');
INSERT INTO `sys_menu` VALUES ('21', '用户查看', '6', NULL, 'F', NULL, '#', 'user_view', NULL, '0', 4, '0', NULL, 'entfrm', '2020-03-16 20:33:11', NULL, NULL, '2020-03-16 20:41:20', NULL, '0');
INSERT INTO `sys_menu` VALUES ('22', '重置密码', '6', NULL, 'F', NULL, '#', 'user_reset', NULL, '0', 5, '0', NULL, 'entfrm', '2020-03-16 20:34:22', NULL, 'entfrm', '2020-03-16 20:41:17', NULL, '0');
INSERT INTO `sys_menu` VALUES ('236', '令牌管理', '2', NULL, 'C', 'token', 'monitor/token/index', NULL, 'documentation', '1', 10, '0', NULL, 'admin', '2022-02-25 15:28:56', NULL, 'admin', '2022-02-25 15:29:32', NULL, '0');
INSERT INTO `sys_menu` VALUES ('25', '菜单新增', '7', NULL, 'F', NULL, '#', 'menu_add', NULL, '0', 1, '0', NULL, 'entfrm', '2020-03-16 20:38:18', NULL, NULL, '2020-03-16 20:41:10', NULL, '0');
INSERT INTO `sys_menu` VALUES ('26', '菜单修改', '7', NULL, 'F', NULL, '#', 'menu_edit', NULL, '0', 2, '0', NULL, 'entfrm', '2020-03-16 20:38:41', NULL, 'entfrm', '2020-03-16 20:41:07', NULL, '0');
INSERT INTO `sys_menu` VALUES ('27', '菜单删除', '7', NULL, 'F', NULL, '#', 'menu_del', NULL, '0', 3, '0', NULL, 'entfrm', '2020-03-16 20:39:04', NULL, NULL, '2020-03-16 20:41:04', NULL, '0');
INSERT INTO `sys_menu` VALUES ('28', '菜单查看', '7', NULL, 'F', NULL, '#', 'menu_view', NULL, '0', 4, '0', NULL, 'entfrm', '2020-03-16 20:39:39', NULL, NULL, '2020-03-16 20:41:01', NULL, '0');
INSERT INTO `sys_menu` VALUES ('29', '字典管理', '1', '6', 'C', 'dict', 'system/dict/index', '', 'dict', '0', 5, '0', NULL, 'entfrm', '2020-03-16 11:33:00', NULL, '', '2020-03-16 11:33:00', '字典管理菜单', '0');
INSERT INTO `sys_menu` VALUES ('30', '字典新增', '29', NULL, 'F', NULL, '#', 'dict_add', NULL, '0', 1, '0', NULL, 'entfrm', '2020-03-16 20:50:45', NULL, NULL, NULL, NULL, '0');
INSERT INTO `sys_menu` VALUES ('31', '字典修改', '29', NULL, 'F', NULL, '#', 'dict_edit', NULL, '0', 2, '0', NULL, 'entfrm', '2020-03-16 20:51:01', NULL, NULL, NULL, NULL, '0');
INSERT INTO `sys_menu` VALUES ('32', '字典删除', '29', NULL, 'F', NULL, '#', 'dict_del', NULL, '0', 3, '0', NULL, 'entfrm', '2020-03-16 20:52:18', NULL, NULL, NULL, NULL, '0');
INSERT INTO `sys_menu` VALUES ('33', '字典查看', '29', NULL, 'F', NULL, '#', 'dict_view', NULL, '0', 4, '0', NULL, 'entfrm', '2020-03-16 20:52:38', NULL, NULL, NULL, NULL, '0');
INSERT INTO `sys_menu` VALUES ('34', '数据增加', '29', NULL, 'F', NULL, '#', 'dictData_add', NULL, '0', 5, '0', NULL, 'entfrm', '2020-03-16 21:49:18', NULL, NULL, NULL, NULL, '0');
INSERT INTO `sys_menu` VALUES ('35', '数据修改', '29', NULL, 'F', NULL, '#', 'dictData_edit', NULL, '0', 6, '0', NULL, 'entfrm', '2020-03-16 21:49:36', NULL, NULL, NULL, NULL, '0');
INSERT INTO `sys_menu` VALUES ('36', '数据删除', '29', NULL, 'F', NULL, '#', 'dictData_del', NULL, '0', 7, '0', NULL, 'entfrm', '2020-03-16 21:50:00', NULL, NULL, NULL, NULL, '0');
INSERT INTO `sys_menu` VALUES ('37', '数据查看', '29', NULL, 'F', NULL, '#', 'dictData_view', NULL, '0', 8, '0', NULL, 'entfrm', '2020-03-16 21:50:19', NULL, NULL, NULL, NULL, '0');
INSERT INTO `sys_menu` VALUES ('38', '参数管理', '1', NULL, 'C', 'config', 'system/config/index', NULL, 'list', '0', 6, '0', NULL, 'entfrm', '2020-03-16 22:06:52', NULL, NULL, '2020-03-16 22:11:13', NULL, '0');
INSERT INTO `sys_menu` VALUES ('39', '参数新增', '38', NULL, 'F', NULL, '#', 'config_add', NULL, '0', 1, '0', NULL, 'entfrm', '2020-03-16 22:07:16', NULL, NULL, NULL, NULL, '0');
INSERT INTO `sys_menu` VALUES ('4', '机构管理', '1', NULL, 'C', 'dept', 'system/dept/index', '', 'tree', '0', 1, '0', NULL, NULL, '2020-03-13 19:31:20', NULL, NULL, '2020-03-14 20:55:41', NULL, '0');
INSERT INTO `sys_menu` VALUES ('40', '参数修改', '38', NULL, 'F', NULL, '#', 'config_edit', NULL, '0', 2, '0', NULL, 'entfrm', '2020-03-16 22:07:30', NULL, NULL, NULL, NULL, '0');
INSERT INTO `sys_menu` VALUES ('41', '参数删除', '38', NULL, 'F', NULL, '#', 'config_del', NULL, '0', 3, '0', NULL, 'entfrm', '2020-03-16 22:07:43', NULL, NULL, NULL, NULL, '0');
INSERT INTO `sys_menu` VALUES ('42', '参数查看', '38', NULL, 'F', NULL, '#', 'config_view', NULL, '0', 4, '0', NULL, 'entfrm', '2020-03-16 22:08:06', NULL, NULL, NULL, NULL, '0');
INSERT INTO `sys_menu` VALUES ('43', '快捷方式', '1', NULL, 'C', 'shortcut', 'system/shortcut/index', NULL, 'link', '0', 7, '0', NULL, 'entfrm', '2020-03-17 17:53:08', NULL, NULL, NULL, NULL, '0');
INSERT INTO `sys_menu` VALUES ('49', '数据监控', '2', NULL, 'C', 'druid', 'monitor/druid/index', NULL, 'druid', '0', 3, '1', NULL, 'entfrm', '2020-03-17 18:08:56', NULL, 'admin', '2022-01-23 10:44:10', NULL, '0');
INSERT INTO `sys_menu` VALUES ('5', '角色管理', '1', NULL, 'C', 'role', 'system/role/index', '', 'peoples', '0', 2, '0', NULL, NULL, '2020-03-13 19:32:09', NULL, NULL, '2020-03-16 22:11:57', NULL, '0');
INSERT INTO `sys_menu` VALUES ('52', '日志监控', '2', NULL, 'M', 'log', '#', NULL, 'monitor', '0', 7, '0', NULL, 'entfrm', '2020-03-17 18:12:01', NULL, 'admin', '2020-05-17 16:48:23', NULL, '0');
INSERT INTO `sys_menu` VALUES ('54', '操作日志', '52', NULL, 'C', 'operLog', 'monitor/operLog/index', NULL, 'log', '0', 2, '0', NULL, 'entfrm', '2020-03-17 18:13:52', NULL, 'entfrm', '2020-03-18 22:31:36', NULL, '0');
INSERT INTO `sys_menu` VALUES ('6', '用户管理', '1', NULL, 'C', 'user', 'system/user/index', '', 'user', '0', 3, '0', NULL, NULL, '2020-03-13 19:32:30', NULL, NULL, '2020-03-16 22:11:59', NULL, '0');
INSERT INTO `sys_menu` VALUES ('66', '操作日志删除', '54', NULL, 'F', NULL, '#', 'operLog_del', NULL, '0', 1, '0', NULL, 'entfrm', '2020-03-19 11:52:25', NULL, NULL, NULL, NULL, '0');
INSERT INTO `sys_menu` VALUES ('67', '操作日志查看', '54', NULL, 'F', NULL, '#', 'operLog_view', NULL, '0', 2, '0', NULL, 'entfrm', '2020-03-19 11:52:45', NULL, NULL, NULL, NULL, '0');
INSERT INTO `sys_menu` VALUES ('68', '操作日志导出', '54', NULL, 'F', NULL, '#', 'operLog_export', NULL, '0', 3, '0', NULL, 'entfrm', '2020-03-19 11:53:09', NULL, NULL, NULL, NULL, '0');
INSERT INTO `sys_menu` VALUES ('7', '菜单管理', '1', NULL, 'C', 'menu', 'system/menu/index', '', 'tree-table', '0', 4, '0', NULL, NULL, '2020-03-13 19:33:24', NULL, NULL, '2020-03-16 22:12:01', NULL, '0');
INSERT INTO `sys_menu` VALUES ('8', '机构新增', '4', NULL, 'F', NULL, '#', 'dept_add', NULL, '0', 1, '0', NULL, NULL, '2020-03-12 20:42:47', NULL, NULL, '2020-03-16 20:42:51', NULL, '0');
INSERT INTO `sys_menu` VALUES ('9', '机构修改', '4', NULL, 'F', NULL, '#', 'dept_edit', NULL, '0', 2, '0', NULL, NULL, '2020-03-12 20:42:52', NULL, NULL, '2020-03-16 20:42:56', NULL, '0');

-- ----------------------------
-- Table structure for sys_oauth_client_details
-- ----------------------------
DROP TABLE IF EXISTS `sys_oauth_client_details`;
CREATE TABLE `sys_oauth_client_details`  (
  `client_id` varchar(32) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '客户端ID',
  `resource_ids` varchar(256) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '资源列表',
  `client_secret` varchar(256) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '客户端密钥',
  `scope` varchar(256) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '域',
  `authorized_grant_types` varchar(256) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '认证类型',
  `web_server_redirect_uri` varchar(256) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '重定向地址',
  `authorities` varchar(256) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '角色列表',
  `access_token_validity` int(11) NULL DEFAULT NULL COMMENT 'token 有效期',
  `refresh_token_validity` int(11) NULL DEFAULT NULL COMMENT '刷新令牌有效期',
  `additional_information` varchar(4096) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '令牌扩展字段JSON',
  `autoapprove` varchar(256) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '是否自动放行',
  `create_by_id` varchar(32) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '创建id',
  `create_by_name` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '创建人',
  `create_time` datetime NULL DEFAULT NULL COMMENT '创建时间',
  `update_by_id` varchar(32) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '更新id',
  `update_by_name` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '更新人',
  `update_time` datetime NULL DEFAULT NULL COMMENT '更新时间',
  PRIMARY KEY (`client_id`) USING BTREE
) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '终端信息表' ROW_FORMAT = Dynamic;

-- ----------------------------
-- Records of sys_oauth_client_details
-- ----------------------------
INSERT INTO `sys_oauth_client_details` VALUES ('app', NULL, 'app', 'server', 'app,refresh_token', NULL, NULL, NULL, NULL, NULL, 'true', NULL, NULL, NULL, NULL, NULL, NULL);
INSERT INTO `sys_oauth_client_details` VALUES ('daemon', NULL, 'daemon', 'server', 'password,refresh_token', NULL, NULL, NULL, NULL, NULL, 'true', NULL, NULL, NULL, NULL, NULL, NULL);
INSERT INTO `sys_oauth_client_details` VALUES ('kicc', NULL, 'kicc', 'server', 'password,app,refresh_token,authorization_code,client_credentials', 'https://www.baidu.com/', NULL, NULL, NULL, '{\"appName\":\"康来生物\",\"website\":\"https://www.kanglailab.com\"}', 'false', NULL, NULL, NULL, NULL, NULL, NULL);
INSERT INTO `sys_oauth_client_details` VALUES ('test', NULL, 'test', 'server', 'password,app,refresh_token', NULL, NULL, NULL, NULL, NULL, 'true', NULL, NULL, NULL, NULL, NULL, NULL);

-- ----------------------------
-- Table structure for sys_oper_log
-- ----------------------------
DROP TABLE IF EXISTS `sys_oper_log`;
CREATE TABLE `sys_oper_log`  (
  `id` varchar(32) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '日志编号',
  `type` varchar(10) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '1' COMMENT '日志类型',
  `title` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '' COMMENT '日志标题',
  `method` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '' COMMENT '方法名称',
  `service_id` varchar(32) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '服务ID',
  `user_agent` text CHARACTER SET utf8 COLLATE utf8_general_ci NULL COMMENT '用户代理',
  `oper_name` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '' COMMENT '操作人员',
  `client_id` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '' COMMENT '终端',
  `oper_url` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '' COMMENT '请求URL',
  `oper_ip` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '' COMMENT '主机地址',
  `oper_addr` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '' COMMENT '操作地点',
  `oper_param` text CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL COMMENT '请求参数',
  `status` int(1) NULL DEFAULT 0 COMMENT '操作状态（0正常 1异常）',
  `error_msg` text CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL COMMENT '错误消息',
  `execute_time` varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '执行时间',
  `oper_time` datetime NULL DEFAULT NULL COMMENT '操作时间',
  `create_by_id` varchar(32) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '创建id',
  `create_by_name` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '创建人',
  `create_time` datetime NULL DEFAULT NULL COMMENT '创建时间',
  `update_by_id` varchar(32) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '更新id',
  `update_by_name` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '更新人',
  `update_time` datetime NULL DEFAULT NULL COMMENT '更新时间',
  PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_general_ci ROW_FORMAT = Dynamic;

-- ----------------------------
-- Records of sys_oper_log
-- ----------------------------
INSERT INTO `sys_oper_log` VALUES ('1505896326514978817', '0', '登录成功', 'POST', 'kicc', 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/99.0.4844.51 Safari/537.36', 'admin', 'kicc', '/oauth/token', '127.0.0.1', '127.0.0.1', 'password=%5B123456%5D&code=%5Ba8bg%5D&grant_type=%5Bpassword%5D&scope=%5Bserver%5D&realKey=%5Bfb45a6b19c6fd3e7a0d75bb59c4bfb98%5D&username=%5Badmin%5D', 0, NULL, '2毫秒', '2022-03-21 21:17:15', '1', 'admin', '2022-03-21 21:17:17', '1', 'admin', NULL);
INSERT INTO `sys_oper_log` VALUES ('1505897993692098561', '0', '字典删除', 'DELETE', 'kicc', 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/99.0.4844.51 Safari/537.36', 'admin', 'kicc', '/system/dict/remove/11,12,13,15,16,17,18', '127.0.0.1', '127.0.0.1', '', 0, NULL, '25毫秒', '2022-03-21 21:23:54', '1', 'admin', '2022-03-21 21:23:55', '1', 'admin', NULL);
INSERT INTO `sys_oper_log` VALUES ('1505898063552425985', '0', '字典删除', 'DELETE', 'kicc', 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/99.0.4844.51 Safari/537.36', 'admin', 'kicc', '/system/dict/remove/20,21', '127.0.0.1', '127.0.0.1', '', 0, NULL, '3毫秒', '2022-03-21 21:24:11', '1', 'admin', '2022-03-21 21:24:11', '1', 'admin', NULL);
INSERT INTO `sys_oper_log` VALUES ('1505898080786821121', '0', '字典删除', 'DELETE', 'kicc', 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/99.0.4844.51 Safari/537.36', 'admin', 'kicc', '/system/dict/remove/7', '127.0.0.1', '127.0.0.1', '', 0, NULL, '3毫秒', '2022-03-21 21:24:15', '1', 'admin', '2022-03-21 21:24:15', '1', 'admin', NULL);
INSERT INTO `sys_oper_log` VALUES ('1505902151899918338', '0', '角色新增', 'POST', 'kicc', 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/99.0.4844.51 Safari/537.36', 'admin', 'kicc', '/system/role/save', '127.0.0.1', '127.0.0.1', '', 0, NULL, '12毫秒', '2022-03-21 21:40:25', '1', 'admin', '2022-03-21 21:40:26', '1', 'admin', NULL);
INSERT INTO `sys_oper_log` VALUES ('1505902332351459330', '0', '退出成功', 'DELETE', 'kicc', 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/99.0.4844.51 Safari/537.36', 'admin', 'kicc', '/token/logout', '127.0.0.1', '127.0.0.1', 'Bearer 84424c14-708b-4159-a9ff-886aca9a934b', 0, NULL, '0毫秒', '2022-03-21 21:41:08', '1', 'admin', '2022-03-21 21:41:09', '1', 'admin', NULL);
INSERT INTO `sys_oper_log` VALUES ('1505902357383065602', '0', '登录成功', 'POST', 'kicc', 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/99.0.4844.51 Safari/537.36', 'admin', 'kicc', '/oauth/token', '127.0.0.1', '127.0.0.1', 'password=%5B123456%5D&code=%5Buaw3%5D&grant_type=%5Bpassword%5D&scope=%5Bserver%5D&realKey=%5Be515f6bf162cb6cc28d48e2c6d831639%5D&username=%5Badmin%5D', 0, NULL, '0毫秒', '2022-03-21 21:41:14', '1', 'admin', '2022-03-21 21:41:15', '1', 'admin', NULL);

-- ----------------------------
-- Table structure for sys_role
-- ----------------------------
DROP TABLE IF EXISTS `sys_role`;
CREATE TABLE `sys_role`  (
  `id` varchar(32) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL,
  `name` varchar(60) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NOT NULL COMMENT '角色名称',
  `code` varchar(60) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NOT NULL COMMENT '角色代码',
  `data_scope` char(1) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NOT NULL DEFAULT '2' COMMENT '数据权限范围',
  `sort` int(11) NULL DEFAULT NULL COMMENT '排序',
  `status` char(1) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '0' COMMENT '状态',
  `create_by_id` varchar(32) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '创建id',
  `create_by_name` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '创建者',
  `create_time` datetime NULL DEFAULT NULL COMMENT '创建时间',
  `update_by_id` varchar(32) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '修改id',
  `update_by_name` varchar(64) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '修改人',
  `update_time` datetime NULL DEFAULT NULL ON UPDATE CURRENT_TIMESTAMP COMMENT '修改时间',
  `remarks` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NULL DEFAULT NULL COMMENT '备注',
  `del_flag` char(1) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NULL DEFAULT '0' COMMENT '删除标识（0-正常,1-删除）',
  PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci ROW_FORMAT = Dynamic;

-- ----------------------------
-- Records of sys_role
-- ----------------------------
INSERT INTO `sys_role` VALUES ('1', '管理员', 'admin', '1', 1, '0', NULL, NULL, '2020-03-13 20:54:34', '1', 'entfrm', '2020-08-02 21:44:58', NULL, '0');
INSERT INTO `sys_role` VALUES ('1505902151883141121', '省长角色', 'scjs', '2', 0, '0', '1', 'admin', '2022-03-21 21:40:26', NULL, NULL, NULL, NULL, '0');
INSERT INTO `sys_role` VALUES ('2', '测试角色', 'test', '2', 1, '0', NULL, NULL, '2020-03-14 18:15:51', NULL, 'entfrm', '2020-08-02 21:44:57', NULL, '0');
INSERT INTO `sys_role` VALUES ('3', 'cs', 'cs', '2', 0, '0', NULL, NULL, '2022-03-10 16:53:08', NULL, 'admin', '2022-03-10 16:53:12', NULL, '1');

-- ----------------------------
-- Table structure for sys_role_dept
-- ----------------------------
DROP TABLE IF EXISTS `sys_role_dept`;
CREATE TABLE `sys_role_dept`  (
  `role_id` varchar(32) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '角色ID',
  `dept_id` varchar(32) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '部门ID'
) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci ROW_FORMAT = Dynamic;

-- ----------------------------
-- Records of sys_role_dept
-- ----------------------------
INSERT INTO `sys_role_dept` VALUES ('2', '2');

-- ----------------------------
-- Table structure for sys_role_menu
-- ----------------------------
DROP TABLE IF EXISTS `sys_role_menu`;
CREATE TABLE `sys_role_menu`  (
  `role_id` varchar(32) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL,
  `menu_id` varchar(32) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL
) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci ROW_FORMAT = Dynamic;

-- ----------------------------
-- Records of sys_role_menu
-- ----------------------------
INSERT INTO `sys_role_menu` VALUES ('2', '11');
INSERT INTO `sys_role_menu` VALUES ('2', '16');
INSERT INTO `sys_role_menu` VALUES ('2', '7');
INSERT INTO `sys_role_menu` VALUES ('2', '25');
INSERT INTO `sys_role_menu` VALUES ('2', '26');
INSERT INTO `sys_role_menu` VALUES ('2', '27');
INSERT INTO `sys_role_menu` VALUES ('2', '28');
INSERT INTO `sys_role_menu` VALUES ('2', '33');
INSERT INTO `sys_role_menu` VALUES ('2', '1');
INSERT INTO `sys_role_menu` VALUES ('2', '4');
INSERT INTO `sys_role_menu` VALUES ('2', '5');
INSERT INTO `sys_role_menu` VALUES ('2', '29');
INSERT INTO `sys_role_menu` VALUES ('1', '4');
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', '5');
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', '6');
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', '7');
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', '29');
INSERT INTO `sys_role_menu` VALUES ('1', '30');
INSERT INTO `sys_role_menu` VALUES ('1', '31');
INSERT INTO `sys_role_menu` VALUES ('1', '32');
INSERT INTO `sys_role_menu` VALUES ('1', '33');
INSERT INTO `sys_role_menu` VALUES ('1', '34');
INSERT INTO `sys_role_menu` VALUES ('1', '35');
INSERT INTO `sys_role_menu` VALUES ('1', '36');
INSERT INTO `sys_role_menu` VALUES ('1', '37');
INSERT INTO `sys_role_menu` VALUES ('1', '38');
INSERT INTO `sys_role_menu` VALUES ('1', '39');
INSERT INTO `sys_role_menu` VALUES ('1', '40');
INSERT INTO `sys_role_menu` VALUES ('1', '41');
INSERT INTO `sys_role_menu` VALUES ('1', '42');
INSERT INTO `sys_role_menu` VALUES ('1', '43');
INSERT INTO `sys_role_menu` VALUES ('1', '105');
INSERT INTO `sys_role_menu` VALUES ('1', '106');
INSERT INTO `sys_role_menu` VALUES ('1', '107');
INSERT INTO `sys_role_menu` VALUES ('1', '108');
INSERT INTO `sys_role_menu` VALUES ('1', '2');
INSERT INTO `sys_role_menu` VALUES ('1', '52');
INSERT INTO `sys_role_menu` VALUES ('1', '54');
INSERT INTO `sys_role_menu` VALUES ('1', '66');
INSERT INTO `sys_role_menu` VALUES ('1', '67');
INSERT INTO `sys_role_menu` VALUES ('1', '68');
INSERT INTO `sys_role_menu` VALUES ('1', '236');
INSERT INTO `sys_role_menu` VALUES ('1', '1');

-- ----------------------------
-- Table structure for sys_shortcut
-- ----------------------------
DROP TABLE IF EXISTS `sys_shortcut`;
CREATE TABLE `sys_shortcut`  (
  `id` varchar(32) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL,
  `name` varchar(30) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '名称',
  `region` varchar(20) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '区域',
  `icon` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '图标',
  `bg_color` varchar(10) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '#409EFF' COMMENT '背景颜色',
  `path` varchar(120) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '路径',
  `sort` int(11) NULL DEFAULT NULL COMMENT '顺序',
  `create_by_id` varchar(32) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '创建id',
  `create_by_name` varchar(64) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '创建者',
  `create_time` datetime NULL DEFAULT NULL COMMENT '创建时间',
  `update_by_id` varchar(32) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '更新id',
  `update_by_name` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '' COMMENT '更新者',
  `update_time` datetime NULL DEFAULT NULL COMMENT '更新时间',
  `remarks` varchar(500) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '备注',
  `del_flag` char(1) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NULL DEFAULT '0' COMMENT '0-正常，1-删除',
  PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_general_ci ROW_FORMAT = Dynamic;

-- ----------------------------
-- Records of sys_shortcut
-- ----------------------------
INSERT INTO `sys_shortcut` VALUES ('1', '登录日志', '2', 'form', '#2883CD', 'monitor/log/loginLog', 1, NULL, NULL, '2020-03-27 10:09:11', NULL, '', '2020-03-27 10:12:39', '1', '0');
INSERT INTO `sys_shortcut` VALUES ('2', '内容管理', '2', 'edit', '#EB7024', '/cms/article', 2, NULL, NULL, '2020-04-15 22:44:58', NULL, '', '2020-06-02 08:59:06', NULL, '0');

-- ----------------------------
-- Table structure for sys_user
-- ----------------------------
DROP TABLE IF EXISTS `sys_user`;
CREATE TABLE `sys_user`  (
  `id` varchar(32) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL,
  `user_name` varchar(30) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '用户账号',
  `nick_name` varchar(30) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '用户昵称',
  `type` varchar(2) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '00' COMMENT '用户类型（00系统用户）',
  `password` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '' COMMENT '密码',
  `dept_id` varchar(32) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '机构ID',
  `dept_name` varchar(120) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '机构名称',
  `email` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '' COMMENT '用户邮箱',
  `qq` varchar(30) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT 'QQ',
  `phone` varchar(11) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '' COMMENT '手机号码',
  `sex` char(1) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '0' COMMENT '用户性别（0男 1女 2未知）',
  `avatar` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '' COMMENT '头像地址',
  `status` char(1) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '0' COMMENT '帐号状态（0正常 1停用）',
  `login_ip` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '' COMMENT '最后登陆IP',
  `login_time` datetime NULL DEFAULT NULL COMMENT '最后登陆时间',
  `create_by_id` varchar(32) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '创建id',
  `create_by_name` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '创建者',
  `create_time` datetime NULL DEFAULT NULL COMMENT '创建时间',
  `update_by_id` varchar(32) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '更新id',
  `update_by_name` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '' COMMENT '更新者',
  `update_time` datetime NULL DEFAULT NULL COMMENT '更新时间',
  `remarks` varchar(500) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '备注',
  `del_flag` char(1) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '0' COMMENT '删除标志（0代表存在 1代表删除）',
  PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '用户信息表' ROW_FORMAT = Dynamic;

-- ----------------------------
-- Records of sys_user
-- ----------------------------
INSERT INTO `sys_user` VALUES ('1', 'admin', '管理员', '00', '$2a$10$jvVGvS6QOtD.x3UwuZRSgepL.zKul6NRg2kVnRVDUdeN2FErIQgNy', '1', '康来生物长沙总公司', '111@qq.com', NULL, '15611111111', '0', '', '0', '', NULL, NULL, NULL, '2020-03-13 20:56:44', NULL, '', '2022-02-25 15:20:56', '全栈工程师', '0');
INSERT INTO `sys_user` VALUES ('2', 'test', '测试01', '00', '$2a$10$jvVGvS6QOtD.x3UwuZRSgepL.zKul6NRg2kVnRVDUdeN2FErIQgNy', '1', '康来生物长沙总公司', '182@11.com', NULL, '15780454444', '0', '', '0', '', NULL, NULL, NULL, '2020-03-14 18:14:11', NULL, '', '2022-01-15 13:53:59', NULL, '0');

-- ----------------------------
-- Table structure for sys_user_role
-- ----------------------------
DROP TABLE IF EXISTS `sys_user_role`;
CREATE TABLE `sys_user_role`  (
  `user_id` varchar(32) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL,
  `role_id` varchar(32) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL
) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci ROW_FORMAT = Dynamic;

-- ----------------------------
-- Records of sys_user_role
-- ----------------------------
INSERT INTO `sys_user_role` VALUES ('4', '2');
INSERT INTO `sys_user_role` VALUES ('3', '2');
INSERT INTO `sys_user_role` VALUES ('5', '2');
INSERT INTO `sys_user_role` VALUES ('8', '2');
INSERT INTO `sys_user_role` VALUES ('9', '2');
INSERT INTO `sys_user_role` VALUES ('3', '1');
INSERT INTO `sys_user_role` VALUES ('4', '1');
INSERT INTO `sys_user_role` VALUES ('5', '1');
INSERT INTO `sys_user_role` VALUES ('6', '1');
INSERT INTO `sys_user_role` VALUES ('7', '1');
INSERT INTO `sys_user_role` VALUES ('8', '1');
INSERT INTO `sys_user_role` VALUES ('9', '1');
INSERT INTO `sys_user_role` VALUES ('10', '1');
INSERT INTO `sys_user_role` VALUES ('2', '1');
INSERT INTO `sys_user_role` VALUES ('1', '1');

-- ----------------------------
-- Table structure for undo_log
-- ----------------------------
DROP TABLE IF EXISTS `undo_log`;
CREATE TABLE `undo_log`  (
  `id` bigint(20) NOT NULL AUTO_INCREMENT,
  `branch_id` bigint(20) NOT NULL,
  `xid` varchar(100) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL,
  `context` varchar(128) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL,
  `rollback_info` longblob NOT NULL,
  `log_status` int(11) NOT NULL,
  `log_created` datetime NOT NULL,
  `log_modified` datetime NOT NULL,
  `ext` varchar(100) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL,
  PRIMARY KEY (`id`) USING BTREE,
  UNIQUE INDEX `ux_undo_log`(`xid`, `branch_id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 6 CHARACTER SET = utf8 COLLATE = utf8_general_ci ROW_FORMAT = Dynamic;

-- ----------------------------
-- Records of undo_log
-- ----------------------------

SET FOREIGN_KEY_CHECKS = 1;
