eladmin.sql 48 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825
  1. /*
  2. Navicat Premium Data Transfer
  3. Source Server : localhost
  4. Source Server Type : MySQL
  5. Source Server Version : 100505
  6. Source Host : localhost:3306
  7. Source Schema : eladmin
  8. Target Server Type : MySQL
  9. Target Server Version : 100505
  10. File Encoding : 65001
  11. Date: 05/09/2020 10:49:19
  12. */
  13. SET NAMES utf8mb4;
  14. SET FOREIGN_KEY_CHECKS = 0;
  15. -- ----------------------------
  16. -- Table structure for code_column_config
  17. -- ----------------------------
  18. DROP TABLE IF EXISTS `code_column_config`;
  19. CREATE TABLE `code_column_config` (
  20. `column_id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT 'ID',
  21. `table_name` varchar(255) DEFAULT NULL,
  22. `column_name` varchar(255) DEFAULT NULL,
  23. `column_type` varchar(255) DEFAULT NULL,
  24. `dict_name` varchar(255) DEFAULT NULL,
  25. `extra` varchar(255) DEFAULT NULL,
  26. `form_show` bit(1) DEFAULT NULL,
  27. `form_type` varchar(255) DEFAULT NULL,
  28. `key_type` varchar(255) DEFAULT NULL,
  29. `list_show` bit(1) DEFAULT NULL,
  30. `not_null` bit(1) DEFAULT NULL,
  31. `query_type` varchar(255) DEFAULT NULL,
  32. `remark` varchar(255) DEFAULT NULL,
  33. `date_annotation` varchar(255) DEFAULT NULL,
  34. PRIMARY KEY (`column_id`) USING BTREE,
  35. KEY `idx_table_name` (`table_name`)
  36. ) ENGINE=InnoDB AUTO_INCREMENT=191 DEFAULT CHARSET=utf8 ROW_FORMAT=COMPACT COMMENT='代码生成字段信息存储';
  37. -- ----------------------------
  38. -- Table structure for code_gen_config
  39. -- ----------------------------
  40. DROP TABLE IF EXISTS `code_gen_config`;
  41. CREATE TABLE `code_gen_config` (
  42. `config_id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT 'ID',
  43. `table_name` varchar(255) DEFAULT NULL COMMENT '表名',
  44. `author` varchar(255) DEFAULT NULL COMMENT '作者',
  45. `cover` bit(1) DEFAULT NULL COMMENT '是否覆盖',
  46. `module_name` varchar(255) DEFAULT NULL COMMENT '模块名称',
  47. `pack` varchar(255) DEFAULT NULL COMMENT '至于哪个包下',
  48. `path` varchar(255) DEFAULT NULL COMMENT '前端代码生成的路径',
  49. `api_path` varchar(255) DEFAULT NULL COMMENT '前端Api文件路径',
  50. `prefix` varchar(255) DEFAULT NULL COMMENT '表前缀',
  51. `api_alias` varchar(255) DEFAULT NULL COMMENT '接口名称',
  52. PRIMARY KEY (`config_id`) USING BTREE,
  53. KEY `idx_table_name` (`table_name`(100))
  54. ) ENGINE=InnoDB AUTO_INCREMENT=7 DEFAULT CHARSET=utf8 ROW_FORMAT=COMPACT COMMENT='代码生成器配置';
  55. -- ----------------------------
  56. -- Table structure for mnt_app
  57. -- ----------------------------
  58. DROP TABLE IF EXISTS `mnt_app`;
  59. CREATE TABLE `mnt_app` (
  60. `app_id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT 'ID',
  61. `name` varchar(255) DEFAULT NULL COMMENT '应用名称',
  62. `upload_path` varchar(255) DEFAULT NULL COMMENT '上传目录',
  63. `deploy_path` varchar(255) DEFAULT NULL COMMENT '部署路径',
  64. `backup_path` varchar(255) DEFAULT NULL COMMENT '备份路径',
  65. `port` int(255) DEFAULT NULL COMMENT '应用端口',
  66. `start_script` varchar(4000) DEFAULT NULL COMMENT '启动脚本',
  67. `deploy_script` varchar(4000) DEFAULT NULL COMMENT '部署脚本',
  68. `create_by` varchar(255) DEFAULT NULL COMMENT '创建者',
  69. `update_by` varchar(255) DEFAULT NULL COMMENT '更新者',
  70. `create_time` datetime DEFAULT NULL COMMENT '创建日期',
  71. `update_time` datetime DEFAULT NULL COMMENT '更新时间',
  72. PRIMARY KEY (`app_id`) USING BTREE
  73. ) ENGINE=InnoDB DEFAULT CHARSET=utf8 ROW_FORMAT=COMPACT COMMENT='应用管理';
  74. -- ----------------------------
  75. -- Records of mnt_app
  76. -- ----------------------------
  77. BEGIN;
  78. COMMIT;
  79. -- ----------------------------
  80. -- Table structure for mnt_database
  81. -- ----------------------------
  82. DROP TABLE IF EXISTS `mnt_database`;
  83. CREATE TABLE `mnt_database` (
  84. `db_id` varchar(50) NOT NULL COMMENT 'ID',
  85. `name` varchar(255) NOT NULL COMMENT '名称',
  86. `jdbc_url` varchar(255) NOT NULL COMMENT 'jdbc连接',
  87. `user_name` varchar(255) NOT NULL COMMENT '账号',
  88. `pwd` varchar(255) NOT NULL COMMENT '密码',
  89. `create_by` varchar(255) DEFAULT NULL COMMENT '创建者',
  90. `update_by` varchar(255) DEFAULT NULL COMMENT '更新者',
  91. `create_time` datetime DEFAULT NULL COMMENT '创建时间',
  92. `update_time` datetime DEFAULT NULL COMMENT '更新时间',
  93. PRIMARY KEY (`db_id`) USING BTREE
  94. ) ENGINE=InnoDB DEFAULT CHARSET=utf8 ROW_FORMAT=COMPACT COMMENT='数据库管理';
  95. -- ----------------------------
  96. -- Records of mnt_database
  97. -- ----------------------------
  98. BEGIN;
  99. COMMIT;
  100. -- ----------------------------
  101. -- Table structure for mnt_deploy
  102. -- ----------------------------
  103. DROP TABLE IF EXISTS `mnt_deploy`;
  104. CREATE TABLE `mnt_deploy` (
  105. `deploy_id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT 'ID',
  106. `app_id` bigint(20) DEFAULT NULL COMMENT '应用编号',
  107. `create_by` varchar(255) DEFAULT NULL COMMENT '创建者',
  108. `update_by` varchar(255) DEFAULT NULL COMMENT '更新者',
  109. `create_time` datetime DEFAULT NULL,
  110. `update_time` datetime DEFAULT NULL COMMENT '更新时间',
  111. PRIMARY KEY (`deploy_id`) USING BTREE,
  112. KEY `FK6sy157pseoxx4fmcqr1vnvvhy` (`app_id`) USING BTREE
  113. ) ENGINE=InnoDB DEFAULT CHARSET=utf8 ROW_FORMAT=COMPACT COMMENT='部署管理';
  114. -- ----------------------------
  115. -- Records of mnt_deploy
  116. -- ----------------------------
  117. BEGIN;
  118. COMMIT;
  119. -- ----------------------------
  120. -- Table structure for mnt_deploy_history
  121. -- ----------------------------
  122. DROP TABLE IF EXISTS `mnt_deploy_history`;
  123. CREATE TABLE `mnt_deploy_history` (
  124. `history_id` varchar(50) NOT NULL COMMENT 'ID',
  125. `app_name` varchar(255) NOT NULL COMMENT '应用名称',
  126. `deploy_date` datetime NOT NULL COMMENT '部署日期',
  127. `deploy_user` varchar(50) NOT NULL COMMENT '部署用户',
  128. `ip` varchar(20) NOT NULL COMMENT '服务器IP',
  129. `deploy_id` bigint(20) DEFAULT NULL COMMENT '部署编号',
  130. PRIMARY KEY (`history_id`) USING BTREE
  131. ) ENGINE=InnoDB DEFAULT CHARSET=utf8 ROW_FORMAT=COMPACT COMMENT='部署历史管理';
  132. -- ----------------------------
  133. -- Records of mnt_deploy_history
  134. -- ----------------------------
  135. BEGIN;
  136. COMMIT;
  137. -- ----------------------------
  138. -- Table structure for mnt_deploy_server
  139. -- ----------------------------
  140. DROP TABLE IF EXISTS `mnt_deploy_server`;
  141. CREATE TABLE `mnt_deploy_server` (
  142. `deploy_id` bigint(20) NOT NULL COMMENT '部署ID',
  143. `server_id` bigint(20) NOT NULL COMMENT '服务ID',
  144. PRIMARY KEY (`deploy_id`,`server_id`) USING BTREE,
  145. KEY `FKeaaha7jew9a02b3bk9ghols53` (`server_id`) USING BTREE
  146. ) ENGINE=InnoDB DEFAULT CHARSET=utf8 ROW_FORMAT=COMPACT COMMENT='应用与服务器关联';
  147. -- ----------------------------
  148. -- Records of mnt_deploy_server
  149. -- ----------------------------
  150. BEGIN;
  151. COMMIT;
  152. -- ----------------------------
  153. -- Table structure for mnt_server
  154. -- ----------------------------
  155. DROP TABLE IF EXISTS `mnt_server`;
  156. CREATE TABLE `mnt_server` (
  157. `server_id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT 'ID',
  158. `account` varchar(50) DEFAULT NULL COMMENT '账号',
  159. `ip` varchar(20) DEFAULT NULL COMMENT 'IP地址',
  160. `name` varchar(100) DEFAULT NULL COMMENT '名称',
  161. `password` varchar(100) DEFAULT NULL COMMENT '密码',
  162. `port` int(11) DEFAULT NULL COMMENT '端口',
  163. `create_by` varchar(255) DEFAULT NULL COMMENT '创建者',
  164. `update_by` varchar(255) DEFAULT NULL COMMENT '更新者',
  165. `create_time` datetime DEFAULT NULL COMMENT '创建时间',
  166. `update_time` datetime DEFAULT NULL COMMENT '更新时间',
  167. PRIMARY KEY (`server_id`) USING BTREE,
  168. KEY `idx_ip` (`ip`)
  169. ) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8 ROW_FORMAT=COMPACT COMMENT='服务器管理';
  170. -- ----------------------------
  171. -- Table structure for sys_dept
  172. -- ----------------------------
  173. DROP TABLE IF EXISTS `sys_dept`;
  174. CREATE TABLE `sys_dept` (
  175. `dept_id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT 'ID',
  176. `pid` bigint(20) DEFAULT NULL COMMENT '上级部门',
  177. `sub_count` int(5) DEFAULT 0 COMMENT '子部门数目',
  178. `name` varchar(255) NOT NULL COMMENT '名称',
  179. `dept_sort` int(5) DEFAULT 999 COMMENT '排序',
  180. `enabled` bit(1) NOT NULL COMMENT '状态',
  181. `create_by` varchar(255) DEFAULT NULL COMMENT '创建者',
  182. `update_by` varchar(255) DEFAULT NULL COMMENT '更新者',
  183. `create_time` datetime DEFAULT NULL COMMENT '创建日期',
  184. `update_time` datetime DEFAULT NULL COMMENT '更新时间',
  185. PRIMARY KEY (`dept_id`) USING BTREE,
  186. KEY `inx_pid` (`pid`),
  187. KEY `inx_enabled` (`enabled`)
  188. ) ENGINE=InnoDB AUTO_INCREMENT=18 DEFAULT CHARSET=utf8 ROW_FORMAT=COMPACT COMMENT='部门';
  189. -- ----------------------------
  190. -- Records of sys_dept
  191. -- ----------------------------
  192. BEGIN;
  193. INSERT INTO `sys_dept` VALUES (2, 7, 1, '研发部', 3, b'1', 'admin', 'admin', '2019-03-25 09:15:32', '2020-08-02 14:48:47');
  194. INSERT INTO `sys_dept` VALUES (5, 7, 0, '运维部', 4, b'1', 'admin', 'admin', '2019-03-25 09:20:44', '2020-05-17 14:27:27');
  195. INSERT INTO `sys_dept` VALUES (6, 8, 0, '测试部', 6, b'1', 'admin', 'admin', '2019-03-25 09:52:18', '2020-06-08 11:59:21');
  196. INSERT INTO `sys_dept` VALUES (7, NULL, 2, '华南分部', 0, b'1', 'admin', 'admin', '2019-03-25 11:04:50', '2020-06-08 12:08:56');
  197. INSERT INTO `sys_dept` VALUES (8, NULL, 2, '华北分部', 1, b'1', 'admin', 'admin', '2019-03-25 11:04:53', '2020-05-14 12:54:00');
  198. INSERT INTO `sys_dept` VALUES (15, 8, 0, 'UI部门', 7, b'1', 'admin', 'admin', '2020-05-13 22:56:53', '2020-05-14 12:54:13');
  199. INSERT INTO `sys_dept` VALUES (17, 2, 0, '研发一组', 999, b'1', 'admin', 'admin', '2020-08-02 14:49:07', '2020-08-02 14:49:07');
  200. COMMIT;
  201. -- ----------------------------
  202. -- Table structure for sys_dict
  203. -- ----------------------------
  204. DROP TABLE IF EXISTS `sys_dict`;
  205. CREATE TABLE `sys_dict` (
  206. `dict_id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT 'ID',
  207. `name` varchar(255) NOT NULL COMMENT '字典名称',
  208. `description` varchar(255) DEFAULT NULL COMMENT '描述',
  209. `create_by` varchar(255) DEFAULT NULL COMMENT '创建者',
  210. `update_by` varchar(255) DEFAULT NULL COMMENT '更新者',
  211. `create_time` datetime DEFAULT NULL COMMENT '创建日期',
  212. `update_time` datetime DEFAULT NULL COMMENT '更新时间',
  213. PRIMARY KEY (`dict_id`) USING BTREE
  214. ) ENGINE=InnoDB AUTO_INCREMENT=6 DEFAULT CHARSET=utf8 ROW_FORMAT=COMPACT COMMENT='数据字典';
  215. -- ----------------------------
  216. -- Records of sys_dict
  217. -- ----------------------------
  218. BEGIN;
  219. INSERT INTO `sys_dict` VALUES (1, 'user_status', '用户状态', NULL, NULL, '2019-10-27 20:31:36', NULL);
  220. INSERT INTO `sys_dict` VALUES (4, 'dept_status', '部门状态', NULL, NULL, '2019-10-27 20:31:36', NULL);
  221. INSERT INTO `sys_dict` VALUES (5, 'job_status', '岗位状态', NULL, NULL, '2019-10-27 20:31:36', NULL);
  222. COMMIT;
  223. -- ----------------------------
  224. -- Table structure for sys_dict_detail
  225. -- ----------------------------
  226. DROP TABLE IF EXISTS `sys_dict_detail`;
  227. CREATE TABLE `sys_dict_detail` (
  228. `detail_id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT 'ID',
  229. `dict_id` bigint(11) DEFAULT NULL COMMENT '字典id',
  230. `label` varchar(255) NOT NULL COMMENT '字典标签',
  231. `value` varchar(255) NOT NULL COMMENT '字典值',
  232. `dict_sort` int(5) DEFAULT NULL COMMENT '排序',
  233. `create_by` varchar(255) DEFAULT NULL COMMENT '创建者',
  234. `update_by` varchar(255) DEFAULT NULL COMMENT '更新者',
  235. `create_time` datetime DEFAULT NULL COMMENT '创建日期',
  236. `update_time` datetime DEFAULT NULL COMMENT '更新时间',
  237. PRIMARY KEY (`detail_id`) USING BTREE,
  238. KEY `FK5tpkputc6d9nboxojdbgnpmyb` (`dict_id`) USING BTREE
  239. ) ENGINE=InnoDB AUTO_INCREMENT=7 DEFAULT CHARSET=utf8 ROW_FORMAT=COMPACT COMMENT='数据字典详情';
  240. -- ----------------------------
  241. -- Records of sys_dict_detail
  242. -- ----------------------------
  243. BEGIN;
  244. INSERT INTO `sys_dict_detail` VALUES (1, 1, '激活', 'true', 1, NULL, NULL, '2019-10-27 20:31:36', NULL);
  245. INSERT INTO `sys_dict_detail` VALUES (2, 1, '禁用', 'false', 2, NULL, NULL, NULL, NULL);
  246. INSERT INTO `sys_dict_detail` VALUES (3, 4, '启用', 'true', 1, NULL, NULL, NULL, NULL);
  247. INSERT INTO `sys_dict_detail` VALUES (4, 4, '停用', 'false', 2, NULL, NULL, '2019-10-27 20:31:36', NULL);
  248. INSERT INTO `sys_dict_detail` VALUES (5, 5, '启用', 'true', 1, NULL, NULL, NULL, NULL);
  249. INSERT INTO `sys_dict_detail` VALUES (6, 5, '停用', 'false', 2, NULL, NULL, '2019-10-27 20:31:36', NULL);
  250. COMMIT;
  251. -- ----------------------------
  252. -- Table structure for sys_job
  253. -- ----------------------------
  254. DROP TABLE IF EXISTS `sys_job`;
  255. CREATE TABLE `sys_job` (
  256. `job_id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT 'ID',
  257. `name` varchar(255) NOT NULL COMMENT '岗位名称',
  258. `enabled` bit(1) NOT NULL COMMENT '岗位状态',
  259. `job_sort` int(5) DEFAULT NULL COMMENT '排序',
  260. `create_by` varchar(255) DEFAULT NULL COMMENT '创建者',
  261. `update_by` varchar(255) DEFAULT NULL COMMENT '更新者',
  262. `create_time` datetime DEFAULT NULL COMMENT '创建日期',
  263. `update_time` datetime DEFAULT NULL COMMENT '更新时间',
  264. PRIMARY KEY (`job_id`) USING BTREE,
  265. UNIQUE KEY `uniq_name` (`name`),
  266. KEY `inx_enabled` (`enabled`)
  267. ) ENGINE=InnoDB AUTO_INCREMENT=13 DEFAULT CHARSET=utf8 ROW_FORMAT=COMPACT COMMENT='岗位';
  268. -- ----------------------------
  269. -- Records of sys_job
  270. -- ----------------------------
  271. BEGIN;
  272. INSERT INTO `sys_job` VALUES (8, '人事专员', b'1', 3, NULL, NULL, '2019-03-29 14:52:28', NULL);
  273. INSERT INTO `sys_job` VALUES (10, '产品经理', b'1', 4, NULL, NULL, '2019-03-29 14:55:51', NULL);
  274. INSERT INTO `sys_job` VALUES (11, '全栈开发', b'1', 2, NULL, 'admin', '2019-03-31 13:39:30', '2020-05-05 11:33:43');
  275. INSERT INTO `sys_job` VALUES (12, '软件测试', b'1', 5, NULL, 'admin', '2019-03-31 13:39:43', '2020-05-10 19:56:26');
  276. COMMIT;
  277. -- ----------------------------
  278. -- Table structure for sys_log
  279. -- ----------------------------
  280. DROP TABLE IF EXISTS `sys_log`;
  281. CREATE TABLE `sys_log` (
  282. `log_id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT 'ID',
  283. `description` varchar(255) DEFAULT NULL,
  284. `log_type` varchar(255) DEFAULT NULL,
  285. `method` varchar(255) DEFAULT NULL,
  286. `params` text DEFAULT NULL,
  287. `request_ip` varchar(255) DEFAULT NULL,
  288. `time` bigint(20) DEFAULT NULL,
  289. `username` varchar(255) DEFAULT NULL,
  290. `address` varchar(255) DEFAULT NULL,
  291. `browser` varchar(255) DEFAULT NULL,
  292. `exception_detail` text DEFAULT NULL,
  293. `create_time` datetime DEFAULT NULL,
  294. PRIMARY KEY (`log_id`) USING BTREE,
  295. KEY `log_create_time_index` (`create_time`),
  296. KEY `inx_log_type` (`log_type`)
  297. ) ENGINE=InnoDB AUTO_INCREMENT=3537 DEFAULT CHARSET=utf8 ROW_FORMAT=COMPACT COMMENT='系统日志';
  298. -- ----------------------------
  299. -- Table structure for sys_menu
  300. -- ----------------------------
  301. DROP TABLE IF EXISTS `sys_menu`;
  302. CREATE TABLE `sys_menu` (
  303. `menu_id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT 'ID',
  304. `pid` bigint(20) DEFAULT NULL COMMENT '上级菜单ID',
  305. `sub_count` int(5) DEFAULT 0 COMMENT '子菜单数目',
  306. `type` int(11) DEFAULT NULL COMMENT '菜单类型',
  307. `title` varchar(255) DEFAULT NULL COMMENT '菜单标题',
  308. `name` varchar(255) DEFAULT NULL COMMENT '组件名称',
  309. `component` varchar(255) DEFAULT NULL COMMENT '组件',
  310. `menu_sort` int(5) DEFAULT NULL COMMENT '排序',
  311. `icon` varchar(255) DEFAULT NULL COMMENT '图标',
  312. `path` varchar(255) DEFAULT NULL COMMENT '链接地址',
  313. `i_frame` bit(1) DEFAULT NULL COMMENT '是否外链',
  314. `cache` bit(1) DEFAULT b'0' COMMENT '缓存',
  315. `hidden` bit(1) DEFAULT b'0' COMMENT '隐藏',
  316. `permission` varchar(255) DEFAULT NULL COMMENT '权限',
  317. `create_by` varchar(255) DEFAULT NULL COMMENT '创建者',
  318. `update_by` varchar(255) DEFAULT NULL COMMENT '更新者',
  319. `create_time` datetime DEFAULT NULL COMMENT '创建日期',
  320. `update_time` datetime DEFAULT NULL COMMENT '更新时间',
  321. PRIMARY KEY (`menu_id`) USING BTREE,
  322. UNIQUE KEY `uniq_title` (`title`),
  323. UNIQUE KEY `uniq_name` (`name`),
  324. KEY `inx_pid` (`pid`)
  325. ) ENGINE=InnoDB AUTO_INCREMENT=118 DEFAULT CHARSET=utf8 ROW_FORMAT=COMPACT COMMENT='系统菜单';
  326. -- ----------------------------
  327. -- Records of sys_menu
  328. -- ----------------------------
  329. BEGIN;
  330. INSERT INTO `sys_menu` VALUES (1, NULL, 7, 0, '系统管理', NULL, NULL, 1, 'system', 'system', b'0', b'0', b'0', NULL, NULL, NULL, '2018-12-18 15:11:29', NULL);
  331. INSERT INTO `sys_menu` VALUES (2, 1, 3, 1, '用户管理', 'User', 'system/user/index', 2, 'peoples', 'user', b'0', b'0', b'0', 'user:list', NULL, NULL, '2018-12-18 15:14:44', NULL);
  332. INSERT INTO `sys_menu` VALUES (3, 1, 3, 1, '角色管理', 'Role', 'system/role/index', 3, 'role', 'role', b'0', b'0', b'0', 'roles:list', NULL, NULL, '2018-12-18 15:16:07', NULL);
  333. INSERT INTO `sys_menu` VALUES (5, 1, 3, 1, '菜单管理', 'Menu', 'system/menu/index', 5, 'menu', 'menu', b'0', b'0', b'0', 'menu:list', NULL, NULL, '2018-12-18 15:17:28', NULL);
  334. INSERT INTO `sys_menu` VALUES (6, NULL, 5, 0, '系统监控', NULL, NULL, 10, 'monitor', 'monitor', b'0', b'0', b'0', NULL, NULL, NULL, '2018-12-18 15:17:48', NULL);
  335. INSERT INTO `sys_menu` VALUES (7, 6, 0, 1, '操作日志', 'Log', 'monitor/log/index', 11, 'log', 'logs', b'0', b'1', b'0', NULL, NULL, 'admin', '2018-12-18 15:18:26', '2020-06-06 13:11:57');
  336. INSERT INTO `sys_menu` VALUES (9, 6, 0, 1, 'SQL监控', 'Sql', 'monitor/sql/index', 18, 'sqlMonitor', 'druid', b'0', b'0', b'0', NULL, NULL, NULL, '2018-12-18 15:19:34', NULL);
  337. INSERT INTO `sys_menu` VALUES (10, NULL, 5, 0, '组件管理', NULL, NULL, 50, 'zujian', 'components', b'0', b'0', b'0', NULL, NULL, NULL, '2018-12-19 13:38:16', NULL);
  338. INSERT INTO `sys_menu` VALUES (11, 10, 0, 1, '图标库', 'Icons', 'components/icons/index', 51, 'icon', 'icon', b'0', b'0', b'0', NULL, NULL, NULL, '2018-12-19 13:38:49', NULL);
  339. INSERT INTO `sys_menu` VALUES (14, 36, 0, 1, '邮件工具', 'Email', 'tools/email/index', 35, 'email', 'email', b'0', b'0', b'0', NULL, NULL, NULL, '2018-12-27 10:13:09', NULL);
  340. INSERT INTO `sys_menu` VALUES (15, 10, 0, 1, '富文本', 'Editor', 'components/Editor', 52, 'fwb', 'tinymce', b'0', b'0', b'0', NULL, NULL, NULL, '2018-12-27 11:58:25', NULL);
  341. INSERT INTO `sys_menu` VALUES (18, 36, 3, 1, '存储管理', 'Storage', 'tools/storage/index', 34, 'qiniu', 'storage', b'0', b'0', b'0', 'storage:list', NULL, NULL, '2018-12-31 11:12:15', NULL);
  342. INSERT INTO `sys_menu` VALUES (19, 36, 0, 1, '支付宝工具', 'AliPay', 'tools/aliPay/index', 37, 'alipay', 'aliPay', b'0', b'0', b'0', NULL, NULL, NULL, '2018-12-31 14:52:38', NULL);
  343. INSERT INTO `sys_menu` VALUES (21, NULL, 2, 0, '多级菜单', NULL, '', 900, 'menu', 'nested', b'0', b'0', b'0', NULL, NULL, 'admin', '2019-01-04 16:22:03', '2020-06-21 17:27:35');
  344. INSERT INTO `sys_menu` VALUES (22, 21, 2, 0, '二级菜单1', NULL, '', 999, 'menu', 'menu1', b'0', b'0', b'0', NULL, NULL, 'admin', '2019-01-04 16:23:29', '2020-06-21 17:27:20');
  345. INSERT INTO `sys_menu` VALUES (23, 21, 0, 1, '二级菜单2', NULL, 'nested/menu2/index', 999, 'menu', 'menu2', b'0', b'0', b'0', NULL, NULL, NULL, '2019-01-04 16:23:57', NULL);
  346. INSERT INTO `sys_menu` VALUES (24, 22, 0, 1, '三级菜单1', 'Test', 'nested/menu1/menu1-1', 999, 'menu', 'menu1-1', b'0', b'0', b'0', NULL, NULL, NULL, '2019-01-04 16:24:48', NULL);
  347. INSERT INTO `sys_menu` VALUES (27, 22, 0, 1, '三级菜单2', NULL, 'nested/menu1/menu1-2', 999, 'menu', 'menu1-2', b'0', b'0', b'0', NULL, NULL, NULL, '2019-01-07 17:27:32', NULL);
  348. INSERT INTO `sys_menu` VALUES (28, 1, 3, 1, '任务调度', 'Timing', 'system/timing/index', 999, 'timing', 'timing', b'0', b'0', b'0', 'timing:list', NULL, NULL, '2019-01-07 20:34:40', NULL);
  349. INSERT INTO `sys_menu` VALUES (30, 36, 0, 1, '代码生成', 'GeneratorIndex', 'generator/index', 32, 'dev', 'generator', b'0', b'1', b'0', NULL, NULL, NULL, '2019-01-11 15:45:55', NULL);
  350. INSERT INTO `sys_menu` VALUES (32, 6, 0, 1, '异常日志', 'ErrorLog', 'monitor/log/errorLog', 12, 'error', 'errorLog', b'0', b'0', b'0', NULL, NULL, NULL, '2019-01-13 13:49:03', NULL);
  351. INSERT INTO `sys_menu` VALUES (33, 10, 0, 1, 'Markdown', 'Markdown', 'components/MarkDown', 53, 'markdown', 'markdown', b'0', b'0', b'0', NULL, NULL, NULL, '2019-03-08 13:46:44', NULL);
  352. INSERT INTO `sys_menu` VALUES (34, 10, 0, 1, 'Yaml编辑器', 'YamlEdit', 'components/YamlEdit', 54, 'dev', 'yaml', b'0', b'0', b'0', NULL, NULL, NULL, '2019-03-08 15:49:40', NULL);
  353. INSERT INTO `sys_menu` VALUES (35, 1, 3, 1, '部门管理', 'Dept', 'system/dept/index', 6, 'dept', 'dept', b'0', b'0', b'0', 'dept:list', NULL, NULL, '2019-03-25 09:46:00', NULL);
  354. INSERT INTO `sys_menu` VALUES (36, NULL, 7, 0, '系统工具', NULL, '', 30, 'sys-tools', 'sys-tools', b'0', b'0', b'0', NULL, NULL, NULL, '2019-03-29 10:57:35', NULL);
  355. INSERT INTO `sys_menu` VALUES (37, 1, 3, 1, '岗位管理', 'Job', 'system/job/index', 7, 'Steve-Jobs', 'job', b'0', b'0', b'0', 'job:list', NULL, NULL, '2019-03-29 13:51:18', NULL);
  356. INSERT INTO `sys_menu` VALUES (38, 36, 0, 1, '接口文档', 'Swagger', 'tools/swagger/index', 36, 'swagger', 'swagger2', b'0', b'0', b'0', NULL, NULL, NULL, '2019-03-29 19:57:53', NULL);
  357. INSERT INTO `sys_menu` VALUES (39, 1, 3, 1, '字典管理', 'Dict', 'system/dict/index', 8, 'dictionary', 'dict', b'0', b'0', b'0', 'dict:list', NULL, NULL, '2019-04-10 11:49:04', NULL);
  358. INSERT INTO `sys_menu` VALUES (41, 6, 0, 1, '在线用户', 'OnlineUser', 'monitor/online/index', 10, 'Steve-Jobs', 'online', b'0', b'0', b'0', NULL, NULL, NULL, '2019-10-26 22:08:43', NULL);
  359. INSERT INTO `sys_menu` VALUES (44, 2, 0, 2, '用户新增', NULL, '', 2, '', '', b'0', b'0', b'0', 'user:add', NULL, NULL, '2019-10-29 10:59:46', NULL);
  360. INSERT INTO `sys_menu` VALUES (45, 2, 0, 2, '用户编辑', NULL, '', 3, '', '', b'0', b'0', b'0', 'user:edit', NULL, NULL, '2019-10-29 11:00:08', NULL);
  361. INSERT INTO `sys_menu` VALUES (46, 2, 0, 2, '用户删除', NULL, '', 4, '', '', b'0', b'0', b'0', 'user:del', NULL, NULL, '2019-10-29 11:00:23', NULL);
  362. INSERT INTO `sys_menu` VALUES (48, 3, 0, 2, '角色创建', NULL, '', 2, '', '', b'0', b'0', b'0', 'roles:add', NULL, NULL, '2019-10-29 12:45:34', NULL);
  363. INSERT INTO `sys_menu` VALUES (49, 3, 0, 2, '角色修改', NULL, '', 3, '', '', b'0', b'0', b'0', 'roles:edit', NULL, NULL, '2019-10-29 12:46:16', NULL);
  364. INSERT INTO `sys_menu` VALUES (50, 3, 0, 2, '角色删除', NULL, '', 4, '', '', b'0', b'0', b'0', 'roles:del', NULL, NULL, '2019-10-29 12:46:51', NULL);
  365. INSERT INTO `sys_menu` VALUES (52, 5, 0, 2, '菜单新增', NULL, '', 2, '', '', b'0', b'0', b'0', 'menu:add', NULL, NULL, '2019-10-29 12:55:07', NULL);
  366. INSERT INTO `sys_menu` VALUES (53, 5, 0, 2, '菜单编辑', NULL, '', 3, '', '', b'0', b'0', b'0', 'menu:edit', NULL, NULL, '2019-10-29 12:55:40', NULL);
  367. INSERT INTO `sys_menu` VALUES (54, 5, 0, 2, '菜单删除', NULL, '', 4, '', '', b'0', b'0', b'0', 'menu:del', NULL, NULL, '2019-10-29 12:56:00', NULL);
  368. INSERT INTO `sys_menu` VALUES (56, 35, 0, 2, '部门新增', NULL, '', 2, '', '', b'0', b'0', b'0', 'dept:add', NULL, NULL, '2019-10-29 12:57:09', NULL);
  369. INSERT INTO `sys_menu` VALUES (57, 35, 0, 2, '部门编辑', NULL, '', 3, '', '', b'0', b'0', b'0', 'dept:edit', NULL, NULL, '2019-10-29 12:57:27', NULL);
  370. INSERT INTO `sys_menu` VALUES (58, 35, 0, 2, '部门删除', NULL, '', 4, '', '', b'0', b'0', b'0', 'dept:del', NULL, NULL, '2019-10-29 12:57:41', NULL);
  371. INSERT INTO `sys_menu` VALUES (60, 37, 0, 2, '岗位新增', NULL, '', 2, '', '', b'0', b'0', b'0', 'job:add', NULL, NULL, '2019-10-29 12:58:27', NULL);
  372. INSERT INTO `sys_menu` VALUES (61, 37, 0, 2, '岗位编辑', NULL, '', 3, '', '', b'0', b'0', b'0', 'job:edit', NULL, NULL, '2019-10-29 12:58:45', NULL);
  373. INSERT INTO `sys_menu` VALUES (62, 37, 0, 2, '岗位删除', NULL, '', 4, '', '', b'0', b'0', b'0', 'job:del', NULL, NULL, '2019-10-29 12:59:04', NULL);
  374. INSERT INTO `sys_menu` VALUES (64, 39, 0, 2, '字典新增', NULL, '', 2, '', '', b'0', b'0', b'0', 'dict:add', NULL, NULL, '2019-10-29 13:00:17', NULL);
  375. INSERT INTO `sys_menu` VALUES (65, 39, 0, 2, '字典编辑', NULL, '', 3, '', '', b'0', b'0', b'0', 'dict:edit', NULL, NULL, '2019-10-29 13:00:42', NULL);
  376. INSERT INTO `sys_menu` VALUES (66, 39, 0, 2, '字典删除', NULL, '', 4, '', '', b'0', b'0', b'0', 'dict:del', NULL, NULL, '2019-10-29 13:00:59', NULL);
  377. INSERT INTO `sys_menu` VALUES (73, 28, 0, 2, '任务新增', NULL, '', 2, '', '', b'0', b'0', b'0', 'timing:add', NULL, NULL, '2019-10-29 13:07:28', NULL);
  378. INSERT INTO `sys_menu` VALUES (74, 28, 0, 2, '任务编辑', NULL, '', 3, '', '', b'0', b'0', b'0', 'timing:edit', NULL, NULL, '2019-10-29 13:07:41', NULL);
  379. INSERT INTO `sys_menu` VALUES (75, 28, 0, 2, '任务删除', NULL, '', 4, '', '', b'0', b'0', b'0', 'timing:del', NULL, NULL, '2019-10-29 13:07:54', NULL);
  380. INSERT INTO `sys_menu` VALUES (77, 18, 0, 2, '上传文件', NULL, '', 2, '', '', b'0', b'0', b'0', 'storage:add', NULL, NULL, '2019-10-29 13:09:09', NULL);
  381. INSERT INTO `sys_menu` VALUES (78, 18, 0, 2, '文件编辑', NULL, '', 3, '', '', b'0', b'0', b'0', 'storage:edit', NULL, NULL, '2019-10-29 13:09:22', NULL);
  382. INSERT INTO `sys_menu` VALUES (79, 18, 0, 2, '文件删除', NULL, '', 4, '', '', b'0', b'0', b'0', 'storage:del', NULL, NULL, '2019-10-29 13:09:34', NULL);
  383. INSERT INTO `sys_menu` VALUES (80, 6, 0, 1, '服务监控', 'ServerMonitor', 'monitor/server/index', 14, 'codeConsole', 'server', b'0', b'0', b'0', 'monitor:list', NULL, 'admin', '2019-11-07 13:06:39', '2020-05-04 18:20:50');
  384. INSERT INTO `sys_menu` VALUES (82, 36, 0, 1, '生成配置', 'GeneratorConfig', 'generator/config', 33, 'dev', 'generator/config/:tableName', b'0', b'1', b'1', '', NULL, NULL, '2019-11-17 20:08:56', NULL);
  385. INSERT INTO `sys_menu` VALUES (83, 10, 0, 1, '图表库', 'Echarts', 'components/Echarts', 50, 'chart', 'echarts', b'0', b'1', b'0', '', NULL, NULL, '2019-11-21 09:04:32', NULL);
  386. INSERT INTO `sys_menu` VALUES (90, NULL, 5, 1, '运维管理', 'Mnt', '', 20, 'mnt', 'mnt', b'0', b'0', b'0', NULL, NULL, NULL, '2019-11-09 10:31:08', NULL);
  387. INSERT INTO `sys_menu` VALUES (92, 90, 3, 1, '服务器', 'ServerDeploy', 'mnt/server/index', 22, 'server', 'mnt/serverDeploy', b'0', b'0', b'0', 'serverDeploy:list', NULL, NULL, '2019-11-10 10:29:25', NULL);
  388. INSERT INTO `sys_menu` VALUES (93, 90, 3, 1, '应用管理', 'App', 'mnt/app/index', 23, 'app', 'mnt/app', b'0', b'0', b'0', 'app:list', NULL, NULL, '2019-11-10 11:05:16', NULL);
  389. INSERT INTO `sys_menu` VALUES (94, 90, 3, 1, '部署管理', 'Deploy', 'mnt/deploy/index', 24, 'deploy', 'mnt/deploy', b'0', b'0', b'0', 'deploy:list', NULL, NULL, '2019-11-10 15:56:55', NULL);
  390. INSERT INTO `sys_menu` VALUES (97, 90, 1, 1, '部署备份', 'DeployHistory', 'mnt/deployHistory/index', 25, 'backup', 'mnt/deployHistory', b'0', b'0', b'0', 'deployHistory:list', NULL, NULL, '2019-11-10 16:49:44', NULL);
  391. INSERT INTO `sys_menu` VALUES (98, 90, 3, 1, '数据库管理', 'Database', 'mnt/database/index', 26, 'database', 'mnt/database', b'0', b'0', b'0', 'database:list', NULL, NULL, '2019-11-10 20:40:04', NULL);
  392. INSERT INTO `sys_menu` VALUES (102, 97, 0, 2, '删除', NULL, '', 999, '', '', b'0', b'0', b'0', 'deployHistory:del', NULL, NULL, '2019-11-17 09:32:48', NULL);
  393. INSERT INTO `sys_menu` VALUES (103, 92, 0, 2, '服务器新增', NULL, '', 999, '', '', b'0', b'0', b'0', 'serverDeploy:add', NULL, NULL, '2019-11-17 11:08:33', NULL);
  394. INSERT INTO `sys_menu` VALUES (104, 92, 0, 2, '服务器编辑', NULL, '', 999, '', '', b'0', b'0', b'0', 'serverDeploy:edit', NULL, NULL, '2019-11-17 11:08:57', NULL);
  395. INSERT INTO `sys_menu` VALUES (105, 92, 0, 2, '服务器删除', NULL, '', 999, '', '', b'0', b'0', b'0', 'serverDeploy:del', NULL, NULL, '2019-11-17 11:09:15', NULL);
  396. INSERT INTO `sys_menu` VALUES (106, 93, 0, 2, '应用新增', NULL, '', 999, '', '', b'0', b'0', b'0', 'app:add', NULL, NULL, '2019-11-17 11:10:03', NULL);
  397. INSERT INTO `sys_menu` VALUES (107, 93, 0, 2, '应用编辑', NULL, '', 999, '', '', b'0', b'0', b'0', 'app:edit', NULL, NULL, '2019-11-17 11:10:28', NULL);
  398. INSERT INTO `sys_menu` VALUES (108, 93, 0, 2, '应用删除', NULL, '', 999, '', '', b'0', b'0', b'0', 'app:del', NULL, NULL, '2019-11-17 11:10:55', NULL);
  399. INSERT INTO `sys_menu` VALUES (109, 94, 0, 2, '部署新增', NULL, '', 999, '', '', b'0', b'0', b'0', 'deploy:add', NULL, NULL, '2019-11-17 11:11:22', NULL);
  400. INSERT INTO `sys_menu` VALUES (110, 94, 0, 2, '部署编辑', NULL, '', 999, '', '', b'0', b'0', b'0', 'deploy:edit', NULL, NULL, '2019-11-17 11:11:41', NULL);
  401. INSERT INTO `sys_menu` VALUES (111, 94, 0, 2, '部署删除', NULL, '', 999, '', '', b'0', b'0', b'0', 'deploy:del', NULL, NULL, '2019-11-17 11:12:01', NULL);
  402. INSERT INTO `sys_menu` VALUES (112, 98, 0, 2, '数据库新增', NULL, '', 999, '', '', b'0', b'0', b'0', 'database:add', NULL, NULL, '2019-11-17 11:12:43', NULL);
  403. INSERT INTO `sys_menu` VALUES (113, 98, 0, 2, '数据库编辑', NULL, '', 999, '', '', b'0', b'0', b'0', 'database:edit', NULL, NULL, '2019-11-17 11:12:58', NULL);
  404. INSERT INTO `sys_menu` VALUES (114, 98, 0, 2, '数据库删除', NULL, '', 999, '', '', b'0', b'0', b'0', 'database:del', NULL, NULL, '2019-11-17 11:13:14', NULL);
  405. INSERT INTO `sys_menu` VALUES (116, 36, 0, 1, '生成预览', 'Preview', 'generator/preview', 999, 'java', 'generator/preview/:tableName', b'0', b'1', b'1', NULL, NULL, NULL, '2019-11-26 14:54:36', NULL);
  406. COMMIT;
  407. -- ----------------------------
  408. -- Table structure for sys_quartz_job
  409. -- ----------------------------
  410. DROP TABLE IF EXISTS `sys_quartz_job`;
  411. CREATE TABLE `sys_quartz_job` (
  412. `job_id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT 'ID',
  413. `bean_name` varchar(255) DEFAULT NULL COMMENT 'Spring Bean名称',
  414. `cron_expression` varchar(255) DEFAULT NULL COMMENT 'cron 表达式',
  415. `is_pause` bit(1) DEFAULT NULL COMMENT '状态:1暂停、0启用',
  416. `job_name` varchar(255) DEFAULT NULL COMMENT '任务名称',
  417. `method_name` varchar(255) DEFAULT NULL COMMENT '方法名称',
  418. `params` varchar(255) DEFAULT NULL COMMENT '参数',
  419. `description` varchar(255) DEFAULT NULL COMMENT '备注',
  420. `person_in_charge` varchar(100) DEFAULT NULL COMMENT '负责人',
  421. `email` varchar(100) DEFAULT NULL COMMENT '报警邮箱',
  422. `sub_task` varchar(100) DEFAULT NULL COMMENT '子任务ID',
  423. `pause_after_failure` bit(1) DEFAULT NULL COMMENT '任务失败后是否暂停',
  424. `create_by` varchar(255) DEFAULT NULL COMMENT '创建者',
  425. `update_by` varchar(255) DEFAULT NULL COMMENT '更新者',
  426. `create_time` datetime DEFAULT NULL COMMENT '创建日期',
  427. `update_time` datetime DEFAULT NULL COMMENT '更新时间',
  428. PRIMARY KEY (`job_id`) USING BTREE,
  429. KEY `inx_is_pause` (`is_pause`)
  430. ) ENGINE=InnoDB AUTO_INCREMENT=7 DEFAULT CHARSET=utf8 ROW_FORMAT=COMPACT COMMENT='定时任务';
  431. -- ----------------------------
  432. -- Records of sys_quartz_job
  433. -- ----------------------------
  434. BEGIN;
  435. INSERT INTO `sys_quartz_job` VALUES (2, 'testTask', '0/5 * * * * ?', b'1', '测试1', 'run1', 'test', '带参测试,多参使用json', '测试', NULL, NULL, NULL, NULL, 'admin', '2019-08-22 14:08:29', '2020-05-24 13:58:33');
  436. INSERT INTO `sys_quartz_job` VALUES (3, 'testTask', '0/5 * * * * ?', b'1', '测试', 'run', '', '不带参测试', 'Zheng Jie', '', '5,6', b'1', NULL, 'admin', '2019-09-26 16:44:39', '2020-05-24 14:48:12');
  437. INSERT INTO `sys_quartz_job` VALUES (5, 'Test', '0/5 * * * * ?', b'1', '任务告警测试', 'run', NULL, '测试', 'test', '', NULL, b'1', 'admin', 'admin', '2020-05-05 20:32:41', '2020-05-05 20:36:13');
  438. INSERT INTO `sys_quartz_job` VALUES (6, 'testTask', '0/5 * * * * ?', b'1', '测试3', 'run2', NULL, '测试3', 'Zheng Jie', '', NULL, b'1', 'admin', 'admin', '2020-05-05 20:35:41', '2020-05-05 20:36:07');
  439. COMMIT;
  440. -- ----------------------------
  441. -- Table structure for sys_quartz_log
  442. -- ----------------------------
  443. DROP TABLE IF EXISTS `sys_quartz_log`;
  444. CREATE TABLE `sys_quartz_log` (
  445. `log_id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT 'ID',
  446. `bean_name` varchar(255) DEFAULT NULL,
  447. `create_time` datetime DEFAULT NULL,
  448. `cron_expression` varchar(255) DEFAULT NULL,
  449. `exception_detail` text DEFAULT NULL,
  450. `is_success` bit(1) DEFAULT NULL,
  451. `job_name` varchar(255) DEFAULT NULL,
  452. `method_name` varchar(255) DEFAULT NULL,
  453. `params` varchar(255) DEFAULT NULL,
  454. `time` bigint(20) DEFAULT NULL,
  455. PRIMARY KEY (`log_id`) USING BTREE
  456. ) ENGINE=InnoDB AUTO_INCREMENT=151 DEFAULT CHARSET=utf8 ROW_FORMAT=COMPACT COMMENT='定时任务日志';
  457. -- ----------------------------
  458. -- Table structure for sys_role
  459. -- ----------------------------
  460. DROP TABLE IF EXISTS `sys_role`;
  461. CREATE TABLE `sys_role` (
  462. `role_id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT 'ID',
  463. `name` varchar(255) NOT NULL COMMENT '名称',
  464. `level` int(255) DEFAULT NULL COMMENT '角色级别',
  465. `description` varchar(255) DEFAULT NULL COMMENT '描述',
  466. `data_scope` varchar(255) DEFAULT NULL COMMENT '数据权限',
  467. `create_by` varchar(255) DEFAULT NULL COMMENT '创建者',
  468. `update_by` varchar(255) DEFAULT NULL COMMENT '更新者',
  469. `create_time` datetime DEFAULT NULL COMMENT '创建日期',
  470. `update_time` datetime DEFAULT NULL COMMENT '更新时间',
  471. PRIMARY KEY (`role_id`) USING BTREE,
  472. UNIQUE KEY `uniq_name` (`name`),
  473. KEY `role_name_index` (`name`)
  474. ) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=utf8 ROW_FORMAT=COMPACT COMMENT='角色表';
  475. -- ----------------------------
  476. -- Records of sys_role
  477. -- ----------------------------
  478. BEGIN;
  479. INSERT INTO `sys_role` VALUES (1, '超级管理员', 1, '-', '全部', NULL, 'admin', '2018-11-23 11:04:37', '2020-08-06 16:10:24');
  480. INSERT INTO `sys_role` VALUES (2, '普通用户', 2, '-', '本级', NULL, 'admin', '2018-11-23 13:09:06', '2020-09-05 10:45:12');
  481. COMMIT;
  482. -- ----------------------------
  483. -- Table structure for sys_roles_depts
  484. -- ----------------------------
  485. DROP TABLE IF EXISTS `sys_roles_depts`;
  486. CREATE TABLE `sys_roles_depts` (
  487. `role_id` bigint(20) NOT NULL,
  488. `dept_id` bigint(20) NOT NULL,
  489. PRIMARY KEY (`role_id`,`dept_id`) USING BTREE,
  490. KEY `FK7qg6itn5ajdoa9h9o78v9ksur` (`dept_id`) USING BTREE
  491. ) ENGINE=InnoDB DEFAULT CHARSET=utf8 ROW_FORMAT=COMPACT COMMENT='角色部门关联';
  492. -- ----------------------------
  493. -- Table structure for sys_roles_menus
  494. -- ----------------------------
  495. DROP TABLE IF EXISTS `sys_roles_menus`;
  496. CREATE TABLE `sys_roles_menus` (
  497. `menu_id` bigint(20) NOT NULL COMMENT '菜单ID',
  498. `role_id` bigint(20) NOT NULL COMMENT '角色ID',
  499. PRIMARY KEY (`menu_id`,`role_id`) USING BTREE,
  500. KEY `FKcngg2qadojhi3a651a5adkvbq` (`role_id`) USING BTREE
  501. ) ENGINE=InnoDB DEFAULT CHARSET=utf8 ROW_FORMAT=COMPACT COMMENT='角色菜单关联';
  502. -- ----------------------------
  503. -- Records of sys_roles_menus
  504. -- ----------------------------
  505. BEGIN;
  506. INSERT INTO `sys_roles_menus` VALUES (1, 1);
  507. INSERT INTO `sys_roles_menus` VALUES (2, 1);
  508. INSERT INTO `sys_roles_menus` VALUES (3, 1);
  509. INSERT INTO `sys_roles_menus` VALUES (5, 1);
  510. INSERT INTO `sys_roles_menus` VALUES (6, 1);
  511. INSERT INTO `sys_roles_menus` VALUES (7, 1);
  512. INSERT INTO `sys_roles_menus` VALUES (9, 1);
  513. INSERT INTO `sys_roles_menus` VALUES (10, 1);
  514. INSERT INTO `sys_roles_menus` VALUES (11, 1);
  515. INSERT INTO `sys_roles_menus` VALUES (14, 1);
  516. INSERT INTO `sys_roles_menus` VALUES (15, 1);
  517. INSERT INTO `sys_roles_menus` VALUES (18, 1);
  518. INSERT INTO `sys_roles_menus` VALUES (19, 1);
  519. INSERT INTO `sys_roles_menus` VALUES (21, 1);
  520. INSERT INTO `sys_roles_menus` VALUES (22, 1);
  521. INSERT INTO `sys_roles_menus` VALUES (23, 1);
  522. INSERT INTO `sys_roles_menus` VALUES (24, 1);
  523. INSERT INTO `sys_roles_menus` VALUES (27, 1);
  524. INSERT INTO `sys_roles_menus` VALUES (28, 1);
  525. INSERT INTO `sys_roles_menus` VALUES (30, 1);
  526. INSERT INTO `sys_roles_menus` VALUES (32, 1);
  527. INSERT INTO `sys_roles_menus` VALUES (33, 1);
  528. INSERT INTO `sys_roles_menus` VALUES (34, 1);
  529. INSERT INTO `sys_roles_menus` VALUES (35, 1);
  530. INSERT INTO `sys_roles_menus` VALUES (36, 1);
  531. INSERT INTO `sys_roles_menus` VALUES (37, 1);
  532. INSERT INTO `sys_roles_menus` VALUES (38, 1);
  533. INSERT INTO `sys_roles_menus` VALUES (39, 1);
  534. INSERT INTO `sys_roles_menus` VALUES (41, 1);
  535. INSERT INTO `sys_roles_menus` VALUES (44, 1);
  536. INSERT INTO `sys_roles_menus` VALUES (45, 1);
  537. INSERT INTO `sys_roles_menus` VALUES (46, 1);
  538. INSERT INTO `sys_roles_menus` VALUES (48, 1);
  539. INSERT INTO `sys_roles_menus` VALUES (49, 1);
  540. INSERT INTO `sys_roles_menus` VALUES (50, 1);
  541. INSERT INTO `sys_roles_menus` VALUES (52, 1);
  542. INSERT INTO `sys_roles_menus` VALUES (53, 1);
  543. INSERT INTO `sys_roles_menus` VALUES (54, 1);
  544. INSERT INTO `sys_roles_menus` VALUES (56, 1);
  545. INSERT INTO `sys_roles_menus` VALUES (57, 1);
  546. INSERT INTO `sys_roles_menus` VALUES (58, 1);
  547. INSERT INTO `sys_roles_menus` VALUES (60, 1);
  548. INSERT INTO `sys_roles_menus` VALUES (61, 1);
  549. INSERT INTO `sys_roles_menus` VALUES (62, 1);
  550. INSERT INTO `sys_roles_menus` VALUES (64, 1);
  551. INSERT INTO `sys_roles_menus` VALUES (65, 1);
  552. INSERT INTO `sys_roles_menus` VALUES (66, 1);
  553. INSERT INTO `sys_roles_menus` VALUES (73, 1);
  554. INSERT INTO `sys_roles_menus` VALUES (74, 1);
  555. INSERT INTO `sys_roles_menus` VALUES (75, 1);
  556. INSERT INTO `sys_roles_menus` VALUES (77, 1);
  557. INSERT INTO `sys_roles_menus` VALUES (78, 1);
  558. INSERT INTO `sys_roles_menus` VALUES (79, 1);
  559. INSERT INTO `sys_roles_menus` VALUES (80, 1);
  560. INSERT INTO `sys_roles_menus` VALUES (82, 1);
  561. INSERT INTO `sys_roles_menus` VALUES (83, 1);
  562. INSERT INTO `sys_roles_menus` VALUES (90, 1);
  563. INSERT INTO `sys_roles_menus` VALUES (92, 1);
  564. INSERT INTO `sys_roles_menus` VALUES (93, 1);
  565. INSERT INTO `sys_roles_menus` VALUES (94, 1);
  566. INSERT INTO `sys_roles_menus` VALUES (97, 1);
  567. INSERT INTO `sys_roles_menus` VALUES (98, 1);
  568. INSERT INTO `sys_roles_menus` VALUES (102, 1);
  569. INSERT INTO `sys_roles_menus` VALUES (103, 1);
  570. INSERT INTO `sys_roles_menus` VALUES (104, 1);
  571. INSERT INTO `sys_roles_menus` VALUES (105, 1);
  572. INSERT INTO `sys_roles_menus` VALUES (106, 1);
  573. INSERT INTO `sys_roles_menus` VALUES (107, 1);
  574. INSERT INTO `sys_roles_menus` VALUES (108, 1);
  575. INSERT INTO `sys_roles_menus` VALUES (109, 1);
  576. INSERT INTO `sys_roles_menus` VALUES (110, 1);
  577. INSERT INTO `sys_roles_menus` VALUES (111, 1);
  578. INSERT INTO `sys_roles_menus` VALUES (112, 1);
  579. INSERT INTO `sys_roles_menus` VALUES (113, 1);
  580. INSERT INTO `sys_roles_menus` VALUES (114, 1);
  581. INSERT INTO `sys_roles_menus` VALUES (116, 1);
  582. INSERT INTO `sys_roles_menus` VALUES (120, 1);
  583. INSERT INTO `sys_roles_menus` VALUES (1, 2);
  584. INSERT INTO `sys_roles_menus` VALUES (2, 2);
  585. INSERT INTO `sys_roles_menus` VALUES (6, 2);
  586. INSERT INTO `sys_roles_menus` VALUES (7, 2);
  587. INSERT INTO `sys_roles_menus` VALUES (9, 2);
  588. INSERT INTO `sys_roles_menus` VALUES (10, 2);
  589. INSERT INTO `sys_roles_menus` VALUES (11, 2);
  590. INSERT INTO `sys_roles_menus` VALUES (14, 2);
  591. INSERT INTO `sys_roles_menus` VALUES (15, 2);
  592. INSERT INTO `sys_roles_menus` VALUES (19, 2);
  593. INSERT INTO `sys_roles_menus` VALUES (21, 2);
  594. INSERT INTO `sys_roles_menus` VALUES (22, 2);
  595. INSERT INTO `sys_roles_menus` VALUES (23, 2);
  596. INSERT INTO `sys_roles_menus` VALUES (24, 2);
  597. INSERT INTO `sys_roles_menus` VALUES (27, 2);
  598. INSERT INTO `sys_roles_menus` VALUES (30, 2);
  599. INSERT INTO `sys_roles_menus` VALUES (32, 2);
  600. INSERT INTO `sys_roles_menus` VALUES (33, 2);
  601. INSERT INTO `sys_roles_menus` VALUES (34, 2);
  602. INSERT INTO `sys_roles_menus` VALUES (36, 2);
  603. INSERT INTO `sys_roles_menus` VALUES (80, 2);
  604. INSERT INTO `sys_roles_menus` VALUES (82, 2);
  605. INSERT INTO `sys_roles_menus` VALUES (83, 2);
  606. INSERT INTO `sys_roles_menus` VALUES (116, 2);
  607. COMMIT;
  608. -- ----------------------------
  609. -- Table structure for sys_user
  610. -- ----------------------------
  611. DROP TABLE IF EXISTS `sys_user`;
  612. CREATE TABLE `sys_user` (
  613. `user_id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT 'ID',
  614. `dept_id` bigint(20) DEFAULT NULL COMMENT '部门名称',
  615. `username` varchar(255) DEFAULT NULL COMMENT '用户名',
  616. `nick_name` varchar(255) DEFAULT NULL COMMENT '昵称',
  617. `gender` varchar(2) DEFAULT NULL COMMENT '性别',
  618. `phone` varchar(255) DEFAULT NULL COMMENT '手机号码',
  619. `email` varchar(255) DEFAULT NULL COMMENT '邮箱',
  620. `avatar_name` varchar(255) DEFAULT NULL COMMENT '头像地址',
  621. `avatar_path` varchar(255) DEFAULT NULL COMMENT '头像真实路径',
  622. `password` varchar(255) DEFAULT NULL COMMENT '密码',
  623. `is_admin` bit(1) DEFAULT b'0' COMMENT '是否为admin账号',
  624. `enabled` bigint(20) DEFAULT NULL COMMENT '状态:1启用、0禁用',
  625. `create_by` varchar(255) DEFAULT NULL COMMENT '创建者',
  626. `update_by` varchar(255) DEFAULT NULL COMMENT '更新着',
  627. `pwd_reset_time` datetime DEFAULT NULL COMMENT '修改密码的时间',
  628. `create_time` datetime DEFAULT NULL COMMENT '创建日期',
  629. `update_time` datetime DEFAULT NULL COMMENT '更新时间',
  630. PRIMARY KEY (`user_id`) USING BTREE,
  631. UNIQUE KEY `UK_kpubos9gc2cvtkb0thktkbkes` (`email`) USING BTREE,
  632. UNIQUE KEY `username` (`username`) USING BTREE,
  633. UNIQUE KEY `uniq_username` (`username`),
  634. UNIQUE KEY `uniq_email` (`email`),
  635. KEY `FK5rwmryny6jthaaxkogownknqp` (`dept_id`) USING BTREE,
  636. KEY `FKpq2dhypk2qgt68nauh2by22jb` (`avatar_name`) USING BTREE,
  637. KEY `inx_enabled` (`enabled`)
  638. ) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=utf8 ROW_FORMAT=COMPACT COMMENT='系统用户';
  639. -- ----------------------------
  640. -- Records of sys_user
  641. -- ----------------------------
  642. BEGIN;
  643. INSERT INTO `sys_user` VALUES (1, 2, 'admin', '管理员', '男', '18888888888', '201507802@qq.com', 'avatar-20200806032259161.png', '/Users/jie/Documents/work/me/admin/eladmin/~/avatar/avatar-20200806032259161.png', '$2a$10$Egp1/gvFlt7zhlXVfEFw4OfWQCGPw0ClmMcc6FjTnvXNRVf9zdMRa', b'1', 1, NULL, 'admin', '2020-05-03 16:38:31', '2018-08-23 09:11:56', '2020-09-05 10:43:31');
  644. INSERT INTO `sys_user` VALUES (2, 2, 'test', '测试', '男', '19999999999', '231@qq.com', NULL, NULL, '$2a$10$4XcyudOYTSz6fue6KFNMHeUQnCX5jbBQypLEnGk1PmekXt5c95JcK', b'0', 1, 'admin', 'admin', NULL, '2020-05-05 11:15:49', '2020-09-05 10:43:38');
  645. COMMIT;
  646. -- ----------------------------
  647. -- Table structure for sys_users_jobs
  648. -- ----------------------------
  649. DROP TABLE IF EXISTS `sys_users_jobs`;
  650. CREATE TABLE `sys_users_jobs` (
  651. `user_id` bigint(20) NOT NULL COMMENT '用户ID',
  652. `job_id` bigint(20) NOT NULL COMMENT '岗位ID',
  653. PRIMARY KEY (`user_id`,`job_id`)
  654. ) ENGINE=InnoDB DEFAULT CHARSET=utf8;
  655. -- ----------------------------
  656. -- Records of sys_users_jobs
  657. -- ----------------------------
  658. BEGIN;
  659. INSERT INTO `sys_users_jobs` VALUES (1, 11);
  660. INSERT INTO `sys_users_jobs` VALUES (2, 12);
  661. COMMIT;
  662. -- ----------------------------
  663. -- Table structure for sys_users_roles
  664. -- ----------------------------
  665. DROP TABLE IF EXISTS `sys_users_roles`;
  666. CREATE TABLE `sys_users_roles` (
  667. `user_id` bigint(20) NOT NULL COMMENT '用户ID',
  668. `role_id` bigint(20) NOT NULL COMMENT '角色ID',
  669. PRIMARY KEY (`user_id`,`role_id`) USING BTREE,
  670. KEY `FKq4eq273l04bpu4efj0jd0jb98` (`role_id`) USING BTREE
  671. ) ENGINE=InnoDB DEFAULT CHARSET=utf8 ROW_FORMAT=COMPACT COMMENT='用户角色关联';
  672. -- ----------------------------
  673. -- Records of sys_users_roles
  674. -- ----------------------------
  675. BEGIN;
  676. INSERT INTO `sys_users_roles` VALUES (1, 1);
  677. INSERT INTO `sys_users_roles` VALUES (2, 2);
  678. COMMIT;
  679. -- ----------------------------
  680. -- Table structure for tool_alipay_config
  681. -- ----------------------------
  682. DROP TABLE IF EXISTS `tool_alipay_config`;
  683. CREATE TABLE `tool_alipay_config` (
  684. `config_id` bigint(20) NOT NULL COMMENT 'ID',
  685. `app_id` varchar(255) DEFAULT NULL COMMENT '应用ID',
  686. `charset` varchar(255) DEFAULT NULL COMMENT '编码',
  687. `format` varchar(255) DEFAULT NULL COMMENT '类型 固定格式json',
  688. `gateway_url` varchar(255) DEFAULT NULL COMMENT '网关地址',
  689. `notify_url` varchar(255) DEFAULT NULL COMMENT '异步回调',
  690. `private_key` text DEFAULT NULL COMMENT '私钥',
  691. `public_key` text DEFAULT NULL COMMENT '公钥',
  692. `return_url` varchar(255) DEFAULT NULL COMMENT '回调地址',
  693. `sign_type` varchar(255) DEFAULT NULL COMMENT '签名方式',
  694. `sys_service_provider_id` varchar(255) DEFAULT NULL COMMENT '商户号',
  695. PRIMARY KEY (`config_id`) USING BTREE
  696. ) ENGINE=InnoDB DEFAULT CHARSET=utf8 ROW_FORMAT=COMPACT COMMENT='支付宝配置类';
  697. -- ----------------------------
  698. -- Records of tool_alipay_config
  699. -- ----------------------------
  700. BEGIN;
  701. INSERT INTO `tool_alipay_config` VALUES (1, '2016091700532697', 'utf-8', 'JSON', 'https://openapi.alipaydev.com/gateway.do', 'http://api.auauz.net/api/aliPay/notify', 'MIIEvAIBADANBgkqhkiG9w0BAQEFAASCBKYwggSiAgEAAoIBAQC5js8sInU10AJ0cAQ8UMMyXrQ+oHZEkVt5lBwsStmTJ7YikVYgbskx1YYEXTojRsWCb+SH/kDmDU4pK/u91SJ4KFCRMF2411piYuXU/jF96zKrADznYh/zAraqT6hvAIVtQAlMHN53nx16rLzZ/8jDEkaSwT7+HvHiS+7sxSojnu/3oV7BtgISoUNstmSe8WpWHOaWv19xyS+Mce9MY4BfseFhzTICUymUQdd/8hXA28/H6osUfAgsnxAKv7Wil3aJSgaJczWuflYOve0dJ3InZkhw5Cvr0atwpk8YKBQjy5CdkoHqvkOcIB+cYHXJKzOE5tqU7inSwVbHzOLQ3XbnAgMBAAECggEAVJp5eT0Ixg1eYSqFs9568WdetUNCSUchNxDBu6wxAbhUgfRUGZuJnnAll63OCTGGck+EGkFh48JjRcBpGoeoHLL88QXlZZbC/iLrea6gcDIhuvfzzOffe1RcZtDFEj9hlotg8dQj1tS0gy9pN9g4+EBH7zeu+fyv+qb2e/v1l6FkISXUjpkD7RLQr3ykjiiEw9BpeKb7j5s7Kdx1NNIzhkcQKNqlk8JrTGDNInbDM6inZfwwIO2R1DHinwdfKWkvOTODTYa2MoAvVMFT9Bec9FbLpoWp7ogv1JMV9svgrcF9XLzANZ/OQvkbe9TV9GWYvIbxN6qwQioKCWO4GPnCAQKBgQDgW5MgfhX8yjXqoaUy/d1VjI8dHeIyw8d+OBAYwaxRSlCfyQ+tieWcR2HdTzPca0T0GkWcKZm0ei5xRURgxt4DUDLXNh26HG0qObbtLJdu/AuBUuCqgOiLqJ2f1uIbrz6OZUHns+bT/jGW2Ws8+C13zTCZkZt9CaQsrp3QOGDx5wKBgQDTul39hp3ZPwGNFeZdkGoUoViOSd5Lhowd5wYMGAEXWRLlU8z+smT5v0POz9JnIbCRchIY2FAPKRdVTICzmPk2EPJFxYTcwaNbVqL6lN7J2IlXXMiit5QbiLauo55w7plwV6LQmKm9KV7JsZs5XwqF7CEovI7GevFzyD3w+uizAQKBgC3LY1eRhOlpWOIAhpjG6qOoohmeXOphvdmMlfSHq6WYFqbWwmV4rS5d/6LNpNdL6fItXqIGd8I34jzql49taCmi+A2nlR/E559j0mvM20gjGDIYeZUz5MOE8k+K6/IcrhcgofgqZ2ZED1ksHdB/E8DNWCswZl16V1FrfvjeWSNnAoGAMrBplCrIW5xz+J0Hm9rZKrs+AkK5D4fUv8vxbK/KgxZ2KaUYbNm0xv39c+PZUYuFRCz1HDGdaSPDTE6WeWjkMQd5mS6ikl9hhpqFRkyh0d0fdGToO9yLftQKOGE/q3XUEktI1XvXF0xyPwNgUCnq0QkpHyGVZPtGFxwXiDvpvgECgYA5PoB+nY8iDiRaJNko9w0hL4AeKogwf+4TbCw+KWVEn6jhuJa4LFTdSqp89PktQaoVpwv92el/AhYjWOl/jVCm122f9b7GyoelbjMNolToDwe5pF5RnSpEuDdLy9MfE8LnE3PlbE7E5BipQ3UjSebkgNboLHH/lNZA5qvEtvbfvQ==', 'MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAut9evKRuHJ/2QNfDlLwvN/S8l9hRAgPbb0u61bm4AtzaTGsLeMtScetxTWJnVvAVpMS9luhEJjt+Sbk5TNLArsgzzwARgaTKOLMT1TvWAK5EbHyI+eSrc3s7Awe1VYGwcubRFWDm16eQLv0k7iqiw+4mweHSz/wWyvBJVgwLoQ02btVtAQErCfSJCOmt0Q/oJQjj08YNRV4EKzB19+f5A+HQVAKy72dSybTzAK+3FPtTtNen/+b5wGeat7c32dhYHnGorPkPeXLtsqqUTp1su5fMfd4lElNdZaoCI7osZxWWUo17vBCZnyeXc9fk0qwD9mK6yRAxNbrY72Xx5VqIqwIDAQAB', 'http://api.auauz.net/api/aliPay/return', 'RSA2', '2088102176044281');
  702. COMMIT;
  703. -- ----------------------------
  704. -- Table structure for tool_email_config
  705. -- ----------------------------
  706. DROP TABLE IF EXISTS `tool_email_config`;
  707. CREATE TABLE `tool_email_config` (
  708. `config_id` bigint(20) NOT NULL COMMENT 'ID',
  709. `from_user` varchar(255) DEFAULT NULL COMMENT '收件人',
  710. `host` varchar(255) DEFAULT NULL COMMENT '邮件服务器SMTP地址',
  711. `pass` varchar(255) DEFAULT NULL COMMENT '密码',
  712. `port` varchar(255) DEFAULT NULL COMMENT '端口',
  713. `user` varchar(255) DEFAULT NULL COMMENT '发件者用户名',
  714. PRIMARY KEY (`config_id`) USING BTREE
  715. ) ENGINE=InnoDB DEFAULT CHARSET=utf8 ROW_FORMAT=COMPACT COMMENT='邮箱配置';
  716. -- ----------------------------
  717. -- Table structure for tool_local_storage
  718. -- ----------------------------
  719. DROP TABLE IF EXISTS `tool_local_storage`;
  720. CREATE TABLE `tool_local_storage` (
  721. `storage_id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT 'ID',
  722. `real_name` varchar(255) DEFAULT NULL COMMENT '文件真实的名称',
  723. `name` varchar(255) DEFAULT NULL COMMENT '文件名',
  724. `suffix` varchar(255) DEFAULT NULL COMMENT '后缀',
  725. `path` varchar(255) DEFAULT NULL COMMENT '路径',
  726. `type` varchar(255) DEFAULT NULL COMMENT '类型',
  727. `size` varchar(100) DEFAULT NULL COMMENT '大小',
  728. `create_by` varchar(255) DEFAULT NULL COMMENT '创建者',
  729. `update_by` varchar(255) DEFAULT NULL COMMENT '更新者',
  730. `create_time` datetime DEFAULT NULL COMMENT '创建日期',
  731. `update_time` datetime DEFAULT NULL COMMENT '更新时间',
  732. PRIMARY KEY (`storage_id`) USING BTREE
  733. ) ENGINE=InnoDB AUTO_INCREMENT=10 DEFAULT CHARSET=utf8 ROW_FORMAT=COMPACT COMMENT='本地存储';
  734. -- ----------------------------
  735. -- Records of tool_local_storage
  736. -- ----------------------------
  737. BEGIN;
  738. COMMIT;
  739. -- ----------------------------
  740. -- Table structure for tool_qiniu_config
  741. -- ----------------------------
  742. DROP TABLE IF EXISTS `tool_qiniu_config`;
  743. CREATE TABLE `tool_qiniu_config` (
  744. `config_id` bigint(20) NOT NULL COMMENT 'ID',
  745. `access_key` text DEFAULT NULL COMMENT 'accessKey',
  746. `bucket` varchar(255) DEFAULT NULL COMMENT 'Bucket 识别符',
  747. `host` varchar(255) NOT NULL COMMENT '外链域名',
  748. `secret_key` text DEFAULT NULL COMMENT 'secretKey',
  749. `type` varchar(255) DEFAULT NULL COMMENT '空间类型',
  750. `zone` varchar(255) DEFAULT NULL COMMENT '机房',
  751. PRIMARY KEY (`config_id`) USING BTREE
  752. ) ENGINE=InnoDB DEFAULT CHARSET=utf8 ROW_FORMAT=COMPACT COMMENT='七牛云配置';
  753. -- ----------------------------
  754. -- Table structure for tool_qiniu_content
  755. -- ----------------------------
  756. DROP TABLE IF EXISTS `tool_qiniu_content`;
  757. CREATE TABLE `tool_qiniu_content` (
  758. `content_id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT 'ID',
  759. `bucket` varchar(255) DEFAULT NULL COMMENT 'Bucket 识别符',
  760. `name` varchar(255) DEFAULT NULL COMMENT '文件名称',
  761. `size` varchar(255) DEFAULT NULL COMMENT '文件大小',
  762. `type` varchar(255) DEFAULT NULL COMMENT '文件类型:私有或公开',
  763. `url` varchar(255) DEFAULT NULL COMMENT '文件url',
  764. `suffix` varchar(255) DEFAULT NULL COMMENT '文件后缀',
  765. `update_time` datetime DEFAULT NULL COMMENT '上传或同步的时间',
  766. PRIMARY KEY (`content_id`) USING BTREE,
  767. UNIQUE KEY `uniq_name` (`name`)
  768. ) ENGINE=InnoDB DEFAULT CHARSET=utf8 ROW_FORMAT=COMPACT COMMENT='七牛云文件存储';
  769. -- ----------------------------
  770. -- Records of tool_qiniu_content
  771. -- ----------------------------
  772. BEGIN;
  773. COMMIT;
  774. SET FOREIGN_KEY_CHECKS = 1;