123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556 |
- /*
- Navicat MySQL Data Transfer
- Source Server : zhangw
- Source Server Version : 50624
- Source Host : localhost:3306
- Source Database : boot_security
- Target Server Type : MYSQL
- Target Server Version : 50624
- File Encoding : 65001
- Date: 2017-10-15 21:38:30
- */
- SET FOREIGN_KEY_CHECKS=0;
- -- ----------------------------
- -- Table structure for file_info
- -- ----------------------------
- DROP TABLE IF EXISTS `file_info`;
- CREATE TABLE `file_info` (
- `id` varchar(32) NOT NULL COMMENT '文件md5',
- `contentType` varchar(128) NOT NULL,
- `size` int(11) NOT NULL,
- `path` varchar(255) NOT NULL COMMENT '物理路径',
- `url` varchar(1024) NOT NULL,
- `type` int(1) NOT NULL,
- `createTime` datetime NOT NULL,
- `updateTime` datetime NOT NULL,
- PRIMARY KEY (`id`)
- ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
- -- ----------------------------
- -- Records of file_info
- -- ----------------------------
- -- ----------------------------
- -- Table structure for QRTZ_BLOB_TRIGGERS
- -- ----------------------------
- DROP TABLE IF EXISTS `QRTZ_BLOB_TRIGGERS`;
- CREATE TABLE `QRTZ_BLOB_TRIGGERS` (
- `SCHED_NAME` varchar(64) COLLATE utf8mb4_bin NOT NULL,
- `TRIGGER_NAME` varchar(64) COLLATE utf8mb4_bin NOT NULL,
- `TRIGGER_GROUP` varchar(64) COLLATE utf8mb4_bin NOT NULL,
- `BLOB_DATA` blob,
- PRIMARY KEY (`SCHED_NAME`,`TRIGGER_NAME`,`TRIGGER_GROUP`)
- ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_bin;
- -- ----------------------------
- -- Table structure for QRTZ_CALENDARS
- -- ----------------------------
- DROP TABLE IF EXISTS `QRTZ_CALENDARS`;
- CREATE TABLE `QRTZ_CALENDARS` (
- `SCHED_NAME` varchar(64) COLLATE utf8mb4_bin NOT NULL,
- `CALENDAR_NAME` varchar(128) COLLATE utf8mb4_bin NOT NULL,
- `CALENDAR` blob NOT NULL,
- PRIMARY KEY (`SCHED_NAME`,`CALENDAR_NAME`)
- ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_bin;
- -- ----------------------------
- -- Table structure for QRTZ_CRON_TRIGGERS
- -- ----------------------------
- DROP TABLE IF EXISTS `QRTZ_CRON_TRIGGERS`;
- CREATE TABLE `QRTZ_CRON_TRIGGERS` (
- `SCHED_NAME` varchar(64) COLLATE utf8mb4_bin NOT NULL,
- `TRIGGER_NAME` varchar(64) COLLATE utf8mb4_bin NOT NULL,
- `TRIGGER_GROUP` varchar(64) COLLATE utf8mb4_bin NOT NULL,
- `CRON_EXPRESSION` varchar(64) COLLATE utf8mb4_bin NOT NULL,
- `TIME_ZONE_ID` varchar(80) COLLATE utf8mb4_bin DEFAULT NULL,
- PRIMARY KEY (`SCHED_NAME`,`TRIGGER_NAME`,`TRIGGER_GROUP`)
- ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_bin;
- -- ----------------------------
- -- Table structure for QRTZ_FIRED_TRIGGERS
- -- ----------------------------
- DROP TABLE IF EXISTS `QRTZ_FIRED_TRIGGERS`;
- CREATE TABLE `QRTZ_FIRED_TRIGGERS` (
- `SCHED_NAME` varchar(64) COLLATE utf8mb4_bin NOT NULL,
- `ENTRY_ID` varchar(128) COLLATE utf8mb4_bin NOT NULL,
- `TRIGGER_NAME` varchar(64) COLLATE utf8mb4_bin NOT NULL,
- `TRIGGER_GROUP` varchar(64) COLLATE utf8mb4_bin NOT NULL,
- `INSTANCE_NAME` varchar(64) COLLATE utf8mb4_bin NOT NULL,
- `FIRED_TIME` bigint(13) NOT NULL,
- `SCHED_TIME` bigint(13) NOT NULL,
- `PRIORITY` int(11) NOT NULL,
- `STATE` varchar(16) COLLATE utf8mb4_bin NOT NULL,
- `JOB_NAME` varchar(64) COLLATE utf8mb4_bin DEFAULT NULL,
- `JOB_GROUP` varchar(64) COLLATE utf8mb4_bin DEFAULT NULL,
- `IS_NONCONCURRENT` varchar(1) COLLATE utf8mb4_bin DEFAULT NULL,
- `REQUESTS_RECOVERY` varchar(1) COLLATE utf8mb4_bin DEFAULT NULL,
- PRIMARY KEY (`SCHED_NAME`,`ENTRY_ID`)
- ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_bin;
- -- ----------------------------
- -- Table structure for QRTZ_JOB_DETAILS
- -- ----------------------------
- DROP TABLE IF EXISTS `QRTZ_JOB_DETAILS`;
- CREATE TABLE `QRTZ_JOB_DETAILS` (
- `SCHED_NAME` varchar(64) COLLATE utf8mb4_bin NOT NULL,
- `JOB_NAME` varchar(64) COLLATE utf8mb4_bin NOT NULL,
- `JOB_GROUP` varchar(64) COLLATE utf8mb4_bin NOT NULL,
- `DESCRIPTION` varchar(128) COLLATE utf8mb4_bin DEFAULT NULL,
- `JOB_CLASS_NAME` varchar(255) COLLATE utf8mb4_bin NOT NULL,
- `IS_DURABLE` varchar(1) COLLATE utf8mb4_bin NOT NULL,
- `IS_NONCONCURRENT` varchar(1) COLLATE utf8mb4_bin NOT NULL,
- `IS_UPDATE_DATA` varchar(1) COLLATE utf8mb4_bin NOT NULL,
- `REQUESTS_RECOVERY` varchar(1) COLLATE utf8mb4_bin NOT NULL,
- `JOB_DATA` blob,
- PRIMARY KEY (`SCHED_NAME`,`JOB_NAME`,`JOB_GROUP`)
- ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_bin;
- -- ----------------------------
- -- Table structure for QRTZ_LOCKS
- -- ----------------------------
- DROP TABLE IF EXISTS `QRTZ_LOCKS`;
- CREATE TABLE `QRTZ_LOCKS` (
- `SCHED_NAME` varchar(64) COLLATE utf8mb4_bin NOT NULL,
- `LOCK_NAME` varchar(64) COLLATE utf8mb4_bin NOT NULL,
- PRIMARY KEY (`SCHED_NAME`,`LOCK_NAME`)
- ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_bin;
- -- ----------------------------
- -- Table structure for QRTZ_PAUSED_TRIGGER_GRPS
- -- ----------------------------
- DROP TABLE IF EXISTS `QRTZ_PAUSED_TRIGGER_GRPS`;
- CREATE TABLE `QRTZ_PAUSED_TRIGGER_GRPS` (
- `SCHED_NAME` varchar(64) COLLATE utf8mb4_bin NOT NULL,
- `TRIGGER_GROUP` varchar(64) COLLATE utf8mb4_bin NOT NULL,
- PRIMARY KEY (`SCHED_NAME`,`TRIGGER_GROUP`)
- ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_bin;
- -- ----------------------------
- -- Table structure for QRTZ_SCHEDULER_STATE
- -- ----------------------------
- DROP TABLE IF EXISTS `QRTZ_SCHEDULER_STATE`;
- CREATE TABLE `QRTZ_SCHEDULER_STATE` (
- `SCHED_NAME` varchar(64) COLLATE utf8mb4_bin NOT NULL,
- `INSTANCE_NAME` varchar(128) COLLATE utf8mb4_bin NOT NULL,
- `LAST_CHECKIN_TIME` bigint(13) NOT NULL,
- `CHECKIN_INTERVAL` bigint(13) NOT NULL,
- PRIMARY KEY (`SCHED_NAME`,`INSTANCE_NAME`)
- ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_bin;
- -- ----------------------------
- -- Table structure for QRTZ_SIMPLE_TRIGGERS
- -- ----------------------------
- DROP TABLE IF EXISTS `QRTZ_SIMPLE_TRIGGERS`;
- CREATE TABLE `QRTZ_SIMPLE_TRIGGERS` (
- `SCHED_NAME` varchar(64) COLLATE utf8mb4_bin NOT NULL,
- `TRIGGER_NAME` varchar(64) COLLATE utf8mb4_bin NOT NULL,
- `TRIGGER_GROUP` varchar(64) COLLATE utf8mb4_bin NOT NULL,
- `REPEAT_COUNT` bigint(7) NOT NULL,
- `REPEAT_INTERVAL` bigint(12) NOT NULL,
- `TIMES_TRIGGERED` bigint(10) NOT NULL,
- PRIMARY KEY (`SCHED_NAME`,`TRIGGER_NAME`,`TRIGGER_GROUP`)
- ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_bin;
- -- ----------------------------
- -- Table structure for QRTZ_SIMPROP_TRIGGERS
- -- ----------------------------
- DROP TABLE IF EXISTS `QRTZ_SIMPROP_TRIGGERS`;
- CREATE TABLE `QRTZ_SIMPROP_TRIGGERS` (
- `SCHED_NAME` varchar(64) COLLATE utf8mb4_bin NOT NULL,
- `TRIGGER_NAME` varchar(64) COLLATE utf8mb4_bin NOT NULL,
- `TRIGGER_GROUP` varchar(64) COLLATE utf8mb4_bin NOT NULL,
- `STR_PROP_1` varchar(512) COLLATE utf8mb4_bin DEFAULT NULL,
- `STR_PROP_2` varchar(512) COLLATE utf8mb4_bin DEFAULT NULL,
- `STR_PROP_3` varchar(512) COLLATE utf8mb4_bin DEFAULT NULL,
- `INT_PROP_1` int(11) DEFAULT NULL,
- `INT_PROP_2` int(11) DEFAULT NULL,
- `LONG_PROP_1` bigint(20) DEFAULT NULL,
- `LONG_PROP_2` bigint(20) DEFAULT NULL,
- `DEC_PROP_1` decimal(13,4) DEFAULT NULL,
- `DEC_PROP_2` decimal(13,4) DEFAULT NULL,
- `BOOL_PROP_1` varchar(1) COLLATE utf8mb4_bin DEFAULT NULL,
- `BOOL_PROP_2` varchar(1) COLLATE utf8mb4_bin DEFAULT NULL,
- PRIMARY KEY (`SCHED_NAME`,`TRIGGER_NAME`,`TRIGGER_GROUP`)
- ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_bin;
- -- ----------------------------
- -- Table structure for QRTZ_TRIGGERS
- -- ----------------------------
- DROP TABLE IF EXISTS `QRTZ_TRIGGERS`;
- CREATE TABLE `QRTZ_TRIGGERS` (
- `SCHED_NAME` varchar(64) COLLATE utf8mb4_bin NOT NULL,
- `TRIGGER_NAME` varchar(64) COLLATE utf8mb4_bin NOT NULL,
- `TRIGGER_GROUP` varchar(64) COLLATE utf8mb4_bin NOT NULL,
- `JOB_NAME` varchar(64) COLLATE utf8mb4_bin NOT NULL,
- `JOB_GROUP` varchar(64) COLLATE utf8mb4_bin NOT NULL,
- `DESCRIPTION` varchar(128) COLLATE utf8mb4_bin DEFAULT NULL,
- `NEXT_FIRE_TIME` bigint(13) DEFAULT NULL,
- `PREV_FIRE_TIME` bigint(13) DEFAULT NULL,
- `PRIORITY` int(11) DEFAULT NULL,
- `TRIGGER_STATE` varchar(16) COLLATE utf8mb4_bin NOT NULL,
- `TRIGGER_TYPE` varchar(8) COLLATE utf8mb4_bin NOT NULL,
- `START_TIME` bigint(13) NOT NULL,
- `END_TIME` bigint(13) DEFAULT NULL,
- `CALENDAR_NAME` varchar(128) COLLATE utf8mb4_bin DEFAULT NULL,
- `MISFIRE_INSTR` smallint(2) DEFAULT NULL,
- `JOB_DATA` blob,
- PRIMARY KEY (`SCHED_NAME`,`TRIGGER_NAME`,`TRIGGER_GROUP`),
- KEY `SCHED_NAME` (`SCHED_NAME`,`JOB_NAME`,`JOB_GROUP`)
- ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_bin;
- -- ----------------------------
- -- Table structure for sys_logs
- -- ----------------------------
- DROP TABLE IF EXISTS `sys_logs`;
- CREATE TABLE `sys_logs` (
- `id` int(11) NOT NULL AUTO_INCREMENT,
- `userId` int(11) NOT NULL,
- `module` varchar(50) DEFAULT NULL COMMENT '模块名',
- `flag` tinyint(4) NOT NULL DEFAULT '1' COMMENT '成功失败',
- `remark` text COMMENT '备注',
- `createTime` datetime NOT NULL,
- PRIMARY KEY (`id`),
- KEY `userId` (`userId`),
- KEY `createTime` (`createTime`)
- ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
- -- ----------------------------
- -- Records of sys_logs
- -- ----------------------------
- -- ----------------------------
- -- Table structure for sys_permission
- -- ----------------------------
- DROP TABLE IF EXISTS `sys_permission`;
- CREATE TABLE `sys_permission` (
- `id` int(11) NOT NULL AUTO_INCREMENT,
- `parentId` int(11) NOT NULL,
- `name` varchar(50) NOT NULL,
- `css` varchar(30) DEFAULT NULL,
- `href` varchar(1000) DEFAULT NULL,
- `type` tinyint(1) NOT NULL,
- `permission` varchar(50) DEFAULT NULL,
- `sort` int(11) NOT NULL,
- PRIMARY KEY (`id`)
- ) ENGINE=InnoDB AUTO_INCREMENT=37 DEFAULT CHARSET=utf8mb4;
- -- ----------------------------
- -- Records of sys_permission
- -- ----------------------------
- INSERT INTO `sys_permission` VALUES ('1', '0', '用户管理', 'fa-users', '', '1', '', '1');
- INSERT INTO `sys_permission` VALUES ('2', '1', '用户查询', 'fa-user', 'pages/user/userList.html', '1', '', '2');
- INSERT INTO `sys_permission` VALUES ('3', '2', '查询', '', '', '2', 'sys:user:query', '100');
- INSERT INTO `sys_permission` VALUES ('4', '2', '新增', '', '', '2', 'sys:user:add', '100');
- INSERT INTO `sys_permission` VALUES ('6', '0', '修改密码', 'fa-pencil-square-o', 'pages/user/changePassword.html', '1', 'sys:user:password', '4');
- INSERT INTO `sys_permission` VALUES ('7', '0', '系统设置', 'fa-gears', '', '1', '', '5');
- INSERT INTO `sys_permission` VALUES ('8', '7', '菜单', 'fa-cog', 'pages/menu/menuList.html', '1', '', '6');
- INSERT INTO `sys_permission` VALUES ('9', '8', '查询', '', '', '2', 'sys:menu:query', '100');
- INSERT INTO `sys_permission` VALUES ('10', '8', '新增', '', '', '2', 'sys:menu:add', '100');
- INSERT INTO `sys_permission` VALUES ('11', '8', '删除', '', '', '2', 'sys:menu:del', '100');
- INSERT INTO `sys_permission` VALUES ('12', '7', '角色', 'fa-user-secret', 'pages/role/roleList.html', '1', '', '7');
- INSERT INTO `sys_permission` VALUES ('13', '12', '查询', '', '', '2', 'sys:role:query', '100');
- INSERT INTO `sys_permission` VALUES ('14', '12', '新增', '', '', '2', 'sys:role:add', '100');
- INSERT INTO `sys_permission` VALUES ('15', '12', '删除', '', '', '2', 'sys:role:del', '100');
- INSERT INTO `sys_permission` VALUES ('16', '0', '文件管理', 'fa-folder-open', 'pages/file/fileList.html', '1', '', '8');
- INSERT INTO `sys_permission` VALUES ('17', '16', '查询', '', '', '2', 'sys:file:query', '100');
- INSERT INTO `sys_permission` VALUES ('18', '16', '删除', '', '', '2', 'sys:file:del', '100');
- INSERT INTO `sys_permission` VALUES ('19', '0', '数据源监控', 'fa-eye', 'druid/index.html', '1', '', '9');
- INSERT INTO `sys_permission` VALUES ('20', '0', '接口swagger', 'fa-file-pdf-o', 'swagger-ui.html', '1', '', '10');
- INSERT INTO `sys_permission` VALUES ('21', '0', '代码生成', 'fa-wrench', 'pages/generate/edit.html', '1', 'generate:edit', '11');
- INSERT INTO `sys_permission` VALUES ('22', '0', '公告管理', 'fa-book', 'pages/notice/noticeList.html', '1', '', '12');
- INSERT INTO `sys_permission` VALUES ('23', '22', '查询', '', '', '2', 'notice:query', '100');
- INSERT INTO `sys_permission` VALUES ('24', '22', '添加', '', '', '2', 'notice:add', '100');
- INSERT INTO `sys_permission` VALUES ('25', '22', '删除', '', '', '2', 'notice:del', '100');
- INSERT INTO `sys_permission` VALUES ('26', '0', '日志查询', 'fa-reorder', 'pages/log/logList.html', '1', 'sys:log:query', '13');
- INSERT INTO `sys_permission` VALUES ('27', '0', '邮件管理', 'fa-envelope', 'pages/mail/mailList.html', '1', '', '14');
- INSERT INTO `sys_permission` VALUES ('28', '27', '发送邮件', '', '', '2', 'mail:send', '100');
- INSERT INTO `sys_permission` VALUES ('29', '27', '查询', '', '', '2', 'mail:all:query', '100');
- INSERT INTO `sys_permission` VALUES ('30', '0', '定时任务管理', 'fa-tasks', 'pages/job/jobList.html', '1', '', '15');
- INSERT INTO `sys_permission` VALUES ('31', '30', '查询', '', '', '2', 'job:query', '100');
- INSERT INTO `sys_permission` VALUES ('32', '30', '新增', '', '', '2', 'job:add', '100');
- INSERT INTO `sys_permission` VALUES ('33', '30', '删除', '', '', '2', 'job:del', '100');
- INSERT INTO `sys_permission` VALUES ('34', '0', 'excel导出', 'fa-arrow-circle-down', 'pages/excel/sql.html', '1', '', '16');
- INSERT INTO `sys_permission` VALUES ('35', '34', '导出', '', '', '2', 'excel:down', '100');
- INSERT INTO `sys_permission` VALUES ('36', '34', '页面显示数据', '', '', '2', 'excel:show:datas', '100');
- INSERT INTO `sys_permission` VALUES ('37', '0', '字典管理', 'fa-reddit', 'pages/dict/dictList.html', '1', '', '17');
- INSERT INTO `sys_permission` VALUES ('38', '37', '查询', '', '', '2', 'dict:query', '100');
- INSERT INTO `sys_permission` VALUES ('39', '37', '新增', '', '', '2', 'dict:add', '100');
- INSERT INTO `sys_permission` VALUES ('40', '37', '删除', '', '', '2', 'dict:del', '100');
- -- ----------------------------
- -- Table structure for sys_role
- -- ----------------------------
- DROP TABLE IF EXISTS `sys_role`;
- CREATE TABLE `sys_role` (
- `id` int(11) NOT NULL AUTO_INCREMENT,
- `name` varchar(50) NOT NULL,
- `description` varchar(100) DEFAULT NULL,
- `createTime` datetime NOT NULL,
- `updateTime` datetime NOT NULL,
- PRIMARY KEY (`id`),
- UNIQUE KEY `name` (`name`)
- ) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=utf8mb4;
- -- ----------------------------
- -- Records of sys_role
- -- ----------------------------
- INSERT INTO `sys_role` VALUES ('1', 'ADMIN', '管理员', '2017-05-01 13:25:39', '2017-10-05 21:59:18');
- INSERT INTO `sys_role` VALUES ('2', 'USER', '', '2017-08-01 21:47:31', '2017-10-05 21:59:26');
- -- ----------------------------
- -- Table structure for sys_role_permission
- -- ----------------------------
- DROP TABLE IF EXISTS `sys_role_permission`;
- CREATE TABLE `sys_role_permission` (
- `roleId` int(11) NOT NULL,
- `permissionId` int(11) NOT NULL,
- PRIMARY KEY (`roleId`,`permissionId`)
- ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
- -- ----------------------------
- -- Records of sys_role_permission
- -- ----------------------------
- INSERT INTO `sys_role_permission` VALUES ('1', '1');
- INSERT INTO `sys_role_permission` VALUES ('1', '2');
- INSERT INTO `sys_role_permission` VALUES ('1', '3');
- INSERT INTO `sys_role_permission` VALUES ('1', '4');
- INSERT INTO `sys_role_permission` VALUES ('1', '6');
- INSERT INTO `sys_role_permission` VALUES ('1', '7');
- INSERT INTO `sys_role_permission` VALUES ('1', '8');
- INSERT INTO `sys_role_permission` VALUES ('1', '9');
- INSERT INTO `sys_role_permission` VALUES ('1', '10');
- INSERT INTO `sys_role_permission` VALUES ('1', '11');
- INSERT INTO `sys_role_permission` VALUES ('1', '12');
- INSERT INTO `sys_role_permission` VALUES ('1', '13');
- INSERT INTO `sys_role_permission` VALUES ('1', '14');
- INSERT INTO `sys_role_permission` VALUES ('1', '15');
- INSERT INTO `sys_role_permission` VALUES ('1', '16');
- INSERT INTO `sys_role_permission` VALUES ('1', '17');
- INSERT INTO `sys_role_permission` VALUES ('1', '18');
- INSERT INTO `sys_role_permission` VALUES ('1', '19');
- INSERT INTO `sys_role_permission` VALUES ('1', '20');
- INSERT INTO `sys_role_permission` VALUES ('1', '21');
- INSERT INTO `sys_role_permission` VALUES ('1', '22');
- INSERT INTO `sys_role_permission` VALUES ('1', '23');
- INSERT INTO `sys_role_permission` VALUES ('1', '24');
- INSERT INTO `sys_role_permission` VALUES ('1', '25');
- INSERT INTO `sys_role_permission` VALUES ('1', '26');
- INSERT INTO `sys_role_permission` VALUES ('1', '27');
- INSERT INTO `sys_role_permission` VALUES ('1', '28');
- INSERT INTO `sys_role_permission` VALUES ('1', '29');
- INSERT INTO `sys_role_permission` VALUES ('1', '30');
- INSERT INTO `sys_role_permission` VALUES ('1', '31');
- INSERT INTO `sys_role_permission` VALUES ('1', '32');
- INSERT INTO `sys_role_permission` VALUES ('1', '33');
- INSERT INTO `sys_role_permission` VALUES ('1', '34');
- INSERT INTO `sys_role_permission` VALUES ('1', '35');
- INSERT INTO `sys_role_permission` VALUES ('1', '36');
- INSERT INTO `sys_role_permission` VALUES ('1', '37');
- INSERT INTO `sys_role_permission` VALUES ('1', '38');
- INSERT INTO `sys_role_permission` VALUES ('1', '39');
- INSERT INTO `sys_role_permission` VALUES ('1', '40');
- INSERT INTO `sys_role_permission` VALUES ('2', '1');
- INSERT INTO `sys_role_permission` VALUES ('2', '2');
- INSERT INTO `sys_role_permission` VALUES ('2', '3');
- INSERT INTO `sys_role_permission` VALUES ('2', '4');
- INSERT INTO `sys_role_permission` VALUES ('2', '6');
- INSERT INTO `sys_role_permission` VALUES ('2', '7');
- INSERT INTO `sys_role_permission` VALUES ('2', '8');
- INSERT INTO `sys_role_permission` VALUES ('2', '9');
- INSERT INTO `sys_role_permission` VALUES ('2', '10');
- INSERT INTO `sys_role_permission` VALUES ('2', '11');
- INSERT INTO `sys_role_permission` VALUES ('2', '12');
- INSERT INTO `sys_role_permission` VALUES ('2', '13');
- INSERT INTO `sys_role_permission` VALUES ('2', '14');
- INSERT INTO `sys_role_permission` VALUES ('2', '15');
- INSERT INTO `sys_role_permission` VALUES ('2', '16');
- INSERT INTO `sys_role_permission` VALUES ('2', '17');
- INSERT INTO `sys_role_permission` VALUES ('2', '18');
- INSERT INTO `sys_role_permission` VALUES ('2', '19');
- INSERT INTO `sys_role_permission` VALUES ('2', '20');
- INSERT INTO `sys_role_permission` VALUES ('2', '21');
- INSERT INTO `sys_role_permission` VALUES ('2', '22');
- INSERT INTO `sys_role_permission` VALUES ('2', '23');
- INSERT INTO `sys_role_permission` VALUES ('2', '24');
- INSERT INTO `sys_role_permission` VALUES ('2', '25');
- INSERT INTO `sys_role_permission` VALUES ('2', '30');
- INSERT INTO `sys_role_permission` VALUES ('2', '31');
- INSERT INTO `sys_role_permission` VALUES ('2', '34');
- INSERT INTO `sys_role_permission` VALUES ('2', '36');
- -- ----------------------------
- -- Table structure for sys_role_user
- -- ----------------------------
- DROP TABLE IF EXISTS `sys_role_user`;
- CREATE TABLE `sys_role_user` (
- `userId` int(11) NOT NULL,
- `roleId` int(11) NOT NULL,
- PRIMARY KEY (`userId`,`roleId`)
- ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
- -- ----------------------------
- -- Records of sys_role_user
- -- ----------------------------
- INSERT INTO `sys_role_user` VALUES ('1', '1');
- INSERT INTO `sys_role_user` VALUES ('2', '2');
- -- ----------------------------
- -- Table structure for sys_user
- -- ----------------------------
- DROP TABLE IF EXISTS `sys_user`;
- CREATE TABLE `sys_user` (
- `id` int(11) NOT NULL AUTO_INCREMENT,
- `username` varchar(50) NOT NULL,
- `password` varchar(60) NOT NULL,
- `nickname` varchar(255) DEFAULT NULL,
- `headImgUrl` varchar(255) DEFAULT NULL,
- `phone` varchar(11) DEFAULT NULL,
- `telephone` varchar(30) DEFAULT NULL,
- `email` varchar(50) DEFAULT NULL,
- `birthday` date DEFAULT NULL,
- `sex` tinyint(1) DEFAULT NULL,
- `status` tinyint(1) NOT NULL DEFAULT '1',
- `createTime` datetime NOT NULL,
- `updateTime` datetime NOT NULL,
- PRIMARY KEY (`id`),
- UNIQUE KEY `username` (`username`)
- ) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=utf8mb4;
- -- ----------------------------
- -- Records of sys_user
- -- ----------------------------
- INSERT INTO `sys_user` VALUES ('1', 'admin', '$2a$10$iYM/H7TrSaLs7XyIWQdGwe1xf4cdmt3nwMja6RT0wxG5YY1RjN0EK', '管理员', null, '', '', '', '1998-07-01', '0', '1', '2017-04-10 15:21:38', '2017-07-06 09:20:19');
- INSERT INTO `sys_user` VALUES ('2', 'user', '$2a$10$ooGb4wjT7Hg3zgU2RhZp6eVu3jvG29i/U4L6VRwiZZ4.DZ0OOEAHu', '用户', null, '', '', '', null, '1', '1', '2017-08-01 21:47:18', '2017-08-01 21:47:18');
- -- ----------------------------
- -- Table structure for t_dict
- -- ----------------------------
- DROP TABLE IF EXISTS `t_dict`;
- CREATE TABLE `t_dict` (
- `id` int(11) NOT NULL AUTO_INCREMENT,
- `type` varchar(16) NOT NULL,
- `k` varchar(16) NOT NULL,
- `val` varchar(64) NOT NULL,
- `createTime` datetime NOT NULL,
- `updateTime` datetime NOT NULL,
- PRIMARY KEY (`id`),
- UNIQUE KEY `type` (`type`,`k`)
- ) ENGINE=InnoDB AUTO_INCREMENT=10 DEFAULT CHARSET=utf8mb4;
- -- ----------------------------
- -- Records of t_dict
- -- ----------------------------
- INSERT INTO `t_dict` VALUES ('1', 'sex', '0', '女', '2017-11-17 09:58:24', '2017-11-18 14:21:05');
- INSERT INTO `t_dict` VALUES ('2', 'sex', '1', '男', '2017-11-17 10:03:46', '2017-11-17 10:03:46');
- INSERT INTO `t_dict` VALUES ('3', 'userStatus', '0', '无效', '2017-11-17 16:26:06', '2017-11-17 16:26:09');
- INSERT INTO `t_dict` VALUES ('4', 'userStatus', '1', '正常', '2017-11-17 16:26:06', '2017-11-17 16:26:09');
- INSERT INTO `t_dict` VALUES ('5', 'userStatus', '2', '锁定', '2017-11-17 16:26:06', '2017-11-17 16:26:09');
- INSERT INTO `t_dict` VALUES ('6', 'noticeStatus', '0', '草稿', '2017-11-17 16:26:06', '2017-11-17 16:26:09');
- INSERT INTO `t_dict` VALUES ('7', 'noticeStatus', '1', '发布', '2017-11-17 16:26:06', '2017-11-17 16:26:09');
- INSERT INTO `t_dict` VALUES ('8', 'isRead', '0', '未读', '2017-11-17 16:26:06', '2017-11-17 16:26:09');
- INSERT INTO `t_dict` VALUES ('9', 'isRead', '1', '已读', '2017-11-17 16:26:06', '2017-11-17 16:26:09');
- -- ----------------------------
- -- Table structure for t_job
- -- ----------------------------
- DROP TABLE IF EXISTS `t_job`;
- CREATE TABLE `t_job` (
- `id` int(11) NOT NULL AUTO_INCREMENT,
- `jobName` varchar(64) NOT NULL,
- `description` varchar(255) DEFAULT NULL,
- `cron` varchar(64) NOT NULL,
- `springBeanName` varchar(64) NOT NULL COMMENT 'springBean名',
- `methodName` varchar(64) NOT NULL COMMENT '方法名',
- `isSysJob` tinyint(1) NOT NULL COMMENT '是否是系统job',
- `status` tinyint(1) NOT NULL DEFAULT '1',
- `createTime` datetime NOT NULL,
- `updateTime` datetime NOT NULL,
- PRIMARY KEY (`id`),
- UNIQUE KEY `jobName` (`jobName`)
- ) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8mb4;
- -- ----------------------------
- -- Records of t_job
- -- ----------------------------
- -- ----------------------------
- -- Table structure for t_mail
- -- ----------------------------
- DROP TABLE IF EXISTS `t_mail`;
- CREATE TABLE `t_mail` (
- `id` int(11) NOT NULL AUTO_INCREMENT,
- `userId` int(11) NOT NULL COMMENT '发送人',
- `subject` varchar(255) NOT NULL COMMENT '标题',
- `content` longtext NOT NULL COMMENT '正文',
- `createTime` datetime NOT NULL,
- `updateTime` datetime NOT NULL,
- PRIMARY KEY (`id`)
- ) ENGINE=InnoDB AUTO_INCREMENT=9 DEFAULT CHARSET=utf8mb4;
- -- ----------------------------
- -- Records of t_mail
- -- ----------------------------
- -- ----------------------------
- -- Table structure for t_mail_to
- -- ----------------------------
- DROP TABLE IF EXISTS `t_mail_to`;
- CREATE TABLE `t_mail_to` (
- `id` int(11) NOT NULL AUTO_INCREMENT,
- `mailId` int(11) NOT NULL,
- `toUser` varchar(128) NOT NULL,
- `status` tinyint(1) NOT NULL DEFAULT '1' COMMENT '1成功,0失败',
- PRIMARY KEY (`id`)
- ) ENGINE=InnoDB AUTO_INCREMENT=16 DEFAULT CHARSET=utf8mb4;
- -- ----------------------------
- -- Records of t_mail_to
- -- ----------------------------
- -- ----------------------------
- -- Table structure for t_notice
- -- ----------------------------
- DROP TABLE IF EXISTS `t_notice`;
- CREATE TABLE `t_notice` (
- `id` int(11) NOT NULL AUTO_INCREMENT,
- `title` varchar(128) NOT NULL,
- `content` text NOT NULL,
- `status` tinyint(1) NOT NULL DEFAULT '1',
- `createTime` datetime NOT NULL,
- `updateTime` datetime NOT NULL,
- PRIMARY KEY (`id`)
- ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
- -- ----------------------------
- -- Records of t_notice
- -- ----------------------------
- -- ----------------------------
- -- Table structure for t_notice_read
- -- ----------------------------
- DROP TABLE IF EXISTS `t_notice_read`;
- CREATE TABLE `t_notice_read` (
- `noticeId` int(11) NOT NULL,
- `userId` int(11) NOT NULL,
- `createTime` datetime NOT NULL,
- PRIMARY KEY (`noticeId`,`userId`)
- ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
- -- ----------------------------
- -- Records of t_notice_read
- -- ----------------------------
- -- ----------------------------
- -- Table structure for t_token
- -- ----------------------------
- DROP TABLE IF EXISTS `t_token`;
- CREATE TABLE `t_token` (
- `id` varchar(36) NOT NULL COMMENT 'token',
- `val` text NOT NULL COMMENT 'LoginUser的json串',
- `expireTime` datetime NOT NULL,
- `createTime` datetime NOT NULL,
- `updateTime` datetime NOT NULL,
- PRIMARY KEY (`id`)
- ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
|