zuihou_column.sql 101 KB

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