/*
Navicat MySQL Data Transfer

Source Server         : localhost
Source Server Version : 50711
Source Host           : 127.0.0.1:3306
Source Database       : guns_base

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

Date: 2018-10-17 14:11:53
*/


-- ----------------------------
-- Table structure for sys_dept
-- ----------------------------
CREATE TABLE `sys_dept` (
  `id` varchar(32) NOT NULL COMMENT '主键id',
  `num` int(11) DEFAULT NULL COMMENT '排序',
  `pid` varchar(32) DEFAULT NULL COMMENT '父部门id',
  `pids` varchar(255) DEFAULT NULL COMMENT '父级ids',
  `simplename` varchar(45) DEFAULT NULL COMMENT '简称',
  `fullname` varchar(255) DEFAULT NULL COMMENT '全称',
  `tips` varchar(255) DEFAULT NULL COMMENT '提示',
  `version` int(11) DEFAULT NULL COMMENT '版本（乐观锁保留字段）',
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='部门表';

-- ----------------------------
-- Records of sys_dept
-- ----------------------------
INSERT INTO `sys_dept` VALUES ('24', '1', '0', '[0],', '燃气集团总公司', '燃气集团总公司', '', null);
INSERT INTO `sys_dept` VALUES ('25', '2', '24', '[0],[24],', '第一分公司', '第一分公司', '', null);
INSERT INTO `sys_dept` VALUES ('26', '3', '24', '[0],[24],', '第二分公司', '第二分公司', '', null);
INSERT INTO `sys_dept` VALUES ('27', '4', '24', '[0],[24],', '第三分公司', '第三分公司', '', null);
INSERT INTO `sys_dept` VALUES ('28', '4', '24', '[0],[24],', '第四分公司', '第四分公司', '', null);
INSERT INTO `sys_dept` VALUES ('29', '5', '24', '[0],[24],', '高压管网分公司', '高压管网分公司', '', null);
INSERT INTO `sys_dept` VALUES ('30', '2', '0', '[0],', 'B公司', 'B公司', '', null);

-- ----------------------------
-- Table structure for sys_dict
-- ----------------------------
CREATE TABLE `sys_dict` (
  `id` varchar(32) NOT NULL COMMENT '主键id',
  `num` int(11) DEFAULT NULL COMMENT '排序',
  `pid` varchar(32) DEFAULT NULL COMMENT '父级字典',
  `name` varchar(255) DEFAULT NULL COMMENT '名称',
  `tips` varchar(255) DEFAULT NULL COMMENT '提示',
  `code` varchar(32) DEFAULT NULL COMMENT '字典值',
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='字典表';

-- ----------------------------
-- Records of sys_dict
-- ----------------------------
INSERT INTO `sys_dict` VALUES ('16', '0', '0', '状态', null, '0');
INSERT INTO `sys_dict` VALUES ('17', '1', '16', '启用', null, '1');
INSERT INTO `sys_dict` VALUES ('18', '2', '16', '禁用', null, '2');
INSERT INTO `sys_dict` VALUES ('29', '0', '0', '性别', null, '0');
INSERT INTO `sys_dict` VALUES ('30', '1', '29', '男', null, '1');
INSERT INTO `sys_dict` VALUES ('31', '2', '29', '女', null, '2');
INSERT INTO `sys_dict` VALUES ('35', '0', '0', '账号状态', null, '0');
INSERT INTO `sys_dict` VALUES ('36', '1', '35', '启用', null, '1');
INSERT INTO `sys_dict` VALUES ('37', '2', '35', '冻结', null, '2');
INSERT INTO `sys_dict` VALUES ('38', '3', '35', '已删除', null, '3');
INSERT INTO `sys_dict` VALUES ('39', '0', '0', '设备类型', null, '0');
INSERT INTO `sys_dict` VALUES ('40', '1', '39', '井盖传感器', null, '1');
INSERT INTO `sys_dict` VALUES ('41', '2', '39', '液位监测仪', null, '2');
INSERT INTO `sys_dict` VALUES ('42', '3', '39', '燃气监测', null, '3');
INSERT INTO `sys_dict` VALUES ('43', '0', '0', '在线状态', null, '0');
INSERT INTO `sys_dict` VALUES ('44', '0', '43', '离线', null, '0');
INSERT INTO `sys_dict` VALUES ('45', '1', '43', '在线', null, '1');
INSERT INTO `sys_dict` VALUES ('46', '0', '0', '井盖状态', null, '0');
INSERT INTO `sys_dict` VALUES ('47', '0', '46', '正常', null, '0');
INSERT INTO `sys_dict` VALUES ('48', '1', '46', '开启', null, '1');
INSERT INTO `sys_dict` VALUES ('49', '2', '46', '低电量', null, '2');
INSERT INTO `sys_dict` VALUES ('50', '3', '46', '故障', null, '3');

-- ----------------------------
-- Table structure for sys_expense
-- ----------------------------
CREATE TABLE `sys_expense` (
  `id` varchar(32) NOT NULL,
  `money` decimal(20,2) DEFAULT NULL COMMENT '报销金额',
  `desc` varchar(255) DEFAULT '' COMMENT '描述',
  `createtime` datetime DEFAULT CURRENT_TIMESTAMP,
  `state` int(11) DEFAULT NULL COMMENT '状态: 1.待提交  2:待审核   3.审核通过 4:驳回',
  `userid` varchar(32) DEFAULT NULL COMMENT '用户id',
  `processId` varchar(255) DEFAULT NULL COMMENT '流程定义id',
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='报销表';

-- ----------------------------
-- Records of sys_expense
-- ----------------------------

-- ----------------------------
-- Table structure for sys_login_log
-- ----------------------------
CREATE TABLE `sys_login_log` (
  `id` varchar(32) NOT NULL COMMENT '主键',
  `logname` varchar(255) DEFAULT NULL COMMENT '日志名称',
  `userid` varchar(32) DEFAULT NULL COMMENT '管理员id',
  `createtime` datetime DEFAULT NULL COMMENT '创建时间',
  `succeed` varchar(255) DEFAULT NULL COMMENT '是否执行成功',
  `message` text COMMENT '具体消息',
  `ip` varchar(255) DEFAULT NULL COMMENT '登录ip',
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='登录记录';

-- ----------------------------
-- Records of sys_login_log
-- ----------------------------
INSERT INTO `sys_login_log` VALUES ('0ed8578b3b634b63a851a1960cb48648', '登录日志', '1', '2018-10-17 14:10:45', '成功', null, '0:0:0:0:0:0:0:1');
INSERT INTO `sys_login_log` VALUES ('8b32734b1dd2433a98571c7fb6382ea2', '退出日志', '1', '2018-10-17 14:10:44', '成功', null, '0:0:0:0:0:0:0:1');

-- ----------------------------
-- Table structure for sys_menu
-- ----------------------------
CREATE TABLE `sys_menu` (
  `id` varchar(32) NOT NULL COMMENT '主键id',
  `code` varchar(255) DEFAULT NULL COMMENT '菜单编号',
  `pcode` varchar(255) DEFAULT NULL COMMENT '菜单父编号',
  `pcodes` varchar(255) DEFAULT NULL COMMENT '当前菜单的所有父菜单编号',
  `name` varchar(255) DEFAULT NULL COMMENT '菜单名称',
  `icon` varchar(255) DEFAULT NULL COMMENT '菜单图标',
  `url` varchar(255) DEFAULT NULL COMMENT 'url地址',
  `num` int(65) DEFAULT NULL COMMENT '菜单排序号',
  `levels` int(65) DEFAULT NULL COMMENT '菜单层级',
  `ismenu` varchar(32) DEFAULT NULL COMMENT '是否是菜单（1：是  0：不是）',
  `tips` varchar(255) DEFAULT NULL COMMENT '备注',
  `status` varchar(32) DEFAULT NULL COMMENT '菜单状态 :  1:启用   0:不启用',
  `isopen` varchar(32) DEFAULT NULL COMMENT '是否打开:    1:打开   0:不打开',
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='菜单表';

-- ----------------------------
-- Records of sys_menu
-- ----------------------------
INSERT INTO `sys_menu` VALUES ('105', 'system', '0', '[0],', '系统管理', 'fa-user', '#', '4', '1', '1', null, '1', '1');
INSERT INTO `sys_menu` VALUES ('106', 'mgr', 'system', '[0],[system],', '用户管理', '', '/mgr', '1', '2', '1', null, '1', '0');
INSERT INTO `sys_menu` VALUES ('107', 'mgr_add', 'mgr', '[0],[system],[mgr],', '添加用户', null, '/mgr/add', '1', '3', '0', null, '1', '0');
INSERT INTO `sys_menu` VALUES ('108', 'mgr_edit', 'mgr', '[0],[system],[mgr],', '修改用户', null, '/mgr/edit', '2', '3', '0', null, '1', '0');
INSERT INTO `sys_menu` VALUES ('109', 'mgr_delete', 'mgr', '[0],[system],[mgr],', '删除用户', null, '/mgr/delete', '3', '3', '0', null, '1', '0');
INSERT INTO `sys_menu` VALUES ('110', 'mgr_reset', 'mgr', '[0],[system],[mgr],', '重置密码', null, '/mgr/reset', '4', '3', '0', null, '1', '0');
INSERT INTO `sys_menu` VALUES ('111', 'mgr_freeze', 'mgr', '[0],[system],[mgr],', '冻结用户', null, '/mgr/freeze', '5', '3', '0', null, '1', '0');
INSERT INTO `sys_menu` VALUES ('112', 'mgr_unfreeze', 'mgr', '[0],[system],[mgr],', '解除冻结用户', null, '/mgr/unfreeze', '6', '3', '0', null, '1', '0');
INSERT INTO `sys_menu` VALUES ('113', 'mgr_setRole', 'mgr', '[0],[system],[mgr],', '分配角色', null, '/mgr/setRole', '7', '3', '0', null, '1', '0');
INSERT INTO `sys_menu` VALUES ('114', 'role', 'system', '[0],[system],', '角色管理', null, '/role', '2', '2', '1', null, '1', '0');
INSERT INTO `sys_menu` VALUES ('115', 'role_add', 'role', '[0],[system],[role],', '添加角色', null, '/role/add', '1', '3', '0', null, '1', '0');
INSERT INTO `sys_menu` VALUES ('116', 'role_edit', 'role', '[0],[system],[role],', '修改角色', null, '/role/edit', '2', '3', '0', null, '1', '0');
INSERT INTO `sys_menu` VALUES ('117', 'role_remove', 'role', '[0],[system],[role],', '删除角色', null, '/role/remove', '3', '3', '0', null, '1', '0');
INSERT INTO `sys_menu` VALUES ('118', 'role_setAuthority', 'role', '[0],[system],[role],', '配置权限', null, '/role/setAuthority', '4', '3', '0', null, '1', '0');
INSERT INTO `sys_menu` VALUES ('119', 'menu', 'system', '[0],[system],', '菜单管理', null, '/menu', '4', '2', '1', null, '1', '0');
INSERT INTO `sys_menu` VALUES ('120', 'menu_add', 'menu', '[0],[system],[menu],', '添加菜单', null, '/menu/add', '1', '3', '0', null, '1', '0');
INSERT INTO `sys_menu` VALUES ('121', 'menu_edit', 'menu', '[0],[system],[menu],', '修改菜单', null, '/menu/edit', '2', '3', '0', null, '1', '0');
INSERT INTO `sys_menu` VALUES ('122', 'menu_remove', 'menu', '[0],[system],[menu],', '删除菜单', null, '/menu/remove', '3', '3', '0', null, '1', '0');
INSERT INTO `sys_menu` VALUES ('128', 'log', 'system', '[0],[system],', '业务日志', null, '/log', '6', '2', '1', null, '1', '0');
INSERT INTO `sys_menu` VALUES ('130', 'druid', 'system', '[0],[system],', '监控管理', null, '/druid', '7', '2', '1', null, '1', null);
INSERT INTO `sys_menu` VALUES ('131', 'dept', 'system', '[0],[system],', '部门管理', null, '/dept', '3', '2', '1', null, '1', null);
INSERT INTO `sys_menu` VALUES ('132', 'dict', 'system', '[0],[system],', '字典管理', null, '/dict', '4', '2', '1', null, '1', null);
INSERT INTO `sys_menu` VALUES ('133', 'loginLog', 'system', '[0],[system],', '登录日志', null, '/loginLog', '6', '2', '1', null, '1', null);
INSERT INTO `sys_menu` VALUES ('134', 'log_clean', 'log', '[0],[system],[log],', '清空日志', null, '/log/delLog', '3', '3', '0', null, '1', null);
INSERT INTO `sys_menu` VALUES ('135', 'dept_add', 'dept', '[0],[system],[dept],', '添加部门', null, '/dept/add', '1', '3', '0', null, '1', null);
INSERT INTO `sys_menu` VALUES ('136', 'dept_update', 'dept', '[0],[system],[dept],', '修改部门', null, '/dept/update', '1', '3', '0', null, '1', null);
INSERT INTO `sys_menu` VALUES ('137', 'dept_delete', 'dept', '[0],[system],[dept],', '删除部门', null, '/dept/delete', '1', '3', '0', null, '1', null);
INSERT INTO `sys_menu` VALUES ('138', 'dict_add', 'dict', '[0],[system],[dict],', '添加字典', null, '/dict/add', '1', '3', '0', null, '1', null);
INSERT INTO `sys_menu` VALUES ('139', 'dict_update', 'dict', '[0],[system],[dict],', '修改字典', null, '/dict/update', '1', '3', '0', null, '1', null);
INSERT INTO `sys_menu` VALUES ('140', 'dict_delete', 'dict', '[0],[system],[dict],', '删除字典', null, '/dict/delete', '1', '3', '0', null, '1', null);
INSERT INTO `sys_menu` VALUES ('141', 'notice', 'system', '[0],[system],', '通知管理', null, '/notice', '9', '2', '1', null, '1', null);
INSERT INTO `sys_menu` VALUES ('142', 'notice_add', 'notice', '[0],[system],[notice],', '添加通知', null, '/notice/add', '1', '3', '0', null, '1', null);
INSERT INTO `sys_menu` VALUES ('143', 'notice_update', 'notice', '[0],[system],[notice],', '修改通知', null, '/notice/update', '2', '3', '0', null, '1', null);
INSERT INTO `sys_menu` VALUES ('144', 'notice_delete', 'notice', '[0],[system],[notice],', '删除通知', null, '/notice/delete', '3', '3', '0', null, '1', null);
INSERT INTO `sys_menu` VALUES ('145', 'hello', '0', '[0],', '通知', 'fa-rocket', '/notice/hello', '6', '1', '1', null, '1', null);
INSERT INTO `sys_menu` VALUES ('148', 'code', '0', '[0],', '代码生成', 'fa-code', '/code', '3', '1', '1', null, '1', null);
INSERT INTO `sys_menu` VALUES ('149', 'api_mgr', '0', '[0],', '接口文档', 'fa-leaf', '/swagger-ui.html', '3', '1', '1', null, '1', null);
INSERT INTO `sys_menu` VALUES ('150', 'to_menu_edit', 'menu', '[0],[system],[menu],', '菜单编辑跳转', '', '/menu/menu_edit', '4', '3', '0', null, '1', null);
INSERT INTO `sys_menu` VALUES ('151', 'menu_list', 'menu', '[0],[system],[menu],', '菜单列表', '', '/menu/list', '5', '3', '0', null, '1', null);
INSERT INTO `sys_menu` VALUES ('152', 'to_dept_update', 'dept', '[0],[system],[dept],', '修改部门跳转', '', '/dept/dept_update', '4', '3', '0', null, '1', null);
INSERT INTO `sys_menu` VALUES ('153', 'dept_list', 'dept', '[0],[system],[dept],', '部门列表', '', '/dept/list', '5', '3', '0', null, '1', null);
INSERT INTO `sys_menu` VALUES ('154', 'dept_detail', 'dept', '[0],[system],[dept],', '部门详情', '', '/dept/detail', '6', '3', '0', null, '1', null);
INSERT INTO `sys_menu` VALUES ('155', 'to_dict_edit', 'dict', '[0],[system],[dict],', '修改菜单跳转', '', '/dict/dict_edit', '4', '3', '0', null, '1', null);
INSERT INTO `sys_menu` VALUES ('156', 'dict_list', 'dict', '[0],[system],[dict],', '字典列表', '', '/dict/list', '5', '3', '0', null, '1', null);
INSERT INTO `sys_menu` VALUES ('157', 'dict_detail', 'dict', '[0],[system],[dict],', '字典详情', '', '/dict/detail', '6', '3', '0', null, '1', null);
INSERT INTO `sys_menu` VALUES ('158', 'log_list', 'log', '[0],[system],[log],', '日志列表', '', '/log/list', '2', '3', '0', null, '1', null);
INSERT INTO `sys_menu` VALUES ('159', 'log_detail', 'log', '[0],[system],[log],', '日志详情', '', '/log/detail', '3', '3', '0', null, '1', null);
INSERT INTO `sys_menu` VALUES ('160', 'del_login_log', 'loginLog', '[0],[system],[loginLog],', '清空登录日志', '', '/loginLog/delLoginLog', '1', '3', '0', null, '1', null);
INSERT INTO `sys_menu` VALUES ('161', 'login_log_list', 'loginLog', '[0],[system],[loginLog],', '登录日志列表', '', '/loginLog/list', '2', '3', '0', null, '1', null);
INSERT INTO `sys_menu` VALUES ('162', 'to_role_edit', 'role', '[0],[system],[role],', '修改角色跳转', '', '/role/role_edit', '5', '3', '0', null, '1', null);
INSERT INTO `sys_menu` VALUES ('163', 'to_role_assign', 'role', '[0],[system],[role],', '角色分配跳转', '', '/role/role_assign', '6', '3', '0', null, '1', null);
INSERT INTO `sys_menu` VALUES ('164', 'role_list', 'role', '[0],[system],[role],', '角色列表', '', '/role/list', '7', '3', '0', null, '1', null);
INSERT INTO `sys_menu` VALUES ('165', 'to_assign_role', 'mgr', '[0],[system],[mgr],', '分配角色跳转', '', '/mgr/role_assign', '8', '3', '0', null, '1', null);
INSERT INTO `sys_menu` VALUES ('166', 'to_user_edit', 'mgr', '[0],[system],[mgr],', '编辑用户跳转', '', '/mgr/user_edit', '9', '3', '0', null, '1', null);
INSERT INTO `sys_menu` VALUES ('167', 'mgr_list', 'mgr', '[0],[system],[mgr],', '用户列表', '', '/mgr/list', '10', '3', '0', null, '1', null);
INSERT INTO `sys_menu` VALUES ('168', 'expense', '0', '[0],', '报销管理', 'fa-clone', '#', '5', '1', '1', null, '1', null);
INSERT INTO `sys_menu` VALUES ('169', 'expense_fill', 'expense', '[0],[expense],', '报销申请', '', '/expense', '1', '2', '1', null, '1', null);
INSERT INTO `sys_menu` VALUES ('170', 'expense_progress', 'expense', '[0],[expense],', '报销审批', '', '/process', '2', '2', '1', null, '1', null);

-- ----------------------------
-- Table structure for sys_notice
-- ----------------------------
CREATE TABLE `sys_notice` (
  `id` varchar(32) NOT NULL COMMENT '主键',
  `title` varchar(255) DEFAULT NULL COMMENT '标题',
  `type` int(11) DEFAULT NULL COMMENT '类型',
  `content` text COMMENT '内容',
  `createtime` datetime DEFAULT NULL COMMENT '创建时间',
  `creater` varchar(32) DEFAULT NULL COMMENT '创建人',
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='通知表';

-- ----------------------------
-- Records of sys_notice
-- ----------------------------
INSERT INTO `sys_notice` VALUES ('6', '世界', '10', '欢迎使用Guns管理系统', '2017-01-11 08:53:20', '1');
INSERT INTO `sys_notice` VALUES ('8', '你好', null, '你好', '2017-05-10 19:28:57', '1');

-- ----------------------------
-- Table structure for sys_operation_log
-- ----------------------------
CREATE TABLE `sys_operation_log` (
  `id` varchar(32) NOT NULL COMMENT '主键',
  `logtype` varchar(255) DEFAULT NULL COMMENT '日志类型',
  `logname` varchar(255) DEFAULT NULL COMMENT '日志名称',
  `userid` varchar(32) DEFAULT NULL COMMENT '用户id',
  `classname` varchar(255) DEFAULT NULL COMMENT '类名称',
  `method` text COMMENT '方法名称',
  `createtime` datetime DEFAULT NULL COMMENT '创建时间',
  `succeed` varchar(255) DEFAULT NULL COMMENT '是否成功',
  `message` text COMMENT '备注',
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='操作日志';

-- ----------------------------
-- Records of sys_operation_log
-- ----------------------------
INSERT INTO `sys_operation_log` VALUES ('331d2374c4e545788d701b6cbb96026a', '业务日志', '清空业务日志', '1', 'com.stylefeng.missiles.modular.system.controller.LogController', 'delLog', '2018-10-17 14:08:47', '成功', '主键id=null');
INSERT INTO `sys_operation_log` VALUES ('85ae9f883e344360a963536f170b2d03', '业务日志', '清空登录日志', '1', 'com.stylefeng.missiles.modular.system.controller.LoginLogController', 'delLog', '2018-10-17 14:08:50', '成功', '主键id=null');

-- ----------------------------
-- Table structure for sys_relation
-- ----------------------------
CREATE TABLE `sys_relation` (
  `id` varchar(32) NOT NULL COMMENT '主键',
  `menuid` varchar(32) DEFAULT NULL COMMENT '菜单id',
  `roleid` varchar(32) DEFAULT NULL COMMENT '角色id',
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='角色和菜单关联表';

-- ----------------------------
-- Records of sys_relation
-- ----------------------------
INSERT INTO `sys_relation` VALUES ('00b8e6ec498544cbbabe8e0ab5302674', '136', '5');
INSERT INTO `sys_relation` VALUES ('0b62ad3e05a145dbbb090bd5c453e6c7', '134', '1');
INSERT INTO `sys_relation` VALUES ('0e4c3ab9305e4db2b38fad3e09ee6a43', '136', '1');
INSERT INTO `sys_relation` VALUES ('101ec91aa5a34eeeac4d4e6736eb718b', '128', '1');
INSERT INTO `sys_relation` VALUES ('12894995a8fb4c8a925c0f6119a26398', '128', '6');
INSERT INTO `sys_relation` VALUES ('1bbe8727cf354dd5addbea0296c4f9d8', '144', '1');
INSERT INTO `sys_relation` VALUES ('1c792d6975fe4ed4ac5b5ed7d466324c', '118', '1');
INSERT INTO `sys_relation` VALUES ('1cd05811bfd34ad89e962c9ed9392a37', '165', '1');
INSERT INTO `sys_relation` VALUES ('1eecb76e19b74840951a3b5cbed91212', '106', '6');
INSERT INTO `sys_relation` VALUES ('1fc380c8c331489fa864e9fe50c987b8', '133', '6');
INSERT INTO `sys_relation` VALUES ('1ff382b8fa37452db06d8c203eb30d27', '137', '1');
INSERT INTO `sys_relation` VALUES ('25f4452ad3434d458b6f4820847146ec', '157', '1');
INSERT INTO `sys_relation` VALUES ('26112c0217df4cdfac1f47ccdbcbf67d', '115', '1');
INSERT INTO `sys_relation` VALUES ('26acae5e6f1d4295bcbafa4526ad7cb5', '111', '1');
INSERT INTO `sys_relation` VALUES ('29de5dc6fb9f465a8b120f3f0b0610d1', '153', '1');
INSERT INTO `sys_relation` VALUES ('2c1f50beca84457f94e26208b8f3ba50', '142', '1');
INSERT INTO `sys_relation` VALUES ('2ce817bfde9c4803ab31ce51304b3769', '135', '5');
INSERT INTO `sys_relation` VALUES ('2f678e15fd804c45a987276d34fe0aad', '106', '5');
INSERT INTO `sys_relation` VALUES ('3135dbdb796647f0b81b427c528de711', '110', '6');
INSERT INTO `sys_relation` VALUES ('31d0a566305443c39c75e206bfe0aef4', '107', '5');
INSERT INTO `sys_relation` VALUES ('3971a4245c9d445cb6613caf23ab1150', '158', '1');
INSERT INTO `sys_relation` VALUES ('407f41fd85004511bc69a0b6c561e148', '117', '1');
INSERT INTO `sys_relation` VALUES ('4345c722fd6646c6adbb1143e282d8ce', '107', '1');
INSERT INTO `sys_relation` VALUES ('46dd0e64ffa54e50af8cae1fe7955517', '162', '1');
INSERT INTO `sys_relation` VALUES ('48ee2aae123547b5838f812bb481e503', '120', '1');
INSERT INTO `sys_relation` VALUES ('4cb98f6303dc4487aedc216a708e82f5', '131', '1');
INSERT INTO `sys_relation` VALUES ('4ce700a7163b44c0af56bde76263c6da', '169', '1');
INSERT INTO `sys_relation` VALUES ('4ea683bdaf4646a39f8d8ebd0bd4bf60', '159', '6');
INSERT INTO `sys_relation` VALUES ('4f9c76df6f9c4c55bd0945e6adc47f6b', '133', '1');
INSERT INTO `sys_relation` VALUES ('5723a12287b0494bb03f4ccc696bccef', '160', '1');
INSERT INTO `sys_relation` VALUES ('57e76f2399e1490eae148710c6a1b5f6', '135', '1');
INSERT INTO `sys_relation` VALUES ('5ae1d52adf4a429d895ad0e6d409b6e2', '159', '5');
INSERT INTO `sys_relation` VALUES ('5ccd0fcc59b341c79121d1bb9a46bb55', '158', '6');
INSERT INTO `sys_relation` VALUES ('628598818aa644c1968fb306559eb3ed', '164', '1');
INSERT INTO `sys_relation` VALUES ('63f1e81373214ced9e3e9df7983128b5', '167', '1');
INSERT INTO `sys_relation` VALUES ('674a2fcc6710428bb99f3fa4cb475e6b', '105', '1');
INSERT INTO `sys_relation` VALUES ('67e091e1c20f4b839ca6b7269750bf1d', '168', '1');
INSERT INTO `sys_relation` VALUES ('68c7b2b03a5e48a4a81d9ae5a8d311fb', '167', '6');
INSERT INTO `sys_relation` VALUES ('6997260de80f4648b1f69c845fa3e9e1', '133', '5');
INSERT INTO `sys_relation` VALUES ('6df15cccca1e45dcabd77915bbc0141e', '112', '1');
INSERT INTO `sys_relation` VALUES ('6f1552682f3f46de8e02c908055f539d', '109', '1');
INSERT INTO `sys_relation` VALUES ('708949197a024ca6932cc28926fbcad6', '139', '1');
INSERT INTO `sys_relation` VALUES ('711d90c4d0a5451f842defadbc773329', '110', '1');
INSERT INTO `sys_relation` VALUES ('725e6b3c597d4e0f84fa26ddd16519ce', '119', '1');
INSERT INTO `sys_relation` VALUES ('74ad269ae5be4bc68d16a84fb3d5d308', '150', '1');
INSERT INTO `sys_relation` VALUES ('750ca99a61cf4cca8ba9b4aebbbded6b', '153', '5');
INSERT INTO `sys_relation` VALUES ('78aea829d2cb4869ad9d516eec2a67ac', '130', '1');
INSERT INTO `sys_relation` VALUES ('7acb0061d1474088aedcfdb038539501', '132', '1');
INSERT INTO `sys_relation` VALUES ('7b816f0f33f34f4faf343a3568cacb54', '149', '1');
INSERT INTO `sys_relation` VALUES ('7c7a48d4758a4b4d892d7bdfac529568', '148', '1');
INSERT INTO `sys_relation` VALUES ('7d5cd30343b84e89b02d9dd348497d00', '170', '1');
INSERT INTO `sys_relation` VALUES ('82374ab99a8f4187ab587ef2ea97a651', '166', '1');
INSERT INTO `sys_relation` VALUES ('83136381a276483fafcaaf5d4faaa3eb', '122', '1');
INSERT INTO `sys_relation` VALUES ('8cbe3ad707004fb3a0b9bd93257dae0c', '121', '1');
INSERT INTO `sys_relation` VALUES ('8d92ee389e724eaf8a2d25ce33a94535', '106', '1');
INSERT INTO `sys_relation` VALUES ('8ff656bdc4d645a2b30c398ee9f33fde', '161', '1');
INSERT INTO `sys_relation` VALUES ('918c7df5a20047fcbf76623a629bc917', '116', '1');
INSERT INTO `sys_relation` VALUES ('9367b7772c1d41e596be47ef4b5910d9', '155', '1');
INSERT INTO `sys_relation` VALUES ('94808e35496e4f5e986b32c8e6fb3d75', '154', '1');
INSERT INTO `sys_relation` VALUES ('96dec0e154b94aabb1f01c0e33cbadab', '105', '6');
INSERT INTO `sys_relation` VALUES ('96ff02c6ea674680b2425efe7e1ff77c', '137', '5');
INSERT INTO `sys_relation` VALUES ('9709bc83d4e94f5898cb65cd93f68ebe', '108', '5');
INSERT INTO `sys_relation` VALUES ('99ae14dc51a543b5817904fb9625f01f', '159', '1');
INSERT INTO `sys_relation` VALUES ('9a0a0dd24dcb45b3ac2f4f8b438c9ceb', '109', '5');
INSERT INTO `sys_relation` VALUES ('9f41b6de4443481291fe2545ddfd29f5', '105', '5');
INSERT INTO `sys_relation` VALUES ('a63582d912dc45f2b013795e379101c9', '163', '1');
INSERT INTO `sys_relation` VALUES ('abd768ba2b4048088cd858e1707ae928', '152', '5');
INSERT INTO `sys_relation` VALUES ('aca5db8fd9c34bbab75b74736b1edc6a', '156', '1');
INSERT INTO `sys_relation` VALUES ('b4632da3e0c54bf2ab355304f8fcc5b2', '134', '5');
INSERT INTO `sys_relation` VALUES ('bacd8f9de97d4fd5b87f84629df5bb2f', '151', '1');
INSERT INTO `sys_relation` VALUES ('bb269a17bbf5401ebb35eca450f91b2a', '128', '5');
INSERT INTO `sys_relation` VALUES ('bd63e1b0f94e438ba6ab87497e05bed5', '158', '5');
INSERT INTO `sys_relation` VALUES ('c56307bb2d6a4e29af0672eaae031cd5', '143', '1');
INSERT INTO `sys_relation` VALUES ('c7669065a8874609a162336ee52a4586', '108', '1');
INSERT INTO `sys_relation` VALUES ('c90bf031d48c4c11a528229a3d1de619', '160', '5');
INSERT INTO `sys_relation` VALUES ('cb94abdc73364e26b66925126dd45995', '161', '6');
INSERT INTO `sys_relation` VALUES ('cdc07998a1174fa6afd50da6e06b9e53', '152', '1');
INSERT INTO `sys_relation` VALUES ('d19faf3c55f6447381058c537f08bcd9', '140', '1');
INSERT INTO `sys_relation` VALUES ('d66edaccbf074a4a98a27cd88e0e3035', '154', '5');
INSERT INTO `sys_relation` VALUES ('dbf36e51bda74eb580dfd36bbf484cc4', '110', '5');
INSERT INTO `sys_relation` VALUES ('dd3ac860420c4ff6aff856864ba8be67', '161', '5');
INSERT INTO `sys_relation` VALUES ('de88a4686e4f4cc3ae2894ba5fc32bcd', '114', '1');
INSERT INTO `sys_relation` VALUES ('e4a166cf648444d18ebc73bad56eb390', '131', '5');
INSERT INTO `sys_relation` VALUES ('e76f8daf9a094089a02ecb6c07f29fa0', '113', '1');
INSERT INTO `sys_relation` VALUES ('e93f358785644a07b054b0b67b07b527', '141', '1');
INSERT INTO `sys_relation` VALUES ('f7d4345a071848b09ccb44f06105e2ee', '145', '1');
INSERT INTO `sys_relation` VALUES ('ffd73ed73f294eac9c2f347eec1648ae', '138', '1');

-- ----------------------------
-- Table structure for sys_role
-- ----------------------------
CREATE TABLE `sys_role` (
  `id` varchar(32) NOT NULL COMMENT '主键id',
  `num` int(11) DEFAULT NULL COMMENT '序号',
  `pid` varchar(32) DEFAULT NULL COMMENT '父角色id',
  `name` varchar(255) DEFAULT NULL COMMENT '角色名称',
  `deptid` varchar(32) DEFAULT NULL COMMENT '部门名称',
  `tips` varchar(255) DEFAULT NULL COMMENT '提示',
  `version` int(11) DEFAULT NULL COMMENT '保留字段(暂时没用）',
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='角色表';

-- ----------------------------
-- Records of sys_role
-- ----------------------------
INSERT INTO `sys_role` VALUES ('1', '1', '0', '超级管理员', '0', 'administrator', '1');
INSERT INTO `sys_role` VALUES ('5', '2', '1', '燃气总公司系统管理员', '24', 'administrator', null);
INSERT INTO `sys_role` VALUES ('6', null, '1', 'B公司管理员', '30', 'B公司管理员', null);

-- ----------------------------
-- Table structure for sys_user
-- ----------------------------
CREATE TABLE `sys_user` (
  `id` varchar(32) NOT NULL COMMENT '主键id',
  `avatar` varchar(255) DEFAULT NULL COMMENT '头像',
  `account` varchar(45) DEFAULT NULL COMMENT '账号',
  `password` varchar(45) DEFAULT NULL COMMENT '密码',
  `salt` varchar(45) DEFAULT NULL COMMENT 'md5密码盐',
  `name` varchar(45) DEFAULT NULL COMMENT '名字',
  `birthday` datetime DEFAULT NULL COMMENT '生日',
  `sex` varchar(32) DEFAULT NULL COMMENT '性别（1：男 2：女）',
  `email` varchar(45) DEFAULT NULL COMMENT '电子邮件',
  `phone` varchar(45) DEFAULT NULL COMMENT '电话',
  `roleid` varchar(255) DEFAULT NULL COMMENT '角色id',
  `deptid` varchar(32) DEFAULT NULL COMMENT '部门id',
  `status` varchar(32) DEFAULT NULL COMMENT '状态(1：启用  2：冻结  3：删除）',
  `createtime` datetime DEFAULT NULL COMMENT '创建时间',
  `version` int(11) DEFAULT NULL COMMENT '保留字段',
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='管理员表';

-- ----------------------------
-- Records of sys_user
-- ----------------------------
INSERT INTO `sys_user` VALUES ('1', 'girl.gif', 'admin', 'ecfadcde9305f8891bcfe5a1e28c253e', '8pgby', '超级管理员', '2017-05-05 00:00:00', '2', 'sn93@qq.com', '18200000000', '1', '24', '1', '2016-01-29 08:49:53', '25');
INSERT INTO `sys_user` VALUES ('44', null, 'test', '45abb7879f6a8268f1ef600e6038ac73', 'ssts3', 'test', '2017-05-01 00:00:00', '1', 'abc@123.com', '', '5', '26', '3', '2017-05-16 20:33:37', null);
INSERT INTO `sys_user` VALUES ('45', null, 'boss', '71887a5ad666a18f709e1d4e693d5a35', '1f7bf', '老板', '2017-12-04 00:00:00', '1', '', '', '5', '24', '1', '2017-12-04 22:24:02', null);
INSERT INTO `sys_user` VALUES ('46', null, 'manager', 'b53cac62e7175637d4beb3b16b2f7915', 'j3cs9', '经理', '2017-12-04 00:00:00', '1', '', '', '5', '24', '1', '2017-12-04 22:24:24', null);
