archives_sys.sql 19 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378
  1. /*
  2. Navicat MariaDB Data Transfer
  3. Source Server : archives
  4. Source Server Version : 100032
  5. Source Host : 192.168.1.92:3307
  6. Source Database : archives_sys
  7. Target Server Type : MariaDB
  8. Target Server Version : 100032
  9. File Encoding : 65001
  10. Date: 2018-04-13 10:57:06
  11. */
  12. SET FOREIGN_KEY_CHECKS=0;
  13. -- ----------------------------
  14. -- Table structure for sys_dept
  15. -- ----------------------------
  16. DROP TABLE IF EXISTS `sys_dept`;
  17. CREATE TABLE `sys_dept` (
  18. `id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '部门主键ID',
  19. `parent_id` bigint(20) DEFAULT NULL COMMENT '父节点ID',
  20. `name` varchar(50) DEFAULT NULL COMMENT '部门名称',
  21. `principal` varchar(32) DEFAULT NULL COMMENT '负责人',
  22. `sort` int(2) DEFAULT NULL COMMENT '排序号',
  23. `enable` tinyint(1) NOT NULL DEFAULT '1' COMMENT '启用状态',
  24. `remark` varchar(1024) DEFAULT NULL,
  25. `create_time` datetime DEFAULT NULL,
  26. `create_by` varchar(50) DEFAULT NULL COMMENT '创建人',
  27. `update_time` datetime DEFAULT NULL,
  28. `update_by` varchar(50) DEFAULT NULL COMMENT '更新人',
  29. PRIMARY KEY (`id`)
  30. ) ENGINE=InnoDB AUTO_INCREMENT=20 DEFAULT CHARSET=utf8 COMMENT='部门管理';
  31. -- ----------------------------
  32. -- Records of sys_dept
  33. -- ----------------------------
  34. INSERT INTO `sys_dept` VALUES ('1', null, '开发部', '更新人:刘森', null, '1', null, '2018-04-08 08:48:42', null, '2018-04-08 09:46:09', null);
  35. INSERT INTO `sys_dept` VALUES ('3', null, '开发部', 'ls', null, '1', null, '2018-04-08 09:43:00', null, null, null);
  36. INSERT INTO `sys_dept` VALUES ('4', null, '开发部', 'ls', null, '1', null, '2018-04-08 09:53:41', null, null, null);
  37. INSERT INTO `sys_dept` VALUES ('5', null, '开发部', 'ls', null, '1', null, '2018-04-08 09:54:47', null, null, null);
  38. INSERT INTO `sys_dept` VALUES ('6', null, '开发部', 'ls', null, '1', null, '2018-04-08 09:56:29', null, null, null);
  39. INSERT INTO `sys_dept` VALUES ('7', null, '开发部', 'ls', null, '1', null, '2018-04-08 10:02:21', null, null, null);
  40. INSERT INTO `sys_dept` VALUES ('8', null, '开发部', 'ls', null, '1', null, '2018-04-08 10:04:53', null, null, null);
  41. INSERT INTO `sys_dept` VALUES ('9', null, '开发部', 'ls', null, '1', null, '2018-04-08 10:07:39', null, null, null);
  42. INSERT INTO `sys_dept` VALUES ('10', null, '开发部', 'ls', null, '1', null, '2018-04-09 02:00:57', null, null, null);
  43. INSERT INTO `sys_dept` VALUES ('11', null, '开发部', 'ls', null, '1', null, '2018-04-09 02:12:21', null, null, null);
  44. INSERT INTO `sys_dept` VALUES ('12', null, '开发部', 'ls', null, '1', null, '2018-04-09 02:25:01', null, null, null);
  45. INSERT INTO `sys_dept` VALUES ('13', null, '开发部', 'ls', null, '1', null, '2018-04-09 02:30:02', null, null, null);
  46. INSERT INTO `sys_dept` VALUES ('14', null, '开发部', 'ls', null, '1', null, '2018-04-09 02:32:45', null, null, null);
  47. INSERT INTO `sys_dept` VALUES ('15', null, '开发部', 'ls', null, '1', null, '2018-04-09 02:36:50', null, null, null);
  48. INSERT INTO `sys_dept` VALUES ('16', null, '开发部', 'ls', null, '1', null, '2018-04-09 03:39:05', null, null, null);
  49. INSERT INTO `sys_dept` VALUES ('17', null, '开发部', 'ls', null, '1', null, '2018-04-10 08:01:35', null, null, null);
  50. INSERT INTO `sys_dept` VALUES ('18', null, '开发部', 'ls', null, '1', null, '2018-04-10 08:07:10', null, null, null);
  51. INSERT INTO `sys_dept` VALUES ('19', null, '开发部', 'ls', null, '1', null, '2018-04-10 08:40:28', null, null, null);
  52. -- ----------------------------
  53. -- Table structure for sys_dept_user
  54. -- ----------------------------
  55. DROP TABLE IF EXISTS `sys_dept_user`;
  56. CREATE TABLE `sys_dept_user` (
  57. `id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '部门用户主键ID',
  58. `dept_id` bigint(20) DEFAULT NULL COMMENT '部门ID',
  59. `user_id` bigint(20) DEFAULT NULL COMMENT '用户ID',
  60. `enable` tinyint(1) NOT NULL DEFAULT '1' COMMENT '启用状态',
  61. `remark` varchar(1024) DEFAULT NULL,
  62. `create_time` datetime DEFAULT NULL,
  63. `create_by` varchar(50) DEFAULT NULL COMMENT '创建人',
  64. `update_time` datetime DEFAULT NULL,
  65. `update_by` varchar(50) DEFAULT NULL COMMENT '更新人',
  66. PRIMARY KEY (`id`),
  67. KEY `idx_dept_id` (`dept_id`),
  68. KEY `idx_user_id` (`user_id`)
  69. ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='部门用户表';
  70. -- ----------------------------
  71. -- Records of sys_dept_user
  72. -- ----------------------------
  73. -- ----------------------------
  74. -- Table structure for sys_dic
  75. -- ----------------------------
  76. DROP TABLE IF EXISTS `sys_dic`;
  77. CREATE TABLE `sys_dic` (
  78. `id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '主键ID',
  79. `key` varchar(50) DEFAULT NULL COMMENT '字典代码',
  80. `value` varchar(100) DEFAULT NULL COMMENT '字典值',
  81. `label` varchar(255) DEFAULT NULL COMMENT '标签',
  82. `sort` int(2) DEFAULT NULL COMMENT '排序号',
  83. `enable` bit(1) NOT NULL DEFAULT b'1' COMMENT '启用状态',
  84. `remark` varchar(1024) DEFAULT NULL COMMENT '字典描述',
  85. `create_time` datetime DEFAULT NULL,
  86. `create_by` varchar(50) DEFAULT NULL COMMENT '创建人',
  87. `update_time` datetime DEFAULT NULL,
  88. `update_by` varchar(50) DEFAULT NULL COMMENT '更新人',
  89. PRIMARY KEY (`id`)
  90. ) ENGINE=InnoDB AUTO_INCREMENT=12 DEFAULT CHARSET=utf8 COMMENT='字典表';
  91. -- ----------------------------
  92. -- Records of sys_dic
  93. -- ----------------------------
  94. INSERT INTO `sys_dic` VALUES ('1', 'gender', '1', '男', '1', '', '性别', null, null, '2018-03-20 02:48:01', null);
  95. INSERT INTO `sys_dic` VALUES ('2', 'gender', '0', '女', '2', '', '', null, null, '2018-03-20 02:48:01', null);
  96. INSERT INTO `sys_dic` VALUES ('3', 'gender', '-1', '保密', '3', '\0', null, null, null, null, null);
  97. INSERT INTO `sys_dic` VALUES ('4', 'enable', '1', '启用', '1', '', '启用状态(逻辑删标志)', null, null, '2018-04-03 08:28:53', 'admin');
  98. INSERT INTO `sys_dic` VALUES ('5', 'enable', '0', '禁用', '2', '', '禁用状态(逻辑删标志)', null, null, '2018-03-20 02:48:01', null);
  99. INSERT INTO `sys_dic` VALUES ('6', '4_is_check', '0', '未审批', '1', '', '管理_开放鉴定审批', '2018-03-24 09:37:31', 'admin', null, null);
  100. INSERT INTO `sys_dic` VALUES ('7', '4_is_check', '1', '审批通过', '2', '', '管理_开放鉴定审批通过', '2018-03-24 09:38:23', 'admin', null, null);
  101. INSERT INTO `sys_dic` VALUES ('8', '4_is_check', '2', '审批不通过', '3', '', '管理_开放鉴定审批', '2018-03-24 09:39:24', 'admin', null, null);
  102. INSERT INTO `sys_dic` VALUES ('9', '4_appraisal_result', '0', '未鉴定', '1', '', '管理_开放鉴定登记', '2018-03-26 09:59:03', 'admin', null, null);
  103. INSERT INTO `sys_dic` VALUES ('10', '4_appraisal_result', '1', '允许开放', '2', '', '管理_开放鉴定登记', '2018-03-26 10:00:28', 'admin', null, null);
  104. INSERT INTO `sys_dic` VALUES ('11', '4_appraisal_result', '2', '不允许开放', '3', '', '管理_开放鉴定登记', '2018-03-26 10:01:15', 'admin', null, null);
  105. -- ----------------------------
  106. -- Table structure for sys_event_login
  107. -- ----------------------------
  108. DROP TABLE IF EXISTS `sys_event_login`;
  109. CREATE TABLE `sys_event_login` (
  110. `id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '主键ID',
  111. `title` varchar(50) DEFAULT NULL COMMENT '日志标题',
  112. `request_uri` varchar(100) DEFAULT NULL COMMENT '请求地址',
  113. `sort` int(2) DEFAULT NULL COMMENT '排序号',
  114. `account` varchar(50) NOT NULL COMMENT '账户名',
  115. `client_host` varchar(50) DEFAULT NULL COMMENT '登录IP地址',
  116. `user_agent` varchar(200) DEFAULT NULL COMMENT '用户代理',
  117. `status` int(2) NOT NULL DEFAULT '1' COMMENT '请求状态',
  118. `enable` tinyint(1) NOT NULL DEFAULT '1' COMMENT '启用状态',
  119. `remark` varchar(1024) DEFAULT NULL COMMENT '字典描述',
  120. `create_time` datetime DEFAULT NULL,
  121. `create_by` varchar(50) DEFAULT NULL COMMENT '创建人',
  122. `update_time` datetime DEFAULT NULL,
  123. `update_by` varchar(50) DEFAULT NULL COMMENT '更新人',
  124. PRIMARY KEY (`id`),
  125. KEY `idx_account` (`account`)
  126. ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='登录日志表';
  127. -- ----------------------------
  128. -- Records of sys_event_login
  129. -- ----------------------------
  130. -- ----------------------------
  131. -- Table structure for sys_event_oper
  132. -- ----------------------------
  133. DROP TABLE IF EXISTS `sys_event_oper`;
  134. CREATE TABLE `sys_event_oper` (
  135. `id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '主键ID',
  136. `title` varchar(50) DEFAULT NULL COMMENT '日志标题',
  137. `request_uri` varchar(100) DEFAULT NULL COMMENT '请求地址',
  138. `sort` int(2) DEFAULT NULL COMMENT '排序号',
  139. `account` varchar(50) NOT NULL COMMENT '账户名',
  140. `client_host` varchar(50) DEFAULT NULL COMMENT '登录IP地址',
  141. `parameter` varchar(1024) DEFAULT NULL COMMENT '请求参数',
  142. `method` varchar(50) DEFAULT NULL COMMENT '请求方法',
  143. `enable` tinyint(1) NOT NULL DEFAULT '1' COMMENT '启用状态',
  144. `remark` varchar(1024) DEFAULT NULL COMMENT '字典描述',
  145. `create_time` datetime DEFAULT NULL,
  146. `create_by` varchar(50) DEFAULT NULL COMMENT '创建人',
  147. `update_time` datetime DEFAULT NULL,
  148. `update_by` varchar(50) DEFAULT NULL COMMENT '更新人',
  149. PRIMARY KEY (`id`),
  150. KEY `idx_account` (`account`)
  151. ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='操作日志表';
  152. -- ----------------------------
  153. -- Records of sys_event_oper
  154. -- ----------------------------
  155. -- ----------------------------
  156. -- Table structure for sys_menu
  157. -- ----------------------------
  158. DROP TABLE IF EXISTS `sys_menu`;
  159. CREATE TABLE `sys_menu` (
  160. `id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '菜单ID',
  161. `platform_id` tinyint(1) NOT NULL DEFAULT '0' COMMENT '平台ID(0:通用,1:系统,2:接收,3:保存,4:管理,5:利用)',
  162. `parent_id` bigint(20) NOT NULL COMMENT '上级菜单ID(root:0)',
  163. `name` varchar(100) DEFAULT NULL COMMENT '菜单名称',
  164. `permission` varchar(500) DEFAULT NULL COMMENT '授权,如(user:list,user:create)',
  165. `type` smallint(2) DEFAULT NULL COMMENT '菜单类型(0:目录;1:菜单;2:按钮)',
  166. `url` varchar(100) DEFAULT NULL COMMENT '请求地址',
  167. `expand` tinyint(1) NOT NULL DEFAULT '0' COMMENT '展开状态(1:展开;0:收缩)',
  168. `sort` int(2) DEFAULT NULL COMMENT '排序号',
  169. `is_leaf` tinyint(1) NOT NULL DEFAULT '1' COMMENT '叶子节点(0:树枝节点;1:叶子节点)',
  170. `enable` tinyint(1) NOT NULL DEFAULT '1' COMMENT '启用状态',
  171. `remark` varchar(1024) DEFAULT NULL,
  172. `create_time` datetime DEFAULT NULL,
  173. `create_by` varchar(50) DEFAULT NULL COMMENT '创建人',
  174. `update_time` datetime DEFAULT NULL,
  175. `update_by` varchar(50) DEFAULT NULL COMMENT '更新人',
  176. PRIMARY KEY (`id`)
  177. ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='菜单表';
  178. -- ----------------------------
  179. -- Records of sys_menu
  180. -- ----------------------------
  181. -- ----------------------------
  182. -- Table structure for sys_menu_role
  183. -- ----------------------------
  184. DROP TABLE IF EXISTS `sys_menu_role`;
  185. CREATE TABLE `sys_menu_role` (
  186. `id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '用户角色表主键ID',
  187. `menu_id` bigint(20) DEFAULT NULL COMMENT '菜单ID',
  188. `role_id` bigint(20) DEFAULT NULL COMMENT '角色ID',
  189. `enable` tinyint(1) NOT NULL DEFAULT '1' COMMENT '启用状态',
  190. `remark` varchar(1024) DEFAULT NULL COMMENT '备注',
  191. `create_time` datetime DEFAULT NULL COMMENT '创建时间',
  192. `create_by` varchar(50) DEFAULT NULL COMMENT '创建人',
  193. `update_time` datetime DEFAULT NULL COMMENT '更新时间',
  194. `update_by` varchar(50) DEFAULT NULL COMMENT '更新人',
  195. PRIMARY KEY (`id`)
  196. ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='用户菜单表';
  197. -- ----------------------------
  198. -- Records of sys_menu_role
  199. -- ----------------------------
  200. -- ----------------------------
  201. -- Table structure for sys_notice
  202. -- ----------------------------
  203. DROP TABLE IF EXISTS `sys_notice`;
  204. CREATE TABLE `sys_notice` (
  205. `id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '公告编号',
  206. `notice_title` varchar(128) NOT NULL COMMENT '公告标题',
  207. `notice_type` varchar(8) NOT NULL COMMENT '公告类型',
  208. `send_time` datetime DEFAULT NULL COMMENT '发布时间',
  209. `sources_url` varchar(2048) DEFAULT NULL COMMENT '来源地址',
  210. `content` text COMMENT '内容',
  211. `status` varchar(2) NOT NULL DEFAULT '1' COMMENT '发布状态',
  212. `enable` tinyint(1) NOT NULL DEFAULT '1' COMMENT '启用状态',
  213. `remark` varchar(1024) DEFAULT NULL,
  214. `create_time` datetime DEFAULT NULL,
  215. `create_by` varchar(50) DEFAULT NULL COMMENT '创建人',
  216. `update_time` datetime DEFAULT NULL,
  217. `update_by` varchar(50) DEFAULT NULL COMMENT '更新人',
  218. PRIMARY KEY (`id`)
  219. ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='通知公告表';
  220. -- ----------------------------
  221. -- Records of sys_notice
  222. -- ----------------------------
  223. -- ----------------------------
  224. -- Table structure for sys_param
  225. -- ----------------------------
  226. DROP TABLE IF EXISTS `sys_param`;
  227. CREATE TABLE `sys_param` (
  228. `id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '主键ID',
  229. `key` varchar(50) DEFAULT NULL COMMENT '参数key',
  230. `value` varchar(100) DEFAULT NULL COMMENT '参数值',
  231. `label` varchar(255) DEFAULT NULL COMMENT '标签',
  232. `sort` int(2) DEFAULT NULL COMMENT '排序号',
  233. `enable` tinyint(1) NOT NULL DEFAULT '1' COMMENT '启用状态',
  234. `remark` varchar(1024) DEFAULT NULL,
  235. `create_time` datetime DEFAULT NULL,
  236. `create_by` varchar(50) DEFAULT NULL COMMENT '创建人',
  237. `update_time` datetime DEFAULT NULL,
  238. `update_by` varchar(50) DEFAULT NULL COMMENT '更新人',
  239. PRIMARY KEY (`id`)
  240. ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='系统参数表';
  241. -- ----------------------------
  242. -- Records of sys_param
  243. -- ----------------------------
  244. -- ----------------------------
  245. -- Table structure for sys_permission
  246. -- ----------------------------
  247. DROP TABLE IF EXISTS `sys_permission`;
  248. CREATE TABLE `sys_permission` (
  249. `id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '权限ID',
  250. `platform_id` tinyint(2) NOT NULL DEFAULT '0' COMMENT '平台ID(0:通用,1:系统,2:接收,3:保存,4:管理,5:利用)',
  251. `name` varchar(100) DEFAULT NULL COMMENT '权限名称',
  252. `perm` varchar(100) DEFAULT NULL COMMENT '权限代码',
  253. `description` varchar(100) DEFAULT NULL COMMENT '权限描述',
  254. `enable` tinyint(1) NOT NULL DEFAULT '1' COMMENT '启用状态',
  255. `remark` varchar(1024) DEFAULT NULL,
  256. `create_time` datetime DEFAULT NULL,
  257. `create_by` varchar(50) DEFAULT NULL COMMENT '创建人',
  258. `update_time` datetime DEFAULT NULL,
  259. `update_by` varchar(50) DEFAULT NULL COMMENT '更新人',
  260. PRIMARY KEY (`id`)
  261. ) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=utf8 COMMENT='权限表';
  262. -- ----------------------------
  263. -- Records of sys_permission
  264. -- ----------------------------
  265. INSERT INTO `sys_permission` VALUES ('1', '1', '角色相关权限', 'sys.role', null, '1', null, null, null, null, null);
  266. INSERT INTO `sys_permission` VALUES ('2', '1', '用户相关权限', 'sys.user', null, '1', null, null, null, null, null);
  267. -- ----------------------------
  268. -- Table structure for sys_role
  269. -- ----------------------------
  270. DROP TABLE IF EXISTS `sys_role`;
  271. CREATE TABLE `sys_role` (
  272. `id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '角色ID',
  273. `name` varchar(50) DEFAULT NULL COMMENT '角色名称',
  274. `code` varchar(255) NOT NULL DEFAULT '' COMMENT '角色代码',
  275. `perms` varchar(500) DEFAULT NULL COMMENT '权限列表',
  276. `enable` tinyint(1) NOT NULL DEFAULT '1' COMMENT '启用状态',
  277. `remark` varchar(1024) DEFAULT NULL,
  278. `create_time` datetime DEFAULT NULL,
  279. `create_by` varchar(50) DEFAULT NULL COMMENT '创建人',
  280. `update_time` datetime DEFAULT NULL,
  281. `update_by` varchar(50) DEFAULT NULL COMMENT '更新人',
  282. PRIMARY KEY (`id`)
  283. ) ENGINE=InnoDB AUTO_INCREMENT=7 DEFAULT CHARSET=utf8 COMMENT='角色表';
  284. -- ----------------------------
  285. -- Records of sys_role
  286. -- ----------------------------
  287. INSERT INTO `sys_role` VALUES ('1', '超级管理员', 'ROLE_ADMIN', '0:user:crud,0:role:crud', '1', null, null, null, null, null);
  288. INSERT INTO `sys_role` VALUES ('2', '系统管理员', 'ROLE_SYSTEM', '0:user:crud,0:role:crud,0:test:cru', '1', null, null, null, '2018-03-30 08:53:19', 'admin');
  289. INSERT INTO `sys_role` VALUES ('3', 'TEST', 'ROLE_TEST', '2:test:crud,1:test:c,1:testa:c', '0', '', '2018-03-30 02:27:31', 'admin', '2018-04-10 01:26:01', 'admin');
  290. INSERT INTO `sys_role` VALUES ('4', 'Test2', 'ROLE_TEST2', '1:test:c,2:test:r', '1', '123123', '2018-04-02 08:12:04', 'admin', null, null);
  291. INSERT INTO `sys_role` VALUES ('5', '备份', 'ROLE_BACKUP', '0:backup:crd', '1', '', '2018-04-12 09:33:53', 'admin', '2018-04-12 13:33:06', 'liusen');
  292. INSERT INTO `sys_role` VALUES ('6', '审批', 'ROLE_SP', '1:backup2:cr', '1', '', '2018-04-12 09:34:39', 'admin', '2018-04-12 13:09:40', 'liusen');
  293. -- ----------------------------
  294. -- Table structure for sys_user
  295. -- ----------------------------
  296. DROP TABLE IF EXISTS `sys_user`;
  297. CREATE TABLE `sys_user` (
  298. `id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '用户主键ID',
  299. `account` varchar(20) DEFAULT NULL COMMENT '登陆帐户',
  300. `username` varchar(30) DEFAULT NULL COMMENT '姓名',
  301. `password` varchar(50) DEFAULT NULL COMMENT '密码',
  302. `salt` varchar(20) DEFAULT NULL COMMENT '密码盐值',
  303. `phone` varchar(50) DEFAULT NULL COMMENT '电话',
  304. `email` varchar(64) DEFAULT NULL COMMENT '邮箱',
  305. `position` varchar(64) DEFAULT NULL COMMENT '职位',
  306. `address` varchar(256) DEFAULT NULL COMMENT '详细地址',
  307. `staff_no` varchar(32) DEFAULT NULL COMMENT '工号',
  308. `ext1` varchar(100) DEFAULT NULL COMMENT '备用字段',
  309. `ext2` varchar(100) DEFAULT NULL COMMENT '备用字段',
  310. `ext3` varchar(100) DEFAULT NULL COMMENT '备用字段',
  311. `ext4` varchar(100) DEFAULT NULL COMMENT '备用字段',
  312. `enable` bit(1) NOT NULL DEFAULT b'1',
  313. `gender` tinyint(4) DEFAULT '-1' COMMENT '性别,定义 1:男 0:女 -1:保密',
  314. `remark` varchar(1024) DEFAULT NULL,
  315. `create_time` datetime DEFAULT NULL,
  316. `create_by` varchar(50) DEFAULT NULL COMMENT '创建人',
  317. `update_time` datetime DEFAULT NULL,
  318. `update_by` varchar(50) DEFAULT NULL COMMENT '更新人',
  319. PRIMARY KEY (`id`),
  320. UNIQUE KEY `account` (`account`)
  321. ) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=utf8 COMMENT='用户管理';
  322. -- ----------------------------
  323. -- Records of sys_user
  324. -- ----------------------------
  325. INSERT INTO `sys_user` VALUES ('1', 'admin', 'admin', '13df2464fbdaea9269bb1419fec136da', 'kidntkdij', '13333333333', '123@123.com', '欸之', '地球上某个奇怪的小山村', '213822', null, null, null, null, '', '-1', '1', null, null, '2018-04-02 09:00:10', 'admin');
  326. INSERT INTO `sys_user` VALUES ('2', 'liusen', 'ls', '8b3fe2a3ba637abca33e35f17259cbfb', '졅ᯄ뇺핿觲瀍掩⯟', '1234564', '', '', '', '', null, null, null, null, '', '-1', '', '2018-04-12 09:35:13', 'admin', '2018-04-12 13:08:41', 'liusen');
  327. -- ----------------------------
  328. -- Table structure for sys_user_role
  329. -- ----------------------------
  330. DROP TABLE IF EXISTS `sys_user_role`;
  331. CREATE TABLE `sys_user_role` (
  332. `id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '用户角色表主键ID',
  333. `role_id` bigint(20) DEFAULT NULL COMMENT '角色ID',
  334. `user_id` bigint(20) DEFAULT NULL COMMENT '用户ID',
  335. `enable` tinyint(1) NOT NULL DEFAULT '1' COMMENT '启用状态',
  336. `remark` varchar(1024) DEFAULT NULL,
  337. `create_time` datetime DEFAULT NULL,
  338. `create_by` varchar(50) DEFAULT NULL COMMENT '创建人',
  339. `update_time` datetime DEFAULT NULL,
  340. `update_by` varchar(50) DEFAULT NULL COMMENT '更新人',
  341. PRIMARY KEY (`id`)
  342. ) ENGINE=InnoDB AUTO_INCREMENT=5 DEFAULT CHARSET=utf8 COMMENT='用户角色表';
  343. -- ----------------------------
  344. -- Records of sys_user_role
  345. -- ----------------------------
  346. INSERT INTO `sys_user_role` VALUES ('1', '1', '1', '1', null, null, null, null, null);
  347. INSERT INTO `sys_user_role` VALUES ('2', '2', '1', '1', null, null, null, null, null);
  348. INSERT INTO `sys_user_role` VALUES ('3', '5', '2', '1', null, '2018-04-12 09:35:13', 'admin', null, null);