zen-sys.sql 3.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  1. /*
  2. Navicat MySQL Data Transfer
  3. Source Server : local
  4. Source Server Type : MySQL
  5. Source Server Version : 50720
  6. Source Host : localhost:3306
  7. Source Schema : zen-sys
  8. Target Server Type : MySQL
  9. Target Server Version : 50720
  10. File Encoding : 65001
  11. Date: 23/01/2018 17:33:24
  12. */
  13. SET NAMES utf8mb4;
  14. SET FOREIGN_KEY_CHECKS = 0;
  15. -- ----------------------------
  16. -- Table structure for t_sys_user
  17. -- ----------------------------
  18. DROP TABLE IF EXISTS `t_sys_user`;
  19. CREATE TABLE `t_sys_user` (
  20. `account` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL,
  21. `password` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL,
  22. `user_type` timestamp(0) NULL DEFAULT NULL ON UPDATE CURRENT_TIMESTAMP(0),
  23. `name` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL,
  24. `phone` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL,
  25. `dept_id` bigint(20) NULL DEFAULT NULL,
  26. `avatar` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL,
  27. `staff_no` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL,
  28. `id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '系统编号',
  29. `create_by` varchar(64) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '创建者',
  30. `create_time` datetime(0) NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
  31. `update_by` varchar(64) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '更新者',
  32. `update_time` datetime(0) NULL DEFAULT CURRENT_TIMESTAMP COMMENT '更新时间',
  33. `remark` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '备注信息',
  34. `enable` char(1) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL DEFAULT '1' COMMENT '启用标记',
  35. PRIMARY KEY (`id`) USING BTREE
  36. ) ENGINE = InnoDB AUTO_INCREMENT = 2 CHARACTER SET = utf8 COLLATE = utf8_general_ci ROW_FORMAT = Dynamic;
  37. -- ----------------------------
  38. -- Records of t_sys_user
  39. -- ----------------------------
  40. INSERT INTO `t_sys_user` VALUES ('root', '123456', NULL, '管理员', NULL, NULL, NULL, NULL, 1, NULL, '2018-01-23 17:33:13', NULL, '2018-01-23 17:33:13', NULL, '1');
  41. -- ----------------------------
  42. -- Table structure for test
  43. -- ----------------------------
  44. DROP TABLE IF EXISTS `test`;
  45. CREATE TABLE `test` (
  46. `name` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL,
  47. `times` datetime(0) NULL DEFAULT NULL,
  48. `id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '系统编号',
  49. `create_by` varchar(64) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '创建者',
  50. `create_time` datetime(0) NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
  51. `update_by` varchar(64) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '更新者',
  52. `update_time` datetime(0) NULL DEFAULT CURRENT_TIMESTAMP COMMENT '更新时间',
  53. `remark` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '备注信息',
  54. `enable` char(1) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL DEFAULT '1' COMMENT '删除标记',
  55. PRIMARY KEY (`id`) USING BTREE
  56. ) ENGINE = InnoDB AUTO_INCREMENT = 2 CHARACTER SET = utf8 COLLATE = utf8_general_ci ROW_FORMAT = Dynamic;
  57. -- ----------------------------
  58. -- Records of test
  59. -- ----------------------------
  60. INSERT INTO `test` VALUES ('root', '2018-01-23 17:19:28', 1, NULL, '2018-01-23 17:19:31', NULL, '2018-01-23 17:19:31', NULL, '0');
  61. SET FOREIGN_KEY_CHECKS = 1;