gfast-v3.sql 45 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562
  1. /*
  2. Navicat MySQL Data Transfer
  3. Source Server : gfast-v3
  4. Source Server Version : 50736
  5. Source Host : 192.168.0.212:3306
  6. Source Database : gfast-v3
  7. Target Server Type : MYSQL
  8. Target Server Version : 50736
  9. File Encoding : 65001
  10. Date: 2022-04-21 15:57:39
  11. */
  12. SET FOREIGN_KEY_CHECKS=0;
  13. -- ----------------------------
  14. -- Table structure for casbin_rule
  15. -- ----------------------------
  16. DROP TABLE IF EXISTS `casbin_rule`;
  17. CREATE TABLE `casbin_rule` (
  18. `ptype` varchar(10) DEFAULT NULL,
  19. `v0` varchar(256) DEFAULT NULL,
  20. `v1` varchar(256) DEFAULT NULL,
  21. `v2` varchar(256) DEFAULT NULL,
  22. `v3` varchar(256) DEFAULT NULL,
  23. `v4` varchar(256) DEFAULT NULL,
  24. `v5` varchar(256) DEFAULT NULL
  25. ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 ROW_FORMAT=COMPACT;
  26. -- ----------------------------
  27. -- Records of casbin_rule
  28. -- ----------------------------
  29. INSERT INTO `casbin_rule` VALUES ('p', '2', '2', 'All', '', '', '');
  30. INSERT INTO `casbin_rule` VALUES ('p', '3', '2', 'All', '', '', '');
  31. INSERT INTO `casbin_rule` VALUES ('p', '4', '2', 'All', '', '', '');
  32. INSERT INTO `casbin_rule` VALUES ('p', '3', '3', 'All', '', '', '');
  33. INSERT INTO `casbin_rule` VALUES ('p', '2', '3', 'All', '', '', '');
  34. INSERT INTO `casbin_rule` VALUES ('p', '5', '4', 'All', '', '', '');
  35. INSERT INTO `casbin_rule` VALUES ('p', '2', '10', 'All', '', '', '');
  36. INSERT INTO `casbin_rule` VALUES ('p', '8', '2', 'All', '', '', '');
  37. INSERT INTO `casbin_rule` VALUES ('p', '8', '4', 'All', '', '', '');
  38. INSERT INTO `casbin_rule` VALUES ('p', '1', '10', 'All', '', '', '');
  39. INSERT INTO `casbin_rule` VALUES ('p', '1', '12', 'All', '', '', '');
  40. INSERT INTO `casbin_rule` VALUES ('p', '1', '13', 'All', '', '', '');
  41. INSERT INTO `casbin_rule` VALUES ('p', '1', '14', 'All', '', '', '');
  42. INSERT INTO `casbin_rule` VALUES ('g', '42', '1', '', '', '', '');
  43. INSERT INTO `casbin_rule` VALUES ('g', '42', '2', '', '', '', '');
  44. INSERT INTO `casbin_rule` VALUES ('g', '1', '1', '', '', '', '');
  45. INSERT INTO `casbin_rule` VALUES ('g', '1', '2', '', '', '', '');
  46. INSERT INTO `casbin_rule` VALUES ('g', '2', '3', '', '', '', '');
  47. INSERT INTO `casbin_rule` VALUES ('g', '2', '2', '', '', '', '');
  48. INSERT INTO `casbin_rule` VALUES ('g', '4', '2', '', '', '', '');
  49. INSERT INTO `casbin_rule` VALUES ('g', '5', '2', '', '', '', '');
  50. INSERT INTO `casbin_rule` VALUES ('g', '7', '2', '', '', '', '');
  51. INSERT INTO `casbin_rule` VALUES ('g', '8', '2', '', '', '', '');
  52. INSERT INTO `casbin_rule` VALUES ('g', '10', '2', '', '', '', '');
  53. INSERT INTO `casbin_rule` VALUES ('g', '14', '2', '', '', '', '');
  54. INSERT INTO `casbin_rule` VALUES ('g', '15', '2', '', '', '', '');
  55. INSERT INTO `casbin_rule` VALUES ('g', '16', '2', '', '', '', '');
  56. INSERT INTO `casbin_rule` VALUES ('p', '4', '1', 'All', '', '', '');
  57. INSERT INTO `casbin_rule` VALUES ('p', '2', '1', 'All', '', '', '');
  58. INSERT INTO `casbin_rule` VALUES ('p', '8', '1', 'All', '', '', '');
  59. INSERT INTO `casbin_rule` VALUES ('p', '1', '1', 'All', '', '', '');
  60. INSERT INTO `casbin_rule` VALUES ('g', '6', '2', '', '', '', '');
  61. INSERT INTO `casbin_rule` VALUES ('g', '3', '2', '', '', '', '');
  62. -- ----------------------------
  63. -- Table structure for sys_auth_rule
  64. -- ----------------------------
  65. DROP TABLE IF EXISTS `sys_auth_rule`;
  66. CREATE TABLE `sys_auth_rule` (
  67. `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  68. `pid` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '父ID',
  69. `name` varchar(100) NOT NULL DEFAULT '' COMMENT '规则名称',
  70. `title` varchar(50) NOT NULL DEFAULT '' COMMENT '规则名称',
  71. `icon` varchar(300) NOT NULL DEFAULT '' COMMENT '图标',
  72. `condition` varchar(255) NOT NULL DEFAULT '' COMMENT '条件',
  73. `remark` varchar(255) NOT NULL DEFAULT '' COMMENT '备注',
  74. `menu_type` tinyint(1) unsigned NOT NULL DEFAULT '0' COMMENT '类型 0目录 1菜单 2按钮',
  75. `weigh` int(10) NOT NULL DEFAULT '0' COMMENT '权重',
  76. `is_hide` tinyint(3) unsigned NOT NULL DEFAULT '0' COMMENT '显示状态',
  77. `path` varchar(100) NOT NULL DEFAULT '' COMMENT '路由地址',
  78. `component` varchar(100) NOT NULL DEFAULT '' COMMENT '组件路径',
  79. `is_link` tinyint(3) unsigned NOT NULL DEFAULT '0' COMMENT '是否外链 1是 0否',
  80. `module_type` varchar(30) NOT NULL DEFAULT '' COMMENT '所属模块',
  81. `model_id` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '模型ID',
  82. `is_iframe` tinyint(3) unsigned NOT NULL DEFAULT '0' COMMENT '是否内嵌iframe',
  83. `is_cached` tinyint(3) unsigned NOT NULL DEFAULT '0' COMMENT '是否缓存',
  84. `redirect` varchar(255) NOT NULL DEFAULT '' COMMENT '路由重定向地址',
  85. `is_affix` tinyint(3) unsigned NOT NULL DEFAULT '0' COMMENT '是否固定',
  86. `link_url` varchar(500) NOT NULL DEFAULT '' COMMENT '链接地址',
  87. `created_at` datetime DEFAULT NULL COMMENT '创建日期',
  88. `updated_at` datetime DEFAULT NULL COMMENT '修改日期',
  89. PRIMARY KEY (`id`) USING BTREE,
  90. UNIQUE KEY `name` (`name`) USING BTREE,
  91. KEY `pid` (`pid`) USING BTREE,
  92. KEY `weigh` (`weigh`) USING BTREE
  93. ) ENGINE=MyISAM AUTO_INCREMENT=34 DEFAULT CHARSET=utf8mb4 ROW_FORMAT=DYNAMIC COMMENT='菜单节点表';
  94. -- ----------------------------
  95. -- Records of sys_auth_rule
  96. -- ----------------------------
  97. INSERT INTO `sys_auth_rule` VALUES ('1', '0', 'api/v1/system/auth', '权限管理', 'ele-Stamp', '', '', '0', '30', '0', '/system/auth', 'layout/routerView/parent', '0', '', '0', '0', '1', '0', '0', '', '2022-03-24 15:03:37', '2022-04-14 16:29:19');
  98. INSERT INTO `sys_auth_rule` VALUES ('2', '1', 'api/v1/system/auth/menuList', '菜单管理', 'ele-Calendar', '', '', '1', '0', '0', '/system/auth/menuList', 'system/menu/index', '0', '', '0', '0', '1', '', '0', '', '2022-03-24 17:24:13', '2022-03-29 10:54:49');
  99. INSERT INTO `sys_auth_rule` VALUES ('3', '2', 'api/v1/system/menu/add', '添加菜单', '', '', '', '2', '0', '0', '', '', '0', '', '0', '0', '1', '', '0', '', '2022-03-29 16:48:43', '2022-03-29 17:05:19');
  100. INSERT INTO `sys_auth_rule` VALUES ('4', '2', 'api/v1/system/menu/update', '修改菜单', '', '', '', '2', '0', '0', '', '', '0', '', '0', '0', '1', '', '0', '', '2022-03-29 17:04:25', '2022-03-29 18:11:36');
  101. INSERT INTO `sys_auth_rule` VALUES ('11', '2', 'api/v1/system/menu/delete', '删除菜单', '', '', '', '2', '0', '0', '', '', '0', '', '0', '0', '1', '', '0', '', '2022-04-06 14:49:10', '2022-04-06 14:49:17');
  102. INSERT INTO `sys_auth_rule` VALUES ('10', '1', 'api/v1/system/role/list', '角色管理', 'iconfont icon-juxingkaobei', '', '', '1', '0', '0', '/system/auth/roleList', 'system/role/index', '0', '', '0', '0', '1', '', '0', '', '2022-03-29 18:15:03', '2022-03-30 10:25:34');
  103. INSERT INTO `sys_auth_rule` VALUES ('12', '10', 'api/v1/system/role/add', '添加角色', '', '', '', '2', '0', '0', '', '', '0', '', '0', '0', '1', '', '0', '', '2022-04-06 14:49:46', '2022-04-06 14:49:46');
  104. INSERT INTO `sys_auth_rule` VALUES ('13', '10', '/api/v1/system/role/edit', '修改角色', '', '', '', '2', '0', '0', '', '', '0', '', '0', '0', '1', '', '0', '', '2022-04-06 14:50:08', '2022-04-06 14:50:08');
  105. INSERT INTO `sys_auth_rule` VALUES ('14', '10', '/api/v1/system/role/delete', '删除角色', '', '', '', '2', '0', '0', '', '', '0', '', '0', '0', '1', '', '0', '', '2022-04-06 14:50:22', '2022-04-06 14:50:22');
  106. INSERT INTO `sys_auth_rule` VALUES ('15', '1', 'api/v1/system/dept/list', '部门管理', 'iconfont icon-siweidaotu', '', '', '1', '0', '0', '/system/auth/deptList', 'system/dept/index', '0', '', '0', '0', '1', '', '0', '', '2022-04-06 14:52:23', '2022-04-07 22:59:20');
  107. INSERT INTO `sys_auth_rule` VALUES ('16', '17', 'aliyun', '阿里云-iframe', 'iconfont icon-diannao1', '', '', '1', '0', '0', '/demo/outLink/aliyun', 'layout/routerView/iframes', '1', '', '0', '1', '1', '', '0', 'https://www.aliyun.com/daily-act/ecs/activity_selection?spm=5176.8789780.J_3965641470.5.568845b58KHj51', '2022-04-06 17:26:29', '2022-04-07 15:27:17');
  108. INSERT INTO `sys_auth_rule` VALUES ('17', '0', 'outLink', '外链测试', 'iconfont icon-zhongduancanshu', '', '', '0', '20', '0', '/demo/outLink', 'layout/routerView/parent', '0', '', '0', '0', '1', '', '0', '', '2022-04-07 15:20:51', '2022-04-14 16:29:07');
  109. INSERT INTO `sys_auth_rule` VALUES ('18', '17', 'tenyun', '腾讯云-外链', 'iconfont icon-shouye_dongtaihui', '', '', '1', '0', '0', '/demo/outLink/tenyun', 'layout/routerView/link', '1', '', '0', '0', '1', '', '0', 'https://cloud.tencent.com/act/new?cps_key=20b1c3842f74986b2894e2c5fcde7ea2&fromSource=gwzcw.3775555.3775555.3775555&utm_id=gwzcw.3775555.3775555.3775555&utm_medium=cpc', '2022-04-07 15:23:52', '2022-04-07 15:27:25');
  110. INSERT INTO `sys_auth_rule` VALUES ('19', '15', 'api/v1/system/dept/add', '添加部门', '', '', '', '2', '0', '0', '', '', '0', '', '0', '0', '1', '', '0', '', '2022-04-07 22:56:39', '2022-04-07 22:56:39');
  111. INSERT INTO `sys_auth_rule` VALUES ('20', '15', 'api/v1/system/dept/edit', '修改部门', '', '', '', '2', '0', '0', '', '', '0', '', '0', '0', '1', '', '0', '', '2022-04-07 22:57:00', '2022-04-07 22:57:00');
  112. INSERT INTO `sys_auth_rule` VALUES ('21', '15', 'api/v1/system/dept/delete', '删除部门', '', '', '', '2', '0', '0', '', '', '0', '', '0', '0', '1', '', '0', '', '2022-04-07 22:57:30', '2022-04-07 22:57:30');
  113. INSERT INTO `sys_auth_rule` VALUES ('22', '1', 'api/v1/system/post/list', '岗位管理', 'iconfont icon-neiqianshujuchucun', '', '', '1', '0', '0', '/system/auth/postList', 'system/post/index', '0', '', '0', '0', '1', '', '0', '', '2022-04-07 22:58:46', '2022-04-09 14:26:15');
  114. INSERT INTO `sys_auth_rule` VALUES ('23', '22', 'api/v1/system/post/add', '添加岗位', '', '', '', '2', '0', '0', '', '', '0', '', '0', '0', '1', '', '0', '', '2022-04-09 14:14:49', '2022-04-09 14:14:49');
  115. INSERT INTO `sys_auth_rule` VALUES ('24', '22', 'api/v1/system/post/edit', '修改岗位', '', '', '', '2', '0', '0', '', '', '0', '', '0', '0', '1', '', '0', '', '2022-04-09 14:15:25', '2022-04-09 14:15:25');
  116. INSERT INTO `sys_auth_rule` VALUES ('25', '22', 'api/v1/system/post/delete', '删除岗位', '', '', '', '2', '0', '0', '', '', '0', '', '0', '0', '1', '', '0', '', '2022-04-09 14:15:47', '2022-04-09 14:15:47');
  117. INSERT INTO `sys_auth_rule` VALUES ('26', '1', 'api/v1/system/user/list', '用户管理', 'ele-User', '', '', '1', '0', '0', '/system/auth/user/list', 'system/user/index', '0', '', '0', '0', '1', '', '0', '', '2022-04-09 14:19:10', '2022-04-09 14:19:58');
  118. INSERT INTO `sys_auth_rule` VALUES ('27', '0', 'api/v1/system/dict', '系统配置', 'iconfont icon-shuxingtu', '', '', '0', '40', '0', '/system/dict', 'layout/routerView/parent', '0', '', '0', '0', '1', '654', '0', '', '2022-04-14 16:28:51', '2022-04-18 14:40:56');
  119. INSERT INTO `sys_auth_rule` VALUES ('28', '27', 'api/v1/system/dict/type/list', '字典管理', 'iconfont icon-crew_feature', '', '', '1', '0', '0', '/system/dict/type/list', 'system/dict/index', '0', '', '0', '0', '1', '', '0', '', '2022-04-14 16:32:10', '2022-04-16 17:02:50');
  120. INSERT INTO `sys_auth_rule` VALUES ('29', '27', 'api/v1/system/dict/dataList', '字典数据管理', 'iconfont icon-putong', '', '', '1', '0', '1', '/system/dict/data/list/:dictType', 'system/dict/dataList', '0', '', '0', '0', '1', '', '0', '', '2022-04-18 12:04:17', '2022-04-18 14:58:43');
  121. INSERT INTO `sys_auth_rule` VALUES ('30', '27', 'api/v1/system/config/list', '参数管理', 'ele-Cherry', '', '', '1', '0', '0', '/system/config/list', 'system/config/index', '0', '', '0', '0', '1', '', '0', '', '2022-04-18 21:05:20', '2022-04-18 21:13:19');
  122. INSERT INTO `sys_auth_rule` VALUES ('31', '0', 'api/v1/system/monitor', '系统监控', 'iconfont icon-xuanzeqi', '', '', '0', '30', '0', '/system/monitor', 'layout/routerView/parent', '0', '', '0', '0', '1', '', '0', '', '2022-04-19 10:40:19', '2022-04-19 10:44:38');
  123. INSERT INTO `sys_auth_rule` VALUES ('32', '31', 'api/v1/system/monitor/server', '服务监控', 'iconfont icon-shuju', '', '', '1', '0', '0', '/system/monitor/server', 'system/monitor/server/index', '0', '', '0', '0', '1', '', '0', '', '2022-04-19 10:43:32', '2022-04-19 10:44:47');
  124. INSERT INTO `sys_auth_rule` VALUES ('33', '31', 'api/swagger', 'api文档', 'iconfont icon--chaifenlie', '', '', '1', '0', '0', '/system/swagger', 'layout/routerView/iframes', '1', '', '0', '1', '1', '', '0', 'http://localhost:8201/swagger', '2022-04-21 09:23:43', '2022-04-21 11:19:49');
  125. -- ----------------------------
  126. -- Table structure for sys_config
  127. -- ----------------------------
  128. DROP TABLE IF EXISTS `sys_config`;
  129. CREATE TABLE `sys_config` (
  130. `config_id` int(5) unsigned NOT NULL AUTO_INCREMENT COMMENT '参数主键',
  131. `config_name` varchar(100) DEFAULT '' COMMENT '参数名称',
  132. `config_key` varchar(100) DEFAULT '' COMMENT '参数键名',
  133. `config_value` varchar(500) DEFAULT '' COMMENT '参数键值',
  134. `config_type` tinyint(1) DEFAULT '0' COMMENT '系统内置(Y是 N否)',
  135. `create_by` int(64) unsigned DEFAULT '0' COMMENT '创建者',
  136. `update_by` int(64) unsigned DEFAULT '0' COMMENT '更新者',
  137. `remark` varchar(500) DEFAULT NULL COMMENT '备注',
  138. `created_at` datetime DEFAULT NULL COMMENT '创建时间',
  139. `updated_at` datetime DEFAULT NULL COMMENT '修改时间',
  140. PRIMARY KEY (`config_id`) USING BTREE,
  141. UNIQUE KEY `uni_config_key` (`config_key`) USING BTREE
  142. ) ENGINE=MyISAM AUTO_INCREMENT=15 DEFAULT CHARSET=utf8mb4 ROW_FORMAT=DYNAMIC;
  143. -- ----------------------------
  144. -- Records of sys_config
  145. -- ----------------------------
  146. INSERT INTO `sys_config` VALUES ('1', '文件上传-文件大小', 'sys.uploadFile.fileSize', '50M', '1', '31', '31', '文件上传大小限制', null, '2021-07-06 14:57:35');
  147. INSERT INTO `sys_config` VALUES ('2', '文件上传-文件类型', 'sys.uploadFile.fileType', 'doc,docx,zip,xls,xlsx,rar,jpg,jpeg,gif,npm,png', '1', '31', '31', '文件上传后缀类型限制', null, null);
  148. INSERT INTO `sys_config` VALUES ('3', '图片上传-图片类型', 'sys.uploadFile.imageType', 'jpg,jpeg,gif,npm,png', '1', '31', '0', '图片上传后缀类型限制', null, null);
  149. INSERT INTO `sys_config` VALUES ('4', '图片上传-图片大小', 'sys.uploadFile.imageSize', '50M', '1', '31', '31', '图片上传大小限制', null, null);
  150. INSERT INTO `sys_config` VALUES ('11', '静态资源', 'static.resource', '/', '1', '2', '0', '', null, null);
  151. -- ----------------------------
  152. -- Table structure for sys_dept
  153. -- ----------------------------
  154. DROP TABLE IF EXISTS `sys_dept`;
  155. CREATE TABLE `sys_dept` (
  156. `dept_id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '部门id',
  157. `parent_id` bigint(20) DEFAULT '0' COMMENT '父部门id',
  158. `ancestors` varchar(50) DEFAULT '' COMMENT '祖级列表',
  159. `dept_name` varchar(30) DEFAULT '' COMMENT '部门名称',
  160. `order_num` int(4) DEFAULT '0' COMMENT '显示顺序',
  161. `leader` varchar(20) DEFAULT NULL COMMENT '负责人',
  162. `phone` varchar(11) DEFAULT NULL COMMENT '联系电话',
  163. `email` varchar(50) DEFAULT NULL COMMENT '邮箱',
  164. `status` tinyint(3) unsigned DEFAULT '0' COMMENT '部门状态(0正常 1停用)',
  165. `created_by` bigint(20) unsigned DEFAULT '0' COMMENT '创建人',
  166. `updated_by` bigint(20) DEFAULT NULL COMMENT '修改人',
  167. `created_at` datetime DEFAULT NULL COMMENT '创建时间',
  168. `updated_at` datetime DEFAULT NULL COMMENT '修改时间',
  169. `deleted_at` datetime DEFAULT NULL COMMENT '删除时间',
  170. PRIMARY KEY (`dept_id`) USING BTREE
  171. ) ENGINE=InnoDB AUTO_INCREMENT=204 DEFAULT CHARSET=utf8mb4 ROW_FORMAT=COMPACT COMMENT='部门表';
  172. -- ----------------------------
  173. -- Records of sys_dept
  174. -- ----------------------------
  175. INSERT INTO `sys_dept` VALUES ('100', '0', '0', '奇讯科技', '0', '若依', '15888888888', 'ry@qq.com', '1', '0', '31', '2021-07-13 15:56:52', '2021-07-13 15:57:05', null);
  176. INSERT INTO `sys_dept` VALUES ('101', '100', '0,100', '深圳总公司', '1', '若依', '15888888888', 'ry@qq.com', '1', '0', null, '2021-07-13 15:56:52', '2021-07-13 15:56:52', null);
  177. INSERT INTO `sys_dept` VALUES ('102', '100', '0,100', '长沙分公司', '2', '若依', '15888888888', 'ry@qq.com', '1', '0', null, '2021-07-13 15:56:52', '2021-07-13 15:56:52', null);
  178. INSERT INTO `sys_dept` VALUES ('103', '101', '0,100,101', '研发部门', '1', '若依', '15888888888', 'ry@qq.com', '1', '0', null, '2021-07-13 15:56:52', '2021-07-13 15:56:52', null);
  179. INSERT INTO `sys_dept` VALUES ('104', '101', '0,100,101', '市场部门', '2', '若依', '15888888888', 'ry@qq.com', '1', '0', '31', '2021-07-13 15:56:52', '2021-11-04 09:16:38', null);
  180. INSERT INTO `sys_dept` VALUES ('105', '101', '0,100,101', '测试部门', '3', '若依', '15888888888', 'ry@qq.com', '1', '0', null, '2021-07-13 15:56:52', '2021-07-13 15:56:52', null);
  181. INSERT INTO `sys_dept` VALUES ('106', '101', '0,100,101', '财务部门', '4', '若依', '15888888888', 'ry@qq.com', '1', '0', null, '2021-07-13 15:56:52', '2021-07-13 15:56:52', null);
  182. INSERT INTO `sys_dept` VALUES ('107', '101', '0,100,101', '运维部门', '5', '若依', '15888888888', 'ry@qq.com', '1', '0', null, '2021-07-13 15:56:52', '2021-07-13 15:56:52', null);
  183. INSERT INTO `sys_dept` VALUES ('108', '102', '0,100,102', '市场部门', '1', '若依', '15888888888', 'ry@qq.com', '1', '0', null, '2021-07-13 15:56:52', '2021-07-13 15:56:52', null);
  184. INSERT INTO `sys_dept` VALUES ('109', '102', '0,100,102', '财务部门', '2', '若依', '15888888888', 'ry@qq.com', '1', '0', null, '2021-07-13 15:56:52', '2021-07-13 15:56:52', null);
  185. INSERT INTO `sys_dept` VALUES ('200', '100', '', '大数据', '1', '小刘', '18888888888', 'liou@qq.com', '1', '0', null, '2021-07-13 15:56:52', '2021-07-13 15:56:52', null);
  186. INSERT INTO `sys_dept` VALUES ('201', '100', '', '开发', '1', '老李', '18888888888', 'li@qq.com', '0', '31', null, '2021-07-13 15:56:52', '2022-04-07 22:35:21', null);
  187. INSERT INTO `sys_dept` VALUES ('202', '108', '', '外勤', '1', '小a', '18888888888', 'aa@qq.com', '1', '0', null, '2021-07-13 15:56:52', '2021-07-13 15:56:52', null);
  188. INSERT INTO `sys_dept` VALUES ('203', '108', '', '行政', '0', 'aa', '18888888888', 'aa@qq.com', '0', '0', null, '2021-07-13 15:56:52', '2021-07-13 15:56:52', null);
  189. -- ----------------------------
  190. -- Table structure for sys_dict_data
  191. -- ----------------------------
  192. DROP TABLE IF EXISTS `sys_dict_data`;
  193. CREATE TABLE `sys_dict_data` (
  194. `dict_code` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '字典编码',
  195. `dict_sort` int(4) DEFAULT '0' COMMENT '字典排序',
  196. `dict_label` varchar(100) DEFAULT '' COMMENT '字典标签',
  197. `dict_value` varchar(100) DEFAULT '' COMMENT '字典键值',
  198. `dict_type` varchar(100) DEFAULT '' COMMENT '字典类型',
  199. `css_class` varchar(100) DEFAULT NULL COMMENT '样式属性(其他样式扩展)',
  200. `list_class` varchar(100) DEFAULT NULL COMMENT '表格回显样式',
  201. `is_default` tinyint(1) DEFAULT '0' COMMENT '是否默认(1是 0否)',
  202. `status` tinyint(1) DEFAULT '0' COMMENT '状态(0正常 1停用)',
  203. `create_by` bigint(64) unsigned DEFAULT '0' COMMENT '创建者',
  204. `update_by` bigint(64) unsigned DEFAULT '0' COMMENT '更新者',
  205. `remark` varchar(500) DEFAULT NULL COMMENT '备注',
  206. `created_at` datetime DEFAULT NULL COMMENT '创建时间',
  207. `updated_at` datetime DEFAULT NULL COMMENT '修改时间',
  208. PRIMARY KEY (`dict_code`) USING BTREE
  209. ) ENGINE=InnoDB AUTO_INCREMENT=102 DEFAULT CHARSET=utf8mb4 ROW_FORMAT=COMPACT COMMENT='字典数据表';
  210. -- ----------------------------
  211. -- Records of sys_dict_data
  212. -- ----------------------------
  213. INSERT INTO `sys_dict_data` VALUES ('1', '0', '男', '1', 'sys_user_sex', '', '', '0', '1', '31', '2', '备注信息', '2022-04-18 16:46:22', null);
  214. INSERT INTO `sys_dict_data` VALUES ('2', '0', '女', '2', 'sys_user_sex', '', '', '0', '1', '31', '31', '备注信息', null, null);
  215. INSERT INTO `sys_dict_data` VALUES ('3', '0', '保密', '0', 'sys_user_sex', '', '', '1', '1', '31', '31', '备注信息', null, null);
  216. INSERT INTO `sys_dict_data` VALUES ('24', '0', '频道页', '1', 'cms_category_type', '', '', '0', '1', '31', '31', '作为频道页,不可作为栏目发布文章,可添加下级分类', null, '2021-07-21 10:54:22');
  217. INSERT INTO `sys_dict_data` VALUES ('25', '0', '发布栏目', '2', 'cms_category_type', '', '', '0', '1', '31', '31', '作为发布栏目,可添加文章', null, '2021-07-21 10:54:22');
  218. INSERT INTO `sys_dict_data` VALUES ('26', '0', '跳转栏目', '3', 'cms_category_type', '', '', '0', '1', '31', '31', '不直接发布内容,用于跳转页面', null, '2021-07-21 10:54:22');
  219. INSERT INTO `sys_dict_data` VALUES ('27', '0', '单页栏目', '4', 'cms_category_type', '', '', '0', '1', '31', '31', '单页面模式,分类直接显示为文章', null, '2021-07-21 10:54:22');
  220. INSERT INTO `sys_dict_data` VALUES ('28', '0', '正常', '0', 'sys_job_status', '', 'default', '1', '1', '31', '0', '', null, null);
  221. INSERT INTO `sys_dict_data` VALUES ('29', '0', '暂停', '1', 'sys_job_status', '', 'default', '0', '1', '31', '31', '', null, null);
  222. INSERT INTO `sys_dict_data` VALUES ('30', '0', '默认', 'DEFAULT', 'sys_job_group', '', 'default', '1', '1', '31', '0', '', null, null);
  223. INSERT INTO `sys_dict_data` VALUES ('31', '0', '系统', 'SYSTEM', 'sys_job_group', '', 'default', '0', '1', '31', '0', '', null, null);
  224. INSERT INTO `sys_dict_data` VALUES ('32', '0', '成功', '1', 'admin_login_status', '', 'default', '0', '1', '31', '31', '', null, null);
  225. INSERT INTO `sys_dict_data` VALUES ('33', '0', '失败', '0', 'admin_login_status', '', 'default', '0', '1', '31', '0', '', null, null);
  226. INSERT INTO `sys_dict_data` VALUES ('34', '0', '成功', '1', 'sys_oper_log_status', '', 'default', '0', '1', '31', '0', '', null, null);
  227. INSERT INTO `sys_dict_data` VALUES ('35', '0', '失败', '0', 'sys_oper_log_status', '', 'default', '0', '1', '31', '0', '', null, null);
  228. INSERT INTO `sys_dict_data` VALUES ('36', '0', '重复执行', '1', 'sys_job_policy', '', 'default', '1', '1', '31', '0', '', null, null);
  229. INSERT INTO `sys_dict_data` VALUES ('37', '0', '执行一次', '2', 'sys_job_policy', '', 'default', '1', '1', '31', '0', '', null, null);
  230. INSERT INTO `sys_dict_data` VALUES ('38', '0', '显示', '0', 'sys_show_hide', null, 'default', '1', '1', '31', '0', null, null, null);
  231. INSERT INTO `sys_dict_data` VALUES ('39', '0', '隐藏', '1', 'sys_show_hide', null, 'default', '0', '1', '31', '0', null, null, null);
  232. INSERT INTO `sys_dict_data` VALUES ('40', '0', '正常', '1', 'sys_normal_disable', '', 'default', '1', '1', '31', '0', '', null, null);
  233. INSERT INTO `sys_dict_data` VALUES ('41', '0', '停用', '0', 'sys_normal_disable', '', 'default', '0', '1', '31', '0', '', null, null);
  234. INSERT INTO `sys_dict_data` VALUES ('49', '0', '是', '1', 'sys_yes_no', '', '', '1', '1', '31', '0', '', null, null);
  235. INSERT INTO `sys_dict_data` VALUES ('50', '0', '否', '0', 'sys_yes_no', '', '', '0', '1', '31', '0', '', null, null);
  236. INSERT INTO `sys_dict_data` VALUES ('51', '0', '已发布', '1', 'cms_article_pub_type', '', '', '1', '1', '31', '31', '', null, null);
  237. INSERT INTO `sys_dict_data` VALUES ('54', '0', '未发布', '0', 'cms_article_pub_type', '', '', '0', '1', '31', '0', '', null, null);
  238. INSERT INTO `sys_dict_data` VALUES ('55', '0', '置顶', '1', 'cms_article_attr', '', '', '0', '1', '31', '0', '', null, null);
  239. INSERT INTO `sys_dict_data` VALUES ('56', '0', '推荐', '2', 'cms_article_attr', '', '', '0', '1', '31', '0', '', null, null);
  240. INSERT INTO `sys_dict_data` VALUES ('57', '0', '普通文章', '0', 'cms_article_type', '', '', '0', '1', '31', '31', '', null, null);
  241. INSERT INTO `sys_dict_data` VALUES ('58', '0', '跳转链接', '1', 'cms_article_type', '', '', '0', '1', '31', '31', '', null, null);
  242. INSERT INTO `sys_dict_data` VALUES ('59', '0', 'cms模型', '6', 'cms_cate_models', '', '', '0', '1', '1', '1', '', null, null);
  243. INSERT INTO `sys_dict_data` VALUES ('61', '0', '政府工作目标', '1', 'gov_cate_models', '', '', '0', '1', '2', '0', '', null, null);
  244. INSERT INTO `sys_dict_data` VALUES ('62', '0', '系统后台', 'sys_admin', 'menu_module_type', '', '', '1', '1', '2', '0', '', null, null);
  245. INSERT INTO `sys_dict_data` VALUES ('63', '0', '政务工作', 'gov_work', 'menu_module_type', '', '', '0', '1', '2', '0', '', null, null);
  246. INSERT INTO `sys_dict_data` VALUES ('64', '0', '幻灯', '3', 'cms_article_attr', '', '', '0', '1', '31', '0', '', null, null);
  247. INSERT INTO `sys_dict_data` VALUES ('65', '0', '[work]测试业务表', 'wf_news', 'flow_type', '', '', '0', '1', '2', '2', '', null, null);
  248. INSERT INTO `sys_dict_data` VALUES ('66', '0', '回退修改', '-1', 'flow_status', '', '', '0', '1', '31', '0', '', null, null);
  249. INSERT INTO `sys_dict_data` VALUES ('67', '0', '保存中', '0', 'flow_status', '', '', '0', '1', '31', '0', '', null, null);
  250. INSERT INTO `sys_dict_data` VALUES ('68', '0', '流程中', '1', 'flow_status', '', '', '0', '1', '31', '0', '', null, null);
  251. INSERT INTO `sys_dict_data` VALUES ('69', '0', '审批通过', '2', 'flow_status', '', '', '0', '1', '31', '2', '', null, null);
  252. INSERT INTO `sys_dict_data` VALUES ('70', '2', '发布栏目', '2', 'sys_blog_sign', '', '', '0', '1', '31', '31', '', null, null);
  253. INSERT INTO `sys_dict_data` VALUES ('71', '3', '跳转栏目', '3', 'sys_blog_sign', '', '', '0', '1', '31', '31', '', null, null);
  254. INSERT INTO `sys_dict_data` VALUES ('72', '4', '单页栏目', '4', 'sys_blog_sign', '', '', '0', '1', '31', '31', '', null, null);
  255. INSERT INTO `sys_dict_data` VALUES ('73', '2', '置顶', '1', 'sys_log_sign', '', '', '0', '1', '31', '31', '', null, null);
  256. INSERT INTO `sys_dict_data` VALUES ('74', '3', '幻灯', '2', 'sys_log_sign', '', '', '0', '1', '31', '31', '', null, null);
  257. INSERT INTO `sys_dict_data` VALUES ('75', '4', '推荐', '3', 'sys_log_sign', '', '', '0', '1', '31', '31', '', null, null);
  258. INSERT INTO `sys_dict_data` VALUES ('76', '1', '一般', '0', 'sys_log_sign', '', '', '0', '1', '31', '31', '', null, null);
  259. INSERT INTO `sys_dict_data` VALUES ('77', '1', '频道页', '1', 'sys_blog_sign', '', '', '0', '1', '31', '31', '', null, null);
  260. INSERT INTO `sys_dict_data` VALUES ('78', '0', '普通', '0', 'flow_level', '', '', '0', '1', '31', '0', '', null, '2021-07-20 08:55:20');
  261. INSERT INTO `sys_dict_data` VALUES ('79', '0', '加急', '1', 'flow_level', '', '', '0', '1', '31', '0', '', null, '2021-07-20 08:55:20');
  262. INSERT INTO `sys_dict_data` VALUES ('80', '0', '紧急', '2', 'flow_level', '', '', '0', '1', '31', '0', '', null, '2021-07-20 08:55:20');
  263. INSERT INTO `sys_dict_data` VALUES ('81', '0', '特急', '3', 'flow_level', '', '', '0', '1', '31', '31', '', null, '2021-07-20 08:55:25');
  264. INSERT INTO `sys_dict_data` VALUES ('82', '0', '频道页', '1', 'sys_blog_type', '', '', '0', '1', '31', '0', '', null, null);
  265. INSERT INTO `sys_dict_data` VALUES ('83', '0', '发布栏目', '2', 'sys_blog_type', '', '', '0', '1', '31', '0', '', null, null);
  266. INSERT INTO `sys_dict_data` VALUES ('84', '0', '跳转栏目', '3', 'sys_blog_type', '', '', '0', '1', '31', '31', '', null, null);
  267. INSERT INTO `sys_dict_data` VALUES ('85', '0', '单页栏目', '4', 'sys_blog_type', '', '', '0', '1', '31', '0', '', null, null);
  268. INSERT INTO `sys_dict_data` VALUES ('87', '0', '[cms]文章表', 'cms_news', 'flow_type', '', '', '0', '1', '31', '0', '', null, null);
  269. INSERT INTO `sys_dict_data` VALUES ('91', '0', '测试一下', '666', 'cms_article_type', '', '', '0', '1', '31', '0', '', '2021-08-03 17:04:12', '2021-08-03 17:04:12');
  270. INSERT INTO `sys_dict_data` VALUES ('92', '0', '缓存测试222', '33333', 'cms_article_type', '', '', '0', '1', '31', '31', '', '2021-08-03 17:16:45', '2021-08-03 17:19:41');
  271. INSERT INTO `sys_dict_data` VALUES ('93', '0', '缓存测试222', '11111', 'cms_article_type', '', '', '0', '1', '31', '31', '', '2021-08-03 17:26:14', '2021-08-03 17:26:26');
  272. INSERT INTO `sys_dict_data` VALUES ('94', '0', '1折', '10', 'plugin_store_discount', '', '', '0', '1', '31', '0', '', '2021-08-14 11:59:38', '2021-08-14 11:59:38');
  273. INSERT INTO `sys_dict_data` VALUES ('95', '0', '5折', '50', 'plugin_store_discount', '', '', '0', '1', '31', '0', '', '2021-08-14 11:59:49', '2021-08-14 11:59:49');
  274. INSERT INTO `sys_dict_data` VALUES ('96', '0', '8折', '80', 'plugin_store_discount', '', '', '0', '1', '31', '0', '', '2021-08-14 12:00:00', '2021-08-14 12:00:00');
  275. INSERT INTO `sys_dict_data` VALUES ('97', '0', '9折', '90', 'plugin_store_discount', '', '', '0', '1', '31', '0', '', '2021-08-14 12:00:07', '2021-08-14 12:00:07');
  276. INSERT INTO `sys_dict_data` VALUES ('98', '0', '无折扣', '100', 'plugin_store_discount', '', '', '0', '1', '31', '0', '', '2021-08-14 12:00:16', '2021-08-14 12:00:16');
  277. INSERT INTO `sys_dict_data` VALUES ('99', '0', '不显示', 'none', 'cms_nav_position', '', '', '1', '1', '22', '0', '', '2021-08-31 15:37:35', '2021-08-31 15:37:35');
  278. INSERT INTO `sys_dict_data` VALUES ('100', '0', '顶部导航', 'top', 'cms_nav_position', '', '', '0', '1', '22', '0', '', '2021-08-31 15:37:57', '2021-08-31 15:37:57');
  279. INSERT INTO `sys_dict_data` VALUES ('101', '0', '底部导航', 'bottom', 'cms_nav_position', '', '', '0', '1', '22', '0', '', '2021-08-31 15:38:08', '2021-08-31 15:38:08');
  280. -- ----------------------------
  281. -- Table structure for sys_dict_type
  282. -- ----------------------------
  283. DROP TABLE IF EXISTS `sys_dict_type`;
  284. CREATE TABLE `sys_dict_type` (
  285. `dict_id` bigint(20) unsigned NOT NULL AUTO_INCREMENT COMMENT '字典主键',
  286. `dict_name` varchar(100) DEFAULT '' COMMENT '字典名称',
  287. `dict_type` varchar(100) DEFAULT '' COMMENT '字典类型',
  288. `status` tinyint(1) unsigned DEFAULT '0' COMMENT '状态(0正常 1停用)',
  289. `create_by` int(64) unsigned DEFAULT '0' COMMENT '创建者',
  290. `update_by` int(64) unsigned DEFAULT '0' COMMENT '更新者',
  291. `remark` varchar(500) DEFAULT NULL COMMENT '备注',
  292. `created_at` datetime DEFAULT NULL COMMENT '创建日期',
  293. `updated_at` datetime DEFAULT NULL COMMENT '修改日期',
  294. PRIMARY KEY (`dict_id`) USING BTREE,
  295. UNIQUE KEY `dict_type` (`dict_type`) USING BTREE
  296. ) ENGINE=InnoDB AUTO_INCREMENT=50 DEFAULT CHARSET=utf8mb4 ROW_FORMAT=COMPACT COMMENT='字典类型表';
  297. -- ----------------------------
  298. -- Records of sys_dict_type
  299. -- ----------------------------
  300. INSERT INTO `sys_dict_type` VALUES ('1', '用户性别', 'sys_user_sex', '1', '31', '1', '用于选择用户性别', null, null);
  301. INSERT INTO `sys_dict_type` VALUES ('2', '分类类型', 'cms_category_type', '1', '31', '3', '文章分类类型', null, '2021-07-21 10:54:22');
  302. INSERT INTO `sys_dict_type` VALUES ('3', '任务状态', 'sys_job_status', '1', '31', '31', '任务状态列表', null, null);
  303. INSERT INTO `sys_dict_type` VALUES ('13', '任务分组', 'sys_job_group', '1', '31', '0', '', null, null);
  304. INSERT INTO `sys_dict_type` VALUES ('14', '管理员登录状态', 'admin_login_status', '1', '31', '0', '', null, null);
  305. INSERT INTO `sys_dict_type` VALUES ('15', '操作日志状态', 'sys_oper_log_status', '1', '31', '0', '', null, null);
  306. INSERT INTO `sys_dict_type` VALUES ('16', '任务策略', 'sys_job_policy', '1', '31', '0', '', null, null);
  307. INSERT INTO `sys_dict_type` VALUES ('17', '菜单状态', 'sys_show_hide', '1', '31', '0', '菜单状态', null, null);
  308. INSERT INTO `sys_dict_type` VALUES ('18', '系统开关', 'sys_normal_disable', '1', '31', '31', '系统开关', null, null);
  309. INSERT INTO `sys_dict_type` VALUES ('24', '系统内置', 'sys_yes_no', '1', '31', '0', '', null, null);
  310. INSERT INTO `sys_dict_type` VALUES ('25', '文章发布状态', 'cms_article_pub_type', '1', '31', '0', '', null, null);
  311. INSERT INTO `sys_dict_type` VALUES ('26', '文章附加状态', 'cms_article_attr', '1', '31', '0', '', null, null);
  312. INSERT INTO `sys_dict_type` VALUES ('27', '文章类型', 'cms_article_type', '1', '31', '0', '', null, null);
  313. INSERT INTO `sys_dict_type` VALUES ('28', '文章栏目模型分类', 'cms_cate_models', '1', '1', '0', '', null, null);
  314. INSERT INTO `sys_dict_type` VALUES ('29', '政务工作模型分类', 'gov_cate_models', '1', '2', '0', '', null, null);
  315. INSERT INTO `sys_dict_type` VALUES ('30', '菜单模块类型', 'menu_module_type', '1', '2', '0', '', null, null);
  316. INSERT INTO `sys_dict_type` VALUES ('31', '工作流程类型', 'flow_type', '1', '2', '0', '', null, null);
  317. INSERT INTO `sys_dict_type` VALUES ('32', '工作流程审批状态', 'flow_status', '1', '31', '0', '工作流程审批状态', null, null);
  318. INSERT INTO `sys_dict_type` VALUES ('33', '博客分类类型', 'sys_blog_type', '1', '31', '31', '博客分类中的标志', null, null);
  319. INSERT INTO `sys_dict_type` VALUES ('34', '博客日志标志', 'sys_log_sign', '1', '31', '0', '博客日志管理中的标志数据字典', null, null);
  320. INSERT INTO `sys_dict_type` VALUES ('35', '工作流紧急状态', 'flow_level', '1', '31', '31', '', null, '2021-07-20 08:55:20');
  321. INSERT INTO `sys_dict_type` VALUES ('48', '插件商城折扣', 'plugin_store_discount', '1', '31', '0', '', '2021-08-14 11:59:26', '2021-08-14 11:59:26');
  322. INSERT INTO `sys_dict_type` VALUES ('49', 'CMS栏目导航位置', 'cms_nav_position', '1', '22', '0', '', '2021-08-31 15:37:04', '2021-08-31 15:37:04');
  323. -- ----------------------------
  324. -- Table structure for sys_login_log
  325. -- ----------------------------
  326. DROP TABLE IF EXISTS `sys_login_log`;
  327. CREATE TABLE `sys_login_log` (
  328. `info_id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '访问ID',
  329. `login_name` varchar(50) DEFAULT '' COMMENT '登录账号',
  330. `ipaddr` varchar(50) DEFAULT '' COMMENT '登录IP地址',
  331. `login_location` varchar(255) DEFAULT '' COMMENT '登录地点',
  332. `browser` varchar(50) DEFAULT '' COMMENT '浏览器类型',
  333. `os` varchar(50) DEFAULT '' COMMENT '操作系统',
  334. `status` tinyint(4) DEFAULT '0' COMMENT '登录状态(0成功 1失败)',
  335. `msg` varchar(255) DEFAULT '' COMMENT '提示消息',
  336. `login_time` datetime DEFAULT NULL COMMENT '登录时间',
  337. `module` varchar(30) DEFAULT '' COMMENT '登录模块',
  338. PRIMARY KEY (`info_id`) USING BTREE
  339. ) ENGINE=MyISAM AUTO_INCREMENT=883 DEFAULT CHARSET=utf8mb4 ROW_FORMAT=DYNAMIC COMMENT='系统访问记录';
  340. -- ----------------------------
  341. -- Table structure for sys_oper_log
  342. -- ----------------------------
  343. DROP TABLE IF EXISTS `sys_oper_log`;
  344. CREATE TABLE `sys_oper_log` (
  345. `oper_id` bigint(20) unsigned NOT NULL AUTO_INCREMENT COMMENT '日志主键',
  346. `title` varchar(50) DEFAULT '' COMMENT '模块标题',
  347. `business_type` int(2) DEFAULT '0' COMMENT '业务类型(0其它 1新增 2修改 3删除)',
  348. `method` varchar(100) DEFAULT '' COMMENT '方法名称',
  349. `request_method` varchar(10) DEFAULT '' COMMENT '请求方式',
  350. `operator_type` int(1) DEFAULT '0' COMMENT '操作类别(0其它 1后台用户 2手机端用户)',
  351. `oper_name` varchar(50) DEFAULT '' COMMENT '操作人员',
  352. `dept_name` varchar(50) DEFAULT '' COMMENT '部门名称',
  353. `oper_url` varchar(500) DEFAULT '' COMMENT '请求URL',
  354. `oper_ip` varchar(50) DEFAULT '' COMMENT '主机地址',
  355. `oper_location` varchar(255) DEFAULT '' COMMENT '操作地点',
  356. `oper_param` text COMMENT '请求参数',
  357. `json_result` text COMMENT '返回参数',
  358. `status` int(1) DEFAULT '0' COMMENT '操作状态(0正常 1异常)',
  359. `error_msg` varchar(2000) DEFAULT '' COMMENT '错误消息',
  360. `oper_time` datetime DEFAULT NULL COMMENT '操作时间',
  361. PRIMARY KEY (`oper_id`) USING BTREE
  362. ) ENGINE=MyISAM DEFAULT CHARSET=utf8mb4 ROW_FORMAT=DYNAMIC COMMENT='操作日志记录';
  363. -- ----------------------------
  364. -- Records of sys_oper_log
  365. -- ----------------------------
  366. -- ----------------------------
  367. -- Table structure for sys_post
  368. -- ----------------------------
  369. DROP TABLE IF EXISTS `sys_post`;
  370. CREATE TABLE `sys_post` (
  371. `post_id` bigint(20) unsigned NOT NULL AUTO_INCREMENT COMMENT '岗位ID',
  372. `post_code` varchar(64) NOT NULL COMMENT '岗位编码',
  373. `post_name` varchar(50) NOT NULL COMMENT '岗位名称',
  374. `post_sort` int(4) NOT NULL COMMENT '显示顺序',
  375. `status` tinyint(1) unsigned NOT NULL DEFAULT '0' COMMENT '状态(0正常 1停用)',
  376. `remark` varchar(500) DEFAULT NULL COMMENT '备注',
  377. `created_by` bigint(20) unsigned NOT NULL DEFAULT '0' COMMENT '创建人',
  378. `updated_by` bigint(20) unsigned NOT NULL DEFAULT '0' COMMENT '修改人',
  379. `created_at` datetime DEFAULT NULL COMMENT '创建时间',
  380. `updated_at` datetime DEFAULT NULL COMMENT '修改时间',
  381. `deleted_at` datetime DEFAULT NULL COMMENT '删除时间',
  382. PRIMARY KEY (`post_id`) USING BTREE
  383. ) ENGINE=InnoDB AUTO_INCREMENT=10 DEFAULT CHARSET=utf8mb4 ROW_FORMAT=COMPACT COMMENT='岗位信息表';
  384. -- ----------------------------
  385. -- Records of sys_post
  386. -- ----------------------------
  387. INSERT INTO `sys_post` VALUES ('1', 'ceo', '董事长', '1', '1', '', '0', '0', '2021-07-11 11:32:58', null, null);
  388. INSERT INTO `sys_post` VALUES ('2', 'se', '项目经理', '2', '1', '', '0', '0', '2021-07-12 11:01:26', null, null);
  389. INSERT INTO `sys_post` VALUES ('3', 'hr', '人力资源', '3', '1', '', '0', '0', '2021-07-12 11:01:30', null, null);
  390. INSERT INTO `sys_post` VALUES ('4', 'user', '普通员工', '4', '0', '普通员工', '0', '31', '2021-07-12 11:01:33', '2022-04-08 15:32:23', null);
  391. INSERT INTO `sys_post` VALUES ('5', 'it', 'IT部', '5', '1', '信息部', '31', '31', '2021-07-12 11:09:42', '2022-04-09 12:59:12', null);
  392. INSERT INTO `sys_post` VALUES ('6', '1111', '1111', '0', '1', '11111', '31', '0', '2022-04-08 15:32:44', '2022-04-08 15:32:44', '2022-04-08 15:51:24');
  393. INSERT INTO `sys_post` VALUES ('7', '222', '2222', '0', '1', '22222', '31', '0', '2022-04-08 15:32:55', '2022-04-08 15:32:55', '2022-04-08 15:51:24');
  394. INSERT INTO `sys_post` VALUES ('8', '33333', '3333', '0', '0', '33333', '31', '0', '2022-04-08 15:33:01', '2022-04-08 15:33:01', '2022-04-08 15:51:40');
  395. INSERT INTO `sys_post` VALUES ('9', '222', '111', '0', '1', '2313213', '31', '0', '2022-04-08 15:52:53', '2022-04-08 15:52:53', '2022-04-08 15:52:56');
  396. -- ----------------------------
  397. -- Table structure for sys_role
  398. -- ----------------------------
  399. DROP TABLE IF EXISTS `sys_role`;
  400. CREATE TABLE `sys_role` (
  401. `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  402. `status` tinyint(3) unsigned NOT NULL DEFAULT '0' COMMENT '状态;0:禁用;1:正常',
  403. `list_order` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '排序',
  404. `name` varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '' COMMENT '角色名称',
  405. `remark` varchar(255) NOT NULL DEFAULT '' COMMENT '备注',
  406. `data_scope` tinyint(3) unsigned NOT NULL DEFAULT '3' COMMENT '数据范围(1:全部数据权限 2:自定数据权限 3:本部门数据权限 4:本部门及以下数据权限)',
  407. `created_at` datetime DEFAULT NULL COMMENT '创建时间',
  408. `updated_at` datetime DEFAULT NULL COMMENT '更新时间',
  409. PRIMARY KEY (`id`) USING BTREE,
  410. KEY `status` (`status`) USING BTREE
  411. ) ENGINE=InnoDB AUTO_INCREMENT=9 DEFAULT CHARSET=utf8mb4 ROW_FORMAT=COMPACT COMMENT='角色表';
  412. -- ----------------------------
  413. -- Records of sys_role
  414. -- ----------------------------
  415. INSERT INTO `sys_role` VALUES ('1', '1', '0', '超级管理员', '备注', '3', '2022-04-01 11:38:39', '2022-04-09 12:59:28');
  416. INSERT INTO `sys_role` VALUES ('2', '1', '0', '普通管理员', '备注', '3', '2022-04-01 11:38:39', '2022-04-01 11:38:39');
  417. INSERT INTO `sys_role` VALUES ('3', '1', '0', '站点管理员', '站点管理人员', '3', '2022-04-01 11:38:39', '2022-04-01 11:38:39');
  418. INSERT INTO `sys_role` VALUES ('4', '1', '0', '初级管理员', '初级管理员', '3', '2022-04-01 11:38:39', '2022-04-01 11:38:39');
  419. INSERT INTO `sys_role` VALUES ('5', '1', '0', '高级管理员', '高级管理员', '2', '2022-04-01 11:38:39', '2022-04-01 11:38:39');
  420. INSERT INTO `sys_role` VALUES ('8', '1', '0', '区级管理员', '', '2', '2022-04-01 11:38:39', '2022-04-06 09:53:40');
  421. -- ----------------------------
  422. -- Table structure for sys_role_dept
  423. -- ----------------------------
  424. DROP TABLE IF EXISTS `sys_role_dept`;
  425. CREATE TABLE `sys_role_dept` (
  426. `role_id` bigint(20) NOT NULL COMMENT '角色ID',
  427. `dept_id` bigint(20) NOT NULL COMMENT '部门ID',
  428. PRIMARY KEY (`role_id`,`dept_id`) USING BTREE
  429. ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 ROW_FORMAT=COMPACT COMMENT='角色和部门关联表';
  430. -- ----------------------------
  431. -- Records of sys_role_dept
  432. -- ----------------------------
  433. INSERT INTO `sys_role_dept` VALUES ('5', '103');
  434. INSERT INTO `sys_role_dept` VALUES ('5', '104');
  435. INSERT INTO `sys_role_dept` VALUES ('5', '105');
  436. INSERT INTO `sys_role_dept` VALUES ('8', '105');
  437. INSERT INTO `sys_role_dept` VALUES ('8', '106');
  438. -- ----------------------------
  439. -- Table structure for sys_user
  440. -- ----------------------------
  441. DROP TABLE IF EXISTS `sys_user`;
  442. CREATE TABLE `sys_user` (
  443. `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
  444. `user_name` varchar(60) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '' COMMENT '用户名',
  445. `mobile` varchar(20) NOT NULL DEFAULT '' COMMENT '中国手机不带国家代码,国际手机号格式为:国家代码-手机号',
  446. `user_nickname` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '' COMMENT '用户昵称',
  447. `birthday` int(11) NOT NULL DEFAULT '0' COMMENT '生日',
  448. `user_password` varchar(255) NOT NULL DEFAULT '' COMMENT '登录密码;cmf_password加密',
  449. `user_salt` char(10) NOT NULL COMMENT '加密盐',
  450. `user_status` tinyint(3) unsigned NOT NULL DEFAULT '1' COMMENT '用户状态;0:禁用,1:正常,2:未验证',
  451. `user_email` varchar(100) NOT NULL DEFAULT '' COMMENT '用户登录邮箱',
  452. `sex` tinyint(2) NOT NULL DEFAULT '0' COMMENT '性别;0:保密,1:男,2:女',
  453. `avatar` varchar(255) NOT NULL DEFAULT '' COMMENT '用户头像',
  454. `dept_id` bigint(20) unsigned NOT NULL DEFAULT '0' COMMENT '部门id',
  455. `remark` varchar(255) NOT NULL DEFAULT '' COMMENT '备注',
  456. `is_admin` tinyint(4) NOT NULL DEFAULT '1' COMMENT '是否后台管理员 1 是 0 否',
  457. `address` varchar(255) NOT NULL DEFAULT '' COMMENT '联系地址',
  458. `describe` varchar(255) NOT NULL DEFAULT '' COMMENT ' 描述信息',
  459. `last_login_ip` varchar(15) NOT NULL DEFAULT '' COMMENT '最后登录ip',
  460. `last_login_time` datetime DEFAULT NULL COMMENT '最后登录时间',
  461. `created_at` datetime DEFAULT NULL COMMENT '创建时间',
  462. `updated_at` datetime DEFAULT NULL COMMENT '更新时间',
  463. `deleted_at` datetime DEFAULT NULL COMMENT '删除时间',
  464. PRIMARY KEY (`id`) USING BTREE,
  465. UNIQUE KEY `user_login` (`user_name`,`deleted_at`) USING BTREE,
  466. UNIQUE KEY `mobile` (`mobile`,`deleted_at`) USING BTREE,
  467. KEY `user_nickname` (`user_nickname`) USING BTREE
  468. ) ENGINE=InnoDB AUTO_INCREMENT=43 DEFAULT CHARSET=utf8mb4 ROW_FORMAT=COMPACT COMMENT='用户表';
  469. -- ----------------------------
  470. -- Records of sys_user
  471. -- ----------------------------
  472. INSERT INTO `sys_user` VALUES ('1', 'admin', '13578342363', '超级管理员', '0', 'c567ae329f9929b518759d3bea13f492', 'f9aZTAa8yz', '1', 'yxh669@qq.com', '1', 'https://yxh-1301841944.cos.ap-chongqing.myqcloud.com/gfast/2021-07-19/ccwpeuqz1i2s769hua.jpeg', '101', '', '1', 'asdasfdsaf大发放打发士大夫发按时', '描述信息', '::1', '2022-04-19 16:38:37', '2021-06-22 17:58:00', '2022-04-19 16:38:37', null);
  473. INSERT INTO `sys_user` VALUES ('31', 'demo', '15334455789', '李四', '0', '39978de67915a11e94bfe9c879b2d9a1', 'gqwLs4n95E', '1', '223@qq.com', '2', 'https://yxh-1301841944.cos.ap-chongqing.myqcloud.com/gfast/2021-11-30/cg30rab8myj85vjzcf.jpeg', '109', '', '1', '云南省曲靖市22223', '12345', '::1', '2022-04-21 09:22:27', '2021-06-22 17:58:00', '2022-04-21 09:22:27', null);
  474. -- ----------------------------
  475. -- Table structure for sys_user_online
  476. -- ----------------------------
  477. DROP TABLE IF EXISTS `sys_user_online`;
  478. CREATE TABLE `sys_user_online` (
  479. `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
  480. `uuid` char(32) CHARACTER SET latin1 COLLATE latin1_general_ci NOT NULL DEFAULT '' COMMENT '用户标识',
  481. `token` varchar(255) CHARACTER SET latin1 COLLATE latin1_general_ci NOT NULL DEFAULT '' COMMENT '用户token',
  482. `create_time` datetime DEFAULT NULL COMMENT '登录时间',
  483. `user_name` varchar(255) NOT NULL COMMENT '用户名',
  484. `ip` varchar(120) NOT NULL DEFAULT '' COMMENT '登录ip',
  485. `explorer` varchar(30) NOT NULL DEFAULT '' COMMENT '浏览器',
  486. `os` varchar(30) NOT NULL DEFAULT '' COMMENT '操作系统',
  487. PRIMARY KEY (`id`) USING BTREE,
  488. UNIQUE KEY `uni_token` (`token`) USING BTREE
  489. ) ENGINE=MyISAM AUTO_INCREMENT=17387 DEFAULT CHARSET=utf8mb4 ROW_FORMAT=DYNAMIC COMMENT='用户在线状态表';
  490. -- ----------------------------
  491. -- Records of sys_user_online
  492. -- ----------------------------
  493. -- ----------------------------
  494. -- Table structure for sys_user_post
  495. -- ----------------------------
  496. DROP TABLE IF EXISTS `sys_user_post`;
  497. CREATE TABLE `sys_user_post` (
  498. `user_id` bigint(20) NOT NULL COMMENT '用户ID',
  499. `post_id` bigint(20) NOT NULL COMMENT '岗位ID',
  500. PRIMARY KEY (`user_id`,`post_id`) USING BTREE
  501. ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 ROW_FORMAT=COMPACT COMMENT='用户与岗位关联表';
  502. -- ----------------------------
  503. -- Records of sys_user_post
  504. -- ----------------------------
  505. INSERT INTO `sys_user_post` VALUES ('1', '2');
  506. INSERT INTO `sys_user_post` VALUES ('1', '3');
  507. INSERT INTO `sys_user_post` VALUES ('2', '1');
  508. INSERT INTO `sys_user_post` VALUES ('2', '2');
  509. INSERT INTO `sys_user_post` VALUES ('3', '2');
  510. INSERT INTO `sys_user_post` VALUES ('5', '2');
  511. INSERT INTO `sys_user_post` VALUES ('10', '1');
  512. INSERT INTO `sys_user_post` VALUES ('10', '2');
  513. INSERT INTO `sys_user_post` VALUES ('10', '3');
  514. INSERT INTO `sys_user_post` VALUES ('10', '4');
  515. INSERT INTO `sys_user_post` VALUES ('10', '5');
  516. INSERT INTO `sys_user_post` VALUES ('14', '1');
  517. INSERT INTO `sys_user_post` VALUES ('15', '4');
  518. INSERT INTO `sys_user_post` VALUES ('16', '2');
  519. INSERT INTO `sys_user_post` VALUES ('22', '1');
  520. INSERT INTO `sys_user_post` VALUES ('22', '2');
  521. INSERT INTO `sys_user_post` VALUES ('31', '2');
  522. INSERT INTO `sys_user_post` VALUES ('34', '1');
  523. INSERT INTO `sys_user_post` VALUES ('35', '2');
  524. INSERT INTO `sys_user_post` VALUES ('35', '3');
  525. INSERT INTO `sys_user_post` VALUES ('36', '1');
  526. INSERT INTO `sys_user_post` VALUES ('37', '3');
  527. INSERT INTO `sys_user_post` VALUES ('38', '2');
  528. INSERT INTO `sys_user_post` VALUES ('38', '3');
  529. INSERT INTO `sys_user_post` VALUES ('42', '2');
  530. INSERT INTO `sys_user_post` VALUES ('42', '3');