zuihou_base_yj_0000.sql 97 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136
  1. /*
  2. Navicat Premium Data Transfer
  3. Source Server : 127.0.0.1
  4. Source Server Type : MySQL
  5. Source Server Version : 50722
  6. Source Host : 127.0.0.1:3306
  7. Source Schema : zuihou_base_yj_0000
  8. Target Server Type : MySQL
  9. Target Server Version : 50722
  10. File Encoding : 65001
  11. Date: 12/07/2020 23:45:02
  12. */
  13. SET NAMES utf8mb4;
  14. SET FOREIGN_KEY_CHECKS = 0;
  15. -- ----------------------------
  16. -- Table structure for c_auth_application
  17. -- ----------------------------
  18. DROP TABLE IF EXISTS `c_auth_application`;
  19. CREATE TABLE `c_auth_application` (
  20. `id` bigint(20) NOT NULL COMMENT 'ID',
  21. `client_id` varchar(24) DEFAULT NULL COMMENT '客户端ID',
  22. `client_secret` varchar(32) DEFAULT NULL COMMENT '客户端密码',
  23. `website` varchar(100) DEFAULT '' COMMENT '官网',
  24. `name` varchar(255) NOT NULL DEFAULT '' COMMENT '应用名称',
  25. `icon` varchar(255) DEFAULT '' COMMENT '应用图标',
  26. `app_type` varchar(10) DEFAULT NULL COMMENT '类型\n#{SERVER:服务应用;APP:手机应用;PC:PC网页应用;WAP:手机网页应用}\n',
  27. `describe_` varchar(200) DEFAULT '' COMMENT '备注',
  28. `status` bit(1) DEFAULT b'1' COMMENT '是否启用',
  29. `create_user` bigint(20) DEFAULT NULL COMMENT '创建人id',
  30. `create_time` datetime DEFAULT NULL COMMENT '创建时间',
  31. `update_user` bigint(20) DEFAULT NULL COMMENT '更新人id',
  32. `update_time` datetime DEFAULT NULL COMMENT '更新时间',
  33. PRIMARY KEY (`id`) USING BTREE,
  34. KEY `UN_APP_KEY` (`client_id`) USING BTREE
  35. ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='应用';
  36. -- ----------------------------
  37. -- Records of c_auth_application
  38. -- ----------------------------
  39. BEGIN;
  40. INSERT INTO `c_auth_application` VALUES (1, 'zuihou_ui', 'zuihou_ui_secret', 'http://tangyh.top:10000/zuihou-ui/', 'SaaS微服务管理后台', '', 'PC', '内置', b'1', 1, '2020-04-02 15:05:14', 1, '2020-04-02 15:05:17');
  41. INSERT INTO `c_auth_application` VALUES (2, 'zuihou_admin_ui', 'zuihou_admin_ui_secret', 'http://tangyh.top:180/zuihou-admin-ui/', 'SaaS微服务超级管理后台', '', 'PC', '内置', b'1', 1, '2020-04-02 15:05:22', 1, '2020-04-02 15:05:19');
  42. COMMIT;
  43. -- ----------------------------
  44. -- Table structure for c_auth_menu
  45. -- ----------------------------
  46. DROP TABLE IF EXISTS `c_auth_menu`;
  47. CREATE TABLE `c_auth_menu` (
  48. `id` bigint(20) NOT NULL COMMENT '主键',
  49. `label` varchar(20) NOT NULL DEFAULT '' COMMENT '名称',
  50. `describe_` varchar(200) DEFAULT '' COMMENT '描述',
  51. `is_public` bit(1) DEFAULT b'0' COMMENT '公共菜单\nTrue是无需分配所有人就可以访问的',
  52. `path` varchar(255) DEFAULT '' COMMENT '路径',
  53. `component` varchar(255) DEFAULT NULL COMMENT '组件',
  54. `is_enable` bit(1) DEFAULT b'1' COMMENT '状态',
  55. `sort_value` int(11) DEFAULT '1' COMMENT '排序',
  56. `icon` varchar(255) DEFAULT '' COMMENT '菜单图标',
  57. `group_` varchar(20) DEFAULT '' COMMENT '分组',
  58. `parent_id` bigint(20) DEFAULT '0' COMMENT '父级菜单ID',
  59. `create_user` bigint(20) DEFAULT NULL COMMENT '创建人id',
  60. `create_time` datetime DEFAULT NULL COMMENT '创建时间',
  61. `update_user` bigint(20) DEFAULT NULL COMMENT '更新人id',
  62. `update_time` datetime DEFAULT NULL COMMENT '更新时间',
  63. PRIMARY KEY (`id`) USING BTREE,
  64. KEY `INX_STATUS` (`is_enable`,`is_public`) USING BTREE
  65. ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='菜单';
  66. -- ----------------------------
  67. -- Records of c_auth_menu
  68. -- ----------------------------
  69. BEGIN;
  70. INSERT INTO `c_auth_menu` VALUES (101, '用户中心', '用户组织机构', b'0', '/user', 'Layout', b'1', 1, 'el-icon-user-solid', '', 0, 1, '2019-07-25 15:35:12', 3, '2019-11-11 14:32:02');
  71. INSERT INTO `c_auth_menu` VALUES (102, '权限管理', '管理权限相关', b'0', '/auth', 'Layout', b'1', 2, 'el-icon-lock', '', 0, 1, '2019-07-27 11:48:49', 3, '2019-11-11 14:35:39');
  72. INSERT INTO `c_auth_menu` VALUES (103, '基础配置', '基础的配置', b'0', '/base', 'Layout', b'1', 3, 'el-icon-set-up', '', 0, 1, '2019-11-11 14:38:29', 3, '2019-11-11 14:35:42');
  73. INSERT INTO `c_auth_menu` VALUES (104, '开发者管理', '开发者', b'0', '/developer', 'Layout', b'1', 4, 'el-icon-user-solid', '', 0, 1, '2019-11-11 14:38:34', 3, '2019-11-11 14:35:44');
  74. INSERT INTO `c_auth_menu` VALUES (105, '消息中心', '站内信', b'0', '/msgs', 'Layout', b'1', 5, 'el-icon-chat-line-square', '', 0, 1, '2019-11-11 14:38:32', 3, '2019-11-11 14:35:47');
  75. INSERT INTO `c_auth_menu` VALUES (106, '短信中心', '短信接口', b'0', '/sms', 'Layout', b'1', 6, 'el-icon-chat-line-round', '', 0, 1, '2019-11-11 14:38:36', 3, '2019-11-11 14:35:49');
  76. INSERT INTO `c_auth_menu` VALUES (107, '文件中心', '附件接口', b'0', '/file', 'Layout', b'1', 7, 'el-icon-folder-add', '', 0, 1, '2019-11-11 14:38:38', 3, '2019-11-11 14:35:51');
  77. INSERT INTO `c_auth_menu` VALUES (603976297063910529, '菜单配置', '', b'0', '/auth/menu', 'zuihou/auth/menu/Index', b'1', 0, '', '', 102, 1, '2019-07-25 15:46:11', 3, '2019-11-11 14:31:52');
  78. INSERT INTO `c_auth_menu` VALUES (603981723864141121, '角色管理', '', b'0', '/auth/role', 'zuihou/auth/role/Index', b'1', 1, '', '', 102, 1, '2019-07-25 16:07:45', 3, '2019-11-11 14:31:57');
  79. INSERT INTO `c_auth_menu` VALUES (603982542332235201, '组织管理', '', b'0', '/user/org', 'zuihou/user/org/Index', b'1', 0, '', '', 101, 1, '2019-07-25 16:11:00', 3, '2019-11-11 14:28:40');
  80. INSERT INTO `c_auth_menu` VALUES (603982713849908801, '岗位管理', '', b'0', '/user/station', 'zuihou/user/station/Index', b'1', 1, '', '', 101, 1, '2019-07-25 16:11:41', 3, '2019-11-11 14:28:43');
  81. INSERT INTO `c_auth_menu` VALUES (603983082961243905, '用户管理', '', b'0', '/user/user', 'zuihou/user/user/Index', b'1', 2, '', '', 101, 1, '2019-07-25 16:13:09', 3, '2019-11-11 14:28:49');
  82. INSERT INTO `c_auth_menu` VALUES (605078371293987105, '数据字典维护', '', b'0', '/base/dict', 'zuihou/base/dict/Index', b'1', 0, '', '', 103, 1, '2019-07-28 16:45:26', 3, '2019-11-11 14:34:23');
  83. INSERT INTO `c_auth_menu` VALUES (605078463069552993, '地区信息维护', '', b'0', '/base/area', 'zuihou/base/area/Index', b'1', 1, '', '', 103, 1, '2019-07-28 16:45:48', 3, '2019-11-11 14:34:26');
  84. INSERT INTO `c_auth_menu` VALUES (605078538881597857, '应用管理', '', b'0', '/developer/application', 'zuihou/developer/application/Index', b'1', 0, '', '', 104, 1, '2019-07-28 16:46:06', 3, '2019-12-25 16:19:43');
  85. INSERT INTO `c_auth_menu` VALUES (605078672772170209, '操作日志', '', b'0', '/developer/optLog', 'zuihou/developer/optLog/Index', b'1', 3, '', '', 104, 1, '2019-07-28 16:46:38', 3, '2019-11-11 14:35:14');
  86. INSERT INTO `c_auth_menu` VALUES (605078979149300257, '数据库监控', '', b'0', '/developer/db', 'zuihou/developer/db/Index', b'1', 2, '', '', 104, 1, '2019-07-28 16:47:51', 3, '2019-11-16 16:35:50');
  87. INSERT INTO `c_auth_menu` VALUES (605079239015793249, '接口文档', '', b'0', 'http://127.0.0.1:8760/api/gate/doc.html', 'Layout', b'1', 5, '', '', 104, 1, '2019-07-28 16:48:53', 3, '2019-11-16 10:55:03');
  88. INSERT INTO `c_auth_menu` VALUES (605079411338773153, '注册&配置中心', '', b'0', 'http://127.0.0.1:8848/nacos', 'Layout', b'1', 6, '', '', 104, 1, '2019-07-28 16:49:34', 3, '2019-11-16 10:55:06');
  89. INSERT INTO `c_auth_menu` VALUES (605079545585861345, '缓存监控', '', b'0', 'http://www.baidu.com', 'Layout', b'1', 7, '', '', 104, 1, '2019-07-28 16:50:06', 3, '2019-11-16 10:55:08');
  90. INSERT INTO `c_auth_menu` VALUES (605079658416833313, '服务器监控', '', b'0', 'http://127.0.0.1:8762/zuihou-monitor', 'Layout', b'1', 8, '', '', 104, 1, '2019-07-28 16:50:33', 3, '2019-11-16 10:55:15');
  91. INSERT INTO `c_auth_menu` VALUES (605079751035454305, '消息推送', '', b'0', '/msgs/sendMsgs', 'zuihou/msgs/sendMsgs/Index', b'1', 0, '', '', 105, 1, '2019-07-28 16:50:55', 3, '2019-11-11 14:28:30');
  92. INSERT INTO `c_auth_menu` VALUES (605080023753294753, '我的消息', '', b'0', '/msgs/myMsgs', 'zuihou/msgs/myMsgs/Index', b'1', 1, '', '', 105, 1, '2019-07-28 16:52:00', 3, '2019-11-11 14:28:27');
  93. INSERT INTO `c_auth_menu` VALUES (605080107379327969, '账号配置', '', b'0', '/sms/template', 'zuihou/sms/template/Index', b'1', 1, '', '', 106, 1, '2019-07-28 16:52:20', 3, '2019-11-21 19:53:17');
  94. INSERT INTO `c_auth_menu` VALUES (605080359394083937, '短信管理', '', b'0', '/sms/manage', 'zuihou/sms/manage/Index', b'1', 0, '', '', 106, 1, '2019-07-28 16:53:20', 3, '2019-11-21 19:53:09');
  95. INSERT INTO `c_auth_menu` VALUES (605080648767505601, '附件列表', '', b'0', '/file/attachment', 'zuihou/file/attachment/Index', b'1', 0, '', '', 107, 1, '2019-07-28 16:54:29', 3, '2019-11-11 14:28:07');
  96. INSERT INTO `c_auth_menu` VALUES (605080816296396097, '定时调度中心', '', b'0', 'http://127.0.0.1:8767/zuihou-jobs-server', 'Layout', b'1', 9, '', '', 104, 1, '2019-07-28 16:55:09', 3, '2019-11-16 10:55:18');
  97. INSERT INTO `c_auth_menu` VALUES (643464272629728001, '务必详看', '', b'1', '/doc', 'zuihou/doc/Index', b'1', 0, 'el-icon-notebook-1', '', 0, 3, '2019-11-11 14:57:18', 3, '2019-11-11 15:01:31');
  98. INSERT INTO `c_auth_menu` VALUES (643464392888812545, '后端代码', '', b'1', 'https://github.com/zuihou/zuihou-admin-cloud', 'Layout', b'1', 1, '', '', 643464272629728001, 3, '2019-11-11 14:57:46', 3, '2019-11-11 15:00:05');
  99. INSERT INTO `c_auth_menu` VALUES (643464517879071841, '租户平台-前端代码', '', b'1', 'https://github.com/zuihou/zuihou-ui', 'Layout', b'1', 2, '', '', 643464272629728001, 3, '2019-11-11 14:58:16', 3, '2019-11-11 15:00:09');
  100. INSERT INTO `c_auth_menu` VALUES (643464706228487361, '运营平台-前端代码', '', b'1', 'https://github.com/zuihou/zuihou-admin-ui', 'Layout', b'1', 3, '', '', 643464272629728001, 3, '2019-11-11 14:59:01', 3, '2019-11-11 15:00:11');
  101. INSERT INTO `c_auth_menu` VALUES (643464953478514081, '在线文档', '', b'1', 'https://www.kancloud.cn/zuihou/zuihou-admin-cloud', 'Layout', b'1', 0, '', '', 643464272629728001, 3, '2019-11-11 15:00:00', 3, '2019-11-11 15:01:36');
  102. INSERT INTO `c_auth_menu` VALUES (643874916004790785, '运营平台演示地址', NULL, b'1', 'http://127.0.0.1:8081/zuihou-admin-ui', 'Layout', b'1', 4, NULL, NULL, 643464272629728001, 3, '2019-11-12 18:09:03', 641577229343523041, '2019-12-04 16:20:13');
  103. INSERT INTO `c_auth_menu` VALUES (644111530555611361, '链路调用监控', '', b'0', 'http://127.0.0.1:8772/zipkin', 'Layout', b'1', 10, '', '', 104, 3, '2019-11-13 09:49:16', 3, '2019-11-13 09:56:51');
  104. INSERT INTO `c_auth_menu` VALUES (645215230518909025, '登录日志', '', b'0', '/developer/loginLog', 'zuihou/developer/loginLog/Index', b'1', 4, '', '', 104, 3, '2019-11-16 10:54:59', 3, '2019-11-16 10:54:59');
  105. INSERT INTO `c_auth_menu` VALUES (1225042542827929600, '参数配置', '', b'0', '/base/parameter', 'zuihou/base/parameter/Index', b'1', 3, '', '', 103, 3, '2020-02-05 21:04:37', 3, '2020-02-05 21:04:37');
  106. COMMIT;
  107. -- ----------------------------
  108. -- Table structure for c_auth_resource
  109. -- ----------------------------
  110. DROP TABLE IF EXISTS `c_auth_resource`;
  111. CREATE TABLE `c_auth_resource` (
  112. `id` bigint(20) NOT NULL COMMENT 'ID',
  113. `code` varchar(50) DEFAULT '' COMMENT '编码\n规则:\n链接:\n数据列:\n按钮:',
  114. `name` varchar(255) NOT NULL DEFAULT '' COMMENT '名称',
  115. `menu_id` bigint(20) DEFAULT NULL COMMENT '菜单ID\n#c_auth_menu',
  116. `describe_` varchar(255) DEFAULT '' COMMENT '描述',
  117. `create_user` bigint(20) DEFAULT NULL COMMENT '创建人id',
  118. `create_time` datetime DEFAULT NULL COMMENT '创建时间',
  119. `update_user` bigint(20) DEFAULT NULL COMMENT '更新人id',
  120. `update_time` datetime DEFAULT NULL COMMENT '更新时间',
  121. PRIMARY KEY (`id`) USING BTREE,
  122. UNIQUE KEY `UN_CODE` (`code`) USING BTREE COMMENT '编码唯一'
  123. ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='资源';
  124. -- ----------------------------
  125. -- Records of c_auth_resource
  126. -- ----------------------------
  127. BEGIN;
  128. INSERT INTO `c_auth_resource` VALUES (643444685339100193, 'org:add', '添加', 603982542332235201, '', 3, '2019-11-11 13:39:28', 3, '2019-11-11 13:39:50');
  129. INSERT INTO `c_auth_resource` VALUES (643444685339100194, 'role:config', '配置', 603981723864141121, '', 3, '2019-11-11 13:39:28', 3, '2019-11-11 13:39:50');
  130. INSERT INTO `c_auth_resource` VALUES (643444685339100195, 'resource:add', '添加', 603976297063910529, '', 3, '2019-11-11 13:39:28', 3, '2019-11-11 13:39:50');
  131. INSERT INTO `c_auth_resource` VALUES (643444685339100196, 'resource:update', '修改', 603976297063910529, '', 3, '2019-11-11 13:39:28', 3, '2019-11-11 13:39:50');
  132. INSERT INTO `c_auth_resource` VALUES (643444685339100197, 'resource:delete', '删除', 603976297063910529, '', 3, '2019-11-11 13:39:28', 3, '2019-11-11 13:39:50');
  133. INSERT INTO `c_auth_resource` VALUES (643444685339100198, 'resource:view', '查看', 603976297063910529, '', 3, '2020-04-05 19:02:42', 3, '2020-04-05 19:02:46');
  134. INSERT INTO `c_auth_resource` VALUES (643444819758154945, 'org:update', '修改', 603982542332235201, '', 3, '2019-11-11 13:40:00', 3, '2019-11-11 13:40:00');
  135. INSERT INTO `c_auth_resource` VALUES (643444858974897441, 'org:delete', '删除', 603982542332235201, '', 3, '2019-11-11 13:40:09', 3, '2019-11-11 13:40:09');
  136. INSERT INTO `c_auth_resource` VALUES (643444897201784193, 'org:view', '查询', 603982542332235201, '', 3, '2019-11-11 13:40:18', 3, '2019-11-11 13:40:18');
  137. INSERT INTO `c_auth_resource` VALUES (643444992357959137, 'org:import', '导入', 603982542332235201, '', 3, '2019-11-11 13:40:41', 3, '2019-11-11 13:40:41');
  138. INSERT INTO `c_auth_resource` VALUES (643445016773002817, 'org:export', '导出', 603982542332235201, '', 3, '2019-11-11 13:40:47', 3, '2019-11-11 13:40:47');
  139. INSERT INTO `c_auth_resource` VALUES (643445116756821697, 'station:add', '添加', 603982713849908801, '', 3, '2019-11-11 13:41:11', 3, '2019-11-11 13:41:11');
  140. INSERT INTO `c_auth_resource` VALUES (643445162915137313, 'station:update', '修改', 603982713849908801, '', 3, '2019-11-11 13:41:22', 3, '2019-11-11 13:41:22');
  141. INSERT INTO `c_auth_resource` VALUES (643445197954353025, 'station:delete', '删除', 603982713849908801, '', 3, '2019-11-11 13:41:30', 3, '2019-11-11 13:41:30');
  142. INSERT INTO `c_auth_resource` VALUES (643445229575210977, 'station:view', '查看', 603982713849908801, '', 3, '2019-11-11 13:41:38', 3, '2019-11-11 13:41:38');
  143. INSERT INTO `c_auth_resource` VALUES (643445262110427201, 'station:export', '导出', 603982713849908801, '', 3, '2019-11-11 13:41:45', 3, '2019-11-11 13:41:45');
  144. INSERT INTO `c_auth_resource` VALUES (643445283996305569, 'station:import', '导入', 603982713849908801, '', 3, '2019-11-11 13:41:51', 3, '2019-11-11 13:41:51');
  145. INSERT INTO `c_auth_resource` VALUES (643445352703199521, 'user:add', '添加', 603983082961243905, '', 3, '2019-11-11 13:42:07', 3, '2019-11-11 13:42:07');
  146. INSERT INTO `c_auth_resource` VALUES (643445412774021505, 'user:update', '修改', 603983082961243905, '', 3, '2019-11-11 13:42:21', 3, '2019-11-11 13:42:21');
  147. INSERT INTO `c_auth_resource` VALUES (643445448081672673, 'user:delete', '删除', 603983082961243905, '', 3, '2019-11-11 13:42:30', 3, '2019-11-11 13:42:30');
  148. INSERT INTO `c_auth_resource` VALUES (643445477274028609, 'user:view', '查看', 603983082961243905, '', 3, '2019-11-11 13:42:37', 3, '2019-11-11 13:42:37');
  149. INSERT INTO `c_auth_resource` VALUES (643445514607528609, 'user:import', '导入', 603983082961243905, '', 3, '2019-11-11 13:42:46', 3, '2019-11-11 13:42:46');
  150. INSERT INTO `c_auth_resource` VALUES (643445542076025601, 'user:export', '导出', 603983082961243905, '', 3, '2019-11-11 13:42:52', 3, '2019-11-11 13:42:52');
  151. INSERT INTO `c_auth_resource` VALUES (643445641149680705, 'menu:add', '添加', 603976297063910529, '', 3, '2019-11-11 13:43:16', 3, '2019-11-11 13:43:16');
  152. INSERT INTO `c_auth_resource` VALUES (643445674330819745, 'menu:update', '修改', 603976297063910529, '', 3, '2019-11-11 13:43:24', 3, '2019-11-11 13:43:24');
  153. INSERT INTO `c_auth_resource` VALUES (643445704177487105, 'menu:delete', '删除', 603976297063910529, '', 3, '2019-11-11 13:43:31', 3, '2019-11-11 13:43:31');
  154. INSERT INTO `c_auth_resource` VALUES (643445747320098145, 'menu:view', '查看', 603976297063910529, '', 3, '2019-11-11 13:43:41', 3, '2019-11-11 13:43:41');
  155. INSERT INTO `c_auth_resource` VALUES (643445774687931841, 'menu:export', '导出', 603976297063910529, '', 3, '2019-11-11 13:43:48', 3, '2019-11-11 13:43:48');
  156. INSERT INTO `c_auth_resource` VALUES (643445802106097185, 'menu:import', '导入', 603976297063910529, '', 3, '2019-11-11 13:43:54', 3, '2019-11-11 13:43:54');
  157. INSERT INTO `c_auth_resource` VALUES (643448338154263521, 'role:add', '添加', 603981723864141121, '', 3, '2019-11-11 13:53:59', 3, '2019-11-11 13:53:59');
  158. INSERT INTO `c_auth_resource` VALUES (643448369779315777, 'role:update', '修改', 603981723864141121, '', 3, '2019-11-11 13:54:06', 3, '2019-11-11 13:54:06');
  159. INSERT INTO `c_auth_resource` VALUES (643448507767723169, 'role:delete', '删除', 603981723864141121, '', 3, '2019-11-11 13:54:39', 3, '2019-11-11 13:54:39');
  160. INSERT INTO `c_auth_resource` VALUES (643448611161511169, 'role:view', '查看', 603981723864141121, '', 3, '2019-11-11 13:55:04', 3, '2019-11-11 13:55:04');
  161. INSERT INTO `c_auth_resource` VALUES (643448656451605857, 'role:export', '导出', 603981723864141121, '', 3, '2019-11-11 13:55:15', 3, '2019-11-11 13:55:15');
  162. INSERT INTO `c_auth_resource` VALUES (643448730950833601, 'role:import', '导入', 603981723864141121, '', 3, '2019-11-11 13:55:32', 3, '2019-11-11 13:55:32');
  163. INSERT INTO `c_auth_resource` VALUES (643448826945869409, 'role:auth', '授权', 603981723864141121, '', 3, '2019-11-11 13:55:55', 3, '2019-11-11 13:55:55');
  164. INSERT INTO `c_auth_resource` VALUES (643449540959016737, 'dict:add', '添加', 605078371293987105, '', 3, '2019-11-11 13:58:45', 3, '2019-11-11 13:58:45');
  165. INSERT INTO `c_auth_resource` VALUES (643449573045442433, 'dict:update', '修改', 605078371293987105, '', 3, '2019-11-11 13:58:53', 3, '2019-11-11 13:58:53');
  166. INSERT INTO `c_auth_resource` VALUES (643449629173618657, 'dict:view', '查看', 605078371293987105, '', 3, '2019-11-11 13:59:07', 3, '2019-11-11 13:59:07');
  167. INSERT INTO `c_auth_resource` VALUES (643449944866297985, 'dict:delete', '删除', 605078371293987105, '', 3, '2019-11-11 14:00:22', 3, '2019-11-11 14:00:22');
  168. INSERT INTO `c_auth_resource` VALUES (643449998909905121, 'dict:export', '导出', 605078371293987105, '', 3, '2019-11-11 14:00:35', 3, '2019-11-11 14:00:35');
  169. INSERT INTO `c_auth_resource` VALUES (643450072595437889, 'dict:import', '导入', 605078371293987105, '', 3, '2019-11-11 14:00:52', 3, '2019-11-11 14:00:52');
  170. INSERT INTO `c_auth_resource` VALUES (643450171333548481, 'area:add', '添加', 605078463069552993, '', 3, '2019-11-11 14:01:16', 3, '2019-11-11 14:01:16');
  171. INSERT INTO `c_auth_resource` VALUES (643450210449627681, 'area:update', '修改', 605078463069552993, '', 3, '2019-11-11 14:01:25', 3, '2019-11-11 14:01:25');
  172. INSERT INTO `c_auth_resource` VALUES (643450295858240129, 'area:delete', '删除', 605078463069552993, '', 3, '2019-11-11 14:01:45', 3, '2019-11-11 14:01:45');
  173. INSERT INTO `c_auth_resource` VALUES (643450326619265761, 'area:view', '查看', 605078463069552993, '', 3, '2019-11-11 14:01:53', 3, '2019-11-11 14:01:53');
  174. INSERT INTO `c_auth_resource` VALUES (643450551291353921, 'area:export', '导出', 605078463069552993, '', 3, '2019-11-11 14:02:46', 3, '2019-11-11 14:02:46');
  175. INSERT INTO `c_auth_resource` VALUES (643450602218593185, 'area:import', '导入', 605078463069552993, '', 3, '2019-11-11 14:02:59', 3, '2019-11-11 14:02:59');
  176. INSERT INTO `c_auth_resource` VALUES (643450770317909249, 'optLog:view', '查看', 605078672772170209, '', 3, '2019-11-11 14:03:39', 3, '2019-11-11 14:03:39');
  177. INSERT INTO `c_auth_resource` VALUES (643450853134441825, 'optLog:export', '导出', 605078672772170209, '', 3, '2019-11-11 14:03:58', 3, '2019-11-11 14:03:58');
  178. INSERT INTO `c_auth_resource` VALUES (643451893279892129, 'msgs:view', '查看', 605080023753294753, '', 3, '2019-11-11 14:08:06', 3, '2019-11-11 14:08:06');
  179. INSERT INTO `c_auth_resource` VALUES (643451945020826369, 'msgs:delete', '删除', 605080023753294753, '', 3, '2019-11-11 14:08:19', 3, '2019-11-11 14:08:19');
  180. INSERT INTO `c_auth_resource` VALUES (643451994945626977, 'msgs:update', '修改', 605080023753294753, '', 3, '2019-11-11 14:08:31', 3, '2019-11-11 14:08:31');
  181. INSERT INTO `c_auth_resource` VALUES (643452086981239745, 'msgs:export', '导出', 605080023753294753, '', 3, '2019-11-11 14:08:53', 3, '2019-11-11 14:08:53');
  182. INSERT INTO `c_auth_resource` VALUES (643452393857492033, 'sms:template:add', '添加', 605080107379327969, '', 3, '2019-11-11 14:10:06', 3, '2019-11-11 14:10:06');
  183. INSERT INTO `c_auth_resource` VALUES (643452429496493217, 'sms:template:update', '修改', 605080107379327969, '', 3, '2019-11-11 14:10:14', 3, '2019-11-11 14:10:14');
  184. INSERT INTO `c_auth_resource` VALUES (643452458693043457, 'sms:template:view', '查看', 605080107379327969, '', 3, '2019-11-11 14:10:21', 3, '2019-11-11 14:10:21');
  185. INSERT INTO `c_auth_resource` VALUES (643452488447436129, 'sms:template:delete', '删除', 605080107379327969, '', 3, '2019-11-11 14:10:28', 3, '2019-11-11 14:10:28');
  186. INSERT INTO `c_auth_resource` VALUES (643452536954561985, 'sms:template:import', '导入', 605080107379327969, '', 3, '2019-11-11 14:10:40', 3, '2019-11-11 14:10:40');
  187. INSERT INTO `c_auth_resource` VALUES (643452571645650465, 'sms:template:export', '导入', 605080107379327969, '', 3, '2019-11-11 14:10:48', 3, '2019-11-11 14:10:48');
  188. INSERT INTO `c_auth_resource` VALUES (643454073500084577, 'sms:manage:add', '添加', 605080359394083937, '', 3, '2019-11-11 14:16:46', 3, '2019-11-11 14:16:46');
  189. INSERT INTO `c_auth_resource` VALUES (643454110992968129, 'sms:manage:update', '修改', 605080359394083937, '', 3, '2019-11-11 14:16:55', 3, '2019-11-11 14:16:55');
  190. INSERT INTO `c_auth_resource` VALUES (643454150905965089, 'sms:manage:view', '查看', 605080359394083937, '', 3, '2019-11-11 14:17:05', 3, '2019-11-11 14:17:05');
  191. INSERT INTO `c_auth_resource` VALUES (643454825052252961, 'sms:manage:delete', '删除', 605080359394083937, '', 3, '2019-11-11 14:19:45', 3, '2019-11-11 14:19:45');
  192. INSERT INTO `c_auth_resource` VALUES (643455175503129569, 'sms:manage:export', '导出', 605080359394083937, '', 3, '2019-11-11 14:21:09', 3, '2019-11-11 14:26:05');
  193. INSERT INTO `c_auth_resource` VALUES (643455720519380097, 'sms:manage:import', '导入', 605080359394083937, '', 3, '2019-11-11 14:23:19', 3, '2019-11-11 14:23:19');
  194. INSERT INTO `c_auth_resource` VALUES (643456690892582401, 'file:add', '添加', 605080648767505601, '', 3, '2019-11-11 14:27:10', 3, '2019-11-11 14:27:10');
  195. INSERT INTO `c_auth_resource` VALUES (643456724186967649, 'file:update', '修改', 605080648767505601, '', 3, '2019-11-11 14:27:18', 3, '2019-11-11 14:27:18');
  196. INSERT INTO `c_auth_resource` VALUES (643456761927315137, 'file:delete', '删除', 605080648767505601, '', 3, '2019-11-11 14:27:27', 3, '2019-11-11 14:27:27');
  197. INSERT INTO `c_auth_resource` VALUES (643456789920100129, 'file:view', '查看', 605080648767505601, '', 3, '2019-11-11 14:27:34', 3, '2019-11-11 14:27:34');
  198. INSERT INTO `c_auth_resource` VALUES (643456884694593409, 'file:download', '下载', 605080648767505601, '', 3, '2019-11-11 14:27:56', 3, '2019-11-11 14:27:56');
  199. INSERT INTO `c_auth_resource` VALUES (645288214990422241, 'optLog:delete', '删除', 605078672772170209, '', 3, '2019-11-16 15:45:00', 3, '2019-11-16 15:45:00');
  200. INSERT INTO `c_auth_resource` VALUES (645288283693121889, 'loginLog:delete', '删除', 645215230518909025, '', 3, '2019-11-16 15:45:16', 3, '2019-11-16 15:45:16');
  201. INSERT INTO `c_auth_resource` VALUES (645288375300915649, 'loginLog:export', '导出', 645215230518909025, '', 3, '2019-11-16 15:45:38', 3, '2019-11-16 15:45:38');
  202. INSERT INTO `c_auth_resource` VALUES (658002570005972001, 'msgs:add', '新增', 605080023753294753, '', 3, '2019-12-21 17:47:18', 3, '2019-12-21 17:47:18');
  203. INSERT INTO `c_auth_resource` VALUES (658002632467547265, 'msgs:mark', '标记已读', 605080023753294753, '', 3, '2019-12-21 17:47:33', 3, '2019-12-21 17:47:33');
  204. INSERT INTO `c_auth_resource` VALUES (659702641965662497, 'application:add', '新增', 605078538881597857, '', 3, '2019-12-26 10:22:47', 3, '2019-12-26 10:22:47');
  205. INSERT INTO `c_auth_resource` VALUES (659702674622513537, 'application:update', '修改', 605078538881597857, '', 3, '2019-12-26 10:22:55', 3, '2019-12-26 10:22:55');
  206. INSERT INTO `c_auth_resource` VALUES (659702756889592289, 'application:delete', '删除', 605078538881597857, '', 3, '2019-12-26 10:23:14', 3, '2019-12-26 10:23:14');
  207. INSERT INTO `c_auth_resource` VALUES (659702791312245313, 'application:view', '查看', 605078538881597857, '', 3, '2019-12-26 10:23:22', 3, '2019-12-26 10:23:22');
  208. INSERT INTO `c_auth_resource` VALUES (659702853945787041, 'application:export', '导出', 605078538881597857, '', 3, '2019-12-26 10:23:37', 3, '2019-12-26 10:23:37');
  209. INSERT INTO `c_auth_resource` VALUES (1225042691843162112, 'parameter:add', '添加', 1225042542827929600, '', 3, '2020-02-05 21:05:13', 3, '2020-02-05 21:05:13');
  210. INSERT INTO `c_auth_resource` VALUES (1225042821497487360, 'parameter:update', '修改', 1225042542827929600, '', 3, '2020-02-05 21:05:43', 3, '2020-02-05 21:05:43');
  211. INSERT INTO `c_auth_resource` VALUES (1225042949172101120, 'parameter:delete', '删除', 1225042542827929600, '', 3, '2020-02-05 21:06:14', 3, '2020-02-05 21:06:14');
  212. INSERT INTO `c_auth_resource` VALUES (1225043012455759872, 'parameter:export', '导出', 1225042542827929600, '', 3, '2020-02-05 21:06:29', 3, '2020-02-05 21:06:29');
  213. INSERT INTO `c_auth_resource` VALUES (1237035586045345792, 'parameter:import', '导入', 1225042542827929600, '', 3, '2020-03-09 23:20:41', 3, '2020-03-09 23:20:41');
  214. INSERT INTO `c_auth_resource` VALUES (1237035798587506688, 'msgs:import', '导入', 605080023753294753, '', 3, '2020-03-09 23:21:32', 3, '2020-03-09 23:21:32');
  215. INSERT INTO `c_auth_resource` VALUES (1246066924136169472, 'parameter:view', '查看', 1225042542827929600, '', 3, '2020-04-03 21:28:00', 3, '2020-04-03 21:28:00');
  216. INSERT INTO `c_auth_resource` VALUES (1246067318035841024, 'loginLog:view', '查看', 645215230518909025, '', 3, '2020-04-03 21:29:34', 3, '2020-04-03 21:29:34');
  217. COMMIT;
  218. -- ----------------------------
  219. -- Table structure for c_auth_role
  220. -- ----------------------------
  221. DROP TABLE IF EXISTS `c_auth_role`;
  222. CREATE TABLE `c_auth_role` (
  223. `id` bigint(20) NOT NULL,
  224. `name` varchar(30) NOT NULL DEFAULT '' COMMENT '名称',
  225. `code` varchar(20) DEFAULT '' COMMENT '编码',
  226. `describe_` varchar(100) DEFAULT '' COMMENT '描述',
  227. `status` bit(1) DEFAULT b'1' COMMENT '状态',
  228. `readonly` bit(1) DEFAULT b'0' COMMENT '是否内置角色',
  229. `ds_type` varchar(20) NOT NULL DEFAULT 'SELF' COMMENT '数据权限类型\n#DataScopeType{ALL:1,全部;THIS_LEVEL:2,本级;THIS_LEVEL_CHILDREN:3,本级以及子级;CUSTOMIZE:4,自定义;SELF:5,个人;}',
  230. `create_user` bigint(20) DEFAULT '0' COMMENT '创建人id',
  231. `create_time` datetime DEFAULT NULL COMMENT '创建时间',
  232. `update_user` bigint(20) DEFAULT '0' COMMENT '更新人id',
  233. `update_time` datetime DEFAULT NULL COMMENT '更新时间',
  234. PRIMARY KEY (`id`) USING BTREE,
  235. UNIQUE KEY `UN_CODE` (`code`) USING BTREE
  236. ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='角色';
  237. -- ----------------------------
  238. -- Records of c_auth_role
  239. -- ----------------------------
  240. BEGIN;
  241. INSERT INTO `c_auth_role` VALUES (100, '平台管理员', 'PT_ADMIN', '平台内置管理员', b'1', b'1', 'ALL', 1, '2019-10-25 13:46:00', 3, '2020-02-13 11:05:28');
  242. COMMIT;
  243. -- ----------------------------
  244. -- Table structure for c_auth_role_authority
  245. -- ----------------------------
  246. DROP TABLE IF EXISTS `c_auth_role_authority`;
  247. CREATE TABLE `c_auth_role_authority` (
  248. `id` bigint(20) NOT NULL COMMENT '主键',
  249. `authority_id` bigint(20) NOT NULL COMMENT '资源id\n#c_auth_resource\n#c_auth_menu',
  250. `authority_type` varchar(10) NOT NULL DEFAULT 'MENU' COMMENT '权限类型\n#AuthorizeType{MENU:菜单;RESOURCE:资源;}',
  251. `role_id` bigint(20) NOT NULL COMMENT '角色id\n#c_auth_role',
  252. `create_time` datetime DEFAULT NULL COMMENT '创建时间',
  253. `create_user` bigint(20) DEFAULT '0' COMMENT '创建人',
  254. PRIMARY KEY (`id`) USING BTREE,
  255. KEY `IDX_KEY` (`role_id`,`authority_type`,`authority_id`)
  256. ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='角色的资源';
  257. -- ----------------------------
  258. -- Records of c_auth_role_authority
  259. -- ----------------------------
  260. BEGIN;
  261. INSERT INTO `c_auth_role_authority` VALUES (643444685339100198, 643444685339100198, 'RESOURCE', 100, '2020-04-05 19:03:08', 3);
  262. INSERT INTO `c_auth_role_authority` VALUES (1246067572630093824, 643445116756821697, 'RESOURCE', 100, '2020-04-03 21:30:35', 3);
  263. INSERT INTO `c_auth_role_authority` VALUES (1246067572646871040, 643444685339100197, 'RESOURCE', 100, '2020-04-03 21:30:35', 3);
  264. INSERT INTO `c_auth_role_authority` VALUES (1246067572651065344, 643444685339100196, 'RESOURCE', 100, '2020-04-03 21:30:35', 3);
  265. INSERT INTO `c_auth_role_authority` VALUES (1246067572651065345, 643450072595437889, 'RESOURCE', 100, '2020-04-03 21:30:35', 3);
  266. INSERT INTO `c_auth_role_authority` VALUES (1246067572651065346, 643444685339100193, 'RESOURCE', 100, '2020-04-03 21:30:35', 3);
  267. INSERT INTO `c_auth_role_authority` VALUES (1246067572659453952, 643444685339100195, 'RESOURCE', 100, '2020-04-03 21:30:35', 3);
  268. INSERT INTO `c_auth_role_authority` VALUES (1246067572659453953, 659702853945787041, 'RESOURCE', 100, '2020-04-03 21:30:35', 3);
  269. INSERT INTO `c_auth_role_authority` VALUES (1246067572663648256, 643444685339100194, 'RESOURCE', 100, '2020-04-03 21:30:35', 3);
  270. INSERT INTO `c_auth_role_authority` VALUES (1246067572663648257, 1225042949172101120, 'RESOURCE', 100, '2020-04-03 21:30:35', 3);
  271. INSERT INTO `c_auth_role_authority` VALUES (1246067572667842560, 643445197954353025, 'RESOURCE', 100, '2020-04-03 21:30:35', 3);
  272. INSERT INTO `c_auth_role_authority` VALUES (1246067572667842561, 1246067318035841024, 'RESOURCE', 100, '2020-04-03 21:30:35', 3);
  273. INSERT INTO `c_auth_role_authority` VALUES (1246067572667842562, 1232574830335754240, 'RESOURCE', 100, '2020-04-03 21:30:35', 3);
  274. INSERT INTO `c_auth_role_authority` VALUES (1246067572672036864, 1225043012455759872, 'RESOURCE', 100, '2020-04-03 21:30:35', 3);
  275. INSERT INTO `c_auth_role_authority` VALUES (1246067572672036865, 643445262110427201, 'RESOURCE', 100, '2020-04-03 21:30:35', 3);
  276. INSERT INTO `c_auth_role_authority` VALUES (1246067572672036866, 643450853134441825, 'RESOURCE', 100, '2020-04-03 21:30:35', 3);
  277. INSERT INTO `c_auth_role_authority` VALUES (1246067572676231168, 643445774687931841, 'RESOURCE', 100, '2020-04-03 21:30:35', 3);
  278. INSERT INTO `c_auth_role_authority` VALUES (1246067572676231169, 1225984228617879552, 'RESOURCE', 100, '2020-04-03 21:30:35', 3);
  279. INSERT INTO `c_auth_role_authority` VALUES (1246067572676231170, 659702756889592289, 'RESOURCE', 100, '2020-04-03 21:30:35', 3);
  280. INSERT INTO `c_auth_role_authority` VALUES (1246067572680425472, 643450551291353921, 'RESOURCE', 100, '2020-04-03 21:30:35', 3);
  281. INSERT INTO `c_auth_role_authority` VALUES (1246067572680425473, 643452458693043457, 'RESOURCE', 100, '2020-04-03 21:30:35', 3);
  282. INSERT INTO `c_auth_role_authority` VALUES (1246067572680425474, 643454110992968129, 'RESOURCE', 100, '2020-04-03 21:30:35', 3);
  283. INSERT INTO `c_auth_role_authority` VALUES (1246067572684619776, 643445016773002817, 'RESOURCE', 100, '2020-04-03 21:30:35', 3);
  284. INSERT INTO `c_auth_role_authority` VALUES (1246067572684619778, 643445162915137313, 'RESOURCE', 100, '2020-04-03 21:30:35', 3);
  285. INSERT INTO `c_auth_role_authority` VALUES (1246067572688814080, 643445229575210977, 'RESOURCE', 100, '2020-04-03 21:30:35', 3);
  286. INSERT INTO `c_auth_role_authority` VALUES (1246067572688814081, 1225984389242945536, 'RESOURCE', 100, '2020-04-03 21:30:35', 3);
  287. INSERT INTO `c_auth_role_authority` VALUES (1246067572693008384, 643448369779315777, 'RESOURCE', 100, '2020-04-03 21:30:35', 3);
  288. INSERT INTO `c_auth_role_authority` VALUES (1246067572693008385, 643454825052252961, 'RESOURCE', 100, '2020-04-03 21:30:35', 3);
  289. INSERT INTO `c_auth_role_authority` VALUES (1246067572697202688, 643456884694593409, 'RESOURCE', 100, '2020-04-03 21:30:35', 3);
  290. INSERT INTO `c_auth_role_authority` VALUES (1246067572697202689, 643445704177487105, 'RESOURCE', 100, '2020-04-03 21:30:35', 3);
  291. INSERT INTO `c_auth_role_authority` VALUES (1246067572701396992, 658002570005972001, 'RESOURCE', 100, '2020-04-03 21:30:35', 3);
  292. INSERT INTO `c_auth_role_authority` VALUES (1246067572701396993, 643451893279892129, 'RESOURCE', 100, '2020-04-03 21:30:35', 3);
  293. INSERT INTO `c_auth_role_authority` VALUES (1246067572701396994, 643445283996305569, 'RESOURCE', 100, '2020-04-03 21:30:35', 3);
  294. INSERT INTO `c_auth_role_authority` VALUES (1246067572705591296, 643451994945626977, 'RESOURCE', 100, '2020-04-03 21:30:35', 3);
  295. INSERT INTO `c_auth_role_authority` VALUES (1246067572705591297, 643445542076025601, 'RESOURCE', 100, '2020-04-03 21:30:35', 3);
  296. INSERT INTO `c_auth_role_authority` VALUES (1246067572705591298, 645288214990422241, 'RESOURCE', 100, '2020-04-03 21:30:35', 3);
  297. INSERT INTO `c_auth_role_authority` VALUES (1246067572709785600, 643450602218593185, 'RESOURCE', 100, '2020-04-03 21:30:35', 3);
  298. INSERT INTO `c_auth_role_authority` VALUES (1246067572709785601, 643450326619265761, 'RESOURCE', 100, '2020-04-03 21:30:35', 3);
  299. INSERT INTO `c_auth_role_authority` VALUES (1246067572709785602, 643456724186967649, 'RESOURCE', 100, '2020-04-03 21:30:35', 3);
  300. INSERT INTO `c_auth_role_authority` VALUES (1246067572713979904, 643445448081672673, 'RESOURCE', 100, '2020-04-03 21:30:35', 3);
  301. INSERT INTO `c_auth_role_authority` VALUES (1246067572713979905, 643448611161511169, 'RESOURCE', 100, '2020-04-03 21:30:35', 3);
  302. INSERT INTO `c_auth_role_authority` VALUES (1246067572713979906, 643445802106097185, 'RESOURCE', 100, '2020-04-03 21:30:35', 3);
  303. INSERT INTO `c_auth_role_authority` VALUES (1246067572718174208, 643448826945869409, 'RESOURCE', 100, '2020-04-03 21:30:35', 3);
  304. INSERT INTO `c_auth_role_authority` VALUES (1246067572718174209, 643452536954561985, 'RESOURCE', 100, '2020-04-03 21:30:35', 3);
  305. INSERT INTO `c_auth_role_authority` VALUES (1246067572718174210, 1225984359173980160, 'RESOURCE', 100, '2020-04-03 21:30:35', 3);
  306. INSERT INTO `c_auth_role_authority` VALUES (1246067572718174211, 643445514607528609, 'RESOURCE', 100, '2020-04-03 21:30:35', 3);
  307. INSERT INTO `c_auth_role_authority` VALUES (1246067572722368512, 1246066924136169472, 'RESOURCE', 100, '2020-04-03 21:30:35', 3);
  308. INSERT INTO `c_auth_role_authority` VALUES (1246067572722368513, 643448507767723169, 'RESOURCE', 100, '2020-04-03 21:30:35', 3);
  309. INSERT INTO `c_auth_role_authority` VALUES (1246067572726562816, 643450295858240129, 'RESOURCE', 100, '2020-04-03 21:30:35', 3);
  310. INSERT INTO `c_auth_role_authority` VALUES (1246067572726562817, 643449998909905121, 'RESOURCE', 100, '2020-04-03 21:30:35', 3);
  311. INSERT INTO `c_auth_role_authority` VALUES (1246067572726562818, 645288283693121889, 'RESOURCE', 100, '2020-04-03 21:30:35', 3);
  312. INSERT INTO `c_auth_role_authority` VALUES (1246067572726562819, 643444897201784193, 'RESOURCE', 100, '2020-04-03 21:30:35', 3);
  313. INSERT INTO `c_auth_role_authority` VALUES (1246067572730757120, 643448730950833601, 'RESOURCE', 100, '2020-04-03 21:30:35', 3);
  314. INSERT INTO `c_auth_role_authority` VALUES (1246067572730757121, 643456690892582401, 'RESOURCE', 100, '2020-04-03 21:30:35', 3);
  315. INSERT INTO `c_auth_role_authority` VALUES (1246067572730757122, 643445412774021505, 'RESOURCE', 100, '2020-04-03 21:30:35', 3);
  316. INSERT INTO `c_auth_role_authority` VALUES (1246067572734951424, 1237035586045345792, 'RESOURCE', 100, '2020-04-03 21:30:35', 3);
  317. INSERT INTO `c_auth_role_authority` VALUES (1246067572734951425, 643448656451605857, 'RESOURCE', 100, '2020-04-03 21:30:35', 3);
  318. INSERT INTO `c_auth_role_authority` VALUES (1246067572734951426, 643450171333548481, 'RESOURCE', 100, '2020-04-03 21:30:35', 3);
  319. INSERT INTO `c_auth_role_authority` VALUES (1246067572734951427, 643456761927315137, 'RESOURCE', 100, '2020-04-03 21:30:35', 3);
  320. INSERT INTO `c_auth_role_authority` VALUES (1246067572739145728, 643445477274028609, 'RESOURCE', 100, '2020-04-03 21:30:35', 3);
  321. INSERT INTO `c_auth_role_authority` VALUES (1246067572739145729, 1225984257483079680, 'RESOURCE', 100, '2020-04-03 21:30:35', 3);
  322. INSERT INTO `c_auth_role_authority` VALUES (1246067572739145730, 643445352703199521, 'RESOURCE', 100, '2020-04-03 21:30:35', 3);
  323. INSERT INTO `c_auth_role_authority` VALUES (1246067572739145731, 643445747320098145, 'RESOURCE', 100, '2020-04-03 21:30:35', 3);
  324. INSERT INTO `c_auth_role_authority` VALUES (1246067572743340032, 643452571645650465, 'RESOURCE', 100, '2020-04-03 21:30:35', 3);
  325. INSERT INTO `c_auth_role_authority` VALUES (1246067572743340033, 643444858974897441, 'RESOURCE', 100, '2020-04-03 21:30:35', 3);
  326. INSERT INTO `c_auth_role_authority` VALUES (1246067572743340034, 643449944866297985, 'RESOURCE', 100, '2020-04-03 21:30:35', 3);
  327. INSERT INTO `c_auth_role_authority` VALUES (1246067572747534336, 643450770317909249, 'RESOURCE', 100, '2020-04-03 21:30:35', 3);
  328. INSERT INTO `c_auth_role_authority` VALUES (1246067572747534337, 1225984321857257472, 'RESOURCE', 100, '2020-04-03 21:30:35', 3);
  329. INSERT INTO `c_auth_role_authority` VALUES (1246067572747534338, 643455720519380097, 'RESOURCE', 100, '2020-04-03 21:30:35', 3);
  330. INSERT INTO `c_auth_role_authority` VALUES (1246067572751728640, 643450210449627681, 'RESOURCE', 100, '2020-04-03 21:30:35', 3);
  331. INSERT INTO `c_auth_role_authority` VALUES (1246067572751728642, 643444992357959137, 'RESOURCE', 100, '2020-04-03 21:30:35', 3);
  332. INSERT INTO `c_auth_role_authority` VALUES (1246067572755922944, 643456789920100129, 'RESOURCE', 100, '2020-04-03 21:30:35', 3);
  333. INSERT INTO `c_auth_role_authority` VALUES (1246067572755922945, 659702641965662497, 'RESOURCE', 100, '2020-04-03 21:30:35', 3);
  334. INSERT INTO `c_auth_role_authority` VALUES (1246067572755922946, 658002632467547265, 'RESOURCE', 100, '2020-04-03 21:30:35', 3);
  335. INSERT INTO `c_auth_role_authority` VALUES (1246067572760117248, 643445641149680705, 'RESOURCE', 100, '2020-04-03 21:30:35', 3);
  336. INSERT INTO `c_auth_role_authority` VALUES (1246067572760117249, 643444819758154945, 'RESOURCE', 100, '2020-04-03 21:30:35', 3);
  337. INSERT INTO `c_auth_role_authority` VALUES (1246067572764311552, 643449629173618657, 'RESOURCE', 100, '2020-04-03 21:30:35', 3);
  338. INSERT INTO `c_auth_role_authority` VALUES (1246067572764311553, 643451945020826369, 'RESOURCE', 100, '2020-04-03 21:30:35', 3);
  339. INSERT INTO `c_auth_role_authority` VALUES (1246067572764311554, 643448338154263521, 'RESOURCE', 100, '2020-04-03 21:30:35', 3);
  340. INSERT INTO `c_auth_role_authority` VALUES (1246067572768505856, 643449573045442433, 'RESOURCE', 100, '2020-04-03 21:30:35', 3);
  341. INSERT INTO `c_auth_role_authority` VALUES (1246067572768505857, 1225042691843162112, 'RESOURCE', 100, '2020-04-03 21:30:35', 3);
  342. INSERT INTO `c_auth_role_authority` VALUES (1246067572768505858, 659702791312245313, 'RESOURCE', 100, '2020-04-03 21:30:35', 3);
  343. INSERT INTO `c_auth_role_authority` VALUES (1246067572772700160, 643452429496493217, 'RESOURCE', 100, '2020-04-03 21:30:35', 3);
  344. INSERT INTO `c_auth_role_authority` VALUES (1246067572772700161, 643454073500084577, 'RESOURCE', 100, '2020-04-03 21:30:35', 3);
  345. INSERT INTO `c_auth_role_authority` VALUES (1246067572772700162, 643455175503129569, 'RESOURCE', 100, '2020-04-03 21:30:35', 3);
  346. INSERT INTO `c_auth_role_authority` VALUES (1246067572772700163, 643445674330819745, 'RESOURCE', 100, '2020-04-03 21:30:35', 3);
  347. INSERT INTO `c_auth_role_authority` VALUES (1246067572776894464, 643452393857492033, 'RESOURCE', 100, '2020-04-03 21:30:35', 3);
  348. INSERT INTO `c_auth_role_authority` VALUES (1246067572776894465, 1237035798587506688, 'RESOURCE', 100, '2020-04-03 21:30:35', 3);
  349. INSERT INTO `c_auth_role_authority` VALUES (1246067572776894466, 643454150905965089, 'RESOURCE', 100, '2020-04-03 21:30:35', 3);
  350. INSERT INTO `c_auth_role_authority` VALUES (1246067572781088768, 643452086981239745, 'RESOURCE', 100, '2020-04-03 21:30:35', 3);
  351. INSERT INTO `c_auth_role_authority` VALUES (1246067572781088769, 645288375300915649, 'RESOURCE', 100, '2020-04-03 21:30:35', 3);
  352. INSERT INTO `c_auth_role_authority` VALUES (1246067572781088770, 643452488447436129, 'RESOURCE', 100, '2020-04-03 21:30:35', 3);
  353. INSERT INTO `c_auth_role_authority` VALUES (1246067572781088771, 659702674622513537, 'RESOURCE', 100, '2020-04-03 21:30:35', 3);
  354. INSERT INTO `c_auth_role_authority` VALUES (1246067572785283072, 1225042821497487360, 'RESOURCE', 100, '2020-04-03 21:30:35', 3);
  355. INSERT INTO `c_auth_role_authority` VALUES (1246067572785283074, 643449540959016737, 'RESOURCE', 100, '2020-04-03 21:30:35', 3);
  356. INSERT INTO `c_auth_role_authority` VALUES (1246067572785283075, 645215230518909025, 'MENU', 100, '2020-04-03 21:30:35', 3);
  357. INSERT INTO `c_auth_role_authority` VALUES (1246067572789477376, 605079411338773153, 'MENU', 100, '2020-04-03 21:30:35', 3);
  358. INSERT INTO `c_auth_role_authority` VALUES (1246067572789477377, 605080648767505601, 'MENU', 100, '2020-04-03 21:30:35', 3);
  359. INSERT INTO `c_auth_role_authority` VALUES (1246067572789477378, 603983082961243905, 'MENU', 100, '2020-04-03 21:30:35', 3);
  360. INSERT INTO `c_auth_role_authority` VALUES (1246067572793671680, 603982542332235201, 'MENU', 100, '2020-04-03 21:30:35', 3);
  361. INSERT INTO `c_auth_role_authority` VALUES (1246067572793671681, 603981723864141121, 'MENU', 100, '2020-04-03 21:30:35', 3);
  362. INSERT INTO `c_auth_role_authority` VALUES (1246067572797865984, 605078371293987105, 'MENU', 100, '2020-04-03 21:30:35', 3);
  363. INSERT INTO `c_auth_role_authority` VALUES (1246067572797865985, 644111530555611361, 'MENU', 100, '2020-04-03 21:30:35', 3);
  364. INSERT INTO `c_auth_role_authority` VALUES (1246067572797865986, 605079751035454305, 'MENU', 100, '2020-04-03 21:30:35', 3);
  365. INSERT INTO `c_auth_role_authority` VALUES (1246067572802060288, 605080023753294753, 'MENU', 100, '2020-04-03 21:30:35', 3);
  366. INSERT INTO `c_auth_role_authority` VALUES (1246067572802060289, 605079239015793249, 'MENU', 100, '2020-04-03 21:30:35', 3);
  367. INSERT INTO `c_auth_role_authority` VALUES (1246067572802060290, 605078672772170209, 'MENU', 100, '2020-04-03 21:30:35', 3);
  368. INSERT INTO `c_auth_role_authority` VALUES (1246067572802060291, 603976297063910529, 'MENU', 100, '2020-04-03 21:30:35', 3);
  369. INSERT INTO `c_auth_role_authority` VALUES (1246067572806254592, 605079545585861345, 'MENU', 100, '2020-04-03 21:30:35', 3);
  370. INSERT INTO `c_auth_role_authority` VALUES (1246067572806254593, 605080107379327969, 'MENU', 100, '2020-04-03 21:30:35', 3);
  371. INSERT INTO `c_auth_role_authority` VALUES (1246067572806254594, 605078979149300257, 'MENU', 100, '2020-04-03 21:30:35', 3);
  372. INSERT INTO `c_auth_role_authority` VALUES (1246067572806254595, 101, 'MENU', 100, '2020-04-03 21:30:35', 3);
  373. INSERT INTO `c_auth_role_authority` VALUES (1246067572810448896, 605080359394083937, 'MENU', 100, '2020-04-03 21:30:35', 3);
  374. INSERT INTO `c_auth_role_authority` VALUES (1246067572810448897, 102, 'MENU', 100, '2020-04-03 21:30:35', 3);
  375. INSERT INTO `c_auth_role_authority` VALUES (1246067572810448898, 103, 'MENU', 100, '2020-04-03 21:30:35', 3);
  376. INSERT INTO `c_auth_role_authority` VALUES (1246067572810448899, 104, 'MENU', 100, '2020-04-03 21:30:35', 3);
  377. INSERT INTO `c_auth_role_authority` VALUES (1246067572814643200, 105, 'MENU', 100, '2020-04-03 21:30:35', 3);
  378. INSERT INTO `c_auth_role_authority` VALUES (1246067572814643201, 106, 'MENU', 100, '2020-04-03 21:30:35', 3);
  379. INSERT INTO `c_auth_role_authority` VALUES (1246067572814643202, 107, 'MENU', 100, '2020-04-03 21:30:35', 3);
  380. INSERT INTO `c_auth_role_authority` VALUES (1246067572814643203, 605078463069552993, 'MENU', 100, '2020-04-03 21:30:35', 3);
  381. INSERT INTO `c_auth_role_authority` VALUES (1246067572818837504, 605080816296396097, 'MENU', 100, '2020-04-03 21:30:35', 3);
  382. INSERT INTO `c_auth_role_authority` VALUES (1246067572818837505, 1225042542827929600, 'MENU', 100, '2020-04-03 21:30:35', 3);
  383. INSERT INTO `c_auth_role_authority` VALUES (1246067572818837506, 603982713849908801, 'MENU', 100, '2020-04-03 21:30:35', 3);
  384. INSERT INTO `c_auth_role_authority` VALUES (1246067572823031808, 605079658416833313, 'MENU', 100, '2020-04-03 21:30:35', 3);
  385. INSERT INTO `c_auth_role_authority` VALUES (1246067572823031809, 605078538881597857, 'MENU', 100, '2020-04-03 21:30:35', 3);
  386. COMMIT;
  387. -- ----------------------------
  388. -- Table structure for c_auth_role_org
  389. -- ----------------------------
  390. DROP TABLE IF EXISTS `c_auth_role_org`;
  391. CREATE TABLE `c_auth_role_org` (
  392. `id` bigint(20) NOT NULL COMMENT 'ID',
  393. `role_id` bigint(20) DEFAULT NULL COMMENT '角色ID\n#c_auth_role',
  394. `org_id` bigint(20) DEFAULT NULL COMMENT '部门ID\n#c_core_org',
  395. `create_time` datetime DEFAULT NULL,
  396. `create_user` bigint(20) DEFAULT NULL,
  397. PRIMARY KEY (`id`)
  398. ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='角色组织关系';
  399. -- ----------------------------
  400. -- Records of c_auth_role_org
  401. -- ----------------------------
  402. BEGIN;
  403. INSERT INTO `c_auth_role_org` VALUES (1227790863468331008, 100, 100, '2020-02-13 11:05:28', 3);
  404. INSERT INTO `c_auth_role_org` VALUES (1227790863493496832, 100, 101, '2020-02-13 11:05:28', 3);
  405. INSERT INTO `c_auth_role_org` VALUES (1227790863497691136, 100, 102, '2020-02-13 11:05:28', 3);
  406. INSERT INTO `c_auth_role_org` VALUES (1227790863497691137, 100, 643775612976106881, '2020-02-13 11:05:28', 3);
  407. INSERT INTO `c_auth_role_org` VALUES (1227790863501885440, 100, 643775664683486689, '2020-02-13 11:05:28', 3);
  408. INSERT INTO `c_auth_role_org` VALUES (1227790863501885441, 100, 643775904077582049, '2020-02-13 11:05:28', 3);
  409. INSERT INTO `c_auth_role_org` VALUES (1227790863506079744, 100, 643776324342648929, '2020-02-13 11:05:28', 3);
  410. INSERT INTO `c_auth_role_org` VALUES (1227790863506079745, 100, 643776407691858113, '2020-02-13 11:05:28', 3);
  411. INSERT INTO `c_auth_role_org` VALUES (1227790863510274048, 100, 643776508795556193, '2020-02-13 11:05:28', 3);
  412. INSERT INTO `c_auth_role_org` VALUES (1227790863514468352, 100, 643776594376135105, '2020-02-13 11:05:28', 3);
  413. INSERT INTO `c_auth_role_org` VALUES (1227790863514468353, 100, 643776633823564321, '2020-02-13 11:05:28', 3);
  414. INSERT INTO `c_auth_role_org` VALUES (1227790863514468354, 100, 643776668917305985, '2020-02-13 11:05:28', 3);
  415. INSERT INTO `c_auth_role_org` VALUES (1227790863518662656, 100, 643776713909605089, '2020-02-13 11:05:28', 3);
  416. INSERT INTO `c_auth_role_org` VALUES (1227790863518662657, 100, 643776757199016769, '2020-02-13 11:05:28', 3);
  417. COMMIT;
  418. -- ----------------------------
  419. -- Table structure for c_auth_user
  420. -- ----------------------------
  421. DROP TABLE IF EXISTS `c_auth_user`;
  422. CREATE TABLE `c_auth_user` (
  423. `id` bigint(20) NOT NULL COMMENT 'ID',
  424. `account` varchar(30) NOT NULL COMMENT '账号',
  425. `name` varchar(50) NOT NULL COMMENT '姓名',
  426. `org_id` bigint(20) DEFAULT NULL COMMENT '组织ID\n#c_core_org\n@InjectionField(api = ORG_ID_CLASS, method = ORG_ID_METHOD, beanClass = Org.class) RemoteData<Long, com.github.zuihou.authority.entity.core.Org>',
  427. `station_id` bigint(20) DEFAULT NULL COMMENT '岗位ID\n#c_core_station\n@InjectionField(api = STATION_ID_CLASS, method = STATION_ID_NAME_METHOD) RemoteData<Long, String>',
  428. `email` varchar(255) DEFAULT NULL COMMENT '邮箱',
  429. `mobile` varchar(20) DEFAULT '' COMMENT '手机',
  430. `sex` varchar(1) DEFAULT 'N' COMMENT '性别\n#Sex{W:女;M:男;N:未知}',
  431. `status` bit(1) DEFAULT b'0' COMMENT '状态 \n1启用 0禁用',
  432. `avatar` varchar(255) DEFAULT '' COMMENT '头像',
  433. `nation` varchar(20) DEFAULT NULL COMMENT '民族\n@InjectionField(api = DICTIONARY_ITEM_CLASS, method = DICTIONARY_ITEM_METHOD, dictType = DictionaryType.NATION) RemoteData<String, String>\n',
  434. `education` varchar(20) DEFAULT NULL COMMENT '学历\n@InjectionField(api = DICTIONARY_ITEM_CLASS, method = DICTIONARY_ITEM_METHOD) RemoteData<String, String>',
  435. `position_status` varchar(20) DEFAULT NULL COMMENT '职位状态\n@InjectionField(api = DICTIONARY_ITEM_CLASS, method = DICTIONARY_ITEM_METHOD) RemoteData<String, String>',
  436. `work_describe` varchar(255) DEFAULT '' COMMENT '工作描述\r\n比如: 市长、管理员、局长等等 用于登陆展示',
  437. `password_error_last_time` datetime DEFAULT NULL COMMENT '最后一次输错密码时间',
  438. `password_error_num` int(11) DEFAULT '0' COMMENT '密码错误次数',
  439. `password_expire_time` datetime DEFAULT NULL COMMENT '密码过期时间',
  440. `password` varchar(64) NOT NULL DEFAULT '' COMMENT '密码',
  441. `last_login_time` datetime DEFAULT NULL COMMENT '最后登录时间',
  442. `create_user` bigint(20) DEFAULT '0' COMMENT '创建人id',
  443. `create_time` datetime DEFAULT NULL COMMENT '创建时间',
  444. `update_user` bigint(20) DEFAULT '0' COMMENT '更新人id',
  445. `update_time` datetime DEFAULT NULL COMMENT '更新时间',
  446. PRIMARY KEY (`id`) USING BTREE,
  447. UNIQUE KEY `UN_ACCOUNT` (`account`) USING BTREE
  448. ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='用户';
  449. -- ----------------------------
  450. -- Records of c_auth_user
  451. -- ----------------------------
  452. BEGIN;
  453. INSERT INTO `c_auth_user` VALUES (3, 'zuihou', '平台超管', 100, 100, '244387061@qq.com', '15218869991', 'M', b'1', 'cnrhVkzwxjPwAaCfPbdc.png', 'mz_hanz', 'BOSHI', 'WORKING', '疯狂加班111', '2020-07-07 16:51:37', 0, NULL, 'd9d17d88918aa72834289edaf38f42e2', '2020-07-07 16:51:37', 1, '2019-09-02 11:32:02', 3, '2020-04-03 22:01:34');
  454. INSERT INTO `c_auth_user` VALUES (641577229343523041, 'test', '总经理', 102, 100, '', '', 'N', b'1', 'http://127.0.0.1:10000/file/0000/2019/11/c8df3238-ebca-42b3-baeb-37896468f028.png', 'mz_zz', 'COLLEGE', 'WORKING', '', '2019-12-21 16:45:13', 0, NULL, 'd9d17d88918aa72834289edaf38f42e2', '2019-12-21 16:45:14', 3, '2019-11-06 09:58:56', 3, '2019-11-26 11:02:42');
  455. INSERT INTO `c_auth_user` VALUES (641590096981656001, 'manong', '码农', 643776594376135105, 642032719487828225, '', '', 'M', b'1', 'http://192.168.1.34:10000/file/0000/2019/11/6a759cd8-40f6-46d2-9487-6bd18a6695f2.jpg', 'mz_mz', 'ZHUANKE', 'LEAVE', '122', '2020-02-22 12:32:35', 0, NULL, 'd9d17d88918aa72834289edaf38f42e2', '2020-02-22 12:32:35', 3, '2019-11-06 10:50:01', 3, '2019-11-26 20:27:48');
  456. COMMIT;
  457. -- ----------------------------
  458. -- Table structure for c_auth_user_role
  459. -- ----------------------------
  460. DROP TABLE IF EXISTS `c_auth_user_role`;
  461. CREATE TABLE `c_auth_user_role` (
  462. `id` bigint(20) NOT NULL,
  463. `role_id` bigint(20) NOT NULL DEFAULT '0' COMMENT '角色ID\n#c_auth_role',
  464. `user_id` bigint(20) NOT NULL DEFAULT '0' COMMENT '用户ID\n#c_core_accou',
  465. `create_user` bigint(20) DEFAULT NULL COMMENT '创建人ID',
  466. `create_time` datetime DEFAULT NULL COMMENT '创建时间',
  467. PRIMARY KEY (`id`) USING BTREE,
  468. KEY `IDX_KEY` (`role_id`,`user_id`)
  469. ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='角色分配\r\n账号角色绑定';
  470. -- ----------------------------
  471. -- Records of c_auth_user_role
  472. -- ----------------------------
  473. BEGIN;
  474. INSERT INTO `c_auth_user_role` VALUES (634707503061401697, 100, 3, 1, '2019-10-18 11:01:01');
  475. COMMIT;
  476. -- ----------------------------
  477. -- Table structure for c_auth_user_token
  478. -- ----------------------------
  479. DROP TABLE IF EXISTS `c_auth_user_token`;
  480. CREATE TABLE `c_auth_user_token` (
  481. `id` bigint(20) NOT NULL COMMENT 'ID',
  482. `login_ip` varchar(50) DEFAULT NULL COMMENT '登录IP',
  483. `location` varchar(50) DEFAULT NULL COMMENT '登录地点',
  484. `client_id` varchar(24) DEFAULT NULL COMMENT '客户端Key',
  485. `token` text COMMENT 'token',
  486. `name` varchar(50) DEFAULT NULL COMMENT '姓名',
  487. `expire_time` datetime DEFAULT NULL COMMENT '过期时间',
  488. `account` varchar(30) DEFAULT NULL COMMENT '账号',
  489. `create_time` datetime DEFAULT NULL,
  490. `create_user` bigint(20) DEFAULT NULL COMMENT '登录人ID',
  491. `update_time` datetime DEFAULT NULL,
  492. `update_user` bigint(20) DEFAULT NULL,
  493. PRIMARY KEY (`id`)
  494. ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='token';
  495. -- ----------------------------
  496. -- Table structure for c_common_area
  497. -- ----------------------------
  498. DROP TABLE IF EXISTS `c_common_area`;
  499. CREATE TABLE `c_common_area` (
  500. `id` bigint(20) NOT NULL COMMENT 'id',
  501. `code` varchar(64) NOT NULL DEFAULT '' COMMENT '编码',
  502. `label` varchar(255) NOT NULL DEFAULT '' COMMENT '名称',
  503. `full_name` varchar(255) DEFAULT '' COMMENT '全名',
  504. `sort_value` int(11) DEFAULT '1' COMMENT '排序',
  505. `longitude` varchar(255) DEFAULT '' COMMENT '经度',
  506. `latitude` varchar(255) DEFAULT '' COMMENT '维度',
  507. `level` varchar(10) DEFAULT '' COMMENT '行政区级\n@InjectionField(api = DICTIONARY_ITEM_CLASS, method = DICTIONARY_ITEM_METHOD) RemoteData<String, String>\n\n',
  508. `source_` varchar(255) DEFAULT NULL COMMENT '数据来源',
  509. `parent_id` bigint(20) DEFAULT '0' COMMENT '父ID',
  510. `create_time` datetime DEFAULT NULL COMMENT '创建时间',
  511. `create_user` bigint(20) DEFAULT '0' COMMENT '创建人',
  512. `update_time` datetime DEFAULT NULL COMMENT '更新时间',
  513. `update_user` bigint(20) DEFAULT '0' COMMENT '更新人',
  514. PRIMARY KEY (`id`) USING BTREE,
  515. UNIQUE KEY `UN_CODE` (`code`) USING BTREE,
  516. KEY `IDX_PARENT_ID` (`parent_id`,`label`) USING BTREE COMMENT '查询'
  517. ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='地区表';
  518. -- ----------------------------
  519. -- Table structure for c_common_dictionary
  520. -- ----------------------------
  521. DROP TABLE IF EXISTS `c_common_dictionary`;
  522. CREATE TABLE `c_common_dictionary` (
  523. `id` bigint(20) NOT NULL,
  524. `type_` varchar(64) NOT NULL DEFAULT '' COMMENT '编码\r\n一颗树仅仅有一个统一的编码',
  525. `name` varchar(64) NOT NULL DEFAULT '' COMMENT '名称',
  526. `describe_` varchar(200) DEFAULT '' COMMENT '描述',
  527. `status_` bit(1) DEFAULT b'1' COMMENT '状态',
  528. `create_user` bigint(20) DEFAULT '0' COMMENT '创建人id',
  529. `create_time` datetime DEFAULT NULL COMMENT '创建时间',
  530. `update_user` bigint(20) DEFAULT '0' COMMENT '更新人id',
  531. `update_time` datetime DEFAULT NULL COMMENT '更新时间',
  532. PRIMARY KEY (`id`) USING BTREE
  533. ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='字典类型';
  534. -- ----------------------------
  535. -- Records of c_common_dictionary
  536. -- ----------------------------
  537. BEGIN;
  538. INSERT INTO `c_common_dictionary` VALUES (1, 'NATION', '民族', '', b'1', 1, '2019-06-01 09:42:50', 1, '2019-06-01 09:42:54');
  539. INSERT INTO `c_common_dictionary` VALUES (2, 'POSITION_STATUS', '在职状态', '', b'1', 1, '2019-06-04 11:37:15', 1, '2019-06-04 11:37:15');
  540. INSERT INTO `c_common_dictionary` VALUES (3, 'EDUCATION', '学历', '', b'1', 1, '2019-06-04 11:33:52', 1, '2019-06-04 11:33:52');
  541. INSERT INTO `c_common_dictionary` VALUES (4, 'AREA_LEVEL', '行政区级', '', b'1', 3, '2020-01-20 15:12:05', 3, '2020-01-20 15:12:05');
  542. COMMIT;
  543. -- ----------------------------
  544. -- Table structure for c_common_dictionary_item
  545. -- ----------------------------
  546. DROP TABLE IF EXISTS `c_common_dictionary_item`;
  547. CREATE TABLE `c_common_dictionary_item` (
  548. `id` bigint(20) NOT NULL COMMENT 'ID',
  549. `dictionary_id` bigint(20) NOT NULL COMMENT '类型ID',
  550. `dictionary_type` varchar(64) NOT NULL COMMENT '类型',
  551. `code` varchar(64) NOT NULL DEFAULT '' COMMENT '编码',
  552. `name` varchar(64) NOT NULL DEFAULT '' COMMENT '名称',
  553. `status_` bit(1) DEFAULT b'1' COMMENT '状态',
  554. `describe_` varchar(255) DEFAULT '' COMMENT '描述',
  555. `sort_value` int(11) DEFAULT '1' COMMENT '排序',
  556. `create_user` bigint(20) DEFAULT '0' COMMENT '创建人id',
  557. `create_time` datetime DEFAULT NULL COMMENT '创建时间',
  558. `update_user` bigint(20) DEFAULT '0' COMMENT '更新人id',
  559. `update_time` datetime DEFAULT NULL COMMENT '更新时间',
  560. PRIMARY KEY (`id`) USING BTREE,
  561. KEY `dict_code_item_code_uniq` (`dictionary_type`,`code`) USING BTREE COMMENT '字典编码与字典项目编码联合唯一'
  562. ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='字典项';
  563. -- ----------------------------
  564. -- Records of c_common_dictionary_item
  565. -- ----------------------------
  566. BEGIN;
  567. INSERT INTO `c_common_dictionary_item` VALUES (1, 4, 'AREA_LEVEL', 'COUNTRY', '国家', b'1', '', 1, 3, '2020-01-20 15:12:57', 3, '2020-01-20 15:12:57');
  568. INSERT INTO `c_common_dictionary_item` VALUES (2, 4, 'AREA_LEVEL', 'PROVINCE', '省份/直辖市', b'1', '', 2, 3, '2020-01-20 15:13:45', 3, '2020-01-20 15:13:45');
  569. INSERT INTO `c_common_dictionary_item` VALUES (3, 4, 'AREA_LEVEL', 'CITY', '地市', b'1', '', 3, 3, '2020-01-20 15:14:16', 3, '2020-01-20 15:14:16');
  570. INSERT INTO `c_common_dictionary_item` VALUES (4, 4, 'AREA_LEVEL', 'COUNTY', '区县', b'1', '', 4, 3, '2020-01-20 15:14:54', 3, '2020-01-20 15:14:54');
  571. INSERT INTO `c_common_dictionary_item` VALUES (38, 3, 'EDUCATION', 'ZHUANKE', '专科', b'1', '', 4, 1, '2019-06-04 11:36:29', 1, '2019-06-04 11:36:29');
  572. INSERT INTO `c_common_dictionary_item` VALUES (39, 3, 'EDUCATION', 'COLLEGE', '本科', b'1', '', 5, 1, '2019-06-04 11:36:19', 1, '2019-06-04 11:36:19');
  573. INSERT INTO `c_common_dictionary_item` VALUES (40, 3, 'EDUCATION', 'SUOSHI', '硕士', b'1', '', 6, 1, '2019-06-04 11:36:29', 1, '2019-06-04 11:36:29');
  574. INSERT INTO `c_common_dictionary_item` VALUES (41, 3, 'EDUCATION', 'BOSHI', '博士', b'1', '', 7, 1, '2019-06-04 11:36:29', 1, '2019-06-04 11:36:29');
  575. INSERT INTO `c_common_dictionary_item` VALUES (42, 3, 'EDUCATION', 'BOSHIHOU', '博士后', b'1', '', 8, 1, '2019-06-04 11:36:29', 1, '2019-06-04 11:36:29');
  576. INSERT INTO `c_common_dictionary_item` VALUES (43, 1, 'NATION', 'mz_hanz', '汉族', b'1', '', 0, 1, '2018-03-15 20:11:01', 1, '2018-03-15 20:11:04');
  577. INSERT INTO `c_common_dictionary_item` VALUES (44, 1, 'NATION', 'mz_zz', '壮族', b'1', '', 1, 1, '2018-03-15 20:11:01', 1, '2018-03-15 20:11:04');
  578. INSERT INTO `c_common_dictionary_item` VALUES (45, 1, 'NATION', 'mz_mz', '满族', b'1', '', 2, 1, '2018-03-15 20:11:01', 1, '2018-03-15 20:11:04');
  579. INSERT INTO `c_common_dictionary_item` VALUES (46, 1, 'NATION', 'mz_hz', '回族', b'1', '', 3, 1, '2018-03-15 20:11:01', 1, '2018-03-15 20:11:04');
  580. INSERT INTO `c_common_dictionary_item` VALUES (47, 1, 'NATION', 'mz_miaoz', '苗族', b'1', '', 4, 1, '2018-03-15 20:11:01', 1, '2018-03-15 20:11:04');
  581. INSERT INTO `c_common_dictionary_item` VALUES (48, 1, 'NATION', 'mz_wwez', '维吾尔族', b'1', '', 5, 1, '2018-03-15 20:11:01', 1, '2018-03-15 20:11:04');
  582. INSERT INTO `c_common_dictionary_item` VALUES (49, 1, 'NATION', 'mz_tjz', '土家族', b'1', '', 6, 1, '2018-03-15 20:11:01', 1, '2018-03-15 20:11:04');
  583. INSERT INTO `c_common_dictionary_item` VALUES (50, 1, 'NATION', 'mz_yz', '彝族', b'1', '', 7, 1, '2018-03-15 20:11:01', 1, '2018-03-15 20:11:04');
  584. INSERT INTO `c_common_dictionary_item` VALUES (51, 1, 'NATION', 'mz_mgz', '蒙古族', b'1', '', 8, 1, '2018-03-15 20:11:01', 1, '2018-03-15 20:11:04');
  585. INSERT INTO `c_common_dictionary_item` VALUES (52, 1, 'NATION', 'mz_zhangz', '藏族', b'1', '', 9, 1, '2018-03-15 20:11:01', 1, '2018-03-15 20:11:04');
  586. INSERT INTO `c_common_dictionary_item` VALUES (53, 1, 'NATION', 'mz_byz', '布依族', b'1', '', 10, 1, '2018-03-15 20:11:01', 1, '2018-03-15 20:11:04');
  587. INSERT INTO `c_common_dictionary_item` VALUES (54, 1, 'NATION', 'mz_dz', '侗族', b'1', '', 11, 1, '2018-03-15 20:11:01', 1, '2018-03-15 20:11:04');
  588. INSERT INTO `c_common_dictionary_item` VALUES (55, 1, 'NATION', 'mz_yaoz', '瑶族', b'1', '', 12, 1, '2018-03-15 20:11:01', 1, '2018-03-15 20:11:04');
  589. INSERT INTO `c_common_dictionary_item` VALUES (56, 1, 'NATION', 'mz_cxz', '朝鲜族', b'1', '', 13, 1, '2018-03-15 20:11:01', 1, '2018-03-15 20:11:04');
  590. INSERT INTO `c_common_dictionary_item` VALUES (57, 1, 'NATION', 'mz_bz', '白族', b'1', '', 14, 1, '2018-03-15 20:11:01', 1, '2018-03-15 20:11:04');
  591. INSERT INTO `c_common_dictionary_item` VALUES (58, 1, 'NATION', 'mz_hnz', '哈尼族', b'1', '', 15, 1, '2018-03-15 20:11:01', 1, '2018-03-15 20:11:04');
  592. INSERT INTO `c_common_dictionary_item` VALUES (59, 1, 'NATION', 'mz_hskz', '哈萨克族', b'1', '', 16, 1, '2018-03-15 20:11:01', 1, '2018-03-15 20:11:04');
  593. INSERT INTO `c_common_dictionary_item` VALUES (60, 1, 'NATION', 'mz_lz', '黎族', b'1', '', 17, 1, '2018-03-15 20:11:01', 1, '2018-03-15 20:11:04');
  594. INSERT INTO `c_common_dictionary_item` VALUES (61, 1, 'NATION', 'mz_daiz', '傣族', b'1', '', 18, 1, '2018-03-15 20:11:01', 1, '2018-03-15 20:11:04');
  595. INSERT INTO `c_common_dictionary_item` VALUES (62, 1, 'NATION', 'mz_sz', '畲族', b'1', '', 19, 1, '2018-03-15 20:11:01', 1, '2018-03-15 20:11:04');
  596. INSERT INTO `c_common_dictionary_item` VALUES (63, 1, 'NATION', 'mz_llz', '傈僳族', b'1', '', 20, 1, '2018-03-15 20:11:01', 1, '2018-03-15 20:11:04');
  597. INSERT INTO `c_common_dictionary_item` VALUES (64, 1, 'NATION', 'mz_glz', '仡佬族', b'1', '', 21, 1, '2018-03-15 20:11:01', 1, '2018-03-15 20:11:04');
  598. INSERT INTO `c_common_dictionary_item` VALUES (65, 1, 'NATION', 'mz_dxz', '东乡族', b'1', '', 22, 1, '2018-03-15 20:11:01', 1, '2018-03-15 20:11:04');
  599. INSERT INTO `c_common_dictionary_item` VALUES (66, 1, 'NATION', 'mz_gsz', '高山族', b'1', '', 23, 1, '2018-03-15 20:11:01', 1, '2018-03-15 20:11:04');
  600. INSERT INTO `c_common_dictionary_item` VALUES (67, 1, 'NATION', 'mz_lhz', '拉祜族', b'1', '', 24, 1, '2018-03-15 20:11:01', 1, '2018-03-15 20:11:04');
  601. INSERT INTO `c_common_dictionary_item` VALUES (68, 1, 'NATION', 'mz_shuiz', '水族', b'1', '', 25, 1, '2018-03-15 20:11:01', 1, '2018-03-15 20:11:04');
  602. INSERT INTO `c_common_dictionary_item` VALUES (69, 1, 'NATION', 'mz_wz', '佤族', b'1', '', 26, 1, '2018-03-15 20:11:01', 1, '2018-03-15 20:11:04');
  603. INSERT INTO `c_common_dictionary_item` VALUES (70, 1, 'NATION', 'mz_nxz', '纳西族', b'1', '', 27, 1, '2018-03-15 20:11:01', 1, '2018-03-15 20:11:04');
  604. INSERT INTO `c_common_dictionary_item` VALUES (71, 1, 'NATION', 'mz_qz', '羌族', b'1', '', 28, 1, '2018-03-15 20:11:01', 1, '2018-03-15 20:11:04');
  605. INSERT INTO `c_common_dictionary_item` VALUES (72, 1, 'NATION', 'mz_tz', '土族', b'1', '', 29, 1, '2018-03-15 20:11:01', 1, '2018-03-15 20:11:04');
  606. INSERT INTO `c_common_dictionary_item` VALUES (73, 1, 'NATION', 'mz_zlz', '仫佬族', b'1', '', 30, 1, '2018-03-15 20:11:01', 1, '2018-03-15 20:11:04');
  607. INSERT INTO `c_common_dictionary_item` VALUES (74, 1, 'NATION', 'mz_xbz', '锡伯族', b'1', '', 31, 1, '2018-03-15 20:11:01', 1, '2018-03-15 20:11:04');
  608. INSERT INTO `c_common_dictionary_item` VALUES (75, 1, 'NATION', 'mz_kehzz', '柯尔克孜族', b'1', '', 32, 1, '2018-03-15 20:11:01', 1, '2018-03-15 20:11:04');
  609. INSERT INTO `c_common_dictionary_item` VALUES (76, 1, 'NATION', 'mz_dwz', '达斡尔族', b'1', '', 33, 1, '2018-03-15 20:11:01', 1, '2018-03-15 20:11:04');
  610. INSERT INTO `c_common_dictionary_item` VALUES (77, 1, 'NATION', 'mz_jpz', '景颇族', b'1', '', 34, 1, '2018-03-15 20:11:01', 1, '2018-03-15 20:11:04');
  611. INSERT INTO `c_common_dictionary_item` VALUES (78, 1, 'NATION', 'mz_mlz', '毛南族', b'1', '', 35, 1, '2018-03-15 20:11:01', 1, '2018-03-15 20:11:04');
  612. INSERT INTO `c_common_dictionary_item` VALUES (79, 1, 'NATION', 'mz_slz', '撒拉族', b'1', '', 36, 1, '2018-03-15 20:11:01', 1, '2018-03-15 20:11:04');
  613. INSERT INTO `c_common_dictionary_item` VALUES (80, 1, 'NATION', 'mz_tjkz', '塔吉克族', b'1', '', 37, 1, '2018-03-15 20:11:01', 1, '2018-03-15 20:11:04');
  614. INSERT INTO `c_common_dictionary_item` VALUES (81, 1, 'NATION', 'mz_acz', '阿昌族', b'1', '', 38, 1, '2018-03-15 20:11:01', 1, '2018-03-15 20:11:04');
  615. INSERT INTO `c_common_dictionary_item` VALUES (82, 1, 'NATION', 'mz_pmz', '普米族', b'1', '', 39, 1, '2018-03-15 20:11:01', 1, '2018-03-15 20:11:04');
  616. INSERT INTO `c_common_dictionary_item` VALUES (83, 1, 'NATION', 'mz_ewkz', '鄂温克族', b'1', '', 40, 1, '2018-03-15 20:11:01', 1, '2018-03-15 20:11:04');
  617. INSERT INTO `c_common_dictionary_item` VALUES (84, 1, 'NATION', 'mz_nz', '怒族', b'1', '', 41, 1, '2018-03-15 20:11:01', 1, '2018-03-15 20:11:04');
  618. INSERT INTO `c_common_dictionary_item` VALUES (85, 1, 'NATION', 'mz_jz', '京族', b'1', '', 42, 1, '2018-03-15 20:11:01', 1, '2018-03-15 20:11:04');
  619. INSERT INTO `c_common_dictionary_item` VALUES (86, 1, 'NATION', 'mz_jnz', '基诺族', b'1', '', 43, 1, '2018-03-15 20:11:01', 1, '2018-03-15 20:11:04');
  620. INSERT INTO `c_common_dictionary_item` VALUES (87, 1, 'NATION', 'mz_daz', '德昂族', b'1', '', 44, 1, '2018-03-15 20:11:01', 1, '2018-03-15 20:11:04');
  621. INSERT INTO `c_common_dictionary_item` VALUES (88, 1, 'NATION', 'mz_baz', '保安族', b'1', '', 45, 1, '2018-03-15 20:11:01', 1, '2018-03-15 20:11:04');
  622. INSERT INTO `c_common_dictionary_item` VALUES (89, 1, 'NATION', 'mz_elsz', '俄罗斯族', b'1', '', 46, 1, '2018-03-15 20:11:01', 1, '2018-03-15 20:11:04');
  623. INSERT INTO `c_common_dictionary_item` VALUES (90, 1, 'NATION', 'mz_ygz', '裕固族', b'1', '', 47, 1, '2018-03-15 20:11:01', 1, '2018-03-15 20:11:04');
  624. INSERT INTO `c_common_dictionary_item` VALUES (91, 1, 'NATION', 'mz_wzbkz', '乌兹别克族', b'1', '', 48, 1, '2018-03-15 20:11:01', 1, '2018-03-15 20:11:04');
  625. INSERT INTO `c_common_dictionary_item` VALUES (92, 1, 'NATION', 'mz_mbz', '门巴族', b'1', '', 49, 1, '2018-03-15 20:11:01', 1, '2018-03-15 20:11:04');
  626. INSERT INTO `c_common_dictionary_item` VALUES (93, 1, 'NATION', 'mz_elcz', '鄂伦春族', b'1', '', 50, 1, '2018-03-15 20:11:01', 1, '2018-03-15 20:11:04');
  627. INSERT INTO `c_common_dictionary_item` VALUES (94, 1, 'NATION', 'mz_dlz', '独龙族', b'1', '', 51, 1, '2018-03-15 20:11:01', 1, '2018-03-15 20:11:04');
  628. INSERT INTO `c_common_dictionary_item` VALUES (95, 1, 'NATION', 'mz_tkez', '塔塔尔族', b'1', '', 52, 1, '2018-03-15 20:11:01', 1, '2018-03-15 20:11:04');
  629. INSERT INTO `c_common_dictionary_item` VALUES (96, 1, 'NATION', 'mz_hzz', '赫哲族', b'1', '', 53, 1, '2018-03-15 20:11:01', 1, '2018-03-15 20:11:04');
  630. INSERT INTO `c_common_dictionary_item` VALUES (97, 1, 'NATION', 'mz_lbz', '珞巴族', b'1', '', 54, 1, '2018-03-15 20:11:01', 1, '2018-03-15 20:11:04');
  631. INSERT INTO `c_common_dictionary_item` VALUES (98, 1, 'NATION', 'mz_blz', '布朗族', b'1', '', 55, 1, '2018-03-15 20:11:01', 1, '2018-03-15 20:11:04');
  632. INSERT INTO `c_common_dictionary_item` VALUES (99, 2, 'POSITION_STATUS', 'WORKING', '在职', b'1', '', 1, 1, '2019-06-04 11:38:16', 1, '2019-06-04 11:38:16');
  633. INSERT INTO `c_common_dictionary_item` VALUES (100, 2, 'POSITION_STATUS', 'QUIT', '离职', b'1', '', 2, 1, '2019-06-04 11:38:50', 1, '2019-06-04 11:38:50');
  634. INSERT INTO `c_common_dictionary_item` VALUES (1237038877428940800, 4, 'AREA_LEVEL', 'TOWNS', '乡镇', b'1', '', 5, 3, '2020-03-09 23:33:46', 3, '2020-03-09 23:33:46');
  635. INSERT INTO `c_common_dictionary_item` VALUES (1237038991044247552, 3, 'EDUCATION', 'XIAOXUE', '小学', b'1', '', 1, 3, '2020-03-09 23:34:13', 3, '2020-03-09 23:34:13');
  636. INSERT INTO `c_common_dictionary_item` VALUES (1237039071537135616, 3, 'EDUCATION', 'ZHONGXUE', '中学', b'1', '', 2, 3, '2020-03-09 23:34:32', 3, '2020-03-09 23:34:32');
  637. INSERT INTO `c_common_dictionary_item` VALUES (1237039105171259392, 3, 'EDUCATION', 'GAOZHONG', '高中', b'1', '', 3, 3, '2020-03-09 23:34:40', 3, '2020-03-09 23:34:40');
  638. INSERT INTO `c_common_dictionary_item` VALUES (1237039160271831040, 3, 'EDUCATION', 'QITA', '其他', b'1', '', 20, 3, '2020-03-09 23:34:54', 3, '2020-03-09 23:34:54');
  639. INSERT INTO `c_common_dictionary_item` VALUES (1237040064488275968, 1, 'NATION', 'mz_qt', '其他', b'1', '', 100, 3, '2020-03-09 23:38:29', 3, '2020-03-09 23:38:29');
  640. INSERT INTO `c_common_dictionary_item` VALUES (1237040319480987648, 2, 'POSITION_STATUS', 'LEAVE', '请假', b'1', '', 3, 3, '2020-03-09 23:39:30', 3, '2020-03-09 23:39:30');
  641. COMMIT;
  642. -- ----------------------------
  643. -- Table structure for c_common_login_log
  644. -- ----------------------------
  645. DROP TABLE IF EXISTS `c_common_login_log`;
  646. CREATE TABLE `c_common_login_log` (
  647. `id` bigint(20) NOT NULL COMMENT '主键',
  648. `request_ip` varchar(50) DEFAULT '' COMMENT '登录IP',
  649. `user_id` bigint(20) DEFAULT NULL COMMENT '登录人ID',
  650. `user_name` varchar(50) DEFAULT NULL COMMENT '登录人姓名',
  651. `account` varchar(30) DEFAULT '' COMMENT '登录人账号',
  652. `description` varchar(255) DEFAULT '' COMMENT '登录描述',
  653. `login_date` date DEFAULT NULL COMMENT '登录时间',
  654. `ua` varchar(500) DEFAULT '0' COMMENT '浏览器请求头',
  655. `browser` varchar(255) DEFAULT NULL COMMENT '浏览器名称',
  656. `browser_version` varchar(255) DEFAULT NULL COMMENT '浏览器版本',
  657. `operating_system` varchar(255) DEFAULT NULL COMMENT '操作系统',
  658. `location` varchar(50) DEFAULT '' COMMENT '登录地点',
  659. `create_time` datetime DEFAULT NULL,
  660. `create_user` bigint(20) DEFAULT NULL,
  661. PRIMARY KEY (`id`) USING BTREE,
  662. KEY `IDX_BROWSER` (`browser`),
  663. KEY `IDX_OPERATING` (`operating_system`),
  664. KEY `IDX_LOGIN_DATE` (`login_date`,`account`) USING BTREE,
  665. KEY `IDX_ACCOUNT_IP` (`account`,`request_ip`) USING BTREE
  666. ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 ROW_FORMAT=DYNAMIC COMMENT='登录日志';
  667. -- ----------------------------
  668. -- Table structure for c_common_opt_log
  669. -- ----------------------------
  670. DROP TABLE IF EXISTS `c_common_opt_log`;
  671. CREATE TABLE `c_common_opt_log` (
  672. `id` bigint(20) NOT NULL COMMENT '主键',
  673. `request_ip` varchar(50) DEFAULT '' COMMENT '操作IP',
  674. `type` varchar(5) DEFAULT 'OPT' COMMENT '日志类型\n#LogType{OPT:操作类型;EX:异常类型}',
  675. `user_name` varchar(50) DEFAULT '' COMMENT '操作人',
  676. `description` varchar(255) DEFAULT '' COMMENT '操作描述',
  677. `class_path` varchar(255) DEFAULT '' COMMENT '类路径',
  678. `action_method` varchar(50) DEFAULT '' COMMENT '请求方法',
  679. `request_uri` varchar(50) DEFAULT '' COMMENT '请求地址',
  680. `http_method` varchar(10) DEFAULT 'GET' COMMENT '请求类型\n#HttpMethod{GET:GET请求;POST:POST请求;PUT:PUT请求;DELETE:DELETE请求;PATCH:PATCH请求;TRACE:TRACE请求;HEAD:HEAD请求;OPTIONS:OPTIONS请求;}',
  681. `params` longtext COMMENT '请求参数',
  682. `result` longtext COMMENT '返回值',
  683. `ex_desc` longtext COMMENT '异常详情信息',
  684. `ex_detail` longtext COMMENT '异常描述',
  685. `start_time` timestamp NULL DEFAULT NULL COMMENT '开始时间',
  686. `finish_time` timestamp NULL DEFAULT NULL COMMENT '完成时间',
  687. `consuming_time` bigint(20) DEFAULT '0' COMMENT '消耗时间',
  688. `ua` varchar(500) DEFAULT '' COMMENT '浏览器',
  689. `create_time` datetime DEFAULT NULL,
  690. `create_user` bigint(20) DEFAULT NULL,
  691. PRIMARY KEY (`id`) USING BTREE,
  692. KEY `index_type` (`type`) USING BTREE COMMENT '日志类型'
  693. ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 ROW_FORMAT=DYNAMIC COMMENT='系统日志';
  694. -- ----------------------------
  695. -- Table structure for c_common_parameter
  696. -- ----------------------------
  697. DROP TABLE IF EXISTS `c_common_parameter`;
  698. CREATE TABLE `c_common_parameter` (
  699. `id` bigint(20) NOT NULL,
  700. `key_` varchar(255) NOT NULL DEFAULT '' COMMENT '参数键',
  701. `name` varchar(255) NOT NULL DEFAULT '' COMMENT '参数名称',
  702. `value` varchar(255) NOT NULL COMMENT '参数值',
  703. `describe_` varchar(255) DEFAULT '' COMMENT '描述',
  704. `status_` bit(1) DEFAULT b'1' COMMENT '状态',
  705. `readonly_` bit(1) DEFAULT NULL COMMENT '只读',
  706. `create_user` bigint(20) DEFAULT '0' COMMENT '创建人id',
  707. `create_time` datetime DEFAULT NULL COMMENT '创建时间',
  708. `update_user` bigint(20) DEFAULT '0' COMMENT '更新人id',
  709. `update_time` datetime DEFAULT NULL COMMENT '更新时间',
  710. PRIMARY KEY (`id`) USING BTREE,
  711. UNIQUE KEY `UN_KEY` (`key_`) USING BTREE
  712. ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='参数配置';
  713. -- ----------------------------
  714. -- Records of c_common_parameter
  715. -- ----------------------------
  716. BEGIN;
  717. INSERT INTO `c_common_parameter` VALUES (1, 'LOGIN_POLICY', '登录策略', 'MANY', 'ONLY_ONE:一个用户只能登录一次; MANY:用户可以任意登录; ONLY_ONE_CLIENT:一个用户在一个应用只能登录一次', b'1', b'1', 1, '2020-04-02 21:56:19', 3, '2020-04-03 01:12:32');
  718. INSERT INTO `c_common_parameter` VALUES (1266370415375155200, '123', 'aa', '123', '', b'1', NULL, 3, '2020-05-29 22:06:50', 3, '2020-05-29 22:06:50');
  719. COMMIT;
  720. -- ----------------------------
  721. -- Table structure for c_core_org
  722. -- ----------------------------
  723. DROP TABLE IF EXISTS `c_core_org`;
  724. CREATE TABLE `c_core_org` (
  725. `id` bigint(20) NOT NULL COMMENT 'ID',
  726. `label` varchar(255) NOT NULL DEFAULT '' COMMENT '名称',
  727. `abbreviation` varchar(255) DEFAULT '' COMMENT '简称',
  728. `parent_id` bigint(20) DEFAULT '0' COMMENT '父ID',
  729. `tree_path` varchar(255) DEFAULT ',' COMMENT '树结构',
  730. `sort_value` int(11) DEFAULT '1' COMMENT '排序',
  731. `status` bit(1) DEFAULT b'1' COMMENT '状态',
  732. `describe_` varchar(255) DEFAULT '' COMMENT '描述',
  733. `create_time` datetime DEFAULT NULL,
  734. `create_user` bigint(20) DEFAULT NULL,
  735. `update_time` datetime DEFAULT NULL,
  736. `update_user` bigint(20) DEFAULT NULL,
  737. PRIMARY KEY (`id`),
  738. FULLTEXT KEY `FU_PATH` (`tree_path`)
  739. ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='组织';
  740. -- ----------------------------
  741. -- Records of c_core_org
  742. -- ----------------------------
  743. BEGIN;
  744. INSERT INTO `c_core_org` VALUES (100, '最后集团股份有限公司', '最后集团2', 0, ',', 1, b'1', '初始化数据', '2019-07-10 17:02:18', 1, '2019-07-10 17:02:16', 1);
  745. INSERT INTO `c_core_org` VALUES (101, '最后集团股份有限公司广州子公司', '广州最后集团', 100, ',100,', 0, b'1', '初始化数据', '2019-08-06 09:10:53', 1, '2019-11-12 11:36:48', 3);
  746. INSERT INTO `c_core_org` VALUES (102, '最后集团股份有限公司北京分公司', '北京最后集团', 100, ',100,', 1, b'1', '初始化数据', '2019-11-07 16:13:09', 1, '2019-11-07 16:13:12', 1);
  747. INSERT INTO `c_core_org` VALUES (643775612976106881, '综合部', '', 101, ',100,101,', 0, b'1', '前台&HR', '2019-11-12 11:34:27', 3, '2019-11-12 11:34:27', 3);
  748. INSERT INTO `c_core_org` VALUES (643775664683486689, '管理层', '', 100, ',100,', 3, b'1', '', '2019-11-12 11:34:39', 3, '2019-11-12 11:36:16', 3);
  749. INSERT INTO `c_core_org` VALUES (643775904077582049, '总经办', '', 100, ',100,', 2, b'1', '', '2019-11-12 11:35:37', 3, '2019-11-12 11:36:52', 3);
  750. INSERT INTO `c_core_org` VALUES (643776324342648929, '财务部', '', 100, ',100,', 4, b'1', '', '2019-11-12 11:37:17', 3, '2019-11-12 11:37:40', 3);
  751. INSERT INTO `c_core_org` VALUES (643776407691858113, '市场部', '', 100, ',100,', 5, b'1', '', '2019-11-12 11:37:37', 3, '2019-11-12 11:37:37', 3);
  752. INSERT INTO `c_core_org` VALUES (643776508795556193, '销售部', '', 100, ',100,', 6, b'1', '', '2019-11-12 11:38:01', 3, '2019-11-12 11:38:01', 3);
  753. INSERT INTO `c_core_org` VALUES (643776594376135105, '研发部', '', 101, ',100,101,', 1, b'1', '', '2019-11-12 11:38:21', 3, '2019-11-12 11:38:21', 3);
  754. INSERT INTO `c_core_org` VALUES (643776633823564321, '产品部', '', 101, ',100,101,', 2, b'1', '', '2019-11-12 11:38:31', 3, '2019-11-12 11:38:31', 3);
  755. INSERT INTO `c_core_org` VALUES (643776668917305985, '综合部', '', 102, ',100,102,', 0, b'1', '', '2019-11-12 11:38:39', 3, '2019-11-12 11:38:39', 3);
  756. INSERT INTO `c_core_org` VALUES (643776713909605089, '研发部', '', 102, ',100,102,', 0, b'1', '', '2019-11-12 11:38:50', 3, '2019-11-12 11:38:50', 3);
  757. INSERT INTO `c_core_org` VALUES (643776757199016769, '销售部', '', 102, ',100,102,', 2, b'1', '', '2019-11-12 11:39:00', 3, '2019-11-12 11:39:00', 3);
  758. COMMIT;
  759. -- ----------------------------
  760. -- Table structure for c_core_station
  761. -- ----------------------------
  762. DROP TABLE IF EXISTS `c_core_station`;
  763. CREATE TABLE `c_core_station` (
  764. `id` bigint(20) NOT NULL COMMENT 'ID',
  765. `name` varchar(255) NOT NULL DEFAULT '' COMMENT '名称',
  766. `org_id` bigint(20) DEFAULT '0' COMMENT '组织ID\n#c_core_org',
  767. `status` bit(1) DEFAULT b'1' COMMENT '状态',
  768. `describe_` varchar(255) DEFAULT '' COMMENT '描述',
  769. `create_time` datetime DEFAULT NULL,
  770. `create_user` bigint(20) DEFAULT NULL,
  771. `update_time` datetime DEFAULT NULL,
  772. `update_user` bigint(20) DEFAULT NULL,
  773. PRIMARY KEY (`id`)
  774. ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='岗位';
  775. -- ----------------------------
  776. -- Records of c_core_station
  777. -- ----------------------------
  778. BEGIN;
  779. INSERT INTO `c_core_station` VALUES (100, '总经理', 643775904077582049, b'1', '总部-1把手', '2019-07-10 17:03:03', 1, '2019-11-16 09:59:17', 3);
  780. INSERT INTO `c_core_station` VALUES (101, '副总经理', 643775904077582049, b'1', '总部-2把手', '2019-07-22 17:07:55', 1, '2019-11-16 09:59:21', 3);
  781. INSERT INTO `c_core_station` VALUES (642032719487828225, '研发经理', 643776594376135105, b'1', '子公司-研发部老大', '2019-11-07 16:08:49', 3, '2019-11-16 09:53:42', 3);
  782. INSERT INTO `c_core_station` VALUES (645199319300842081, '副总经理', 101, b'1', '子公司-老大', '2019-11-16 09:51:45', 3, '2019-11-16 09:53:50', 3);
  783. INSERT INTO `c_core_station` VALUES (645199745026892801, '产品经理', 643776633823564321, b'1', '子公司-产品部老大', '2019-11-16 09:53:27', 3, '2019-11-16 09:54:01', 3);
  784. INSERT INTO `c_core_station` VALUES (645200064280536545, '人事经理', 643775612976106881, b'1', '子公司-综合老大', '2019-11-16 09:54:43', 3, '2019-11-16 09:54:43', 3);
  785. INSERT INTO `c_core_station` VALUES (645200151886964289, 'Java工程师', 643776594376135105, b'1', '普通员工', '2019-11-16 09:55:04', 3, '2019-11-16 09:55:04', 3);
  786. INSERT INTO `c_core_station` VALUES (645200250243393185, '需求工程师', 643776633823564321, b'1', '普通员工', '2019-11-16 09:55:27', 3, '2019-11-16 09:55:27', 3);
  787. INSERT INTO `c_core_station` VALUES (645200304014370561, 'UI工程师', 643776633823564321, b'1', '普通员工', '2019-11-16 09:55:40', 3, '2019-11-16 09:55:40', 3);
  788. INSERT INTO `c_core_station` VALUES (645200358959753057, '运维工程师', 643776594376135105, b'1', '普通员工', '2019-11-16 09:55:53', 3, '2019-11-16 09:55:53', 3);
  789. INSERT INTO `c_core_station` VALUES (645200405453612993, '前台小姐姐', 643775612976106881, b'1', '普通员工', '2019-11-16 09:56:04', 3, '2019-11-16 09:56:04', 3);
  790. INSERT INTO `c_core_station` VALUES (645200545698555937, '人事经理', 643776668917305985, b'1', '北京分公司-综合部老大', '2019-11-16 09:56:38', 3, '2019-11-16 09:56:38', 3);
  791. INSERT INTO `c_core_station` VALUES (645200670781089921, '研发经理', 643776713909605089, b'1', '北京分公司-研发部老大', '2019-11-16 09:57:07', 3, '2019-11-16 09:57:07', 3);
  792. INSERT INTO `c_core_station` VALUES (645200806559099105, '销售经理', 643776757199016769, b'1', '北京销售部老大', '2019-11-16 09:57:40', 3, '2019-11-16 09:57:40', 3);
  793. INSERT INTO `c_core_station` VALUES (645200885772724545, '行政', 643776668917305985, b'1', '普通员工', '2019-11-16 09:57:59', 3, '2019-11-16 09:57:59', 3);
  794. INSERT INTO `c_core_station` VALUES (645200938289605025, '大前端工程师', 643776713909605089, b'1', '普通员工', '2019-11-16 09:58:11', 3, '2019-11-16 09:58:11', 3);
  795. INSERT INTO `c_core_station` VALUES (645201064705927681, '销售员工', 643776757199016769, b'1', '普通员工', '2019-11-16 09:58:41', 3, '2019-11-16 09:58:41', 3);
  796. INSERT INTO `c_core_station` VALUES (645201184268757601, '销售总监', 643775664683486689, b'1', '总部2把手', '2019-11-16 09:59:10', 3, '2019-11-16 09:59:10', 3);
  797. INSERT INTO `c_core_station` VALUES (645201307765844833, '财务总监', 643776324342648929, b'1', '总部2把手', '2019-11-16 09:59:39', 3, '2019-11-16 09:59:39', 3);
  798. INSERT INTO `c_core_station` VALUES (645201405757369281, '市场经理', 643776407691858113, b'1', '总部市场部老大', '2019-11-16 10:00:03', 3, '2019-11-16 10:00:03', 3);
  799. INSERT INTO `c_core_station` VALUES (645201481133206561, '销售总监', 643776508795556193, b'1', '总部销售部老大', '2019-11-16 10:00:21', 3, '2019-11-16 10:00:21', 3);
  800. INSERT INTO `c_core_station` VALUES (645201573391117441, '前端工程师', 643776594376135105, b'1', '普通员工', '2019-11-16 10:00:43', 3, '2019-11-16 10:00:43', 3);
  801. COMMIT;
  802. -- ----------------------------
  803. -- Table structure for f_attachment
  804. -- ----------------------------
  805. DROP TABLE IF EXISTS `f_attachment`;
  806. CREATE TABLE `f_attachment` (
  807. `id` bigint(20) NOT NULL COMMENT 'ID',
  808. `biz_id` varchar(64) DEFAULT NULL COMMENT '业务ID',
  809. `biz_type` varchar(255) DEFAULT NULL COMMENT '业务类型\n#AttachmentType',
  810. `data_type` varchar(255) DEFAULT 'IMAGE' COMMENT '数据类型\n#DataType{DIR:目录;IMAGE:图片;VIDEO:视频;AUDIO:音频;DOC:文档;OTHER:其他}',
  811. `submitted_file_name` varchar(255) DEFAULT '' COMMENT '原始文件名',
  812. `group_` varchar(255) DEFAULT '' COMMENT 'FastDFS返回的组\n用于FastDFS',
  813. `path` varchar(255) DEFAULT '' COMMENT 'FastDFS的远程文件名\n用于FastDFS',
  814. `relative_path` varchar(255) DEFAULT '' COMMENT '文件相对路径',
  815. `url` varchar(255) DEFAULT '' COMMENT '文件访问链接\n需要通过nginx配置路由,才能访问',
  816. `file_md5` varchar(255) DEFAULT NULL COMMENT '文件md5值',
  817. `context_type` varchar(255) DEFAULT '' COMMENT '文件上传类型\n取上传文件的值',
  818. `filename` varchar(255) DEFAULT '' COMMENT '唯一文件名',
  819. `ext` varchar(64) DEFAULT '' COMMENT '后缀\n (没有.)',
  820. `size` bigint(20) DEFAULT '0' COMMENT '大小',
  821. `org_id` bigint(20) DEFAULT NULL COMMENT '组织ID\n#c_core_org',
  822. `icon` varchar(64) DEFAULT '' COMMENT '图标',
  823. `create_month` varchar(10) DEFAULT NULL COMMENT '创建年月\n格式:yyyy-MM 用于统计',
  824. `create_week` varchar(10) DEFAULT NULL COMMENT '创建时处于当年的第几周\nyyyy-ww 用于统计',
  825. `create_day` varchar(12) DEFAULT NULL COMMENT '创建年月日\n格式: yyyy-MM-dd 用于统计',
  826. `create_time` datetime DEFAULT NULL COMMENT '创建时间',
  827. `create_user` bigint(11) DEFAULT NULL COMMENT '创建人',
  828. `update_time` datetime DEFAULT NULL COMMENT '最后修改时间',
  829. `update_user` bigint(11) DEFAULT NULL COMMENT '最后修改人',
  830. PRIMARY KEY (`id`) USING BTREE
  831. ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='附件';
  832. -- ----------------------------
  833. -- Table structure for f_file
  834. -- ----------------------------
  835. DROP TABLE IF EXISTS `f_file`;
  836. CREATE TABLE `f_file` (
  837. `id` bigint(20) NOT NULL COMMENT '主键',
  838. `data_type` varchar(255) DEFAULT 'IMAGE' COMMENT '数据类型\n#DataType{DIR:目录;IMAGE:图片;VIDEO:视频;AUDIO:音频;DOC:文档;OTHER:其他}',
  839. `submitted_file_name` varchar(255) DEFAULT '' COMMENT '原始文件名',
  840. `tree_path` varchar(255) DEFAULT ',' COMMENT '父目录层级关系',
  841. `grade` int(11) DEFAULT '1' COMMENT '层级等级\n从1开始计算',
  842. `is_delete` bit(1) DEFAULT b'0' COMMENT '是否删除\n#BooleanStatus{TRUE:1,已删除;FALSE:0,未删除}',
  843. `folder_id` bigint(20) DEFAULT '0' COMMENT '父文件夹ID',
  844. `url` varchar(1000) DEFAULT '' COMMENT '文件访问链接\n需要通过nginx配置路由,才能访问',
  845. `size` bigint(20) DEFAULT '0' COMMENT '文件大小\n单位字节',
  846. `folder_name` varchar(255) DEFAULT '' COMMENT '父文件夹名称',
  847. `group_` varchar(255) DEFAULT '' COMMENT 'FastDFS组\n用于FastDFS',
  848. `path` varchar(255) DEFAULT '' COMMENT 'FastDFS远程文件名\n用于FastDFS',
  849. `relative_path` varchar(255) DEFAULT '' COMMENT '文件的相对路径 ',
  850. `file_md5` varchar(255) DEFAULT '' COMMENT 'md5值',
  851. `context_type` varchar(255) DEFAULT '' COMMENT '文件类型\n取上传文件的值',
  852. `filename` varchar(255) DEFAULT '' COMMENT '唯一文件名',
  853. `ext` varchar(64) DEFAULT '' COMMENT '文件名后缀 \n(没有.)',
  854. `icon` varchar(64) DEFAULT '' COMMENT '文件图标\n用于云盘显示',
  855. `create_month` varchar(10) DEFAULT NULL COMMENT '创建时年月\n格式:yyyy-MM 用于统计',
  856. `create_week` varchar(10) DEFAULT NULL COMMENT '创建时年周\nyyyy-ww 用于统计',
  857. `create_day` varchar(12) DEFAULT NULL COMMENT '创建时年月日\n格式: yyyy-MM-dd 用于统计',
  858. `create_time` datetime DEFAULT NULL COMMENT '创建时间',
  859. `create_user` bigint(20) DEFAULT NULL COMMENT '创建人',
  860. `update_time` datetime DEFAULT NULL COMMENT '最后修改时间',
  861. `update_user` bigint(20) DEFAULT NULL COMMENT '最后修改人',
  862. PRIMARY KEY (`id`) USING BTREE,
  863. FULLTEXT KEY `FU_TREE_PATH` (`tree_path`)
  864. ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='文件表';
  865. -- ----------------------------
  866. -- Table structure for m_order
  867. -- ----------------------------
  868. DROP TABLE IF EXISTS `m_order`;
  869. CREATE TABLE `m_order` (
  870. `id` bigint(20) NOT NULL,
  871. `name` varchar(255) DEFAULT NULL COMMENT '名称',
  872. `education` varchar(255) DEFAULT NULL COMMENT '学历\n@InjectionField(api = "orderServiceImpl", method = DICTIONARY_ITEM_METHOD, dictType = DictionaryType.EDUCATION) RemoteData<String, String>',
  873. `nation` varchar(255) DEFAULT NULL COMMENT '民族\n@InjectionField(api = DICTIONARY_ITEM_FEIGN_CLASS, method = DICTIONARY_ITEM_METHOD, dictType = DictionaryType.NATION) RemoteData<String, String>\n',
  874. `org_id` bigint(20) DEFAULT NULL COMMENT '组织ID\n#c_core_org\n@InjectionField(api = ORG_ID_FEIGN_CLASS, method = ORG_ID_NAME_METHOD) RemoteData<Long, String>',
  875. `code` varchar(255) DEFAULT NULL COMMENT '编号',
  876. `create_time` datetime DEFAULT NULL,
  877. `create_user` bigint(20) DEFAULT NULL,
  878. `update_time` datetime DEFAULT NULL,
  879. `update_user` bigint(20) DEFAULT NULL,
  880. PRIMARY KEY (`id`) USING BTREE
  881. ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 ROW_FORMAT=DYNAMIC COMMENT='订单(用于测试)';
  882. -- ----------------------------
  883. -- Table structure for m_product
  884. -- ----------------------------
  885. DROP TABLE IF EXISTS `m_product`;
  886. CREATE TABLE `m_product` (
  887. `id` bigint(20) NOT NULL,
  888. `name` varchar(255) DEFAULT NULL COMMENT '名称',
  889. `stock` int(11) DEFAULT NULL COMMENT '库存',
  890. `create_time` datetime DEFAULT NULL,
  891. `create_user` bigint(20) DEFAULT NULL,
  892. `update_time` datetime DEFAULT NULL,
  893. `update_user` bigint(20) DEFAULT NULL,
  894. `type_` text COMMENT '商品类型\n#ProductType{ordinary:普通;gift:赠品}',
  895. `type2` longtext COMMENT '商品类型2\n#{ordinary:普通;gift:赠品;}',
  896. `type3` varchar(255) DEFAULT NULL COMMENT '学历\n@InjectionField(api = DICTIONARY_ITEM_FEIGN_CLASS, method = DICTIONARY_ITEM_METHOD, dictType = DictionaryType.EDUCATION) RemoteData<String, String>\n',
  897. `status` bit(1) DEFAULT NULL COMMENT '状态',
  898. `test4` tinyint(10) DEFAULT NULL,
  899. `test5` date DEFAULT NULL COMMENT '时间',
  900. `test6` datetime DEFAULT NULL COMMENT '日期',
  901. `parent_id` bigint(20) DEFAULT NULL,
  902. `label` varchar(255) DEFAULT NULL COMMENT '名称',
  903. `sort_value` int(11) DEFAULT NULL,
  904. `test7` char(10) DEFAULT NULL COMMENT 'xxx\n@InjectionField(api = “userApi”, method = USER_ID_NAME_METHOD) RemoteData<Long, String>',
  905. `user_id` bigint(20) DEFAULT NULL COMMENT '用户\n@InjectionField(api = USER_ID_FEIGN_CLASS, method = USER_ID_NAME_METHOD) RemoteData<Long, String>',
  906. `org_id` bigint(20) DEFAULT NULL COMMENT '组织\n@InjectionField(api = ORG_ID_FEIGN_CLASS, method = "findOrgNameByIds") RemoteData<Long, String>',
  907. PRIMARY KEY (`id`)
  908. ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='商品(用于测试)';
  909. -- ----------------------------
  910. -- Table structure for mail_provider
  911. -- ----------------------------
  912. DROP TABLE IF EXISTS `mail_provider`;
  913. CREATE TABLE `mail_provider` (
  914. `id` bigint(20) NOT NULL DEFAULT '0' COMMENT 'ID',
  915. `mail_type` varchar(10) DEFAULT 'TENCENT' COMMENT '邮箱类型\n#MailType{SINA:新浪;QQ:腾讯;WY163:网易}',
  916. `username` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin DEFAULT NULL COMMENT '邮箱账号',
  917. `password` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin DEFAULT NULL COMMENT '邮箱授权码',
  918. `host` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin DEFAULT NULL COMMENT '主机',
  919. `port` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin DEFAULT NULL COMMENT '端口',
  920. `protocol` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin DEFAULT NULL COMMENT '协议',
  921. `auth` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin DEFAULT NULL COMMENT '是否进行用户名密码校验',
  922. `name` varchar(60) DEFAULT NULL COMMENT '名称',
  923. `description` varchar(300) DEFAULT NULL COMMENT '描述',
  924. `properties` varchar(500) DEFAULT NULL COMMENT '属性',
  925. `create_user` bigint(20) DEFAULT NULL COMMENT '创建人',
  926. `create_time` datetime DEFAULT NULL COMMENT '创建时间',
  927. `update_user` bigint(20) DEFAULT NULL COMMENT '修改人',
  928. `update_time` datetime DEFAULT NULL COMMENT '修改时间',
  929. PRIMARY KEY (`id`) USING BTREE
  930. ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 ROW_FORMAT=DYNAMIC COMMENT='邮件供应商';
  931. -- ----------------------------
  932. -- Table structure for mail_send_status
  933. -- ----------------------------
  934. DROP TABLE IF EXISTS `mail_send_status`;
  935. CREATE TABLE `mail_send_status` (
  936. `id` bigint(20) NOT NULL DEFAULT '0' COMMENT 'ID',
  937. `task_id` bigint(20) NOT NULL COMMENT '任务id\n#mail_task',
  938. `email` varchar(64) NOT NULL COMMENT '收件邮箱',
  939. `mail_status` varchar(255) NOT NULL DEFAULT 'UNREAD' COMMENT '邮件状态\r\n#MailStatus{UNREAD:未读;READ:已读;DELETED:已删除;ABNORMAL:异常;VIRUSES:病毒;TRASH:垃圾}',
  940. `create_user` bigint(20) DEFAULT NULL COMMENT '创建人id',
  941. `create_time` datetime DEFAULT NULL COMMENT '创建时间',
  942. `update_user` bigint(20) DEFAULT NULL COMMENT '更新人id',
  943. `update_time` datetime DEFAULT NULL COMMENT '创建时间',
  944. PRIMARY KEY (`id`) USING BTREE
  945. ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 ROW_FORMAT=DYNAMIC COMMENT='邮件发送状态';
  946. -- ----------------------------
  947. -- Table structure for mail_task
  948. -- ----------------------------
  949. DROP TABLE IF EXISTS `mail_task`;
  950. CREATE TABLE `mail_task` (
  951. `id` bigint(20) NOT NULL DEFAULT '0' COMMENT 'ID',
  952. `status` varchar(10) DEFAULT 'WAITING' COMMENT '执行状态\r\n#TaskStatus{WAITING:等待执行;SUCCESS:执行成功;FAIL:执行失败}',
  953. `provider_id` bigint(20) DEFAULT NULL COMMENT '发件人id\n#mail_provider',
  954. `to` varchar(500) DEFAULT '' COMMENT '收件人\n多个,号分割',
  955. `cc` varchar(255) DEFAULT '' COMMENT '抄送人\n多个,分割',
  956. `bcc` varchar(255) DEFAULT '' COMMENT '密送人\n多个,分割',
  957. `subject` varchar(255) DEFAULT '' COMMENT '主题',
  958. `body` text CHARACTER SET utf8 COMMENT '正文',
  959. `err_msg` varchar(500) DEFAULT '' COMMENT '发送失败原因',
  960. `sender_code` varchar(64) DEFAULT '' COMMENT '发送商编码',
  961. `plan_time` datetime DEFAULT CURRENT_TIMESTAMP COMMENT '计划发送时间\n(默认当前时间,可定时发送)',
  962. `create_user` bigint(20) DEFAULT NULL COMMENT '创建人',
  963. `create_time` datetime DEFAULT NULL COMMENT '创建时间',
  964. `update_user` bigint(20) DEFAULT NULL COMMENT '修改人',
  965. `update_time` datetime DEFAULT NULL COMMENT '修改时间',
  966. PRIMARY KEY (`id`) USING BTREE
  967. ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 ROW_FORMAT=DYNAMIC COMMENT='邮件任务';
  968. -- ----------------------------
  969. -- Table structure for msgs_center_info
  970. -- ----------------------------
  971. DROP TABLE IF EXISTS `msgs_center_info`;
  972. CREATE TABLE `msgs_center_info` (
  973. `id` bigint(20) NOT NULL COMMENT 'ID',
  974. `biz_id` varchar(64) DEFAULT NULL COMMENT '业务ID\n业务表的唯一id',
  975. `biz_type` varchar(64) DEFAULT NULL COMMENT '业务类型\n#MsgsBizType{USER_LOCK:账号锁定;USER_REG:账号申请;WORK_APPROVAL:考勤审批;}',
  976. `msgs_center_type` varchar(20) NOT NULL DEFAULT 'NOTIFY' COMMENT '消息类型\n#MsgsCenterType{WAIT:待办;NOTIFY:通知;PUBLICITY:公告;WARN:预警;}',
  977. `title` varchar(255) DEFAULT '' COMMENT '标题',
  978. `content` text COMMENT '内容',
  979. `author` varchar(50) DEFAULT '' COMMENT '发布人',
  980. `handler_url` varchar(255) DEFAULT '' COMMENT '处理地址\n以http开头时直接跳转,否则与#c_application表拼接后跳转\nhttp可带参数',
  981. `handler_params` varchar(400) DEFAULT '' COMMENT '处理参数',
  982. `is_single_handle` bit(1) DEFAULT b'1' COMMENT '是否单人处理',
  983. `create_time` datetime DEFAULT NULL COMMENT '创建时间',
  984. `create_user` bigint(20) DEFAULT '0' COMMENT '创建人id',
  985. `update_time` datetime DEFAULT NULL COMMENT '最后修改时间',
  986. `update_user` bigint(20) DEFAULT '0' COMMENT '最后修改人',
  987. PRIMARY KEY (`id`) USING BTREE
  988. ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 ROW_FORMAT=DYNAMIC COMMENT='消息中心表';
  989. -- ----------------------------
  990. -- Table structure for msgs_center_info_receive
  991. -- ----------------------------
  992. DROP TABLE IF EXISTS `msgs_center_info_receive`;
  993. CREATE TABLE `msgs_center_info_receive` (
  994. `id` bigint(20) NOT NULL COMMENT 'ID',
  995. `msgs_center_id` bigint(20) NOT NULL COMMENT '消息中心ID\n#msgs_center_info',
  996. `user_id` bigint(20) NOT NULL COMMENT '接收人ID\n#c_user',
  997. `is_read` bit(1) DEFAULT b'0' COMMENT '是否已读\n#BooleanStatus',
  998. `create_time` datetime DEFAULT NULL COMMENT '创建时间',
  999. `create_user` bigint(20) DEFAULT '0' COMMENT '创建人',
  1000. `update_user` bigint(20) DEFAULT '0' COMMENT '最后修改人',
  1001. `update_time` datetime DEFAULT NULL COMMENT '最后修改时间',
  1002. PRIMARY KEY (`id`) USING BTREE
  1003. ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 ROW_FORMAT=DYNAMIC COMMENT='消息中心接收表';
  1004. -- ----------------------------
  1005. -- Table structure for sms_send_status
  1006. -- ----------------------------
  1007. DROP TABLE IF EXISTS `sms_send_status`;
  1008. CREATE TABLE `sms_send_status` (
  1009. `id` bigint(20) NOT NULL COMMENT 'ID',
  1010. `task_id` bigint(20) NOT NULL COMMENT '任务ID\n#sms_task',
  1011. `send_status` varchar(10) NOT NULL DEFAULT 'WAITING' COMMENT '发送状态\n#SendStatus{WAITING:等待发送;SUCCESS:发送成功;FAIL:发送失败}',
  1012. `receiver` varchar(20) NOT NULL COMMENT '接收者手机号\n单个手机号',
  1013. `biz_id` varchar(255) DEFAULT '' COMMENT '发送回执ID\n阿里:发送回执ID,可根据该ID查询具体的发送状态 腾讯:sid 标识本次发送id,标识一次短信下发记录 百度:requestId 短信发送请求唯一流水ID',
  1014. `ext` varchar(255) DEFAULT '' COMMENT '发送返回\n阿里:RequestId 请求ID 腾讯:ext:用户的session内容,腾讯server回包中会原样返回 百度:无',
  1015. `code` varchar(255) DEFAULT '' COMMENT '状态码\n阿里:返回OK代表请求成功,其他错误码详见错误码列表 腾讯:0表示成功(计费依据),非0表示失败 百度:1000 表示成功',
  1016. `message` varchar(500) DEFAULT '' COMMENT '状态码的描述',
  1017. `fee` int(11) DEFAULT '0' COMMENT '短信计费的条数\n腾讯专用',
  1018. `create_month` varchar(7) DEFAULT '' COMMENT '创建时年月\n格式:yyyy-MM 用于统计',
  1019. `create_week` varchar(10) DEFAULT '' COMMENT '创建时年周\n创建时处于当年的第几周 yyyy-ww 用于统计',
  1020. `create_date` varchar(10) DEFAULT '' COMMENT '创建时年月日\n格式: yyyy-MM-dd 用于统计',
  1021. `create_user` bigint(20) DEFAULT '0' COMMENT '创建人',
  1022. `create_time` datetime DEFAULT NULL COMMENT '创建时间',
  1023. `update_user` bigint(20) DEFAULT '0' COMMENT '最后修改人',
  1024. `update_time` datetime DEFAULT NULL COMMENT '最后修改时间',
  1025. PRIMARY KEY (`id`) USING BTREE
  1026. ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 ROW_FORMAT=DYNAMIC COMMENT='短信发送状态';
  1027. -- ----------------------------
  1028. -- Table structure for sms_task
  1029. -- ----------------------------
  1030. DROP TABLE IF EXISTS `sms_task`;
  1031. CREATE TABLE `sms_task` (
  1032. `id` bigint(20) NOT NULL COMMENT '短信记录ID',
  1033. `template_id` bigint(20) NOT NULL COMMENT '模板ID\n#sms_template',
  1034. `status` varchar(10) DEFAULT 'WAITING' COMMENT '执行状态\n(手机号具体发送状态看sms_send_status表) \n#TaskStatus{WAITING:等待执行;SUCCESS:执行成功;FAIL:执行失败}',
  1035. `source_type` varchar(10) DEFAULT 'APP' COMMENT '来源类型\n#SourceType{APP:应用;SERVICE:服务}\n',
  1036. `receiver` text COMMENT '接收者手机号\n群发用英文逗号分割.\n支持2种格式:\n1: 手机号,手机号 \n2: 姓名<手机号>,姓名<手机号>',
  1037. `topic` varchar(255) DEFAULT '' COMMENT '主题',
  1038. `template_params` varchar(500) DEFAULT '' COMMENT '参数 \n需要封装为{‘key’:’value’, ...}格式\n且key必须有序\n\n',
  1039. `send_time` datetime DEFAULT NULL COMMENT '发送时间',
  1040. `content` varchar(500) DEFAULT '' COMMENT '发送内容\n需要封装正确格式化: 您好,张三,您有一个新的快递。',
  1041. `draft` bit(1) DEFAULT b'0' COMMENT '是否草稿',
  1042. `create_user` bigint(20) DEFAULT '0' COMMENT '创建人ID',
  1043. `create_time` datetime DEFAULT NULL COMMENT '创建时间',
  1044. `update_user` bigint(20) DEFAULT '0' COMMENT '最后修改人',
  1045. `update_time` datetime DEFAULT NULL COMMENT '最后修改时间',
  1046. PRIMARY KEY (`id`) USING BTREE
  1047. ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 ROW_FORMAT=DYNAMIC COMMENT='发送任务\n所有的短息发送调用,都视为是一次短信任务,任务表只保存数据和执行状态等信息,\n具体的发送状态查看发送状态(#sms_send_status)表';
  1048. -- ----------------------------
  1049. -- Table structure for sms_template
  1050. -- ----------------------------
  1051. DROP TABLE IF EXISTS `sms_template`;
  1052. CREATE TABLE `sms_template` (
  1053. `id` bigint(20) NOT NULL COMMENT '模板ID',
  1054. `provider_type` varchar(10) NOT NULL COMMENT '供应商类型\n#ProviderType{ALI:OK,阿里云短信;TENCENT:0,腾讯云短信;BAIDU:1000,百度云短信}',
  1055. `app_id` varchar(255) NOT NULL COMMENT '应用ID',
  1056. `app_secret` varchar(255) NOT NULL COMMENT '应用密码',
  1057. `url` varchar(255) DEFAULT '' COMMENT 'SMS服务域名\n百度、其他厂商会用',
  1058. `custom_code` varchar(20) NOT NULL DEFAULT '' COMMENT '模板编码\n用于api发送',
  1059. `name` varchar(255) DEFAULT '' COMMENT '模板名称',
  1060. `content` varchar(255) NOT NULL DEFAULT '' COMMENT '模板内容',
  1061. `template_params` varchar(255) NOT NULL DEFAULT '' COMMENT '模板参数',
  1062. `template_code` varchar(50) NOT NULL DEFAULT '' COMMENT '模板CODE',
  1063. `sign_name` varchar(100) DEFAULT '' COMMENT '签名',
  1064. `template_describe` varchar(255) DEFAULT '' COMMENT '备注',
  1065. `create_user` bigint(20) DEFAULT '0' COMMENT '创建人ID',
  1066. `create_time` datetime DEFAULT NULL COMMENT '创建时间',
  1067. `update_user` bigint(20) DEFAULT '0' COMMENT '最后修改人',
  1068. `update_time` datetime DEFAULT NULL COMMENT '最后修改时间',
  1069. PRIMARY KEY (`id`) USING BTREE,
  1070. UNIQUE KEY `UN_CODE` (`custom_code`) USING BTREE
  1071. ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 ROW_FORMAT=DYNAMIC COMMENT='短信模板';
  1072. -- ----------------------------
  1073. -- Table structure for undo_log
  1074. -- ----------------------------
  1075. DROP TABLE IF EXISTS `undo_log`;
  1076. CREATE TABLE `undo_log` (
  1077. `id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT 'increment id',
  1078. `branch_id` bigint(20) NOT NULL COMMENT 'branch transaction id',
  1079. `xid` varchar(100) NOT NULL COMMENT 'global transaction id',
  1080. `context` varchar(128) NOT NULL COMMENT 'undo_log context,such as serialization',
  1081. `rollback_info` longblob NOT NULL COMMENT 'rollback info',
  1082. `log_status` int(11) NOT NULL COMMENT '0:normal status,1:defense status',
  1083. `log_created` datetime NOT NULL COMMENT 'create datetime',
  1084. `log_modified` datetime NOT NULL COMMENT 'modify datetime',
  1085. PRIMARY KEY (`id`),
  1086. UNIQUE KEY `ux_undo_log` (`xid`,`branch_id`)
  1087. ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='AT transaction mode undo table';
  1088. SET FOREIGN_KEY_CHECKS = 1;