You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

730 lines
53 KiB

  1. /*
  2. Navicat MySQL Data Transfer
  3. Source Server : localhost
  4. Source Server Type : MySQL
  5. Source Server Version : 80019
  6. Source Host : localhost:3306
  7. Source Schema : a
  8. Target Server Type : MySQL
  9. Target Server Version : 80019
  10. File Encoding : 65001
  11. Date: 11/09/2020 11:15:48
  12. */
  13. SET NAMES utf8mb4;
  14. SET FOREIGN_KEY_CHECKS = 0;
  15. -- ----------------------------
  16. -- Table structure for casbin_rule
  17. -- ----------------------------
  18. DROP TABLE IF EXISTS `casbin_rule`;
  19. CREATE TABLE `casbin_rule` (
  20. `p_type` varchar(100) DEFAULT NULL,
  21. `v0` varchar(100) DEFAULT NULL,
  22. `v1` varchar(100) DEFAULT NULL,
  23. `v2` varchar(100) DEFAULT NULL,
  24. `v3` varchar(100) DEFAULT NULL,
  25. `v4` varchar(100) DEFAULT NULL,
  26. `v5` varchar(100) DEFAULT NULL
  27. ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
  28. -- ----------------------------
  29. -- Records of casbin_rule
  30. -- ----------------------------
  31. BEGIN;
  32. INSERT INTO `casbin_rule` VALUES ('p', '888', '/base/login', 'POST', NULL, NULL, NULL);
  33. INSERT INTO `casbin_rule` VALUES ('p', '888', '/base/register', 'POST', NULL, NULL, NULL);
  34. INSERT INTO `casbin_rule` VALUES ('p', '888', '/api/createApi', 'POST', NULL, NULL, NULL);
  35. INSERT INTO `casbin_rule` VALUES ('p', '888', '/api/getApiList', 'POST', NULL, NULL, NULL);
  36. INSERT INTO `casbin_rule` VALUES ('p', '888', '/api/getApiById', 'POST', NULL, NULL, NULL);
  37. INSERT INTO `casbin_rule` VALUES ('p', '888', '/api/deleteApi', 'POST', NULL, NULL, NULL);
  38. INSERT INTO `casbin_rule` VALUES ('p', '888', '/api/updateApi', 'POST', NULL, NULL, NULL);
  39. INSERT INTO `casbin_rule` VALUES ('p', '888', '/api/getAllApis', 'POST', NULL, NULL, NULL);
  40. INSERT INTO `casbin_rule` VALUES ('p', '888', '/authority/createAuthority', 'POST', NULL, NULL, NULL);
  41. INSERT INTO `casbin_rule` VALUES ('p', '888', '/authority/deleteAuthority', 'POST', NULL, NULL, NULL);
  42. INSERT INTO `casbin_rule` VALUES ('p', '888', '/authority/getAuthorityList', 'POST', NULL, NULL, NULL);
  43. INSERT INTO `casbin_rule` VALUES ('p', '888', '/authority/setDataAuthority', 'POST', NULL, NULL, NULL);
  44. INSERT INTO `casbin_rule` VALUES ('p', '888', '/authority/updateAuthority', 'PUT', NULL, NULL, NULL);
  45. INSERT INTO `casbin_rule` VALUES ('p', '888', '/authority/copyAuthority', 'POST', NULL, NULL, NULL);
  46. INSERT INTO `casbin_rule` VALUES ('p', '888', '/menu/getMenu', 'POST', NULL, NULL, NULL);
  47. INSERT INTO `casbin_rule` VALUES ('p', '888', '/menu/getMenuList', 'POST', NULL, NULL, NULL);
  48. INSERT INTO `casbin_rule` VALUES ('p', '888', '/menu/addBaseMenu', 'POST', NULL, NULL, NULL);
  49. INSERT INTO `casbin_rule` VALUES ('p', '888', '/menu/getBaseMenuTree', 'POST', NULL, NULL, NULL);
  50. INSERT INTO `casbin_rule` VALUES ('p', '888', '/menu/addMenuAuthority', 'POST', NULL, NULL, NULL);
  51. INSERT INTO `casbin_rule` VALUES ('p', '888', '/menu/getMenuAuthority', 'POST', NULL, NULL, NULL);
  52. INSERT INTO `casbin_rule` VALUES ('p', '888', '/menu/deleteBaseMenu', 'POST', NULL, NULL, NULL);
  53. INSERT INTO `casbin_rule` VALUES ('p', '888', '/menu/updateBaseMenu', 'POST', NULL, NULL, NULL);
  54. INSERT INTO `casbin_rule` VALUES ('p', '888', '/menu/getBaseMenuById', 'POST', NULL, NULL, NULL);
  55. INSERT INTO `casbin_rule` VALUES ('p', '888', '/user/changePassword', 'POST', NULL, NULL, NULL);
  56. INSERT INTO `casbin_rule` VALUES ('p', '888', '/user/getUserList', 'POST', NULL, NULL, NULL);
  57. INSERT INTO `casbin_rule` VALUES ('p', '888', '/user/setUserAuthority', 'POST', NULL, NULL, NULL);
  58. INSERT INTO `casbin_rule` VALUES ('p', '888', '/user/deleteUser', 'DELETE', NULL, NULL, NULL);
  59. INSERT INTO `casbin_rule` VALUES ('p', '888', '/fileUploadAndDownload/upload', 'POST', NULL, NULL, NULL);
  60. INSERT INTO `casbin_rule` VALUES ('p', '888', '/fileUploadAndDownload/getFileList', 'POST', NULL, NULL, NULL);
  61. INSERT INTO `casbin_rule` VALUES ('p', '888', '/fileUploadAndDownload/deleteFile', 'POST', NULL, NULL, NULL);
  62. INSERT INTO `casbin_rule` VALUES ('p', '888', '/casbin/updateCasbin', 'POST', NULL, NULL, NULL);
  63. INSERT INTO `casbin_rule` VALUES ('p', '888', '/casbin/getPolicyPathByAuthorityId', 'POST', NULL, NULL, NULL);
  64. INSERT INTO `casbin_rule` VALUES ('p', '888', '/casbin/casbinTest/:pathParam', 'GET', NULL, NULL, NULL);
  65. INSERT INTO `casbin_rule` VALUES ('p', '888', '/jwt/jsonInBlacklist', 'POST', NULL, NULL, NULL);
  66. INSERT INTO `casbin_rule` VALUES ('p', '888', '/system/getSystemConfig', 'POST', NULL, NULL, NULL);
  67. INSERT INTO `casbin_rule` VALUES ('p', '888', '/system/setSystemConfig', 'POST', NULL, NULL, NULL);
  68. INSERT INTO `casbin_rule` VALUES ('p', '888', '/customer/customer', 'POST', NULL, NULL, NULL);
  69. INSERT INTO `casbin_rule` VALUES ('p', '888', '/customer/customer', 'PUT', NULL, NULL, NULL);
  70. INSERT INTO `casbin_rule` VALUES ('p', '888', '/customer/customer', 'DELETE', NULL, NULL, NULL);
  71. INSERT INTO `casbin_rule` VALUES ('p', '888', '/customer/customer', 'GET', NULL, NULL, NULL);
  72. INSERT INTO `casbin_rule` VALUES ('p', '888', '/customer/customerList', 'GET', NULL, NULL, NULL);
  73. INSERT INTO `casbin_rule` VALUES ('p', '888', '/autoCode/createTemp', 'POST', NULL, NULL, NULL);
  74. INSERT INTO `casbin_rule` VALUES ('p', '888', '/autoCode/getTables', 'GET', NULL, NULL, NULL);
  75. INSERT INTO `casbin_rule` VALUES ('p', '888', '/autoCode/getDB', 'GET', NULL, NULL, NULL);
  76. INSERT INTO `casbin_rule` VALUES ('p', '888', '/autoCode/getColume', 'GET', NULL, NULL, NULL);
  77. INSERT INTO `casbin_rule` VALUES ('p', '888', '/sysDictionaryDetail/createSysDictionaryDetail', 'POST', NULL, NULL, NULL);
  78. INSERT INTO `casbin_rule` VALUES ('p', '888', '/sysDictionaryDetail/deleteSysDictionaryDetail', 'DELETE', NULL, NULL, NULL);
  79. INSERT INTO `casbin_rule` VALUES ('p', '888', '/sysDictionaryDetail/updateSysDictionaryDetail', 'PUT', NULL, NULL, NULL);
  80. INSERT INTO `casbin_rule` VALUES ('p', '888', '/sysDictionaryDetail/findSysDictionaryDetail', 'GET', NULL, NULL, NULL);
  81. INSERT INTO `casbin_rule` VALUES ('p', '888', '/sysDictionaryDetail/getSysDictionaryDetailList', 'GET', NULL, NULL, NULL);
  82. INSERT INTO `casbin_rule` VALUES ('p', '888', '/sysDictionary/createSysDictionary', 'POST', NULL, NULL, NULL);
  83. INSERT INTO `casbin_rule` VALUES ('p', '888', '/sysDictionary/deleteSysDictionary', 'DELETE', NULL, NULL, NULL);
  84. INSERT INTO `casbin_rule` VALUES ('p', '888', '/sysDictionary/updateSysDictionary', 'PUT', NULL, NULL, NULL);
  85. INSERT INTO `casbin_rule` VALUES ('p', '888', '/sysDictionary/findSysDictionary', 'GET', NULL, NULL, NULL);
  86. INSERT INTO `casbin_rule` VALUES ('p', '888', '/sysDictionary/getSysDictionaryList', 'GET', NULL, NULL, NULL);
  87. INSERT INTO `casbin_rule` VALUES ('p', '888', '/sysOperationRecord/createSysOperationRecord', 'POST', NULL, NULL, NULL);
  88. INSERT INTO `casbin_rule` VALUES ('p', '888', '/sysOperationRecord/deleteSysOperationRecord', 'DELETE', NULL, NULL, NULL);
  89. INSERT INTO `casbin_rule` VALUES ('p', '888', '/sysOperationRecord/updateSysOperationRecord', 'PUT', NULL, NULL, NULL);
  90. INSERT INTO `casbin_rule` VALUES ('p', '888', '/sysOperationRecord/findSysOperationRecord', 'GET', NULL, NULL, NULL);
  91. INSERT INTO `casbin_rule` VALUES ('p', '888', '/sysOperationRecord/getSysOperationRecordList', 'GET', NULL, NULL, NULL);
  92. INSERT INTO `casbin_rule` VALUES ('p', '888', '/sysOperationRecord/deleteSysOperationRecordByIds', 'DELETE', NULL, NULL, NULL);
  93. INSERT INTO `casbin_rule` VALUES ('p', '888', '/user/setUserInfo', 'PUT', NULL, NULL, NULL);
  94. INSERT INTO `casbin_rule` VALUES ('p', '8881', '/base/login', 'POST', NULL, NULL, NULL);
  95. INSERT INTO `casbin_rule` VALUES ('p', '8881', '/base/register', 'POST', NULL, NULL, NULL);
  96. INSERT INTO `casbin_rule` VALUES ('p', '8881', '/api/createApi', 'POST', NULL, NULL, NULL);
  97. INSERT INTO `casbin_rule` VALUES ('p', '8881', '/api/getApiList', 'POST', NULL, NULL, NULL);
  98. INSERT INTO `casbin_rule` VALUES ('p', '8881', '/api/getApiById', 'POST', NULL, NULL, NULL);
  99. INSERT INTO `casbin_rule` VALUES ('p', '8881', '/api/deleteApi', 'POST', NULL, NULL, NULL);
  100. INSERT INTO `casbin_rule` VALUES ('p', '8881', '/api/updateApi', 'POST', NULL, NULL, NULL);
  101. INSERT INTO `casbin_rule` VALUES ('p', '8881', '/api/getAllApis', 'POST', NULL, NULL, NULL);
  102. INSERT INTO `casbin_rule` VALUES ('p', '8881', '/authority/createAuthority', 'POST', NULL, NULL, NULL);
  103. INSERT INTO `casbin_rule` VALUES ('p', '8881', '/authority/deleteAuthority', 'POST', NULL, NULL, NULL);
  104. INSERT INTO `casbin_rule` VALUES ('p', '8881', '/authority/getAuthorityList', 'POST', NULL, NULL, NULL);
  105. INSERT INTO `casbin_rule` VALUES ('p', '8881', '/authority/setDataAuthority', 'POST', NULL, NULL, NULL);
  106. INSERT INTO `casbin_rule` VALUES ('p', '8881', '/menu/getMenu', 'POST', NULL, NULL, NULL);
  107. INSERT INTO `casbin_rule` VALUES ('p', '8881', '/menu/getMenuList', 'POST', NULL, NULL, NULL);
  108. INSERT INTO `casbin_rule` VALUES ('p', '8881', '/menu/addBaseMenu', 'POST', NULL, NULL, NULL);
  109. INSERT INTO `casbin_rule` VALUES ('p', '8881', '/menu/getBaseMenuTree', 'POST', NULL, NULL, NULL);
  110. INSERT INTO `casbin_rule` VALUES ('p', '8881', '/menu/addMenuAuthority', 'POST', NULL, NULL, NULL);
  111. INSERT INTO `casbin_rule` VALUES ('p', '8881', '/menu/getMenuAuthority', 'POST', NULL, NULL, NULL);
  112. INSERT INTO `casbin_rule` VALUES ('p', '8881', '/menu/deleteBaseMenu', 'POST', NULL, NULL, NULL);
  113. INSERT INTO `casbin_rule` VALUES ('p', '8881', '/menu/updateBaseMenu', 'POST', NULL, NULL, NULL);
  114. INSERT INTO `casbin_rule` VALUES ('p', '8881', '/menu/getBaseMenuById', 'POST', NULL, NULL, NULL);
  115. INSERT INTO `casbin_rule` VALUES ('p', '8881', '/user/changePassword', 'POST', NULL, NULL, NULL);
  116. INSERT INTO `casbin_rule` VALUES ('p', '8881', '/user/getUserList', 'POST', NULL, NULL, NULL);
  117. INSERT INTO `casbin_rule` VALUES ('p', '8881', '/user/setUserAuthority', 'POST', NULL, NULL, NULL);
  118. INSERT INTO `casbin_rule` VALUES ('p', '8881', '/fileUploadAndDownload/upload', 'POST', NULL, NULL, NULL);
  119. INSERT INTO `casbin_rule` VALUES ('p', '8881', '/fileUploadAndDownload/getFileList', 'POST', NULL, NULL, NULL);
  120. INSERT INTO `casbin_rule` VALUES ('p', '8881', '/fileUploadAndDownload/deleteFile', 'POST', NULL, NULL, NULL);
  121. INSERT INTO `casbin_rule` VALUES ('p', '8881', '/casbin/updateCasbin', 'POST', NULL, NULL, NULL);
  122. INSERT INTO `casbin_rule` VALUES ('p', '8881', '/casbin/getPolicyPathByAuthorityId', 'POST', NULL, NULL, NULL);
  123. INSERT INTO `casbin_rule` VALUES ('p', '8881', '/jwt/jsonInBlacklist', 'POST', NULL, NULL, NULL);
  124. INSERT INTO `casbin_rule` VALUES ('p', '8881', '/system/getSystemConfig', 'POST', NULL, NULL, NULL);
  125. INSERT INTO `casbin_rule` VALUES ('p', '8881', '/system/setSystemConfig', 'POST', NULL, NULL, NULL);
  126. INSERT INTO `casbin_rule` VALUES ('p', '8881', '/customer/customer', 'POST', NULL, NULL, NULL);
  127. INSERT INTO `casbin_rule` VALUES ('p', '8881', '/customer/customer', 'PUT', NULL, NULL, NULL);
  128. INSERT INTO `casbin_rule` VALUES ('p', '8881', '/customer/customer', 'DELETE', NULL, NULL, NULL);
  129. INSERT INTO `casbin_rule` VALUES ('p', '8881', '/customer/customer', 'GET', NULL, NULL, NULL);
  130. INSERT INTO `casbin_rule` VALUES ('p', '8881', '/customer/customerList', 'GET', NULL, NULL, NULL);
  131. INSERT INTO `casbin_rule` VALUES ('p', '9528', '/base/login', 'POST', NULL, NULL, NULL);
  132. INSERT INTO `casbin_rule` VALUES ('p', '9528', '/base/register', 'POST', NULL, NULL, NULL);
  133. INSERT INTO `casbin_rule` VALUES ('p', '9528', '/api/createApi', 'POST', NULL, NULL, NULL);
  134. INSERT INTO `casbin_rule` VALUES ('p', '9528', '/api/getApiList', 'POST', NULL, NULL, NULL);
  135. INSERT INTO `casbin_rule` VALUES ('p', '9528', '/api/getApiById', 'POST', NULL, NULL, NULL);
  136. INSERT INTO `casbin_rule` VALUES ('p', '9528', '/api/deleteApi', 'POST', NULL, NULL, NULL);
  137. INSERT INTO `casbin_rule` VALUES ('p', '9528', '/api/updateApi', 'POST', NULL, NULL, NULL);
  138. INSERT INTO `casbin_rule` VALUES ('p', '9528', '/api/getAllApis', 'POST', NULL, NULL, NULL);
  139. INSERT INTO `casbin_rule` VALUES ('p', '9528', '/authority/createAuthority', 'POST', NULL, NULL, NULL);
  140. INSERT INTO `casbin_rule` VALUES ('p', '9528', '/authority/deleteAuthority', 'POST', NULL, NULL, NULL);
  141. INSERT INTO `casbin_rule` VALUES ('p', '9528', '/authority/getAuthorityList', 'POST', NULL, NULL, NULL);
  142. INSERT INTO `casbin_rule` VALUES ('p', '9528', '/authority/setDataAuthority', 'POST', NULL, NULL, NULL);
  143. INSERT INTO `casbin_rule` VALUES ('p', '9528', '/menu/getMenu', 'POST', NULL, NULL, NULL);
  144. INSERT INTO `casbin_rule` VALUES ('p', '9528', '/menu/getMenuList', 'POST', NULL, NULL, NULL);
  145. INSERT INTO `casbin_rule` VALUES ('p', '9528', '/menu/addBaseMenu', 'POST', NULL, NULL, NULL);
  146. INSERT INTO `casbin_rule` VALUES ('p', '9528', '/menu/getBaseMenuTree', 'POST', NULL, NULL, NULL);
  147. INSERT INTO `casbin_rule` VALUES ('p', '9528', '/menu/addMenuAuthority', 'POST', NULL, NULL, NULL);
  148. INSERT INTO `casbin_rule` VALUES ('p', '9528', '/menu/getMenuAuthority', 'POST', NULL, NULL, NULL);
  149. INSERT INTO `casbin_rule` VALUES ('p', '9528', '/menu/deleteBaseMenu', 'POST', NULL, NULL, NULL);
  150. INSERT INTO `casbin_rule` VALUES ('p', '9528', '/menu/updateBaseMenu', 'POST', NULL, NULL, NULL);
  151. INSERT INTO `casbin_rule` VALUES ('p', '9528', '/menu/getBaseMenuById', 'POST', NULL, NULL, NULL);
  152. INSERT INTO `casbin_rule` VALUES ('p', '9528', '/user/changePassword', 'POST', NULL, NULL, NULL);
  153. INSERT INTO `casbin_rule` VALUES ('p', '9528', '/user/getUserList', 'POST', NULL, NULL, NULL);
  154. INSERT INTO `casbin_rule` VALUES ('p', '9528', '/user/setUserAuthority', 'POST', NULL, NULL, NULL);
  155. INSERT INTO `casbin_rule` VALUES ('p', '9528', '/fileUploadAndDownload/upload', 'POST', NULL, NULL, NULL);
  156. INSERT INTO `casbin_rule` VALUES ('p', '9528', '/fileUploadAndDownload/getFileList', 'POST', NULL, NULL, NULL);
  157. INSERT INTO `casbin_rule` VALUES ('p', '9528', '/fileUploadAndDownload/deleteFile', 'POST', NULL, NULL, NULL);
  158. INSERT INTO `casbin_rule` VALUES ('p', '9528', '/casbin/updateCasbin', 'POST', NULL, NULL, NULL);
  159. INSERT INTO `casbin_rule` VALUES ('p', '9528', '/casbin/getPolicyPathByAuthorityId', 'POST', NULL, NULL, NULL);
  160. INSERT INTO `casbin_rule` VALUES ('p', '9528', '/jwt/jsonInBlacklist', 'POST', NULL, NULL, NULL);
  161. INSERT INTO `casbin_rule` VALUES ('p', '9528', '/system/getSystemConfig', 'POST', NULL, NULL, NULL);
  162. INSERT INTO `casbin_rule` VALUES ('p', '9528', '/system/setSystemConfig', 'POST', NULL, NULL, NULL);
  163. INSERT INTO `casbin_rule` VALUES ('p', '9528', '/customer/customer', 'POST', NULL, NULL, NULL);
  164. INSERT INTO `casbin_rule` VALUES ('p', '9528', '/customer/customer', 'PUT', NULL, NULL, NULL);
  165. INSERT INTO `casbin_rule` VALUES ('p', '9528', '/customer/customer', 'DELETE', NULL, NULL, NULL);
  166. INSERT INTO `casbin_rule` VALUES ('p', '9528', '/customer/customer', 'GET', NULL, NULL, NULL);
  167. INSERT INTO `casbin_rule` VALUES ('p', '9528', '/customer/customerList', 'GET', NULL, NULL, NULL);
  168. INSERT INTO `casbin_rule` VALUES ('p', '9528', '/autoCode/createTemp', 'POST', NULL, NULL, NULL);
  169. COMMIT;
  170. -- ----------------------------
  171. -- Table structure for exa_customers
  172. -- ----------------------------
  173. DROP TABLE IF EXISTS `exa_customers`;
  174. CREATE TABLE `exa_customers` (
  175. `id` bigint unsigned NOT NULL AUTO_INCREMENT,
  176. `created_at` datetime DEFAULT NULL,
  177. `updated_at` datetime DEFAULT NULL,
  178. `deleted_at` datetime DEFAULT NULL,
  179. `customer_name` varchar(191) DEFAULT NULL COMMENT '''客户名''',
  180. `customer_phone_data` varchar(191) DEFAULT NULL COMMENT '''客户手机号''',
  181. `sys_user_id` bigint unsigned DEFAULT NULL COMMENT '''管理ID''',
  182. `sys_user_authority_id` varchar(191) DEFAULT NULL COMMENT '''管理角色ID''',
  183. PRIMARY KEY (`id`),
  184. KEY `idx_exa_customers_deleted_at` (`deleted_at`)
  185. ) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
  186. -- ----------------------------
  187. -- Records of exa_customers
  188. -- ----------------------------
  189. BEGIN;
  190. INSERT INTO `exa_customers` VALUES (1, '2020-09-11 11:14:42', '2020-09-11 11:14:42', NULL, '测试客户', '1761111111', 1, '888');
  191. COMMIT;
  192. -- ----------------------------
  193. -- Table structure for exa_file_chunks
  194. -- ----------------------------
  195. DROP TABLE IF EXISTS `exa_file_chunks`;
  196. CREATE TABLE `exa_file_chunks` (
  197. `id` bigint unsigned NOT NULL AUTO_INCREMENT,
  198. `created_at` datetime DEFAULT NULL,
  199. `updated_at` datetime DEFAULT NULL,
  200. `deleted_at` datetime DEFAULT NULL,
  201. `exa_file_id` bigint unsigned DEFAULT NULL,
  202. `file_chunk_number` bigint DEFAULT NULL,
  203. `file_chunk_path` varchar(191) DEFAULT NULL,
  204. PRIMARY KEY (`id`),
  205. KEY `idx_exa_file_chunks_deleted_at` (`deleted_at`)
  206. ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
  207. -- ----------------------------
  208. -- Table structure for exa_file_upload_and_downloads
  209. -- ----------------------------
  210. DROP TABLE IF EXISTS `exa_file_upload_and_downloads`;
  211. CREATE TABLE `exa_file_upload_and_downloads` (
  212. `id` bigint unsigned NOT NULL AUTO_INCREMENT,
  213. `created_at` datetime DEFAULT NULL,
  214. `updated_at` datetime DEFAULT NULL,
  215. `deleted_at` datetime DEFAULT NULL,
  216. `name` varchar(191) DEFAULT NULL COMMENT '''文件名''',
  217. `url` varchar(191) DEFAULT NULL COMMENT '''文件地址''',
  218. `tag` varchar(191) DEFAULT NULL COMMENT '''文件标签''',
  219. `key` varchar(191) DEFAULT NULL COMMENT '''编号''',
  220. PRIMARY KEY (`id`),
  221. KEY `idx_exa_file_upload_and_downloads_deleted_at` (`deleted_at`)
  222. ) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
  223. -- ----------------------------
  224. -- Records of exa_file_upload_and_downloads
  225. -- ----------------------------
  226. BEGIN;
  227. INSERT INTO `exa_file_upload_and_downloads` VALUES (1, '2020-09-11 11:14:42', '2020-09-11 11:14:42', NULL, '10.png', 'http://qmplusimg.henrongyi.top/gvalogo.png', 'png', '158787308910.png');
  228. INSERT INTO `exa_file_upload_and_downloads` VALUES (2, '2020-09-11 11:14:42', '2020-09-11 11:14:42', NULL, 'logo.png', 'http://qmplusimg.henrongyi.top/1576554439myAvatar.png', 'png', '1587973709logo.png');
  229. COMMIT;
  230. -- ----------------------------
  231. -- Table structure for exa_files
  232. -- ----------------------------
  233. DROP TABLE IF EXISTS `exa_files`;
  234. CREATE TABLE `exa_files` (
  235. `id` bigint unsigned NOT NULL AUTO_INCREMENT,
  236. `created_at` datetime DEFAULT NULL,
  237. `updated_at` datetime DEFAULT NULL,
  238. `deleted_at` datetime DEFAULT NULL,
  239. `file_name` varchar(191) DEFAULT NULL,
  240. `file_md5` varchar(191) DEFAULT NULL,
  241. `file_path` varchar(191) DEFAULT NULL,
  242. `chunk_total` bigint DEFAULT NULL,
  243. `is_finish` tinyint(1) DEFAULT NULL,
  244. PRIMARY KEY (`id`),
  245. KEY `idx_exa_files_deleted_at` (`deleted_at`)
  246. ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
  247. -- ----------------------------
  248. -- Table structure for exa_simple_uploaders
  249. -- ----------------------------
  250. DROP TABLE IF EXISTS `exa_simple_uploaders`;
  251. CREATE TABLE `exa_simple_uploaders` (
  252. `chunk_number` varchar(191) DEFAULT NULL COMMENT '''当前切片标记''',
  253. `current_chunk_size` varchar(191) DEFAULT NULL COMMENT '''当前切片容量''',
  254. `current_chunk_path` varchar(191) DEFAULT NULL COMMENT '''切片本地路径''',
  255. `total_size` varchar(191) DEFAULT NULL COMMENT '''总容量''',
  256. `identifier` varchar(191) DEFAULT NULL COMMENT '''文件标识(md5)''',
  257. `filename` varchar(191) DEFAULT NULL COMMENT '''文件名''',
  258. `total_chunks` varchar(191) DEFAULT NULL COMMENT '''切片总数''',
  259. `is_done` tinyint(1) DEFAULT NULL COMMENT '''是否上传完成''',
  260. `file_path` varchar(191) DEFAULT NULL COMMENT '''文件本地路径'''
  261. ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
  262. -- ----------------------------
  263. -- Table structure for jwt_blacklists
  264. -- ----------------------------
  265. DROP TABLE IF EXISTS `jwt_blacklists`;
  266. CREATE TABLE `jwt_blacklists` (
  267. `id` bigint unsigned NOT NULL AUTO_INCREMENT,
  268. `created_at` datetime DEFAULT NULL,
  269. `updated_at` datetime DEFAULT NULL,
  270. `deleted_at` datetime DEFAULT NULL,
  271. `jwt` text COMMENT '''jwt''',
  272. PRIMARY KEY (`id`),
  273. KEY `idx_jwt_blacklists_deleted_at` (`deleted_at`)
  274. ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
  275. -- ----------------------------
  276. -- Table structure for sys_apis
  277. -- ----------------------------
  278. DROP TABLE IF EXISTS `sys_apis`;
  279. CREATE TABLE `sys_apis` (
  280. `id` bigint unsigned NOT NULL AUTO_INCREMENT,
  281. `created_at` datetime DEFAULT NULL,
  282. `updated_at` datetime DEFAULT NULL,
  283. `deleted_at` datetime DEFAULT NULL,
  284. `path` varchar(191) DEFAULT NULL COMMENT '''api路径''',
  285. `description` varchar(191) DEFAULT NULL COMMENT '''api中文描述''',
  286. `api_group` varchar(191) DEFAULT NULL COMMENT '''api组''',
  287. `method` varchar(191) DEFAULT 'POST',
  288. PRIMARY KEY (`id`),
  289. KEY `idx_sys_apis_deleted_at` (`deleted_at`)
  290. ) ENGINE=InnoDB AUTO_INCREMENT=66 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
  291. -- ----------------------------
  292. -- Records of sys_apis
  293. -- ----------------------------
  294. BEGIN;
  295. INSERT INTO `sys_apis` VALUES (1, '2020-09-11 11:14:42', '2020-09-11 11:14:42', NULL, '/base/login', '用户登录', 'base', 'POST');
  296. INSERT INTO `sys_apis` VALUES (2, '2020-09-11 11:14:42', '2020-09-11 11:14:42', NULL, '/base/register', '用户注册', 'base', 'POST');
  297. INSERT INTO `sys_apis` VALUES (3, '2020-09-11 11:14:42', '2020-09-11 11:14:42', NULL, '/api/createApi', '创建api', 'api', 'POST');
  298. INSERT INTO `sys_apis` VALUES (4, '2020-09-11 11:14:42', '2020-09-11 11:14:42', NULL, '/api/getApiList', '获取api列表', 'api', 'POST');
  299. INSERT INTO `sys_apis` VALUES (5, '2020-09-11 11:14:42', '2020-09-11 11:14:42', NULL, '/api/getApiById', '获取api详细信息', 'api', 'POST');
  300. INSERT INTO `sys_apis` VALUES (6, '2020-09-11 11:14:42', '2020-09-11 11:14:42', NULL, '/api/deleteApi', '删除Api', 'api', 'POST');
  301. INSERT INTO `sys_apis` VALUES (7, '2020-09-11 11:14:42', '2020-09-11 11:14:42', NULL, '/api/updateApi', '更新Api', 'api', 'POST');
  302. INSERT INTO `sys_apis` VALUES (8, '2020-09-11 11:14:42', '2020-09-11 11:14:42', NULL, '/api/getAllApis', '获取所有api', 'api', 'POST');
  303. INSERT INTO `sys_apis` VALUES (9, '2020-09-11 11:14:42', '2020-09-11 11:14:42', NULL, '/authority/createAuthority', '创建角色', 'authority', 'POST');
  304. INSERT INTO `sys_apis` VALUES (10, '2020-09-11 11:14:42', '2020-09-11 11:14:42', NULL, '/authority/deleteAuthority', '删除角色', 'authority', 'POST');
  305. INSERT INTO `sys_apis` VALUES (11, '2020-09-11 11:14:42', '2020-09-11 11:14:42', NULL, '/authority/getAuthorityList', '获取角色列表', 'authority', 'POST');
  306. INSERT INTO `sys_apis` VALUES (12, '2020-09-11 11:14:42', '2020-09-11 11:14:42', NULL, '/menu/getMenu', '获取菜单树', 'menu', 'POST');
  307. INSERT INTO `sys_apis` VALUES (13, '2020-09-11 11:14:42', '2020-09-11 11:14:42', NULL, '/menu/getMenuList', '分页获取基础menu列表', 'menu', 'POST');
  308. INSERT INTO `sys_apis` VALUES (14, '2020-09-11 11:14:42', '2020-09-11 11:14:42', NULL, '/menu/addBaseMenu', '新增菜单', 'menu', 'POST');
  309. INSERT INTO `sys_apis` VALUES (15, '2020-09-11 11:14:42', '2020-09-11 11:14:42', NULL, '/menu/getBaseMenuTree', '获取用户动态路由', 'menu', 'POST');
  310. INSERT INTO `sys_apis` VALUES (16, '2020-09-11 11:14:42', '2020-09-11 11:14:42', NULL, '/menu/addMenuAuthority', '增加menu和角色关联关系', 'menu', 'POST');
  311. INSERT INTO `sys_apis` VALUES (17, '2020-09-11 11:14:42', '2020-09-11 11:14:42', NULL, '/menu/getMenuAuthority', '获取指定角色menu', 'menu', 'POST');
  312. INSERT INTO `sys_apis` VALUES (18, '2020-09-11 11:14:42', '2020-09-11 11:14:42', NULL, '/menu/deleteBaseMenu', '删除菜单', 'menu', 'POST');
  313. INSERT INTO `sys_apis` VALUES (19, '2020-09-11 11:14:42', '2020-09-11 11:14:42', NULL, '/menu/updateBaseMenu', '更新菜单', 'menu', 'POST');
  314. INSERT INTO `sys_apis` VALUES (20, '2020-09-11 11:14:42', '2020-09-11 11:14:42', NULL, '/menu/getBaseMenuById', '根据id获取菜单', 'menu', 'POST');
  315. INSERT INTO `sys_apis` VALUES (21, '2020-09-11 11:14:42', '2020-09-11 11:14:42', NULL, '/user/changePassword', '修改密码', 'user', 'POST');
  316. INSERT INTO `sys_apis` VALUES (23, '2020-09-11 11:14:42', '2020-09-11 11:14:42', NULL, '/user/getUserList', '获取用户列表', 'user', 'POST');
  317. INSERT INTO `sys_apis` VALUES (24, '2020-09-11 11:14:42', '2020-09-11 11:14:42', NULL, '/user/setUserAuthority', '修改用户角色', 'user', 'POST');
  318. INSERT INTO `sys_apis` VALUES (25, '2020-09-11 11:14:42', '2020-09-11 11:14:42', NULL, '/fileUploadAndDownload/upload', '文件上传示例', 'fileUploadAndDownload', 'POST');
  319. INSERT INTO `sys_apis` VALUES (26, '2020-09-11 11:14:42', '2020-09-11 11:14:42', NULL, '/fileUploadAndDownload/getFileList', '获取上传文件列表', 'fileUploadAndDownload', 'POST');
  320. INSERT INTO `sys_apis` VALUES (27, '2020-09-11 11:14:42', '2020-09-11 11:14:42', NULL, '/casbin/updateCasbin', '更改角色api权限', 'casbin', 'POST');
  321. INSERT INTO `sys_apis` VALUES (28, '2020-09-11 11:14:42', '2020-09-11 11:14:42', NULL, '/casbin/getPolicyPathByAuthorityId', '获取权限列表', 'casbin', 'POST');
  322. INSERT INTO `sys_apis` VALUES (29, '2020-09-11 11:14:42', '2020-09-11 11:14:42', NULL, '/fileUploadAndDownload/deleteFile', '删除文件', 'fileUploadAndDownload', 'POST');
  323. INSERT INTO `sys_apis` VALUES (30, '2020-09-11 11:14:42', '2020-09-11 11:14:42', NULL, '/jwt/jsonInBlacklist', 'jwt加入黑名单', 'jwt', 'POST');
  324. INSERT INTO `sys_apis` VALUES (31, '2020-09-11 11:14:42', '2020-09-11 11:14:42', NULL, '/authority/setDataAuthority', '设置角色资源权限', 'authority', 'POST');
  325. INSERT INTO `sys_apis` VALUES (32, '2020-09-11 11:14:42', '2020-09-11 11:14:42', NULL, '/system/getSystemConfig', '获取配置文件内容', 'system', 'POST');
  326. INSERT INTO `sys_apis` VALUES (33, '2020-09-11 11:14:42', '2020-09-11 11:14:42', NULL, '/system/setSystemConfig', '设置配置文件内容', 'system', 'POST');
  327. INSERT INTO `sys_apis` VALUES (34, '2020-09-11 11:14:42', '2020-09-11 11:14:42', NULL, '/customer/customer', '创建客户', 'customer', 'POST');
  328. INSERT INTO `sys_apis` VALUES (35, '2020-09-11 11:14:42', '2020-09-11 11:14:42', NULL, '/customer/customer', '更新客户', 'customer', 'PUT');
  329. INSERT INTO `sys_apis` VALUES (36, '2020-09-11 11:14:42', '2020-09-11 11:14:42', NULL, '/customer/customer', '删除客户', 'customer', 'DELETE');
  330. INSERT INTO `sys_apis` VALUES (37, '2020-09-11 11:14:42', '2020-09-11 11:14:42', NULL, '/customer/customer', '获取单一客户', 'customer', 'GET');
  331. INSERT INTO `sys_apis` VALUES (38, '2020-09-11 11:14:42', '2020-09-11 11:14:42', NULL, '/customer/customerList', '获取客户列表', 'customer', 'GET');
  332. INSERT INTO `sys_apis` VALUES (39, '2020-09-11 11:14:42', '2020-09-11 11:14:42', NULL, '/casbin/casbinTest/:pathParam', 'RESTFUL模式测试', 'casbin', 'GET');
  333. INSERT INTO `sys_apis` VALUES (40, '2020-09-11 11:14:42', '2020-09-11 11:14:42', NULL, '/autoCode/createTemp', '自动化代码', 'autoCode', 'POST');
  334. INSERT INTO `sys_apis` VALUES (41, '2020-09-11 11:14:42', '2020-09-11 11:14:42', NULL, '/authority/updateAuthority', '更新角色信息', 'authority', 'PUT');
  335. INSERT INTO `sys_apis` VALUES (42, '2020-09-11 11:14:42', '2020-09-11 11:14:42', NULL, '/authority/copyAuthority', '拷贝角色', 'authority', 'POST');
  336. INSERT INTO `sys_apis` VALUES (43, '2020-09-11 11:14:42', '2020-09-11 11:14:42', NULL, '/user/deleteUser', '删除用户', 'user', 'DELETE');
  337. INSERT INTO `sys_apis` VALUES (44, '2020-09-11 11:14:42', '2020-09-11 11:14:42', NULL, '/sysDictionaryDetail/createSysDictionaryDetail', '新增字典内容', 'sysDictionaryDetail', 'POST');
  338. INSERT INTO `sys_apis` VALUES (45, '2020-09-11 11:14:42', '2020-09-11 11:14:42', NULL, '/sysDictionaryDetail/deleteSysDictionaryDetail', '删除字典内容', 'sysDictionaryDetail', 'DELETE');
  339. INSERT INTO `sys_apis` VALUES (46, '2020-09-11 11:14:42', '2020-09-11 11:14:42', NULL, '/sysDictionaryDetail/updateSysDictionaryDetail', '更新字典内容', 'sysDictionaryDetail', 'PUT');
  340. INSERT INTO `sys_apis` VALUES (47, '2020-09-11 11:14:42', '2020-09-11 11:14:42', NULL, '/sysDictionaryDetail/findSysDictionaryDetail', '根据ID获取字典内容', 'sysDictionaryDetail', 'GET');
  341. INSERT INTO `sys_apis` VALUES (48, '2020-09-11 11:14:42', '2020-09-11 11:14:42', NULL, '/sysDictionaryDetail/getSysDictionaryDetailList', '获取字典内容列表', 'sysDictionaryDetail', 'GET');
  342. INSERT INTO `sys_apis` VALUES (49, '2020-09-11 11:14:42', '2020-09-11 11:14:42', NULL, '/sysDictionary/createSysDictionary', '新增字典', 'sysDictionary', 'POST');
  343. INSERT INTO `sys_apis` VALUES (50, '2020-09-11 11:14:42', '2020-09-11 11:14:42', NULL, '/sysDictionary/deleteSysDictionary', '删除字典', 'sysDictionary', 'DELETE');
  344. INSERT INTO `sys_apis` VALUES (51, '2020-09-11 11:14:42', '2020-09-11 11:14:42', NULL, '/sysDictionary/updateSysDictionary', '更新字典', 'sysDictionary', 'PUT');
  345. INSERT INTO `sys_apis` VALUES (52, '2020-09-11 11:14:42', '2020-09-11 11:14:42', NULL, '/sysDictionary/findSysDictionary', '根据ID获取字典', 'sysDictionary', 'GET');
  346. INSERT INTO `sys_apis` VALUES (53, '2020-09-11 11:14:42', '2020-09-11 11:14:42', NULL, '/sysDictionary/getSysDictionaryList', '获取字典列表', 'sysDictionary', 'GET');
  347. INSERT INTO `sys_apis` VALUES (54, '2020-09-11 11:14:42', '2020-09-11 11:14:42', NULL, '/sysOperationRecord/createSysOperationRecord', '新增操作记录', 'sysOperationRecord', 'POST');
  348. INSERT INTO `sys_apis` VALUES (55, '2020-09-11 11:14:42', '2020-09-11 11:14:42', NULL, '/sysOperationRecord/deleteSysOperationRecord', '删除操作记录', 'sysOperationRecord', 'DELETE');
  349. INSERT INTO `sys_apis` VALUES (56, '2020-09-11 11:14:42', '2020-09-11 11:14:42', NULL, '/sysOperationRecord/findSysOperationRecord', '根据ID获取操作记录', 'sysOperationRecord', 'GET');
  350. INSERT INTO `sys_apis` VALUES (57, '2020-09-11 11:14:42', '2020-09-11 11:14:42', NULL, '/sysOperationRecord/getSysOperationRecordList', '获取操作记录列表', 'sysOperationRecord', 'GET');
  351. INSERT INTO `sys_apis` VALUES (58, '2020-09-11 11:14:42', '2020-09-11 11:14:42', NULL, '/autoCode/getTables', '获取数据库表', 'autoCode', 'GET');
  352. INSERT INTO `sys_apis` VALUES (59, '2020-09-11 11:14:42', '2020-09-11 11:14:42', NULL, '/autoCode/getDB', '获取所有数据库', 'autoCode', 'GET');
  353. INSERT INTO `sys_apis` VALUES (60, '2020-09-11 11:14:42', '2020-09-11 11:14:42', NULL, '/autoCode/getColume', '获取所选table的所有字段', 'autoCode', 'GET');
  354. INSERT INTO `sys_apis` VALUES (61, '2020-09-11 11:14:42', '2020-09-11 11:14:42', NULL, '/sysOperationRecord/deleteSysOperationRecordByIds', '批量删除操作历史', 'sysOperationRecord', 'DELETE');
  355. INSERT INTO `sys_apis` VALUES (62, '2020-09-11 11:14:42', '2020-09-11 11:14:42', NULL, '/simpleUploader/upload', '插件版分片上传', 'simpleUploader', 'POST');
  356. INSERT INTO `sys_apis` VALUES (63, '2020-09-11 11:14:42', '2020-09-11 11:14:42', NULL, '/simpleUploader/checkFileMd5', '文件完整度验证', 'simpleUploader', 'GET');
  357. INSERT INTO `sys_apis` VALUES (64, '2020-09-11 11:14:42', '2020-09-11 11:14:42', NULL, '/simpleUploader/mergeFileMd5', '上传完成合并文件', 'simpleUploader', 'GET');
  358. INSERT INTO `sys_apis` VALUES (65, '2020-09-11 11:14:42', '2020-09-11 11:14:42', NULL, '/user/setUserInfo', '设置用户信息', 'user', 'PUT');
  359. COMMIT;
  360. -- ----------------------------
  361. -- Table structure for sys_authorities
  362. -- ----------------------------
  363. DROP TABLE IF EXISTS `sys_authorities`;
  364. CREATE TABLE `sys_authorities` (
  365. `created_at` datetime DEFAULT NULL,
  366. `updated_at` datetime DEFAULT NULL,
  367. `deleted_at` datetime DEFAULT NULL,
  368. `authority_id` varchar(90) NOT NULL COMMENT '''角色ID''',
  369. `authority_name` varchar(191) DEFAULT NULL COMMENT '''角色名''',
  370. `parent_id` varchar(191) DEFAULT NULL COMMENT '''父角色ID''',
  371. PRIMARY KEY (`authority_id`),
  372. UNIQUE KEY `authority_id` (`authority_id`)
  373. ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
  374. -- ----------------------------
  375. -- Records of sys_authorities
  376. -- ----------------------------
  377. BEGIN;
  378. INSERT INTO `sys_authorities` VALUES ('2020-09-11 11:14:42', '2020-09-11 11:14:42', NULL, '888', '普通用户', '0');
  379. INSERT INTO `sys_authorities` VALUES ('2020-09-11 11:14:42', '2020-09-11 11:14:42', NULL, '8881', '普通用户子角色', '888');
  380. INSERT INTO `sys_authorities` VALUES ('2020-09-11 11:14:42', '2020-09-11 11:14:42', NULL, '9528', '测试角色', '0');
  381. COMMIT;
  382. -- ----------------------------
  383. -- Table structure for sys_authority_menus
  384. -- ----------------------------
  385. DROP TABLE IF EXISTS `sys_authority_menus`;
  386. CREATE TABLE `sys_authority_menus` (
  387. `sys_base_menu_id` bigint unsigned NOT NULL,
  388. `sys_authority_authority_id` varchar(90) NOT NULL COMMENT '''角色ID''',
  389. PRIMARY KEY (`sys_base_menu_id`,`sys_authority_authority_id`)
  390. ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
  391. -- ----------------------------
  392. -- Records of sys_authority_menus
  393. -- ----------------------------
  394. BEGIN;
  395. INSERT INTO `sys_authority_menus` VALUES (1, '888');
  396. INSERT INTO `sys_authority_menus` VALUES (1, '8881');
  397. INSERT INTO `sys_authority_menus` VALUES (1, '9528');
  398. INSERT INTO `sys_authority_menus` VALUES (2, '888');
  399. INSERT INTO `sys_authority_menus` VALUES (2, '8881');
  400. INSERT INTO `sys_authority_menus` VALUES (2, '9528');
  401. INSERT INTO `sys_authority_menus` VALUES (3, '888');
  402. INSERT INTO `sys_authority_menus` VALUES (3, '9528');
  403. INSERT INTO `sys_authority_menus` VALUES (4, '888');
  404. INSERT INTO `sys_authority_menus` VALUES (4, '9528');
  405. INSERT INTO `sys_authority_menus` VALUES (5, '888');
  406. INSERT INTO `sys_authority_menus` VALUES (5, '9528');
  407. INSERT INTO `sys_authority_menus` VALUES (6, '888');
  408. INSERT INTO `sys_authority_menus` VALUES (6, '9528');
  409. INSERT INTO `sys_authority_menus` VALUES (7, '888');
  410. INSERT INTO `sys_authority_menus` VALUES (7, '9528');
  411. INSERT INTO `sys_authority_menus` VALUES (8, '888');
  412. INSERT INTO `sys_authority_menus` VALUES (8, '8881');
  413. INSERT INTO `sys_authority_menus` VALUES (8, '9528');
  414. INSERT INTO `sys_authority_menus` VALUES (9, '888');
  415. INSERT INTO `sys_authority_menus` VALUES (9, '9528');
  416. INSERT INTO `sys_authority_menus` VALUES (10, '888');
  417. INSERT INTO `sys_authority_menus` VALUES (10, '9528');
  418. INSERT INTO `sys_authority_menus` VALUES (11, '888');
  419. INSERT INTO `sys_authority_menus` VALUES (11, '9528');
  420. INSERT INTO `sys_authority_menus` VALUES (12, '888');
  421. INSERT INTO `sys_authority_menus` VALUES (12, '9528');
  422. INSERT INTO `sys_authority_menus` VALUES (13, '888');
  423. INSERT INTO `sys_authority_menus` VALUES (13, '9528');
  424. INSERT INTO `sys_authority_menus` VALUES (14, '888');
  425. INSERT INTO `sys_authority_menus` VALUES (14, '9528');
  426. INSERT INTO `sys_authority_menus` VALUES (15, '888');
  427. INSERT INTO `sys_authority_menus` VALUES (15, '9528');
  428. INSERT INTO `sys_authority_menus` VALUES (16, '888');
  429. INSERT INTO `sys_authority_menus` VALUES (17, '888');
  430. INSERT INTO `sys_authority_menus` VALUES (17, '8881');
  431. INSERT INTO `sys_authority_menus` VALUES (17, '9528');
  432. INSERT INTO `sys_authority_menus` VALUES (18, '888');
  433. INSERT INTO `sys_authority_menus` VALUES (18, '8881');
  434. INSERT INTO `sys_authority_menus` VALUES (18, '9528');
  435. INSERT INTO `sys_authority_menus` VALUES (19, '888');
  436. INSERT INTO `sys_authority_menus` VALUES (19, '8881');
  437. INSERT INTO `sys_authority_menus` VALUES (19, '9528');
  438. INSERT INTO `sys_authority_menus` VALUES (20, '888');
  439. INSERT INTO `sys_authority_menus` VALUES (20, '8881');
  440. INSERT INTO `sys_authority_menus` VALUES (20, '9528');
  441. INSERT INTO `sys_authority_menus` VALUES (21, '888');
  442. INSERT INTO `sys_authority_menus` VALUES (22, '888');
  443. INSERT INTO `sys_authority_menus` VALUES (23, '888');
  444. INSERT INTO `sys_authority_menus` VALUES (24, '888');
  445. INSERT INTO `sys_authority_menus` VALUES (25, '888');
  446. INSERT INTO `sys_authority_menus` VALUES (26, '888');
  447. COMMIT;
  448. -- ----------------------------
  449. -- Table structure for sys_base_menu_parameters
  450. -- ----------------------------
  451. DROP TABLE IF EXISTS `sys_base_menu_parameters`;
  452. CREATE TABLE `sys_base_menu_parameters` (
  453. `id` bigint unsigned NOT NULL AUTO_INCREMENT,
  454. `created_at` datetime DEFAULT NULL,
  455. `updated_at` datetime DEFAULT NULL,
  456. `deleted_at` datetime DEFAULT NULL,
  457. `sys_base_menu_id` bigint unsigned DEFAULT NULL,
  458. `type` varchar(191) DEFAULT NULL,
  459. `key` varchar(191) DEFAULT NULL,
  460. `value` varchar(191) DEFAULT NULL,
  461. PRIMARY KEY (`id`),
  462. KEY `idx_sys_base_menu_parameters_deleted_at` (`deleted_at`)
  463. ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
  464. -- ----------------------------
  465. -- Table structure for sys_base_menus
  466. -- ----------------------------
  467. DROP TABLE IF EXISTS `sys_base_menus`;
  468. CREATE TABLE `sys_base_menus` (
  469. `id` bigint unsigned NOT NULL AUTO_INCREMENT,
  470. `created_at` datetime DEFAULT NULL,
  471. `updated_at` datetime DEFAULT NULL,
  472. `deleted_at` datetime DEFAULT NULL,
  473. `menu_level` bigint unsigned DEFAULT NULL,
  474. `parent_id` varchar(191) DEFAULT NULL COMMENT '''父菜单ID''',
  475. `path` varchar(191) DEFAULT NULL COMMENT '''路由path''',
  476. `name` varchar(191) DEFAULT NULL COMMENT '''路由name''',
  477. `hidden` tinyint(1) DEFAULT NULL COMMENT '''是否在列表隐藏''',
  478. `component` varchar(191) DEFAULT NULL COMMENT '''对应前端文件路径''',
  479. `sort` bigint DEFAULT NULL COMMENT '''排序标记''',
  480. `keep_alive` tinyint(1) DEFAULT NULL COMMENT '''附加属性''',
  481. `default_menu` tinyint(1) DEFAULT NULL COMMENT '''附加属性''',
  482. `title` varchar(191) DEFAULT NULL COMMENT '''附加属性''',
  483. `icon` varchar(191) DEFAULT NULL COMMENT '''附加属性''',
  484. PRIMARY KEY (`id`),
  485. KEY `idx_sys_base_menus_deleted_at` (`deleted_at`)
  486. ) ENGINE=InnoDB AUTO_INCREMENT=27 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
  487. -- ----------------------------
  488. -- Records of sys_base_menus
  489. -- ----------------------------
  490. BEGIN;
  491. INSERT INTO `sys_base_menus` VALUES (1, '2020-09-11 11:14:42', '2020-09-11 11:14:42', NULL, 0, '0', 'dashboard', 'dashboard', 0, 'view/dashboard/index.vue', 1, 0, 0, '仪表盘', 'setting');
  492. INSERT INTO `sys_base_menus` VALUES (2, '2020-09-11 11:14:42', '2020-09-11 11:14:42', NULL, 0, '0', 'about', 'about', 0, 'view/about/index.vue', 7, 0, 0, '关于我们', 'info');
  493. INSERT INTO `sys_base_menus` VALUES (3, '2020-09-11 11:14:42', '2020-09-11 11:14:42', NULL, 0, '0', 'admin', 'superAdmin', 0, 'view/superAdmin/index.vue', 3, 0, 0, '超级管理员', 'user-solid');
  494. INSERT INTO `sys_base_menus` VALUES (4, '2020-09-11 11:14:42', '2020-09-11 11:14:42', NULL, 0, '3', 'authority', 'authority', 0, 'view/superAdmin/authority/authority.vue', 1, 0, 0, '角色管理', 's-custom');
  495. INSERT INTO `sys_base_menus` VALUES (5, '2020-09-11 11:14:42', '2020-09-11 11:14:42', NULL, 0, '3', 'menu', 'menu', 0, 'view/superAdmin/menu/menu.vue', 2, 1, 0, '菜单管理', 's-order');
  496. INSERT INTO `sys_base_menus` VALUES (6, '2020-09-11 11:14:42', '2020-09-11 11:14:42', NULL, 0, '3', 'api', 'api', 0, 'view/superAdmin/api/api.vue', 3, 1, 0, 'api管理', 's-platform');
  497. INSERT INTO `sys_base_menus` VALUES (7, '2020-09-11 11:14:42', '2020-09-11 11:14:42', NULL, 0, '3', 'user', 'user', 0, 'view/superAdmin/user/user.vue', 4, 0, 0, '用户管理', 'coordinate');
  498. INSERT INTO `sys_base_menus` VALUES (8, '2020-09-11 11:14:42', '2020-09-11 11:14:42', NULL, 0, '0', 'person', 'person', 1, 'view/person/person.vue', 4, 0, 0, '个人信息', 'message-solid');
  499. INSERT INTO `sys_base_menus` VALUES (9, '2020-09-11 11:14:42', '2020-09-11 11:14:42', NULL, 0, '0', 'example', 'example', 0, 'view/example/index.vue', 6, 0, 0, '示例文件', 's-management');
  500. INSERT INTO `sys_base_menus` VALUES (10, '2020-09-11 11:14:42', '2020-09-11 11:14:42', NULL, 0, '9', 'table', 'table', 0, 'view/example/table/table.vue', 1, 0, 0, '表格示例', 's-order');
  501. INSERT INTO `sys_base_menus` VALUES (11, '2020-09-11 11:14:42', '2020-09-11 11:14:42', NULL, 0, '9', 'form', 'form', 0, 'view/example/form/form.vue', 2, 0, 0, '表单示例', 'document');
  502. INSERT INTO `sys_base_menus` VALUES (12, '2020-09-11 11:14:42', '2020-09-11 11:14:42', NULL, 0, '9', 'rte', 'rte', 0, 'view/example/rte/rte.vue', 3, 0, 0, '富文本编辑器', 'reading');
  503. INSERT INTO `sys_base_menus` VALUES (13, '2020-09-11 11:14:42', '2020-09-11 11:14:42', NULL, 0, '9', 'excel', 'excel', 0, 'view/example/excel/excel.vue', 4, 0, 0, 'excel导入导出', 's-marketing');
  504. INSERT INTO `sys_base_menus` VALUES (14, '2020-09-11 11:14:42', '2020-09-11 11:14:42', NULL, 0, '9', 'upload', 'upload', 0, 'view/example/upload/upload.vue', 5, 0, 0, '上传下载', 'upload');
  505. INSERT INTO `sys_base_menus` VALUES (15, '2020-09-11 11:14:42', '2020-09-11 11:14:42', NULL, 0, '9', 'breakpoint', 'breakpoint', 0, 'view/example/breakpoint/breakpoint.vue', 6, 0, 0, '断点续传', 'upload');
  506. INSERT INTO `sys_base_menus` VALUES (16, '2020-09-11 11:14:42', '2020-09-11 11:14:42', NULL, 0, '9', 'customer', 'customer', 0, 'view/example/customer/customer.vue', 7, 0, 0, '客户列表(资源示例)', 's-custom');
  507. INSERT INTO `sys_base_menus` VALUES (17, '2020-09-11 11:14:42', '2020-09-11 11:14:42', NULL, 0, '0', 'systemTools', 'systemTools', 0, 'view/systemTools/index.vue', 5, 0, 0, '系统工具', 's-cooperation');
  508. INSERT INTO `sys_base_menus` VALUES (18, '2020-09-11 11:14:42', '2020-09-11 11:14:42', NULL, 0, '17', 'autoCode', 'autoCode', 0, 'view/systemTools/autoCode/index.vue', 1, 1, 0, '代码生成器', 'cpu');
  509. INSERT INTO `sys_base_menus` VALUES (19, '2020-09-11 11:14:42', '2020-09-11 11:14:42', NULL, 0, '17', 'formCreate', 'formCreate', 0, 'view/systemTools/formCreate/index.vue', 2, 1, 0, '表单生成器', 'magic-stick');
  510. INSERT INTO `sys_base_menus` VALUES (20, '2020-09-11 11:14:42', '2020-09-11 11:14:42', NULL, 0, '17', 'system', 'system', 0, 'view/systemTools/system/system.vue', 3, 0, 0, '系统配置', 's-operation');
  511. INSERT INTO `sys_base_menus` VALUES (21, '2020-09-11 11:14:42', '2020-09-11 11:14:42', NULL, 0, '0', 'iconList', 'iconList', 0, 'view/iconList/index.vue', 2, 0, 0, '图标集合', 'star-on');
  512. INSERT INTO `sys_base_menus` VALUES (22, '2020-09-11 11:14:42', '2020-09-11 11:14:42', NULL, 0, '3', 'dictionary', 'dictionary', 0, 'view/superAdmin/dictionary/sysDictionary.vue', 5, 0, 0, '字典管理', 'notebook-2');
  513. INSERT INTO `sys_base_menus` VALUES (23, '2020-09-11 11:14:42', '2020-09-11 11:14:42', NULL, 0, '3', 'dictionaryDetail/:id', 'dictionaryDetail', 1, 'view/superAdmin/dictionary/sysDictionaryDetail.vue', 1, 0, 0, '字典详情', 's-order');
  514. INSERT INTO `sys_base_menus` VALUES (24, '2020-09-11 11:14:42', '2020-09-11 11:14:42', NULL, 0, '3', 'operation', 'operation', 0, 'view/superAdmin/operation/sysOperationRecord.vue', 6, 0, 0, '操作历史', 'time');
  515. INSERT INTO `sys_base_menus` VALUES (25, '2020-09-11 11:14:42', '2020-09-11 11:14:42', NULL, 0, '9', 'simpleUploader', 'simpleUploader', 0, 'view/example/simpleUploader/simpleUploader', 6, 0, 0, '断点续传(插件版)', 'upload');
  516. INSERT INTO `sys_base_menus` VALUES (26, '2020-09-11 11:14:42', '2020-09-11 11:14:42', NULL, 0, '0', 'https://www.gin-vue-admin.com', 'https://www.gin-vue-admin.com', 0, '/', 0, 0, 0, '官方网站', 's-home');
  517. COMMIT;
  518. -- ----------------------------
  519. -- Table structure for sys_data_authority_ids
  520. -- ----------------------------
  521. DROP TABLE IF EXISTS `sys_data_authority_ids`;
  522. CREATE TABLE `sys_data_authority_ids` (
  523. `sys_authority_authority_id` varchar(90) NOT NULL COMMENT '''角色ID''',
  524. `data_authority_id_authority_id` varchar(90) NOT NULL COMMENT '''角色ID''',
  525. PRIMARY KEY (`sys_authority_authority_id`,`data_authority_id_authority_id`)
  526. ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
  527. -- ----------------------------
  528. -- Records of sys_data_authority_ids
  529. -- ----------------------------
  530. BEGIN;
  531. INSERT INTO `sys_data_authority_ids` VALUES ('888', '888');
  532. INSERT INTO `sys_data_authority_ids` VALUES ('888', '8881');
  533. INSERT INTO `sys_data_authority_ids` VALUES ('888', '9528');
  534. INSERT INTO `sys_data_authority_ids` VALUES ('9528', '8881');
  535. INSERT INTO `sys_data_authority_ids` VALUES ('9528', '9528');
  536. COMMIT;
  537. -- ----------------------------
  538. -- Table structure for sys_dictionaries
  539. -- ----------------------------
  540. DROP TABLE IF EXISTS `sys_dictionaries`;
  541. CREATE TABLE `sys_dictionaries` (
  542. `id` bigint unsigned NOT NULL AUTO_INCREMENT,
  543. `created_at` datetime DEFAULT NULL,
  544. `updated_at` datetime DEFAULT NULL,
  545. `deleted_at` datetime DEFAULT NULL,
  546. `name` varchar(191) DEFAULT NULL COMMENT '''字典名(中)''',
  547. `type` varchar(191) DEFAULT NULL COMMENT '''字典名(英)''',
  548. `status` tinyint(1) DEFAULT NULL COMMENT '''状态''',
  549. `desc` varchar(191) DEFAULT NULL COMMENT '''描述''',
  550. PRIMARY KEY (`id`),
  551. KEY `idx_sys_dictionaries_deleted_at` (`deleted_at`)
  552. ) ENGINE=InnoDB AUTO_INCREMENT=7 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
  553. -- ----------------------------
  554. -- Records of sys_dictionaries
  555. -- ----------------------------
  556. BEGIN;
  557. INSERT INTO `sys_dictionaries` VALUES (1, '2020-09-11 11:14:42', '2020-09-11 11:14:42', NULL, '性别', 'sex', 1, '性别字典');
  558. INSERT INTO `sys_dictionaries` VALUES (2, '2020-09-11 11:14:42', '2020-09-11 11:14:42', NULL, '数据库int类型', 'int', 1, 'int类型对应的数据库类型');
  559. INSERT INTO `sys_dictionaries` VALUES (3, '2020-09-11 11:14:42', '2020-09-11 11:14:42', NULL, '数据库时间日期类型', 'time.Time', 1, '数据库时间日期类型');
  560. INSERT INTO `sys_dictionaries` VALUES (4, '2020-09-11 11:14:42', '2020-09-11 11:14:42', NULL, '数据库浮点型', 'float64', 1, '数据库浮点型');
  561. INSERT INTO `sys_dictionaries` VALUES (5, '2020-09-11 11:14:42', '2020-09-11 11:14:42', NULL, '数据库字符串', 'string', 1, '数据库字符串');
  562. INSERT INTO `sys_dictionaries` VALUES (6, '2020-09-11 11:14:42', '2020-09-11 11:14:42', NULL, '数据库bool类型', 'bool', 1, '数据库bool类型');
  563. COMMIT;
  564. -- ----------------------------
  565. -- Table structure for sys_dictionary_details
  566. -- ----------------------------
  567. DROP TABLE IF EXISTS `sys_dictionary_details`;
  568. CREATE TABLE `sys_dictionary_details` (
  569. `id` bigint unsigned NOT NULL AUTO_INCREMENT,
  570. `created_at` datetime DEFAULT NULL,
  571. `updated_at` datetime DEFAULT NULL,
  572. `deleted_at` datetime DEFAULT NULL,
  573. `label` varchar(191) DEFAULT NULL COMMENT '''展示值''',
  574. `value` bigint DEFAULT NULL COMMENT '''字典值''',
  575. `status` tinyint(1) DEFAULT NULL COMMENT '''启用状态''',
  576. `sort` bigint DEFAULT NULL COMMENT '''排序标记''',
  577. `sys_dictionary_id` bigint unsigned DEFAULT NULL COMMENT '''关联标记''',
  578. PRIMARY KEY (`id`),
  579. KEY `idx_sys_dictionary_details_deleted_at` (`deleted_at`)
  580. ) ENGINE=InnoDB AUTO_INCREMENT=24 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
  581. -- ----------------------------
  582. -- Records of sys_dictionary_details
  583. -- ----------------------------
  584. BEGIN;
  585. INSERT INTO `sys_dictionary_details` VALUES (1, '2020-09-11 11:14:42', '2020-09-11 11:14:42', NULL, 'smallint', 1, 1, 1, 2);
  586. INSERT INTO `sys_dictionary_details` VALUES (2, '2020-09-11 11:14:42', '2020-09-11 11:14:42', NULL, 'mediumint', 2, 1, 2, 2);
  587. INSERT INTO `sys_dictionary_details` VALUES (3, '2020-09-11 11:14:42', '2020-09-11 11:14:42', NULL, 'int', 3, 1, 3, 2);
  588. INSERT INTO `sys_dictionary_details` VALUES (4, '2020-09-11 11:14:42', '2020-09-11 11:14:42', NULL, 'bigint', 4, 1, 4, 2);
  589. INSERT INTO `sys_dictionary_details` VALUES (5, '2020-09-11 11:14:42', '2020-09-11 11:14:42', NULL, 'data', 0, 1, 0, 3);
  590. INSERT INTO `sys_dictionary_details` VALUES (6, '2020-09-11 11:14:42', '2020-09-11 11:14:42', NULL, 'time', 1, 1, 1, 3);
  591. INSERT INTO `sys_dictionary_details` VALUES (7, '2020-09-11 11:14:42', '2020-09-11 11:14:42', NULL, 'year', 2, 1, 2, 3);
  592. INSERT INTO `sys_dictionary_details` VALUES (8, '2020-09-11 11:14:42', '2020-09-11 11:14:42', NULL, 'datetime', 3, 1, 3, 3);
  593. INSERT INTO `sys_dictionary_details` VALUES (9, '2020-09-11 11:14:42', '2020-09-11 11:14:42', NULL, 'timestamp', 5, 1, 5, 3);
  594. INSERT INTO `sys_dictionary_details` VALUES (10, '2020-09-11 11:14:42', '2020-09-11 11:14:42', NULL, 'float', 0, 1, 0, 4);
  595. INSERT INTO `sys_dictionary_details` VALUES (11, '2020-09-11 11:14:42', '2020-09-11 11:14:42', NULL, 'double', 1, 1, 1, 4);
  596. INSERT INTO `sys_dictionary_details` VALUES (12, '2020-09-11 11:14:42', '2020-09-11 11:14:42', NULL, 'decimal', 2, 1, 2, 4);
  597. INSERT INTO `sys_dictionary_details` VALUES (13, '2020-09-11 11:14:42', '2020-09-11 11:14:42', NULL, 'char', 0, 1, 0, 5);
  598. INSERT INTO `sys_dictionary_details` VALUES (14, '2020-09-11 11:14:42', '2020-09-11 11:14:42', NULL, 'varchar', 1, 1, 1, 5);
  599. INSERT INTO `sys_dictionary_details` VALUES (15, '2020-09-11 11:14:42', '2020-09-11 11:14:42', NULL, 'tinyblob', 2, 1, 2, 5);
  600. INSERT INTO `sys_dictionary_details` VALUES (16, '2020-09-11 11:14:42', '2020-09-11 11:14:42', NULL, 'tinytext', 3, 1, 3, 5);
  601. INSERT INTO `sys_dictionary_details` VALUES (17, '2020-09-11 11:14:42', '2020-09-11 11:14:42', NULL, 'text', 4, 1, 4, 5);
  602. INSERT INTO `sys_dictionary_details` VALUES (18, '2020-09-11 11:14:42', '2020-09-11 11:14:42', NULL, 'blob', 5, 1, 5, 5);
  603. INSERT INTO `sys_dictionary_details` VALUES (19, '2020-09-11 11:14:42', '2020-09-11 11:14:42', NULL, 'mediumblob', 6, 1, 6, 5);
  604. INSERT INTO `sys_dictionary_details` VALUES (20, '2020-09-11 11:14:42', '2020-09-11 11:14:42', NULL, 'mediumtext', 7, 1, 7, 5);
  605. INSERT INTO `sys_dictionary_details` VALUES (21, '2020-09-11 11:14:42', '2020-09-11 11:14:42', NULL, 'longblob', 8, 1, 8, 5);
  606. INSERT INTO `sys_dictionary_details` VALUES (22, '2020-09-11 11:14:42', '2020-09-11 11:14:42', NULL, 'longtext', 9, 1, 9, 5);
  607. INSERT INTO `sys_dictionary_details` VALUES (23, '2020-09-11 11:14:42', '2020-09-11 11:14:42', NULL, 'tinyint', 0, 1, 0, 6);
  608. COMMIT;
  609. -- ----------------------------
  610. -- Table structure for sys_operation_records
  611. -- ----------------------------
  612. DROP TABLE IF EXISTS `sys_operation_records`;
  613. CREATE TABLE `sys_operation_records` (
  614. `id` bigint unsigned NOT NULL AUTO_INCREMENT,
  615. `created_at` datetime DEFAULT NULL,
  616. `updated_at` datetime DEFAULT NULL,
  617. `deleted_at` datetime DEFAULT NULL,
  618. `ip` varchar(191) DEFAULT NULL COMMENT '''请求ip''',
  619. `method` varchar(191) DEFAULT NULL COMMENT '''''',
  620. `path` varchar(191) DEFAULT NULL COMMENT '''''',
  621. `status` bigint DEFAULT NULL COMMENT '''''',
  622. `latency` bigint DEFAULT NULL COMMENT '''''',
  623. `agent` varchar(191) DEFAULT NULL COMMENT '''''',
  624. `error_message` varchar(191) DEFAULT NULL COMMENT '''''',
  625. `body` varchar(191) DEFAULT NULL COMMENT '''请求Body''',
  626. `resp` longtext COMMENT '''响应Body''',
  627. `user_id` bigint unsigned DEFAULT NULL COMMENT '''''',
  628. PRIMARY KEY (`id`),
  629. KEY `idx_sys_operation_records_deleted_at` (`deleted_at`)
  630. ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
  631. -- ----------------------------
  632. -- Table structure for sys_users
  633. -- ----------------------------
  634. DROP TABLE IF EXISTS `sys_users`;
  635. CREATE TABLE `sys_users` (
  636. `id` bigint unsigned NOT NULL AUTO_INCREMENT,
  637. `created_at` datetime DEFAULT NULL,
  638. `updated_at` datetime DEFAULT NULL,
  639. `deleted_at` datetime DEFAULT NULL,
  640. `uuid` varchar(191) DEFAULT NULL COMMENT '''用户UUID''',
  641. `username` varchar(191) DEFAULT NULL COMMENT '''用户登录名''',
  642. `password` varchar(191) DEFAULT NULL COMMENT '''用户登录密码''',
  643. `nick_name` varchar(191) DEFAULT '系统用户' COMMENT '''用户昵称''',
  644. `header_img` varchar(191) DEFAULT 'http://qmplusimg.henrongyi.top/head.png' COMMENT '''用户头像''',
  645. `authority_id` varchar(191) DEFAULT '888' COMMENT '''用户角色ID''',
  646. PRIMARY KEY (`id`),
  647. KEY `idx_sys_users_deleted_at` (`deleted_at`)
  648. ) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
  649. -- ----------------------------
  650. -- Records of sys_users
  651. -- ----------------------------
  652. BEGIN;
  653. INSERT INTO `sys_users` VALUES (1, '2020-09-11 11:14:42', '2020-09-11 11:14:42', NULL, 'e0375086-c7fd-48f9-818b-044f3d83dac0', 'admin', 'e10adc3949ba59abbe56e057f20f883e', '超级管理员', 'http://qmplusimg.henrongyi.top/1571627762timg.jpg', '888');
  654. INSERT INTO `sys_users` VALUES (2, '2020-09-11 11:14:42', '2020-09-11 11:14:42', NULL, 'acdd9a43-4d82-44ce-9b6e-8b70bd89d651', 'a303176530', '3ec063004a6f31642261936a379fde3d', 'QMPlusUser', 'http://qmplusimg.henrongyi.top/1572075907logo.png', '9528');
  655. COMMIT;
  656. -- ----------------------------
  657. -- Table structure for sys_workflow_step_infos
  658. -- ----------------------------
  659. DROP TABLE IF EXISTS `sys_workflow_step_infos`;
  660. CREATE TABLE `sys_workflow_step_infos` (
  661. `id` bigint unsigned NOT NULL AUTO_INCREMENT,
  662. `created_at` datetime DEFAULT NULL,
  663. `updated_at` datetime DEFAULT NULL,
  664. `deleted_at` datetime DEFAULT NULL,
  665. `sys_workflow_id` bigint unsigned DEFAULT NULL COMMENT '''所属工作流ID''',
  666. `is_strat` tinyint(1) DEFAULT NULL COMMENT '''是否是开始流节点''',
  667. `step_name` varchar(191) DEFAULT NULL COMMENT '''工作流节点名称''',
  668. `step_no` double DEFAULT NULL COMMENT '''步骤id (第几步)''',
  669. `step_authority_id` varchar(191) DEFAULT NULL COMMENT '''操作者级别id''',
  670. `is_end` tinyint(1) DEFAULT NULL COMMENT '''是否是完结流节点''',
  671. PRIMARY KEY (`id`),
  672. KEY `idx_sys_workflow_step_infos_deleted_at` (`deleted_at`)
  673. ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
  674. -- ----------------------------
  675. -- Table structure for sys_workflows
  676. -- ----------------------------
  677. DROP TABLE IF EXISTS `sys_workflows`;
  678. CREATE TABLE `sys_workflows` (
  679. `id` bigint unsigned NOT NULL AUTO_INCREMENT,
  680. `created_at` datetime DEFAULT NULL,
  681. `updated_at` datetime DEFAULT NULL,
  682. `deleted_at` datetime DEFAULT NULL,
  683. `workflow_nick_name` varchar(191) DEFAULT NULL COMMENT '''工作流中文名称''',
  684. `workflow_name` varchar(191) DEFAULT NULL COMMENT '''工作流英文名称''',
  685. `workflow_description` varchar(191) DEFAULT NULL COMMENT '''工作流描述''',
  686. PRIMARY KEY (`id`),
  687. KEY `idx_sys_workflows_deleted_at` (`deleted_at`)
  688. ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
  689. -- ----------------------------
  690. -- View structure for authority_menu
  691. -- ----------------------------
  692. DROP VIEW IF EXISTS `authority_menu`;
  693. CREATE ALGORITHM = UNDEFINED SQL SECURITY DEFINER VIEW `authority_menu` AS select `sys_base_menus`.`id` AS `id`,`sys_base_menus`.`created_at` AS `created_at`,`sys_base_menus`.`updated_at` AS `updated_at`,`sys_base_menus`.`deleted_at` AS `deleted_at`,`sys_base_menus`.`menu_level` AS `menu_level`,`sys_base_menus`.`parent_id` AS `parent_id`,`sys_base_menus`.`path` AS `path`,`sys_base_menus`.`name` AS `name`,`sys_base_menus`.`hidden` AS `hidden`,`sys_base_menus`.`component` AS `component`,`sys_base_menus`.`title` AS `title`,`sys_base_menus`.`icon` AS `icon`,`sys_base_menus`.`sort` AS `sort`,`sys_authority_menus`.`sys_authority_authority_id` AS `authority_id`,`sys_authority_menus`.`sys_base_menu_id` AS `menu_id`,`sys_base_menus`.`keep_alive` AS `keep_alive`,`sys_base_menus`.`default_menu` AS `default_menu` from (`sys_authority_menus` join `sys_base_menus` on((`sys_authority_menus`.`sys_base_menu_id` = `sys_base_menus`.`id`)));
  694. SET FOREIGN_KEY_CHECKS = 1;