db.sql 24 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556
  1. /*
  2. Navicat MySQL Data Transfer
  3. Source Server : zhangw
  4. Source Server Version : 50624
  5. Source Host : localhost:3306
  6. Source Database : boot_security
  7. Target Server Type : MYSQL
  8. Target Server Version : 50624
  9. File Encoding : 65001
  10. Date: 2017-10-15 21:38:30
  11. */
  12. SET FOREIGN_KEY_CHECKS=0;
  13. -- ----------------------------
  14. -- Table structure for file_info
  15. -- ----------------------------
  16. DROP TABLE IF EXISTS `file_info`;
  17. CREATE TABLE `file_info` (
  18. `id` varchar(32) NOT NULL COMMENT '文件md5',
  19. `contentType` varchar(128) NOT NULL,
  20. `size` int(11) NOT NULL,
  21. `path` varchar(255) NOT NULL COMMENT '物理路径',
  22. `url` varchar(1024) NOT NULL,
  23. `type` int(1) NOT NULL,
  24. `createTime` datetime NOT NULL,
  25. `updateTime` datetime NOT NULL,
  26. PRIMARY KEY (`id`)
  27. ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
  28. -- ----------------------------
  29. -- Records of file_info
  30. -- ----------------------------
  31. -- ----------------------------
  32. -- Table structure for QRTZ_BLOB_TRIGGERS
  33. -- ----------------------------
  34. DROP TABLE IF EXISTS `QRTZ_BLOB_TRIGGERS`;
  35. CREATE TABLE `QRTZ_BLOB_TRIGGERS` (
  36. `SCHED_NAME` varchar(64) COLLATE utf8mb4_bin NOT NULL,
  37. `TRIGGER_NAME` varchar(64) COLLATE utf8mb4_bin NOT NULL,
  38. `TRIGGER_GROUP` varchar(64) COLLATE utf8mb4_bin NOT NULL,
  39. `BLOB_DATA` blob,
  40. PRIMARY KEY (`SCHED_NAME`,`TRIGGER_NAME`,`TRIGGER_GROUP`)
  41. ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_bin;
  42. -- ----------------------------
  43. -- Table structure for QRTZ_CALENDARS
  44. -- ----------------------------
  45. DROP TABLE IF EXISTS `QRTZ_CALENDARS`;
  46. CREATE TABLE `QRTZ_CALENDARS` (
  47. `SCHED_NAME` varchar(64) COLLATE utf8mb4_bin NOT NULL,
  48. `CALENDAR_NAME` varchar(128) COLLATE utf8mb4_bin NOT NULL,
  49. `CALENDAR` blob NOT NULL,
  50. PRIMARY KEY (`SCHED_NAME`,`CALENDAR_NAME`)
  51. ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_bin;
  52. -- ----------------------------
  53. -- Table structure for QRTZ_CRON_TRIGGERS
  54. -- ----------------------------
  55. DROP TABLE IF EXISTS `QRTZ_CRON_TRIGGERS`;
  56. CREATE TABLE `QRTZ_CRON_TRIGGERS` (
  57. `SCHED_NAME` varchar(64) COLLATE utf8mb4_bin NOT NULL,
  58. `TRIGGER_NAME` varchar(64) COLLATE utf8mb4_bin NOT NULL,
  59. `TRIGGER_GROUP` varchar(64) COLLATE utf8mb4_bin NOT NULL,
  60. `CRON_EXPRESSION` varchar(64) COLLATE utf8mb4_bin NOT NULL,
  61. `TIME_ZONE_ID` varchar(80) COLLATE utf8mb4_bin DEFAULT NULL,
  62. PRIMARY KEY (`SCHED_NAME`,`TRIGGER_NAME`,`TRIGGER_GROUP`)
  63. ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_bin;
  64. -- ----------------------------
  65. -- Table structure for QRTZ_FIRED_TRIGGERS
  66. -- ----------------------------
  67. DROP TABLE IF EXISTS `QRTZ_FIRED_TRIGGERS`;
  68. CREATE TABLE `QRTZ_FIRED_TRIGGERS` (
  69. `SCHED_NAME` varchar(64) COLLATE utf8mb4_bin NOT NULL,
  70. `ENTRY_ID` varchar(128) COLLATE utf8mb4_bin NOT NULL,
  71. `TRIGGER_NAME` varchar(64) COLLATE utf8mb4_bin NOT NULL,
  72. `TRIGGER_GROUP` varchar(64) COLLATE utf8mb4_bin NOT NULL,
  73. `INSTANCE_NAME` varchar(64) COLLATE utf8mb4_bin NOT NULL,
  74. `FIRED_TIME` bigint(13) NOT NULL,
  75. `SCHED_TIME` bigint(13) NOT NULL,
  76. `PRIORITY` int(11) NOT NULL,
  77. `STATE` varchar(16) COLLATE utf8mb4_bin NOT NULL,
  78. `JOB_NAME` varchar(64) COLLATE utf8mb4_bin DEFAULT NULL,
  79. `JOB_GROUP` varchar(64) COLLATE utf8mb4_bin DEFAULT NULL,
  80. `IS_NONCONCURRENT` varchar(1) COLLATE utf8mb4_bin DEFAULT NULL,
  81. `REQUESTS_RECOVERY` varchar(1) COLLATE utf8mb4_bin DEFAULT NULL,
  82. PRIMARY KEY (`SCHED_NAME`,`ENTRY_ID`)
  83. ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_bin;
  84. -- ----------------------------
  85. -- Table structure for QRTZ_JOB_DETAILS
  86. -- ----------------------------
  87. DROP TABLE IF EXISTS `QRTZ_JOB_DETAILS`;
  88. CREATE TABLE `QRTZ_JOB_DETAILS` (
  89. `SCHED_NAME` varchar(64) COLLATE utf8mb4_bin NOT NULL,
  90. `JOB_NAME` varchar(64) COLLATE utf8mb4_bin NOT NULL,
  91. `JOB_GROUP` varchar(64) COLLATE utf8mb4_bin NOT NULL,
  92. `DESCRIPTION` varchar(128) COLLATE utf8mb4_bin DEFAULT NULL,
  93. `JOB_CLASS_NAME` varchar(255) COLLATE utf8mb4_bin NOT NULL,
  94. `IS_DURABLE` varchar(1) COLLATE utf8mb4_bin NOT NULL,
  95. `IS_NONCONCURRENT` varchar(1) COLLATE utf8mb4_bin NOT NULL,
  96. `IS_UPDATE_DATA` varchar(1) COLLATE utf8mb4_bin NOT NULL,
  97. `REQUESTS_RECOVERY` varchar(1) COLLATE utf8mb4_bin NOT NULL,
  98. `JOB_DATA` blob,
  99. PRIMARY KEY (`SCHED_NAME`,`JOB_NAME`,`JOB_GROUP`)
  100. ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_bin;
  101. -- ----------------------------
  102. -- Table structure for QRTZ_LOCKS
  103. -- ----------------------------
  104. DROP TABLE IF EXISTS `QRTZ_LOCKS`;
  105. CREATE TABLE `QRTZ_LOCKS` (
  106. `SCHED_NAME` varchar(64) COLLATE utf8mb4_bin NOT NULL,
  107. `LOCK_NAME` varchar(64) COLLATE utf8mb4_bin NOT NULL,
  108. PRIMARY KEY (`SCHED_NAME`,`LOCK_NAME`)
  109. ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_bin;
  110. -- ----------------------------
  111. -- Table structure for QRTZ_PAUSED_TRIGGER_GRPS
  112. -- ----------------------------
  113. DROP TABLE IF EXISTS `QRTZ_PAUSED_TRIGGER_GRPS`;
  114. CREATE TABLE `QRTZ_PAUSED_TRIGGER_GRPS` (
  115. `SCHED_NAME` varchar(64) COLLATE utf8mb4_bin NOT NULL,
  116. `TRIGGER_GROUP` varchar(64) COLLATE utf8mb4_bin NOT NULL,
  117. PRIMARY KEY (`SCHED_NAME`,`TRIGGER_GROUP`)
  118. ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_bin;
  119. -- ----------------------------
  120. -- Table structure for QRTZ_SCHEDULER_STATE
  121. -- ----------------------------
  122. DROP TABLE IF EXISTS `QRTZ_SCHEDULER_STATE`;
  123. CREATE TABLE `QRTZ_SCHEDULER_STATE` (
  124. `SCHED_NAME` varchar(64) COLLATE utf8mb4_bin NOT NULL,
  125. `INSTANCE_NAME` varchar(128) COLLATE utf8mb4_bin NOT NULL,
  126. `LAST_CHECKIN_TIME` bigint(13) NOT NULL,
  127. `CHECKIN_INTERVAL` bigint(13) NOT NULL,
  128. PRIMARY KEY (`SCHED_NAME`,`INSTANCE_NAME`)
  129. ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_bin;
  130. -- ----------------------------
  131. -- Table structure for QRTZ_SIMPLE_TRIGGERS
  132. -- ----------------------------
  133. DROP TABLE IF EXISTS `QRTZ_SIMPLE_TRIGGERS`;
  134. CREATE TABLE `QRTZ_SIMPLE_TRIGGERS` (
  135. `SCHED_NAME` varchar(64) COLLATE utf8mb4_bin NOT NULL,
  136. `TRIGGER_NAME` varchar(64) COLLATE utf8mb4_bin NOT NULL,
  137. `TRIGGER_GROUP` varchar(64) COLLATE utf8mb4_bin NOT NULL,
  138. `REPEAT_COUNT` bigint(7) NOT NULL,
  139. `REPEAT_INTERVAL` bigint(12) NOT NULL,
  140. `TIMES_TRIGGERED` bigint(10) NOT NULL,
  141. PRIMARY KEY (`SCHED_NAME`,`TRIGGER_NAME`,`TRIGGER_GROUP`)
  142. ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_bin;
  143. -- ----------------------------
  144. -- Table structure for QRTZ_SIMPROP_TRIGGERS
  145. -- ----------------------------
  146. DROP TABLE IF EXISTS `QRTZ_SIMPROP_TRIGGERS`;
  147. CREATE TABLE `QRTZ_SIMPROP_TRIGGERS` (
  148. `SCHED_NAME` varchar(64) COLLATE utf8mb4_bin NOT NULL,
  149. `TRIGGER_NAME` varchar(64) COLLATE utf8mb4_bin NOT NULL,
  150. `TRIGGER_GROUP` varchar(64) COLLATE utf8mb4_bin NOT NULL,
  151. `STR_PROP_1` varchar(512) COLLATE utf8mb4_bin DEFAULT NULL,
  152. `STR_PROP_2` varchar(512) COLLATE utf8mb4_bin DEFAULT NULL,
  153. `STR_PROP_3` varchar(512) COLLATE utf8mb4_bin DEFAULT NULL,
  154. `INT_PROP_1` int(11) DEFAULT NULL,
  155. `INT_PROP_2` int(11) DEFAULT NULL,
  156. `LONG_PROP_1` bigint(20) DEFAULT NULL,
  157. `LONG_PROP_2` bigint(20) DEFAULT NULL,
  158. `DEC_PROP_1` decimal(13,4) DEFAULT NULL,
  159. `DEC_PROP_2` decimal(13,4) DEFAULT NULL,
  160. `BOOL_PROP_1` varchar(1) COLLATE utf8mb4_bin DEFAULT NULL,
  161. `BOOL_PROP_2` varchar(1) COLLATE utf8mb4_bin DEFAULT NULL,
  162. PRIMARY KEY (`SCHED_NAME`,`TRIGGER_NAME`,`TRIGGER_GROUP`)
  163. ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_bin;
  164. -- ----------------------------
  165. -- Table structure for QRTZ_TRIGGERS
  166. -- ----------------------------
  167. DROP TABLE IF EXISTS `QRTZ_TRIGGERS`;
  168. CREATE TABLE `QRTZ_TRIGGERS` (
  169. `SCHED_NAME` varchar(64) COLLATE utf8mb4_bin NOT NULL,
  170. `TRIGGER_NAME` varchar(64) COLLATE utf8mb4_bin NOT NULL,
  171. `TRIGGER_GROUP` varchar(64) COLLATE utf8mb4_bin NOT NULL,
  172. `JOB_NAME` varchar(64) COLLATE utf8mb4_bin NOT NULL,
  173. `JOB_GROUP` varchar(64) COLLATE utf8mb4_bin NOT NULL,
  174. `DESCRIPTION` varchar(128) COLLATE utf8mb4_bin DEFAULT NULL,
  175. `NEXT_FIRE_TIME` bigint(13) DEFAULT NULL,
  176. `PREV_FIRE_TIME` bigint(13) DEFAULT NULL,
  177. `PRIORITY` int(11) DEFAULT NULL,
  178. `TRIGGER_STATE` varchar(16) COLLATE utf8mb4_bin NOT NULL,
  179. `TRIGGER_TYPE` varchar(8) COLLATE utf8mb4_bin NOT NULL,
  180. `START_TIME` bigint(13) NOT NULL,
  181. `END_TIME` bigint(13) DEFAULT NULL,
  182. `CALENDAR_NAME` varchar(128) COLLATE utf8mb4_bin DEFAULT NULL,
  183. `MISFIRE_INSTR` smallint(2) DEFAULT NULL,
  184. `JOB_DATA` blob,
  185. PRIMARY KEY (`SCHED_NAME`,`TRIGGER_NAME`,`TRIGGER_GROUP`),
  186. KEY `SCHED_NAME` (`SCHED_NAME`,`JOB_NAME`,`JOB_GROUP`)
  187. ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_bin;
  188. -- ----------------------------
  189. -- Table structure for sys_logs
  190. -- ----------------------------
  191. DROP TABLE IF EXISTS `sys_logs`;
  192. CREATE TABLE `sys_logs` (
  193. `id` int(11) NOT NULL AUTO_INCREMENT,
  194. `userId` int(11) NOT NULL,
  195. `module` varchar(50) DEFAULT NULL COMMENT '模块名',
  196. `flag` tinyint(4) NOT NULL DEFAULT '1' COMMENT '成功失败',
  197. `remark` text COMMENT '备注',
  198. `createTime` datetime NOT NULL,
  199. PRIMARY KEY (`id`),
  200. KEY `userId` (`userId`),
  201. KEY `createTime` (`createTime`)
  202. ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
  203. -- ----------------------------
  204. -- Records of sys_logs
  205. -- ----------------------------
  206. -- ----------------------------
  207. -- Table structure for sys_permission
  208. -- ----------------------------
  209. DROP TABLE IF EXISTS `sys_permission`;
  210. CREATE TABLE `sys_permission` (
  211. `id` int(11) NOT NULL AUTO_INCREMENT,
  212. `parentId` int(11) NOT NULL,
  213. `name` varchar(50) NOT NULL,
  214. `css` varchar(30) DEFAULT NULL,
  215. `href` varchar(1000) DEFAULT NULL,
  216. `type` tinyint(1) NOT NULL,
  217. `permission` varchar(50) DEFAULT NULL,
  218. `sort` int(11) NOT NULL,
  219. PRIMARY KEY (`id`)
  220. ) ENGINE=InnoDB AUTO_INCREMENT=37 DEFAULT CHARSET=utf8mb4;
  221. -- ----------------------------
  222. -- Records of sys_permission
  223. -- ----------------------------
  224. INSERT INTO `sys_permission` VALUES ('1', '0', '用户管理', 'fa-users', '', '1', '', '1');
  225. INSERT INTO `sys_permission` VALUES ('2', '1', '用户查询', 'fa-user', 'pages/user/userList.html', '1', '', '2');
  226. INSERT INTO `sys_permission` VALUES ('3', '2', '查询', '', '', '2', 'sys:user:query', '100');
  227. INSERT INTO `sys_permission` VALUES ('4', '2', '新增', '', '', '2', 'sys:user:add', '100');
  228. INSERT INTO `sys_permission` VALUES ('6', '0', '修改密码', 'fa-pencil-square-o', 'pages/user/changePassword.html', '1', 'sys:user:password', '4');
  229. INSERT INTO `sys_permission` VALUES ('7', '0', '系统设置', 'fa-gears', '', '1', '', '5');
  230. INSERT INTO `sys_permission` VALUES ('8', '7', '菜单', 'fa-cog', 'pages/menu/menuList.html', '1', '', '6');
  231. INSERT INTO `sys_permission` VALUES ('9', '8', '查询', '', '', '2', 'sys:menu:query', '100');
  232. INSERT INTO `sys_permission` VALUES ('10', '8', '新增', '', '', '2', 'sys:menu:add', '100');
  233. INSERT INTO `sys_permission` VALUES ('11', '8', '删除', '', '', '2', 'sys:menu:del', '100');
  234. INSERT INTO `sys_permission` VALUES ('12', '7', '角色', 'fa-user-secret', 'pages/role/roleList.html', '1', '', '7');
  235. INSERT INTO `sys_permission` VALUES ('13', '12', '查询', '', '', '2', 'sys:role:query', '100');
  236. INSERT INTO `sys_permission` VALUES ('14', '12', '新增', '', '', '2', 'sys:role:add', '100');
  237. INSERT INTO `sys_permission` VALUES ('15', '12', '删除', '', '', '2', 'sys:role:del', '100');
  238. INSERT INTO `sys_permission` VALUES ('16', '0', '文件管理', 'fa-folder-open', 'pages/file/fileList.html', '1', '', '8');
  239. INSERT INTO `sys_permission` VALUES ('17', '16', '查询', '', '', '2', 'sys:file:query', '100');
  240. INSERT INTO `sys_permission` VALUES ('18', '16', '删除', '', '', '2', 'sys:file:del', '100');
  241. INSERT INTO `sys_permission` VALUES ('19', '0', '数据源监控', 'fa-eye', 'druid/index.html', '1', '', '9');
  242. INSERT INTO `sys_permission` VALUES ('20', '0', '接口swagger', 'fa-file-pdf-o', 'swagger-ui.html', '1', '', '10');
  243. INSERT INTO `sys_permission` VALUES ('21', '0', '代码生成', 'fa-wrench', 'pages/generate/edit.html', '1', 'generate:edit', '11');
  244. INSERT INTO `sys_permission` VALUES ('22', '0', '公告管理', 'fa-book', 'pages/notice/noticeList.html', '1', '', '12');
  245. INSERT INTO `sys_permission` VALUES ('23', '22', '查询', '', '', '2', 'notice:query', '100');
  246. INSERT INTO `sys_permission` VALUES ('24', '22', '添加', '', '', '2', 'notice:add', '100');
  247. INSERT INTO `sys_permission` VALUES ('25', '22', '删除', '', '', '2', 'notice:del', '100');
  248. INSERT INTO `sys_permission` VALUES ('26', '0', '日志查询', 'fa-reorder', 'pages/log/logList.html', '1', 'sys:log:query', '13');
  249. INSERT INTO `sys_permission` VALUES ('27', '0', '邮件管理', 'fa-envelope', 'pages/mail/mailList.html', '1', '', '14');
  250. INSERT INTO `sys_permission` VALUES ('28', '27', '发送邮件', '', '', '2', 'mail:send', '100');
  251. INSERT INTO `sys_permission` VALUES ('29', '27', '查询', '', '', '2', 'mail:all:query', '100');
  252. INSERT INTO `sys_permission` VALUES ('30', '0', '定时任务管理', 'fa-tasks', 'pages/job/jobList.html', '1', '', '15');
  253. INSERT INTO `sys_permission` VALUES ('31', '30', '查询', '', '', '2', 'job:query', '100');
  254. INSERT INTO `sys_permission` VALUES ('32', '30', '新增', '', '', '2', 'job:add', '100');
  255. INSERT INTO `sys_permission` VALUES ('33', '30', '删除', '', '', '2', 'job:del', '100');
  256. INSERT INTO `sys_permission` VALUES ('34', '0', 'excel导出', 'fa-arrow-circle-down', 'pages/excel/sql.html', '1', '', '16');
  257. INSERT INTO `sys_permission` VALUES ('35', '34', '导出', '', '', '2', 'excel:down', '100');
  258. INSERT INTO `sys_permission` VALUES ('36', '34', '页面显示数据', '', '', '2', 'excel:show:datas', '100');
  259. INSERT INTO `sys_permission` VALUES ('37', '0', '字典管理', 'fa-reddit', 'pages/dict/dictList.html', '1', '', '17');
  260. INSERT INTO `sys_permission` VALUES ('38', '37', '查询', '', '', '2', 'dict:query', '100');
  261. INSERT INTO `sys_permission` VALUES ('39', '37', '新增', '', '', '2', 'dict:add', '100');
  262. INSERT INTO `sys_permission` VALUES ('40', '37', '删除', '', '', '2', 'dict:del', '100');
  263. -- ----------------------------
  264. -- Table structure for sys_role
  265. -- ----------------------------
  266. DROP TABLE IF EXISTS `sys_role`;
  267. CREATE TABLE `sys_role` (
  268. `id` int(11) NOT NULL AUTO_INCREMENT,
  269. `name` varchar(50) NOT NULL,
  270. `description` varchar(100) DEFAULT NULL,
  271. `createTime` datetime NOT NULL,
  272. `updateTime` datetime NOT NULL,
  273. PRIMARY KEY (`id`),
  274. UNIQUE KEY `name` (`name`)
  275. ) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=utf8mb4;
  276. -- ----------------------------
  277. -- Records of sys_role
  278. -- ----------------------------
  279. INSERT INTO `sys_role` VALUES ('1', 'ADMIN', '管理员', '2017-05-01 13:25:39', '2017-10-05 21:59:18');
  280. INSERT INTO `sys_role` VALUES ('2', 'USER', '', '2017-08-01 21:47:31', '2017-10-05 21:59:26');
  281. -- ----------------------------
  282. -- Table structure for sys_role_permission
  283. -- ----------------------------
  284. DROP TABLE IF EXISTS `sys_role_permission`;
  285. CREATE TABLE `sys_role_permission` (
  286. `roleId` int(11) NOT NULL,
  287. `permissionId` int(11) NOT NULL,
  288. PRIMARY KEY (`roleId`,`permissionId`)
  289. ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
  290. -- ----------------------------
  291. -- Records of sys_role_permission
  292. -- ----------------------------
  293. INSERT INTO `sys_role_permission` VALUES ('1', '1');
  294. INSERT INTO `sys_role_permission` VALUES ('1', '2');
  295. INSERT INTO `sys_role_permission` VALUES ('1', '3');
  296. INSERT INTO `sys_role_permission` VALUES ('1', '4');
  297. INSERT INTO `sys_role_permission` VALUES ('1', '6');
  298. INSERT INTO `sys_role_permission` VALUES ('1', '7');
  299. INSERT INTO `sys_role_permission` VALUES ('1', '8');
  300. INSERT INTO `sys_role_permission` VALUES ('1', '9');
  301. INSERT INTO `sys_role_permission` VALUES ('1', '10');
  302. INSERT INTO `sys_role_permission` VALUES ('1', '11');
  303. INSERT INTO `sys_role_permission` VALUES ('1', '12');
  304. INSERT INTO `sys_role_permission` VALUES ('1', '13');
  305. INSERT INTO `sys_role_permission` VALUES ('1', '14');
  306. INSERT INTO `sys_role_permission` VALUES ('1', '15');
  307. INSERT INTO `sys_role_permission` VALUES ('1', '16');
  308. INSERT INTO `sys_role_permission` VALUES ('1', '17');
  309. INSERT INTO `sys_role_permission` VALUES ('1', '18');
  310. INSERT INTO `sys_role_permission` VALUES ('1', '19');
  311. INSERT INTO `sys_role_permission` VALUES ('1', '20');
  312. INSERT INTO `sys_role_permission` VALUES ('1', '21');
  313. INSERT INTO `sys_role_permission` VALUES ('1', '22');
  314. INSERT INTO `sys_role_permission` VALUES ('1', '23');
  315. INSERT INTO `sys_role_permission` VALUES ('1', '24');
  316. INSERT INTO `sys_role_permission` VALUES ('1', '25');
  317. INSERT INTO `sys_role_permission` VALUES ('1', '26');
  318. INSERT INTO `sys_role_permission` VALUES ('1', '27');
  319. INSERT INTO `sys_role_permission` VALUES ('1', '28');
  320. INSERT INTO `sys_role_permission` VALUES ('1', '29');
  321. INSERT INTO `sys_role_permission` VALUES ('1', '30');
  322. INSERT INTO `sys_role_permission` VALUES ('1', '31');
  323. INSERT INTO `sys_role_permission` VALUES ('1', '32');
  324. INSERT INTO `sys_role_permission` VALUES ('1', '33');
  325. INSERT INTO `sys_role_permission` VALUES ('1', '34');
  326. INSERT INTO `sys_role_permission` VALUES ('1', '35');
  327. INSERT INTO `sys_role_permission` VALUES ('1', '36');
  328. INSERT INTO `sys_role_permission` VALUES ('1', '37');
  329. INSERT INTO `sys_role_permission` VALUES ('1', '38');
  330. INSERT INTO `sys_role_permission` VALUES ('1', '39');
  331. INSERT INTO `sys_role_permission` VALUES ('1', '40');
  332. INSERT INTO `sys_role_permission` VALUES ('2', '1');
  333. INSERT INTO `sys_role_permission` VALUES ('2', '2');
  334. INSERT INTO `sys_role_permission` VALUES ('2', '3');
  335. INSERT INTO `sys_role_permission` VALUES ('2', '4');
  336. INSERT INTO `sys_role_permission` VALUES ('2', '6');
  337. INSERT INTO `sys_role_permission` VALUES ('2', '7');
  338. INSERT INTO `sys_role_permission` VALUES ('2', '8');
  339. INSERT INTO `sys_role_permission` VALUES ('2', '9');
  340. INSERT INTO `sys_role_permission` VALUES ('2', '10');
  341. INSERT INTO `sys_role_permission` VALUES ('2', '11');
  342. INSERT INTO `sys_role_permission` VALUES ('2', '12');
  343. INSERT INTO `sys_role_permission` VALUES ('2', '13');
  344. INSERT INTO `sys_role_permission` VALUES ('2', '14');
  345. INSERT INTO `sys_role_permission` VALUES ('2', '15');
  346. INSERT INTO `sys_role_permission` VALUES ('2', '16');
  347. INSERT INTO `sys_role_permission` VALUES ('2', '17');
  348. INSERT INTO `sys_role_permission` VALUES ('2', '18');
  349. INSERT INTO `sys_role_permission` VALUES ('2', '19');
  350. INSERT INTO `sys_role_permission` VALUES ('2', '20');
  351. INSERT INTO `sys_role_permission` VALUES ('2', '21');
  352. INSERT INTO `sys_role_permission` VALUES ('2', '22');
  353. INSERT INTO `sys_role_permission` VALUES ('2', '23');
  354. INSERT INTO `sys_role_permission` VALUES ('2', '24');
  355. INSERT INTO `sys_role_permission` VALUES ('2', '25');
  356. INSERT INTO `sys_role_permission` VALUES ('2', '30');
  357. INSERT INTO `sys_role_permission` VALUES ('2', '31');
  358. INSERT INTO `sys_role_permission` VALUES ('2', '34');
  359. INSERT INTO `sys_role_permission` VALUES ('2', '36');
  360. -- ----------------------------
  361. -- Table structure for sys_role_user
  362. -- ----------------------------
  363. DROP TABLE IF EXISTS `sys_role_user`;
  364. CREATE TABLE `sys_role_user` (
  365. `userId` int(11) NOT NULL,
  366. `roleId` int(11) NOT NULL,
  367. PRIMARY KEY (`userId`,`roleId`)
  368. ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
  369. -- ----------------------------
  370. -- Records of sys_role_user
  371. -- ----------------------------
  372. INSERT INTO `sys_role_user` VALUES ('1', '1');
  373. INSERT INTO `sys_role_user` VALUES ('2', '2');
  374. -- ----------------------------
  375. -- Table structure for sys_user
  376. -- ----------------------------
  377. DROP TABLE IF EXISTS `sys_user`;
  378. CREATE TABLE `sys_user` (
  379. `id` int(11) NOT NULL AUTO_INCREMENT,
  380. `username` varchar(50) NOT NULL,
  381. `password` varchar(60) NOT NULL,
  382. `nickname` varchar(255) DEFAULT NULL,
  383. `headImgUrl` varchar(255) DEFAULT NULL,
  384. `phone` varchar(11) DEFAULT NULL,
  385. `telephone` varchar(30) DEFAULT NULL,
  386. `email` varchar(50) DEFAULT NULL,
  387. `birthday` date DEFAULT NULL,
  388. `sex` tinyint(1) DEFAULT NULL,
  389. `status` tinyint(1) NOT NULL DEFAULT '1',
  390. `createTime` datetime NOT NULL,
  391. `updateTime` datetime NOT NULL,
  392. PRIMARY KEY (`id`),
  393. UNIQUE KEY `username` (`username`)
  394. ) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=utf8mb4;
  395. -- ----------------------------
  396. -- Records of sys_user
  397. -- ----------------------------
  398. 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');
  399. 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');
  400. -- ----------------------------
  401. -- Table structure for t_dict
  402. -- ----------------------------
  403. DROP TABLE IF EXISTS `t_dict`;
  404. CREATE TABLE `t_dict` (
  405. `id` int(11) NOT NULL AUTO_INCREMENT,
  406. `type` varchar(16) NOT NULL,
  407. `k` varchar(16) NOT NULL,
  408. `val` varchar(64) NOT NULL,
  409. `createTime` datetime NOT NULL,
  410. `updateTime` datetime NOT NULL,
  411. PRIMARY KEY (`id`),
  412. UNIQUE KEY `type` (`type`,`k`)
  413. ) ENGINE=InnoDB AUTO_INCREMENT=10 DEFAULT CHARSET=utf8mb4;
  414. -- ----------------------------
  415. -- Records of t_dict
  416. -- ----------------------------
  417. INSERT INTO `t_dict` VALUES ('1', 'sex', '0', '女', '2017-11-17 09:58:24', '2017-11-18 14:21:05');
  418. INSERT INTO `t_dict` VALUES ('2', 'sex', '1', '男', '2017-11-17 10:03:46', '2017-11-17 10:03:46');
  419. INSERT INTO `t_dict` VALUES ('3', 'userStatus', '0', '无效', '2017-11-17 16:26:06', '2017-11-17 16:26:09');
  420. INSERT INTO `t_dict` VALUES ('4', 'userStatus', '1', '正常', '2017-11-17 16:26:06', '2017-11-17 16:26:09');
  421. INSERT INTO `t_dict` VALUES ('5', 'userStatus', '2', '锁定', '2017-11-17 16:26:06', '2017-11-17 16:26:09');
  422. INSERT INTO `t_dict` VALUES ('6', 'noticeStatus', '0', '草稿', '2017-11-17 16:26:06', '2017-11-17 16:26:09');
  423. INSERT INTO `t_dict` VALUES ('7', 'noticeStatus', '1', '发布', '2017-11-17 16:26:06', '2017-11-17 16:26:09');
  424. INSERT INTO `t_dict` VALUES ('8', 'isRead', '0', '未读', '2017-11-17 16:26:06', '2017-11-17 16:26:09');
  425. INSERT INTO `t_dict` VALUES ('9', 'isRead', '1', '已读', '2017-11-17 16:26:06', '2017-11-17 16:26:09');
  426. -- ----------------------------
  427. -- Table structure for t_job
  428. -- ----------------------------
  429. DROP TABLE IF EXISTS `t_job`;
  430. CREATE TABLE `t_job` (
  431. `id` int(11) NOT NULL AUTO_INCREMENT,
  432. `jobName` varchar(64) NOT NULL,
  433. `description` varchar(255) DEFAULT NULL,
  434. `cron` varchar(64) NOT NULL,
  435. `springBeanName` varchar(64) NOT NULL COMMENT 'springBean名',
  436. `methodName` varchar(64) NOT NULL COMMENT '方法名',
  437. `isSysJob` tinyint(1) NOT NULL COMMENT '是否是系统job',
  438. `status` tinyint(1) NOT NULL DEFAULT '1',
  439. `createTime` datetime NOT NULL,
  440. `updateTime` datetime NOT NULL,
  441. PRIMARY KEY (`id`),
  442. UNIQUE KEY `jobName` (`jobName`)
  443. ) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8mb4;
  444. -- ----------------------------
  445. -- Records of t_job
  446. -- ----------------------------
  447. -- ----------------------------
  448. -- Table structure for t_mail
  449. -- ----------------------------
  450. DROP TABLE IF EXISTS `t_mail`;
  451. CREATE TABLE `t_mail` (
  452. `id` int(11) NOT NULL AUTO_INCREMENT,
  453. `userId` int(11) NOT NULL COMMENT '发送人',
  454. `subject` varchar(255) NOT NULL COMMENT '标题',
  455. `content` longtext NOT NULL COMMENT '正文',
  456. `createTime` datetime NOT NULL,
  457. `updateTime` datetime NOT NULL,
  458. PRIMARY KEY (`id`)
  459. ) ENGINE=InnoDB AUTO_INCREMENT=9 DEFAULT CHARSET=utf8mb4;
  460. -- ----------------------------
  461. -- Records of t_mail
  462. -- ----------------------------
  463. -- ----------------------------
  464. -- Table structure for t_mail_to
  465. -- ----------------------------
  466. DROP TABLE IF EXISTS `t_mail_to`;
  467. CREATE TABLE `t_mail_to` (
  468. `id` int(11) NOT NULL AUTO_INCREMENT,
  469. `mailId` int(11) NOT NULL,
  470. `toUser` varchar(128) NOT NULL,
  471. `status` tinyint(1) NOT NULL DEFAULT '1' COMMENT '1成功,0失败',
  472. PRIMARY KEY (`id`)
  473. ) ENGINE=InnoDB AUTO_INCREMENT=16 DEFAULT CHARSET=utf8mb4;
  474. -- ----------------------------
  475. -- Records of t_mail_to
  476. -- ----------------------------
  477. -- ----------------------------
  478. -- Table structure for t_notice
  479. -- ----------------------------
  480. DROP TABLE IF EXISTS `t_notice`;
  481. CREATE TABLE `t_notice` (
  482. `id` int(11) NOT NULL AUTO_INCREMENT,
  483. `title` varchar(128) NOT NULL,
  484. `content` text NOT NULL,
  485. `status` tinyint(1) NOT NULL DEFAULT '1',
  486. `createTime` datetime NOT NULL,
  487. `updateTime` datetime NOT NULL,
  488. PRIMARY KEY (`id`)
  489. ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
  490. -- ----------------------------
  491. -- Records of t_notice
  492. -- ----------------------------
  493. -- ----------------------------
  494. -- Table structure for t_notice_read
  495. -- ----------------------------
  496. DROP TABLE IF EXISTS `t_notice_read`;
  497. CREATE TABLE `t_notice_read` (
  498. `noticeId` int(11) NOT NULL,
  499. `userId` int(11) NOT NULL,
  500. `createTime` datetime NOT NULL,
  501. PRIMARY KEY (`noticeId`,`userId`)
  502. ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
  503. -- ----------------------------
  504. -- Records of t_notice_read
  505. -- ----------------------------
  506. -- ----------------------------
  507. -- Table structure for t_token
  508. -- ----------------------------
  509. DROP TABLE IF EXISTS `t_token`;
  510. CREATE TABLE `t_token` (
  511. `id` varchar(36) NOT NULL COMMENT 'token',
  512. `val` text NOT NULL COMMENT 'LoginUser的json串',
  513. `expireTime` datetime NOT NULL,
  514. `createTime` datetime NOT NULL,
  515. `updateTime` datetime NOT NULL,
  516. PRIMARY KEY (`id`)
  517. ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;