diff --git a/db-file/opsli-boot.sql b/db-file/opsli-boot.sql
index 1a93a7a..2aa020f 100644
--- a/db-file/opsli-boot.sql
+++ b/db-file/opsli-boot.sql
@@ -3,15 +3,15 @@
Source Server : OPSLI 快速开发平台
Source Server Type : MySQL
- Source Server Version : 50733
- Source Host : 127.0.0.1
- Source Schema : base-opsli-boot
+ Source Server Version : 50729
+ Source Host : 127.0.0.1:3306
+ Source Schema : opsli-boot
Target Server Type : MySQL
- Target Server Version : 50733
+ Target Server Version : 50729
File Encoding : 65001
- Date: 04/05/2021 21:19:42
+ Date: 07/05/2021 19:30:16
*/
SET NAMES utf8mb4;
@@ -21,103 +21,98 @@ SET FOREIGN_KEY_CHECKS = 0;
-- Table structure for creater_logs
-- ----------------------------
DROP TABLE IF EXISTS `creater_logs`;
-CREATE TABLE `creater_logs` (
+CREATE TABLE `creater_logs` (
`id` bigint(19) NOT NULL COMMENT '主键',
`table_id` bigint(19) NOT NULL COMMENT '归属表ID',
- `package_name` varchar(255) NOT NULL COMMENT '生成包名',
- `module_name` varchar(40) NOT NULL COMMENT '生成模块名',
- `sub_module_name` varchar(40) DEFAULT NULL COMMENT '生成子模块名',
- `code_title` varchar(100) NOT NULL COMMENT '代码标题',
- `code_title_brief` varchar(100) NOT NULL COMMENT '代码标题简介',
- `author_name` varchar(64) NOT NULL COMMENT '作者名',
+ `package_name` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '生成包名',
+ `module_name` varchar(40) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '生成模块名',
+ `sub_module_name` varchar(40) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '生成子模块名',
+ `code_title` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '代码标题',
+ `code_title_brief` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '代码标题简介',
+ `author_name` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '作者名',
`version` int(11) NOT NULL COMMENT '版本(乐观锁)',
`create_by` bigint(19) NOT NULL COMMENT '创建用户',
- `create_time` datetime NOT NULL COMMENT '创建日期',
+ `create_time` datetime(0) NOT NULL COMMENT '创建日期',
`update_by` bigint(19) NOT NULL COMMENT '修改用户',
- `update_time` datetime NOT NULL COMMENT '修改日期',
+ `update_time` datetime(0) NOT NULL COMMENT '修改日期',
PRIMARY KEY (`id`) USING BTREE,
- UNIQUE KEY `table` (`id`,`table_id`) USING BTREE
-) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='代码生成器 - 生成日志';
+ UNIQUE INDEX `table`(`id`, `table_id`) USING BTREE
+) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '代码生成器 - 生成日志' ROW_FORMAT = Dynamic;
-- ----------------------------
-- Records of creater_logs
-- ----------------------------
-BEGIN;
INSERT INTO `creater_logs` VALUES (1329754468468400129, 1329754301400883202, 'org.opsli.modulars', 'gentest', 'user', '某系统用户', '用户', '周鹏程', 54, 1313694379541635074, '2020-11-20 19:52:26', 1, '2020-11-27 16:08:48');
INSERT INTO `creater_logs` VALUES (1340631269252005889, 1340630022558056449, 'org.opsli.modulars', 'gentest', 'carinfo', '汽车信息', '汽车信息', 'Parker', 0, 1313694379541635074, '2020-12-20 20:12:57', 1313694379541635074, '2021-02-04 18:48:21');
INSERT INTO `creater_logs` VALUES (1358361017146384386, 1358360266068172802, 'org.opsli.modulars', 'sys', 'options', '系统参数', '系统参数', 'Parker', 0, 1313694379541635074, '2021-02-07 18:24:38', 1313694379541635074, '2021-04-29 11:42:46');
INSERT INTO `creater_logs` VALUES (1359429290382323714, 1359428685312028674, 'org.opsli.modulars.system', 'other', 'crypto', '非对称加密管理', '非对称加密', 'Parker', 0, 1313694379541635074, '2021-02-10 17:09:34', 1313694379541635074, '2021-04-09 09:14:09');
-COMMIT;
-- ----------------------------
-- Table structure for creater_table
-- ----------------------------
DROP TABLE IF EXISTS `creater_table`;
-CREATE TABLE `creater_table` (
+CREATE TABLE `creater_table` (
`id` bigint(19) NOT NULL COMMENT '主键',
- `table_name` varchar(100) NOT NULL COMMENT '表名称',
- `old_table_name` varchar(100) NOT NULL COMMENT '表名称',
- `table_type` varchar(30) NOT NULL COMMENT '表类型',
- `comments` varchar(200) NOT NULL COMMENT '描述',
- `jdbc_type` varchar(30) NOT NULL DEFAULT '0' COMMENT '数据库类型 { MySQL\\Oracle\\SQLServer ...}',
- `iz_sync` char(1) DEFAULT '0' COMMENT '同步',
- `remark` varchar(255) DEFAULT NULL COMMENT '备注信息',
+ `table_name` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '表名称',
+ `old_table_name` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '表名称',
+ `table_type` varchar(30) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '表类型',
+ `comments` varchar(200) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '描述',
+ `jdbc_type` varchar(30) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '0' COMMENT '数据库类型 { MySQL\\Oracle\\SQLServer ...}',
+ `iz_sync` char(1) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '0' COMMENT '同步',
+ `remark` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '备注信息',
`version` int(11) NOT NULL COMMENT '版本(乐观锁)',
`create_by` bigint(19) NOT NULL COMMENT '创建用户',
- `create_time` datetime NOT NULL COMMENT '创建日期',
+ `create_time` datetime(0) NOT NULL COMMENT '创建日期',
`update_by` bigint(19) NOT NULL COMMENT '修改用户',
- `update_time` datetime NOT NULL COMMENT '修改日期',
+ `update_time` datetime(0) NOT NULL COMMENT '修改日期',
PRIMARY KEY (`id`) USING BTREE,
- KEY `creater_table_name` (`table_name`) USING BTREE
-) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='代码生成器 - 表信息';
+ INDEX `creater_table_name`(`table_name`) USING BTREE
+) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '代码生成器 - 表信息' ROW_FORMAT = Dynamic;
-- ----------------------------
-- Records of creater_table
-- ----------------------------
-BEGIN;
INSERT INTO `creater_table` VALUES (1329754301400883202, 'test_user', 'test_user', '0', '某系统用户', 'mysql', '0', '测试用户', 8, 1313694379541635074, '2020-11-20 19:51:46', 1, '2020-11-27 15:44:57');
INSERT INTO `creater_table` VALUES (1340630022558056449, 'test_car', 'test_car', '0', '测试汽车', 'mysql', '1', NULL, 1, 1313694379541635074, '2020-12-20 20:08:00', 1313694379541635074, '2020-12-20 20:10:48');
INSERT INTO `creater_table` VALUES (1356152016136482817, 'test_car_copy1', 'test_car_copy1', '0', '测试', 'mysql', '1', NULL, 0, 1313694379541635074, '2021-02-01 16:06:51', 1313694379541635074, '2021-02-01 16:06:51');
INSERT INTO `creater_table` VALUES (1358360266068172802, 'sys_options', 'sys_options', '0', '系统参数', 'mysql', '0', NULL, 1, 1313694379541635074, '2021-02-07 18:21:39', 1313694379541635074, '2021-02-07 18:23:54');
INSERT INTO `creater_table` VALUES (1359428685312028674, 'other_crypto_asymmetric', 'other_crypto_asymmetric', '0', '非对称加密表', 'mysql', '0', NULL, 2, 1313694379541635074, '2021-02-10 17:07:10', 1313694379541635074, '2021-02-10 17:08:21');
-COMMIT;
-- ----------------------------
-- Table structure for creater_table_column
-- ----------------------------
DROP TABLE IF EXISTS `creater_table_column`;
-CREATE TABLE `creater_table_column` (
+CREATE TABLE `creater_table_column` (
`id` bigint(19) NOT NULL COMMENT '主键',
`table_id` bigint(19) NOT NULL COMMENT '归属表ID',
- `field_name` varchar(100) NOT NULL COMMENT '字段名称',
- `field_type` varchar(100) NOT NULL COMMENT '字段类型',
- `field_length` int(11) DEFAULT NULL COMMENT '字段长度',
- `field_precision` int(11) DEFAULT NULL COMMENT '字段精度',
- `field_comments` varchar(200) NOT NULL COMMENT '字段描述',
- `iz_pk` char(1) DEFAULT NULL COMMENT '是否主键',
- `iz_not_null` char(1) DEFAULT NULL COMMENT '是否可为空',
- `iz_show_list` char(1) DEFAULT NULL COMMENT '是否列表字段',
- `iz_show_form` char(1) DEFAULT NULL COMMENT '是否表单显示',
- `query_type` varchar(100) DEFAULT NULL COMMENT '检索类别',
- `java_type` varchar(50) NOT NULL COMMENT 'Java数据类型',
- `show_type` char(1) DEFAULT NULL COMMENT '字段生成方案(文本框、文本域、下拉框、复选框、单选框、字典选择、人员选择、部门选择、区域选择)',
- `dict_type_code` varchar(120) DEFAULT NULL COMMENT '字典类型',
+ `field_name` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '字段名称',
+ `field_type` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '字段类型',
+ `field_length` int(11) NULL DEFAULT NULL COMMENT '字段长度',
+ `field_precision` int(11) NULL DEFAULT NULL COMMENT '字段精度',
+ `field_comments` varchar(200) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '字段描述',
+ `iz_pk` char(1) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '是否主键',
+ `iz_not_null` char(1) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '是否可为空',
+ `iz_show_list` char(1) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '是否列表字段',
+ `iz_show_form` char(1) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '是否表单显示',
+ `query_type` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '检索类别',
+ `java_type` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT 'Java数据类型',
+ `show_type` char(1) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '字段生成方案(文本框、文本域、下拉框、复选框、单选框、字典选择、人员选择、部门选择、区域选择)',
+ `dict_type_code` varchar(120) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '字典类型',
`sort` smallint(6) NOT NULL COMMENT '排序(升序)',
- `validate_type` varchar(500) DEFAULT NULL COMMENT '验证类别',
+ `validate_type` varchar(500) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '验证类别',
`version` int(11) NOT NULL COMMENT '版本(乐观锁)',
`create_by` bigint(19) NOT NULL COMMENT '创建用户',
- `create_time` datetime NOT NULL COMMENT '创建日期',
+ `create_time` datetime(0) NOT NULL COMMENT '创建日期',
`update_by` bigint(19) NOT NULL COMMENT '修改用户',
- `update_time` datetime NOT NULL COMMENT '修改日期',
+ `update_time` datetime(0) NOT NULL COMMENT '修改日期',
PRIMARY KEY (`id`) USING BTREE,
- KEY `creater_table_column_sort` (`sort`) USING BTREE,
- KEY `creater_table_column_table_id` (`table_id`,`field_name`) USING BTREE
-) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='代码生成器 - 表结构\r\n';
+ INDEX `creater_table_column_sort`(`sort`) USING BTREE,
+ INDEX `creater_table_column_table_id`(`table_id`, `field_name`) USING BTREE
+) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '代码生成器 - 表结构\r\n' ROW_FORMAT = Dynamic;
-- ----------------------------
-- Records of creater_table_column
-- ----------------------------
-BEGIN;
INSERT INTO `creater_table_column` VALUES (1332228902949236737, 1329754301400883202, 'id', 'bigint', 19, 0, '主键', '1', '1', '0', '0', NULL, 'String', NULL, NULL, 0, '', 0, 1, '2020-11-27 15:44:57', 1, '2020-11-27 15:44:57');
INSERT INTO `creater_table_column` VALUES (1332228902974402562, 1329754301400883202, 'name', 'varchar', 50, 0, '名称', '0', '0', '1', '1', 'LIKE', 'String', '0', NULL, 1, 'IS_GENERAL_WITH_CHINESE', 0, 1, '2020-11-27 15:44:57', 1, '2020-11-27 15:44:57');
INSERT INTO `creater_table_column` VALUES (1332228902986985474, 1329754301400883202, 'money', 'double', 6, 2, '金钱', '0', '1', '1', '1', 'RANGE', 'Double', '0', NULL, 2, 'IS_MONEY', 0, 1, '2020-11-27 15:44:57', 1, '2020-11-27 15:44:57');
@@ -175,34 +170,32 @@ INSERT INTO `creater_table_column` VALUES (1359428984495927297, 1359428685312028
INSERT INTO `creater_table_column` VALUES (1359428984537870338, 1359428685312028674, 'create_time', 'datetime', 0, 0, '创建日期', '0', '1', '0', '0', NULL, 'Date', NULL, NULL, 6, '', 0, 1313694379541635074, '2021-02-10 17:08:22', 1313694379541635074, '2021-02-10 17:08:22');
INSERT INTO `creater_table_column` VALUES (1359428984571424769, 1359428685312028674, 'update_by', 'bigint', 19, 0, '修改用户', '0', '1', '0', '0', NULL, 'String', NULL, NULL, 7, '', 0, 1313694379541635074, '2021-02-10 17:08:22', 1313694379541635074, '2021-02-10 17:08:22');
INSERT INTO `creater_table_column` VALUES (1359428984609173506, 1359428685312028674, 'update_time', 'datetime', 0, 0, '修改日期', '0', '1', '0', '0', NULL, 'Date', NULL, NULL, 8, '', 0, 1313694379541635074, '2021-02-10 17:08:22', 1313694379541635074, '2021-02-10 17:08:22');
-COMMIT;
-- ----------------------------
-- Table structure for sys_area
-- ----------------------------
DROP TABLE IF EXISTS `sys_area`;
-CREATE TABLE `sys_area` (
+CREATE TABLE `sys_area` (
`id` bigint(19) NOT NULL COMMENT '唯一主键',
- `parent_id` bigint(19) DEFAULT NULL COMMENT '上级ID',
- `area_code` varchar(40) NOT NULL COMMENT '地域编号',
- `area_name` varchar(40) DEFAULT NULL COMMENT '地域名称',
+ `parent_id` bigint(19) NULL DEFAULT NULL COMMENT '上级ID',
+ `area_code` varchar(40) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '地域编号',
+ `area_name` varchar(40) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '地域名称',
`area_type` int(5) NOT NULL COMMENT '地域类型',
- `deleted` char(1) NOT NULL DEFAULT '0' COMMENT '删除标记:0未删除,1删除',
- `version` int(11) NOT NULL DEFAULT '0' COMMENT '版本(乐观锁)',
+ `deleted` char(1) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '0' COMMENT '删除标记:0未删除,1删除',
+ `version` int(11) NOT NULL DEFAULT 0 COMMENT '版本(乐观锁)',
`create_by` bigint(19) NOT NULL COMMENT '创建用户',
- `create_time` datetime NOT NULL COMMENT '创建日期',
+ `create_time` datetime(0) NOT NULL COMMENT '创建日期',
`update_by` bigint(19) NOT NULL COMMENT '修改用户',
- `update_time` datetime NOT NULL COMMENT '修改日期',
- `ts` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '时间戳',
+ `update_time` datetime(0) NOT NULL COMMENT '修改日期',
+ `ts` timestamp(0) NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP(0) COMMENT '时间戳',
PRIMARY KEY (`id`) USING BTREE,
- UNIQUE KEY `area` (`area_code`) USING BTREE,
- KEY `parent_id` (`parent_id`) USING BTREE
-) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='地区表';
+ UNIQUE INDEX `area`(`area_code`) USING BTREE,
+ INDEX `parent_id`(`parent_id`) USING BTREE
+) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '地区表' ROW_FORMAT = Dynamic;
-- ----------------------------
-- Records of sys_area
-- ----------------------------
-BEGIN;
INSERT INTO `sys_area` VALUES (86, 0, '86', '中国', 0, '0', 3, 1, '2020-12-28 17:43:30', 1, '2021-01-25 17:36:59', '2021-04-08 23:50:42');
INSERT INTO `sys_area` VALUES (110000, 86, '110000', '北京市', 1, '0', 0, 1, '2020-12-28 17:43:30', 1, '2020-12-28 17:43:30', '2021-04-08 23:50:42');
INSERT INTO `sys_area` VALUES (110101, 110000, '110101', '东城区', 2, '0', 0, 1, '2020-12-28 17:43:30', 1, '2020-12-28 17:43:30', '2021-04-08 23:50:42');
@@ -3416,33 +3409,31 @@ INSERT INTO `sys_area` VALUES (659010, 650000, '659010', '胡杨河市', 2, '0',
INSERT INTO `sys_area` VALUES (710000, 86, '710000', '台湾省', 1, '0', 0, 1, '2020-12-28 17:43:31', 1, '2020-12-28 17:43:31', '2021-04-08 23:50:42');
INSERT INTO `sys_area` VALUES (810000, 86, '810000', '香港特别行政区', 1, '0', 0, 1, '2020-12-28 17:43:31', 1, '2020-12-28 17:43:31', '2021-04-08 23:50:42');
INSERT INTO `sys_area` VALUES (820000, 86, '820000', '澳门特别行政区', 1, '0', 0, 1, '2020-12-28 17:43:31', 1, '2020-12-28 17:43:31', '2021-04-08 23:50:42');
-COMMIT;
-- ----------------------------
-- Table structure for sys_dict
-- ----------------------------
DROP TABLE IF EXISTS `sys_dict`;
-CREATE TABLE `sys_dict` (
+CREATE TABLE `sys_dict` (
`id` bigint(19) NOT NULL COMMENT '字典主键',
- `type_code` varchar(120) NOT NULL COMMENT '字典编号',
- `type_name` varchar(120) NOT NULL COMMENT '字典名称',
- `iz_lock` char(1) NOT NULL COMMENT '是否内置 0否 1是',
- `remark` varchar(255) DEFAULT NULL COMMENT '备注',
- `deleted` char(1) NOT NULL DEFAULT '0' COMMENT '删除标记:0未删除,1删除',
+ `type_code` varchar(120) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '字典编号',
+ `type_name` varchar(120) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '字典名称',
+ `iz_lock` char(1) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '是否内置 0否 1是',
+ `remark` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '备注',
+ `deleted` char(1) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '0' COMMENT '删除标记:0未删除,1删除',
`version` int(11) NOT NULL COMMENT '版本(乐观锁)',
`create_by` bigint(19) NOT NULL COMMENT '创建人',
- `create_time` datetime NOT NULL COMMENT '创建时间',
+ `create_time` datetime(0) NOT NULL COMMENT '创建时间',
`update_by` bigint(19) NOT NULL COMMENT '修改人',
- `update_time` datetime NOT NULL COMMENT '修改时间',
- `ts` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '时间戳',
+ `update_time` datetime(0) NOT NULL COMMENT '修改时间',
+ `ts` timestamp(0) NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP(0) COMMENT '时间戳',
PRIMARY KEY (`id`) USING BTREE,
- KEY `type_code_typename_unique` (`type_code`,`type_name`) USING BTREE
-) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='字典表';
+ INDEX `type_code_typename_unique`(`type_code`, `type_name`) USING BTREE
+) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '字典表' ROW_FORMAT = Dynamic;
-- ----------------------------
-- Records of sys_dict
-- ----------------------------
-BEGIN;
INSERT INTO `sys_dict` VALUES (1308396497528434689, '010110', '测试字典123', '1', '测试修改 - 123123', '1', 2, 1, '2020-09-22 08:23:28', 1, '2020-09-22 10:59:29', '2021-04-08 23:50:52');
INSERT INTO `sys_dict` VALUES (1308782322607058946, 'test_type', '测试类型', '1', '测试类型', '0', 23, 1, '2020-09-23 09:56:36', 1, '2020-11-21 17:55:50', '2021-04-08 23:50:52');
INSERT INTO `sys_dict` VALUES (1314920925140922369, 'test', '测试', '0', NULL, '0', 3, 1313694379541635074, '2020-10-10 21:29:13', 1313694379541635074, '2020-10-10 21:57:32', '2021-04-08 23:50:52');
@@ -3460,36 +3451,34 @@ INSERT INTO `sys_dict` VALUES (1346735875094847489, '123123', '测试', '0', NUL
INSERT INTO `sys_dict` VALUES (1380172509525946369, 'crypto_asymmetric', '非对称加密', '1', NULL, '0', 0, 1313694379541635074, '2021-04-08 22:55:43', 1313694379541635074, '2021-04-08 22:55:43', '2021-04-08 23:50:52');
INSERT INTO `sys_dict` VALUES (1388562098925977601, 'storage_type', '存储位置', '1', NULL, '0', 1, 1313694379541635074, '2021-05-02 02:32:57', 1, '2021-05-02 02:34:39', '2021-05-02 02:34:38');
INSERT INTO `sys_dict` VALUES (1389291635615805442, 'password_level', '密码强度', '1', NULL, '0', 0, 1313694379541635074, '2021-05-04 02:51:52', 1313694379541635074, '2021-05-04 02:51:52', '2021-05-04 02:51:52');
-COMMIT;
-- ----------------------------
-- Table structure for sys_dict_detail
-- ----------------------------
DROP TABLE IF EXISTS `sys_dict_detail`;
-CREATE TABLE `sys_dict_detail` (
+CREATE TABLE `sys_dict_detail` (
`id` bigint(19) NOT NULL COMMENT '字典明细主键',
- `type_id` varchar(32) NOT NULL COMMENT '类型ID',
- `type_code` varchar(120) NOT NULL COMMENT '类型code 冗余字段',
- `dict_name` varchar(120) NOT NULL COMMENT '字典名称',
- `dict_value` varchar(120) NOT NULL COMMENT '字典值',
- `iz_lock` char(1) NOT NULL COMMENT '是否内置 0否 1是',
+ `type_id` varchar(32) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '类型ID',
+ `type_code` varchar(120) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '类型code 冗余字段',
+ `dict_name` varchar(120) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '字典名称',
+ `dict_value` varchar(120) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '字典值',
+ `iz_lock` char(1) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '是否内置 0否 1是',
`sort_no` int(11) NOT NULL COMMENT '排序',
- `remark` varchar(255) DEFAULT NULL COMMENT '备注',
- `deleted` char(1) NOT NULL DEFAULT '0' COMMENT '删除状态',
+ `remark` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '备注',
+ `deleted` char(1) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '0' COMMENT '删除状态',
`version` int(11) NOT NULL COMMENT '版本(乐观锁)',
`create_by` bigint(19) NOT NULL COMMENT '创建人',
- `create_time` datetime NOT NULL COMMENT '创建时间',
+ `create_time` datetime(0) NOT NULL COMMENT '创建时间',
`update_by` bigint(19) NOT NULL COMMENT '修改人',
- `update_time` datetime NOT NULL COMMENT '修改时间',
- `ts` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '时间戳',
+ `update_time` datetime(0) NOT NULL COMMENT '修改时间',
+ `ts` timestamp(0) NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP(0) COMMENT '时间戳',
PRIMARY KEY (`id`) USING BTREE,
- KEY `dict_detail` (`type_code`,`dict_value`,`dict_name`) USING BTREE
-) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='字典表-明细';
+ INDEX `dict_detail`(`type_code`, `dict_value`, `dict_name`) USING BTREE
+) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '字典表-明细' ROW_FORMAT = Dynamic;
-- ----------------------------
-- Records of sys_dict_detail
-- ----------------------------
-BEGIN;
INSERT INTO `sys_dict_detail` VALUES (1308456445335597058, '1308396497528434689', '010110', 'abc', '0', '1', 0, '测试', '1', 1, 1, '2020-09-22 12:21:41', 1, '2020-09-22 12:22:11', '2021-04-08 23:50:57');
INSERT INTO `sys_dict_detail` VALUES (1308637708302524418, '1308396497528434689', '010110', '销售部', '0', '1', 0, '测试', '1', 0, 1, '2020-09-23 00:21:58', 1, '2020-09-23 00:21:58', '2021-04-08 23:50:57');
INSERT INTO `sys_dict_detail` VALUES (1308637974456291330, '1308396497528434689', '010110', '销售部', '0', '1', 0, '测试', '1', 0, 1, '2020-09-23 00:23:01', 1, '2020-09-23 00:23:01', '2021-04-08 23:50:57');
@@ -3585,40 +3574,38 @@ INSERT INTO `sys_dict_detail` VALUES (1389291836380360706, '1389291635615805442'
INSERT INTO `sys_dict_detail` VALUES (1389291876108808193, '1389291635615805442', 'password_level', '高', '2', '1', 3, NULL, '0', 0, 1, '2021-05-04 02:52:50', 1, '2021-05-04 02:52:50', '2021-05-04 02:52:49');
INSERT INTO `sys_dict_detail` VALUES (1389291921797361666, '1389291635615805442', 'password_level', '很高', '3', '1', 4, NULL, '0', 0, 1, '2021-05-04 02:53:01', 1, '2021-05-04 02:53:01', '2021-05-04 02:53:00');
INSERT INTO `sys_dict_detail` VALUES (1389291969885057026, '1389291635615805442', 'password_level', '非常高', '4', '1', 5, NULL, '0', 0, 1, '2021-05-04 02:53:12', 1, '2021-05-04 02:53:12', '2021-05-04 02:53:12');
-COMMIT;
-- ----------------------------
-- Table structure for sys_logs
-- ----------------------------
DROP TABLE IF EXISTS `sys_logs`;
-CREATE TABLE `sys_logs` (
+CREATE TABLE `sys_logs` (
`id` bigint(19) NOT NULL COMMENT '唯一主键',
- `type` char(1) CHARACTER SET utf8 COLLATE utf8_bin DEFAULT '1' COMMENT '日志类型',
- `title` varchar(255) CHARACTER SET utf8 COLLATE utf8_bin DEFAULT NULL COMMENT '日志标题',
- `remote_addr` varchar(255) CHARACTER SET utf8 COLLATE utf8_bin DEFAULT NULL COMMENT '操作IP地址',
- `user_agent` varchar(255) CHARACTER SET utf8 COLLATE utf8_bin DEFAULT NULL COMMENT '用户代理',
- `request_uri` varchar(255) CHARACTER SET utf8 COLLATE utf8_bin DEFAULT NULL COMMENT '请求URI',
- `method` varchar(5) CHARACTER SET utf8 COLLATE utf8_bin DEFAULT NULL COMMENT '操作方式',
- `timeout` bigint(20) DEFAULT NULL COMMENT '执行时间',
- `params` text CHARACTER SET utf8 COLLATE utf8_bin COMMENT '操作提交的数据',
- `exception` text CHARACTER SET utf8 COLLATE utf8_bin COMMENT '异常信息',
+ `type` char(1) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT '1' COMMENT '日志类型',
+ `title` varchar(255) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL COMMENT '日志标题',
+ `remote_addr` varchar(255) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL COMMENT '操作IP地址',
+ `user_agent` varchar(255) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL COMMENT '用户代理',
+ `request_uri` varchar(255) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL COMMENT '请求URI',
+ `method` varchar(5) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL COMMENT '操作方式',
+ `timeout` bigint(20) NULL DEFAULT NULL COMMENT '执行时间',
+ `params` text CHARACTER SET utf8 COLLATE utf8_bin NULL COMMENT '操作提交的数据',
+ `exception` text CHARACTER SET utf8 COLLATE utf8_bin NULL COMMENT '异常信息',
`version` int(11) NOT NULL COMMENT '版本(乐观锁)',
`create_by` bigint(19) NOT NULL COMMENT '创建者',
- `create_time` datetime NOT NULL COMMENT '创建时间',
+ `create_time` datetime(0) NOT NULL COMMENT '创建时间',
`update_by` bigint(19) NOT NULL COMMENT '修改人',
- `update_time` datetime NOT NULL COMMENT '修改时间',
- `ts` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '时间戳',
+ `update_time` datetime(0) NOT NULL COMMENT '修改时间',
+ `ts` timestamp(0) NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP(0) COMMENT '时间戳',
PRIMARY KEY (`id`) USING BTREE,
- KEY `sys_log_create_by` (`create_by`) USING BTREE,
- KEY `sys_log_request_uri` (`request_uri`) USING BTREE,
- KEY `sys_log_type` (`type`) USING BTREE,
- KEY `sys_log_create_date` (`create_time`) USING BTREE
-) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='日志表';
+ INDEX `sys_log_create_by`(`create_by`) USING BTREE,
+ INDEX `sys_log_request_uri`(`request_uri`) USING BTREE,
+ INDEX `sys_log_type`(`type`) USING BTREE,
+ INDEX `sys_log_create_date`(`create_time`) USING BTREE
+) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '日志表' ROW_FORMAT = Dynamic;
-- ----------------------------
-- Records of sys_logs
-- ----------------------------
-BEGIN;
INSERT INTO `sys_logs` VALUES (1314831905878708225, '1', 'org.opsli.modulars.system.logs.web.LogsRestController', '127.0.0.1', 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/86.0.4240.75 Safari/537.36', '/opsli-boot/api/v1/sys/logs/emptyByOneMonth', 'POST', 73, '[Ljava.lang.Object;@691f036b[{}]', NULL, 0, 1, '2020-10-10 15:35:29', 1, '2020-10-10 15:35:29', '2021-04-08 23:51:01');
INSERT INTO `sys_logs` VALUES (1314831950988447746, '1', 'org.opsli.modulars.system.logs.web.LogsRestController', '127.0.0.1', 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/86.0.4240.75 Safari/537.36', '/opsli-boot/api/v1/sys/logs/emptyByOneMonth', 'POST', 10, '[Ljava.lang.Object;@3b21612f[{}]', NULL, 0, 1, '2020-10-10 15:35:40', 1, '2020-10-10 15:35:40', '2021-04-08 23:51:01');
INSERT INTO `sys_logs` VALUES (1314847943487946753, '1', '运维工具-日志监控', '127.0.0.1', 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/86.0.4240.75 Safari/537.36', '/opsli-boot/api/v1/sys/logs/emptyByOneMonth', 'POST', 12, '[Ljava.lang.Object;@53e92d9[{}]', NULL, 0, 1, '2020-10-10 16:39:13', 1, '2020-10-10 16:39:13', '2021-04-08 23:51:01');
@@ -5927,45 +5914,43 @@ INSERT INTO `sys_logs` VALUES (1389565970968530946, '1', '系统配置-菜单管
INSERT INTO `sys_logs` VALUES (1389565981458485249, '1', '系统配置-菜单管理-删除', '127.0.0.1', 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/90.0.4430.85 Safari/537.36', '/opsli-boot/api/v1/sys/menu/del', 'POST', 58, '[\"1389564960657113089\"]', NULL, 0, 1, '2021-05-04 21:02:02', 1, '2021-05-04 21:02:02', '2021-05-04 21:02:01');
INSERT INTO `sys_logs` VALUES (1389566022705270785, '1', '开发工具-代码生成器-生成菜单', '127.0.0.1', 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/90.0.4430.85 Safari/537.36', '/opsli-boot/api/v1/creater/logs/createMenu', 'POST', 129, '[\"0\",\"1359428685312028674\"]', NULL, 0, 1, '2021-05-04 21:02:11', 1, '2021-05-04 21:02:11', '2021-05-04 21:02:11');
INSERT INTO `sys_logs` VALUES (1389566237814345729, '1', '系统配置-菜单管理-删除', '127.0.0.1', 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/90.0.4430.85 Safari/537.36', '/opsli-boot/api/v1/sys/menu/del', 'POST', 44, '[\"1389566022105485314\"]', NULL, 0, 1, '2021-05-04 21:03:03', 1, '2021-05-04 21:03:03', '2021-05-04 21:03:02');
-COMMIT;
-- ----------------------------
-- Table structure for sys_menu
-- ----------------------------
DROP TABLE IF EXISTS `sys_menu`;
-CREATE TABLE `sys_menu` (
+CREATE TABLE `sys_menu` (
`id` bigint(19) NOT NULL COMMENT '功能主键',
- `parent_id` bigint(19) DEFAULT '0' COMMENT '父级主键',
- `menu_name` varchar(50) NOT NULL COMMENT '名称',
- `permissions` varchar(50) DEFAULT NULL COMMENT '权限',
- `icon` varchar(50) DEFAULT NULL COMMENT '图标',
- `type` varchar(20) NOT NULL COMMENT '类型: 1-菜单 2-按钮 3-链接',
- `url` varchar(200) DEFAULT NULL COMMENT 'url地址',
- `component` varchar(200) DEFAULT NULL COMMENT '组件',
- `redirect` varchar(200) DEFAULT NULL COMMENT '重定向',
+ `parent_id` bigint(19) NULL DEFAULT 0 COMMENT '父级主键',
+ `menu_name` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '名称',
+ `permissions` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '权限',
+ `icon` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '图标',
+ `type` varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '类型: 1-菜单 2-按钮 3-链接',
+ `url` varchar(200) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT 'url地址',
+ `component` varchar(200) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '组件',
+ `redirect` varchar(200) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '重定向',
`sort_no` int(11) NOT NULL COMMENT '排序',
- `always_show` char(1) NOT NULL DEFAULT '0' COMMENT '是否总是显示 0是 1否',
- `hidden` char(1) NOT NULL DEFAULT '0' COMMENT '是否隐藏 0是 1否',
- `deleted` char(1) NOT NULL DEFAULT '0' COMMENT '删除状态',
+ `always_show` char(1) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '0' COMMENT '是否总是显示 0是 1否',
+ `hidden` char(1) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '0' COMMENT '是否隐藏 0是 1否',
+ `deleted` char(1) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '0' COMMENT '删除状态',
`version` int(11) NOT NULL COMMENT '版本(乐观锁)',
`create_by` bigint(19) NOT NULL COMMENT '创建用户',
- `create_time` datetime NOT NULL COMMENT '创建日期',
+ `create_time` datetime(0) NOT NULL COMMENT '创建日期',
`update_by` bigint(19) NOT NULL COMMENT '修改用户',
- `update_time` datetime NOT NULL COMMENT '修改日期',
- `ts` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '时间戳',
+ `update_time` datetime(0) NOT NULL COMMENT '修改日期',
+ `ts` timestamp(0) NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP(0) COMMENT '时间戳',
PRIMARY KEY (`id`) USING BTREE,
- KEY `pid` (`parent_id`) USING BTREE COMMENT '上级id'
-) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='系统功能表';
+ INDEX `pid`(`parent_id`) USING BTREE COMMENT '上级id'
+) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '系统功能表' ROW_FORMAT = Dynamic;
-- ----------------------------
-- Records of sys_menu
-- ----------------------------
-BEGIN;
INSERT INTO `sys_menu` VALUES (1, 0, '系统配置', NULL, 'cog', '1', '/system', 'Layout', NULL, 3, '0', '0', '0', 2, 1, '2020-04-14 19:07:31', 1, '2021-05-04 20:34:03', '2021-05-04 20:34:03');
-INSERT INTO `sys_menu` VALUES (2, 1, '菜单管理', NULL, NULL, '1', 'menu', 'views/modules/sys/menuManagement/index', NULL, 1, '0', '0', '0', 0, 1, '2020-04-14 19:07:31', 1, '2020-10-07 23:49:36', '2021-04-09 23:14:15');
-INSERT INTO `sys_menu` VALUES (3, 1, '用户管理', NULL, '', '1', 'user', 'views/modules/sys/userManagement/index', NULL, 2, '0', '0', '0', 0, 1, '2020-04-14 19:07:31', 1, '2020-10-10 17:03:04', '2021-04-09 23:14:15');
-INSERT INTO `sys_menu` VALUES (4, 1, '角色管理', NULL, NULL, '1', 'role', 'views/modules/sys/roleManagement/index', NULL, 3, '0', '0', '0', 0, 1, '2020-09-24 14:01:31', 1, '2020-10-07 23:49:47', '2021-04-09 23:14:15');
-INSERT INTO `sys_menu` VALUES (1312756531833356289, 1, '字典管理', NULL, NULL, '1', 'dict', 'views/modules/sys/dictManagement/index', NULL, 6, '0', '0', '0', 2, 1, '2020-10-04 09:08:42', 1, '2021-04-29 13:02:37', '2021-04-29 13:02:36');
+INSERT INTO `sys_menu` VALUES (2, 1, '菜单管理', NULL, NULL, '1', 'menu', 'views/modules/system/menuManagement/index', NULL, 1, '0', '0', '0', 0, 1, '2020-04-14 19:07:31', 1, '2020-10-07 23:49:36', '2021-05-07 19:28:50');
+INSERT INTO `sys_menu` VALUES (3, 1, '用户管理', NULL, '', '1', 'user', 'views/modules/system/userManagement/index', NULL, 2, '0', '0', '0', 0, 1, '2020-04-14 19:07:31', 1, '2020-10-10 17:03:04', '2021-05-07 19:28:50');
+INSERT INTO `sys_menu` VALUES (4, 1, '角色管理', NULL, NULL, '1', 'role', 'views/modules/system/roleManagement/index', NULL, 3, '0', '0', '0', 0, 1, '2020-09-24 14:01:31', 1, '2020-10-07 23:49:47', '2021-05-07 19:28:50');
+INSERT INTO `sys_menu` VALUES (1312756531833356289, 1, '字典管理', NULL, NULL, '1', 'dict', 'views/modules/system/dictManagement/index', NULL, 6, '0', '0', '0', 2, 1, '2020-10-04 09:08:42', 1, '2021-04-29 13:02:37', '2021-05-07 19:28:50');
INSERT INTO `sys_menu` VALUES (1313789204920131585, 3, '增加', 'system_user_insert', NULL, '2', NULL, NULL, NULL, 2, '0', '0', '0', 0, 1, '2020-10-07 05:32:10', 1, '2020-10-07 10:42:13', '2021-04-09 23:13:01');
INSERT INTO `sys_menu` VALUES (1313789308506857474, 3, '修改', 'system_user_update', NULL, '2', NULL, NULL, NULL, 3, '0', '0', '0', 0, 1, '2020-10-07 05:32:35', 1, '2020-10-07 06:42:26', '2021-04-09 23:13:01');
INSERT INTO `sys_menu` VALUES (1313789400169177089, 3, '删除', 'system_user_delete', NULL, '2', NULL, NULL, NULL, 4, '0', '0', '0', 0, 1, '2020-10-07 05:32:57', 1, '2020-10-07 06:42:38', '2021-04-09 23:13:01');
@@ -6028,13 +6013,13 @@ INSERT INTO `sys_menu` VALUES (1314124102365093890, 1314123690283114498, '商品
INSERT INTO `sys_menu` VALUES (1314124553093390338, 1314124403138633730, 'Error401', NULL, NULL, '1', '401', 'views/401', NULL, 1, '0', '0', '0', 0, 1, '2020-10-08 03:44:43', 1, '2020-10-08 03:45:19', '2021-04-09 23:14:15');
INSERT INTO `sys_menu` VALUES (1314124676338819074, 1314124403138633730, 'Error404', NULL, NULL, '1', '404', 'views/404', NULL, 2, '0', '0', '0', 0, 1, '2020-10-08 03:45:13', 1, '2020-10-08 03:45:13', '2021-04-09 23:14:15');
INSERT INTO `sys_menu` VALUES (1314610817013919745, 0, '运维工具', NULL, 'laptop-code', '1', '/devops', 'Layout', 'noRedirect', 99, '0', '0', '0', 1, 1, '2020-10-09 11:56:58', 1, '2020-11-13 11:05:54', '2021-04-09 23:14:15');
-INSERT INTO `sys_menu` VALUES (1314616518671085570, 1314610817013919745, '日志监控', NULL, NULL, '1', 'logs', 'views/modules/sys/logsManagement/index', NULL, 2, '0', '0', '0', 1, 1, '2020-10-09 12:19:37', 1313694379541635074, '2021-01-18 11:45:28', '2021-04-09 23:14:15');
+INSERT INTO `sys_menu` VALUES (1314616518671085570, 1314610817013919745, '日志监控', NULL, NULL, '1', 'logs', 'views/modules/system/logsManagement/index', NULL, 2, '0', '0', '0', 1, 1, '2020-10-09 12:19:37', 1313694379541635074, '2021-01-18 11:45:28', '2021-05-07 19:28:50');
INSERT INTO `sys_menu` VALUES (1314782679522099201, 1314616518671085570, '查看', 'devops_logs_select', NULL, '2', NULL, NULL, NULL, 1, '0', '0', '0', 0, 1, '2020-10-09 23:19:53', 1, '2020-10-09 23:19:53', '2021-04-09 23:13:01');
INSERT INTO `sys_menu` VALUES (1314782733087555586, 1314616518671085570, '删除', 'devops_logs_delete', NULL, '2', NULL, NULL, NULL, 2, '0', '0', '0', 0, 1, '2020-10-09 23:20:06', 1, '2020-10-09 23:22:09', '2021-04-09 23:13:01');
INSERT INTO `sys_menu` VALUES (1314786106243301378, 1314068325453574145, '系统接口', NULL, NULL, '3', 'http://${BASE_PATH}/doc.html', NULL, NULL, 2, '0', '0', '0', 1, 1, '2020-10-09 23:33:30', 1, '2020-11-15 16:37:23', '2021-04-09 23:14:15');
INSERT INTO `sys_menu` VALUES (1314799744349913090, 1314610817013919745, '数据库监控', NULL, NULL, '3', 'http://${BASE_PATH}/druid', NULL, NULL, 3, '0', '0', '0', 1, 1, '2020-10-10 00:27:42', 1313694379541635074, '2021-01-18 11:45:37', '2021-04-09 23:14:15');
INSERT INTO `sys_menu` VALUES (1314884045724717057, 1312756531833356289, '设置字典', 'system_dict_setDict', NULL, '2', NULL, NULL, NULL, 1, '0', '0', '0', 0, 1, '2020-10-10 19:02:41', 1, '2020-10-10 19:02:41', '2021-04-09 23:13:01');
-INSERT INTO `sys_menu` VALUES (1315201380721446914, 1, '租户管理', NULL, NULL, '1', 'tenant', 'views/modules/sys/tenantManagement/index', NULL, 5, '0', '0', '0', 3, 1, '2020-10-11 16:03:39', 1, '2021-04-29 13:02:29', '2021-04-29 13:02:28');
+INSERT INTO `sys_menu` VALUES (1315201380721446914, 1, '租户管理', NULL, NULL, '1', 'tenant', 'views/modules/system/tenantManagement/index', NULL, 5, '0', '0', '0', 3, 1, '2020-10-11 16:03:39', 1, '2021-04-29 13:02:29', '2021-05-07 19:28:50');
INSERT INTO `sys_menu` VALUES (1315201734892670977, 1315201380721446914, '查看', 'system_tenant_select', NULL, '2', NULL, NULL, NULL, 1, '0', '0', '0', 0, 1, '2020-10-11 16:05:04', 1, '2020-10-11 16:05:04', '2021-04-09 23:13:01');
INSERT INTO `sys_menu` VALUES (1315201809668722690, 1315201380721446914, '增加', 'system_tenant_insert', NULL, '2', NULL, NULL, NULL, 2, '0', '0', '0', 0, 1, '2020-10-11 16:05:21', 1, '2020-10-11 16:05:21', '2021-04-09 23:13:01');
INSERT INTO `sys_menu` VALUES (1315201864219840513, 1315201380721446914, '修改', 'system_tenant_update', NULL, '2', NULL, NULL, NULL, 3, '0', '0', '0', 0, 1, '2020-10-11 16:05:34', 1, '2020-10-11 16:05:34', '2021-04-09 23:13:01');
@@ -6058,12 +6043,12 @@ INSERT INTO `sys_menu` VALUES (1330365525440331778, 1330365141900591105, '查看
INSERT INTO `sys_menu` VALUES (1330365570587820033, 1330365141900591105, '新增', 'gentest_user_insert', '', '2', NULL, NULL, NULL, 2, '0', '0', '0', 2, 1313694379541635074, '2020-11-22 12:20:44', 1313694379541635074, '2020-11-22 12:24:01', '2021-04-09 23:13:01');
INSERT INTO `sys_menu` VALUES (1330365615181660162, 1330365141900591105, '修改', 'gentest_user_update', '', '2', NULL, NULL, NULL, 3, '0', '0', '0', 2, 1313694379541635074, '2020-11-22 12:20:54', 1313694379541635074, '2020-11-22 12:24:14', '2021-04-09 23:13:01');
INSERT INTO `sys_menu` VALUES (1330365717015166977, 1330365141900591105, '删除', 'gentest_user_delete', '', '2', NULL, NULL, NULL, 4, '0', '0', '0', 1, 1313694379541635074, '2020-11-22 12:21:19', 1313694379541635074, '2020-11-22 12:23:33', '2021-04-09 23:13:01');
-INSERT INTO `sys_menu` VALUES (1332662450423635969, 1, '组织机构', NULL, '', '1', 'org', 'views/modules/sys/orgManagement/index', NULL, 4, '0', '0', '0', 3, 1, '2020-11-28 20:27:43', 1, '2021-04-29 13:02:12', '2021-04-29 13:02:11');
+INSERT INTO `sys_menu` VALUES (1332662450423635969, 1, '组织机构', NULL, '', '1', 'org', 'views/modules/system/orgManagement/index', NULL, 4, '0', '0', '0', 3, 1, '2020-11-28 20:27:43', 1, '2021-04-29 13:02:12', '2021-05-07 19:28:50');
INSERT INTO `sys_menu` VALUES (1332662689314414594, 1332662450423635969, '查看', 'system_org_select', '', '2', NULL, NULL, NULL, 1, '0', '0', '0', 0, 1, '2020-11-28 20:28:39', 1, '2020-11-28 20:28:39', '2021-04-09 23:13:01');
INSERT INTO `sys_menu` VALUES (1332662758860169217, 1332662450423635969, '增加', 'system_org_insert', '', '2', NULL, NULL, NULL, 2, '0', '0', '0', 0, 1, '2020-11-28 20:28:56', 1, '2020-11-28 20:28:56', '2021-04-09 23:13:01');
INSERT INTO `sys_menu` VALUES (1332662809711910913, 1332662450423635969, '修改', 'system_org_update', '', '2', NULL, NULL, NULL, 3, '0', '0', '0', 0, 1, '2020-11-28 20:29:08', 1, '2020-11-28 20:29:08', '2021-04-09 23:13:01');
INSERT INTO `sys_menu` VALUES (1332662858294534146, 1332662450423635969, '删除', 'system_org_delete', '', '2', NULL, NULL, NULL, 4, '0', '0', '0', 0, 1, '2020-11-28 20:29:20', 1, '2020-11-28 20:29:20', '2021-04-09 23:13:01');
-INSERT INTO `sys_menu` VALUES (1335439751687208961, 1, '地域管理', NULL, '', '1', 'area', 'views/modules/sys/areaManagement/index', NULL, 8, '0', '0', '0', 3, 1313694379541635074, '2020-12-06 12:23:43', 1, '2021-04-29 13:02:44', '2021-04-29 13:02:44');
+INSERT INTO `sys_menu` VALUES (1335439751687208961, 1, '地域管理', NULL, '', '1', 'area', 'views/modules/system/areaManagement/index', NULL, 8, '0', '0', '0', 3, 1313694379541635074, '2020-12-06 12:23:43', 1, '2021-04-29 13:02:44', '2021-05-07 19:28:50');
INSERT INTO `sys_menu` VALUES (1335439904372457474, 1335439751687208961, '新增', 'system_area_insert', '', '2', NULL, NULL, NULL, 2, '0', '0', '0', 1, 1313694379541635074, '2020-12-06 12:24:19', 1313694379541635074, '2020-12-06 12:24:50', '2021-04-09 23:13:01');
INSERT INTO `sys_menu` VALUES (1335440004809261058, 1335439751687208961, '查看', 'system_area_select', '', '2', NULL, NULL, NULL, 1, '0', '0', '0', 0, 1313694379541635074, '2020-12-06 12:24:43', 1313694379541635074, '2020-12-06 12:24:43', '2021-04-09 23:13:01');
INSERT INTO `sys_menu` VALUES (1335440081128816642, 1335439751687208961, '修改', 'system_area_update', '', '2', NULL, NULL, NULL, 3, '0', '0', '0', 1, 1313694379541635074, '2020-12-06 12:25:01', 1313694379541635074, '2020-12-06 12:25:07', '2021-04-09 23:13:01');
@@ -6080,47 +6065,45 @@ INSERT INTO `sys_menu` VALUES (1340626895356321793, 1340626549594677250, '修改
INSERT INTO `sys_menu` VALUES (1340626939119689729, 1340626549594677250, '删除', 'gentest_carinfo_delete', '', '2', NULL, NULL, NULL, 4, '0', '0', '0', 1, 1313694379541635074, '2020-12-20 19:55:45', 1313694379541635074, '2020-12-20 20:22:00', '2021-04-09 23:13:01');
INSERT INTO `sys_menu` VALUES (1340626988251766786, 1340626549594677250, '导入', 'gentest_carinfo_import', '', '2', NULL, NULL, NULL, 5, '0', '0', '0', 1, 1313694379541635074, '2020-12-20 19:55:56', 1313694379541635074, '2020-12-20 20:22:16', '2021-04-09 23:13:01');
INSERT INTO `sys_menu` VALUES (1340627032942075906, 1340626549594677250, '导出', 'gentest_carinfo_export', '', '2', NULL, NULL, NULL, 6, '0', '0', '0', 2, 1313694379541635074, '2020-12-20 19:56:07', 1313694379541635074, '2020-12-20 20:22:22', '2021-04-09 23:13:01');
-INSERT INTO `sys_menu` VALUES (1351012936860155906, 1314610817013919745, '系统监控', NULL, '', '1', 'sysmonitor', 'views/modules/sys/monitorManagement/index', NULL, 1, '0', '0', '0', 1, 1313694379541635074, '2021-01-18 11:45:59', 1313694379541635074, '2021-01-18 11:47:15', '2021-04-09 23:14:15');
+INSERT INTO `sys_menu` VALUES (1351012936860155906, 1314610817013919745, '系统监控', NULL, '', '1', 'sysmonitor', 'views/modules/system/monitorManagement/index', NULL, 1, '0', '0', '0', 1, 1313694379541635074, '2021-01-18 11:45:59', 1313694379541635074, '2021-01-18 11:47:15', '2021-05-07 19:28:50');
INSERT INTO `sys_menu` VALUES (1351013587816136705, 1351012936860155906, '查看', 'devops_sysmonitor_select', '', '2', NULL, NULL, NULL, 1, '0', '0', '0', 0, 1, '2021-01-18 11:48:35', 1, '2021-01-18 11:48:35', '2021-04-09 23:13:01');
-INSERT INTO `sys_menu` VALUES (1360233188433977345, 1, '系统设置', NULL, '', '1', 'set', 'views/modules/sys/setManagement/index', NULL, 99, '0', '0', '0', 4, 1313694379541635074, '2021-02-12 22:23:59', 1, '2021-04-29 13:01:24', '2021-04-29 13:01:24');
+INSERT INTO `sys_menu` VALUES (1360233188433977345, 1, '系统设置', NULL, '', '1', 'set', 'views/modules/system/setManagement/index', NULL, 99, '0', '0', '0', 4, 1313694379541635074, '2021-02-12 22:23:59', 1, '2021-04-29 13:01:24', '2021-05-07 19:28:50');
INSERT INTO `sys_menu` VALUES (1360233383397810177, 1360233188433977345, '更新', 'system_options_update', '', '2', NULL, NULL, NULL, 1, '0', '0', '0', 2, 1313694379541635074, '2021-02-12 22:24:45', 1313694379541635074, '2021-02-14 01:37:07', '2021-04-09 23:13:01');
INSERT INTO `sys_menu` VALUES (1369905408109674498, 3, '分配租户', 'system_user_tenant', '', '2', NULL, NULL, NULL, 9, '0', '0', '0', 1, 1, '2021-03-11 14:57:55', 1, '2021-03-11 14:58:04', '2021-04-09 23:13:01');
INSERT INTO `sys_menu` VALUES (1370051609388388353, 3, '重置密码', 'system_user_resetPassword', '', '2', NULL, NULL, NULL, 10, '0', '0', '0', 1, 1, '2021-03-12 00:38:53', 1, '2021-03-12 00:39:04', '2021-04-09 23:13:01');
INSERT INTO `sys_menu` VALUES (1370404146704654337, 3, '变更账户状态', 'system_user_enable', '', '2', NULL, NULL, NULL, 11, '0', '0', '0', 2, 1, '2021-03-12 23:59:44', 1, '2021-04-08 23:59:33', '2021-04-09 23:13:01');
INSERT INTO `sys_menu` VALUES (1380173787882696705, 1315201380721446914, '变更租户状态', 'system_tenant_enable', '', '2', NULL, NULL, NULL, 5, '0', '0', '0', 0, 1, '2021-04-08 23:00:48', 1, '2021-04-08 23:00:48', '2021-04-09 23:13:01');
-INSERT INTO `sys_menu` VALUES (1387633500164599809, 1, '参数配置', NULL, '', '1', 'options', 'views/modules/sys/optionsManagement/index', NULL, 7, '0', '0', '0', 2, 1, '2021-04-29 13:03:02', 1, '2021-04-29 13:03:39', '2021-04-29 13:03:39');
+INSERT INTO `sys_menu` VALUES (1387633500164599809, 1, '参数配置', NULL, '', '1', 'options', 'views/modules/system/optionsManagement/index', NULL, 7, '0', '0', '0', 2, 1, '2021-04-29 13:03:02', 1, '2021-04-29 13:03:39', '2021-05-07 19:28:50');
INSERT INTO `sys_menu` VALUES (1387633799226863618, 1387633500164599809, '查看', 'system_options_select', NULL, '2', NULL, NULL, NULL, 1, '0', '0', '0', 2, 1, '2021-04-29 13:04:13', 1, '2021-04-29 13:07:10', '2021-04-29 13:07:09');
INSERT INTO `sys_menu` VALUES (1387633960401383426, 1387633500164599809, '新增', 'system_options_insert', NULL, '2', NULL, NULL, NULL, 2, '0', '0', '0', 1, 1, '2021-04-29 13:04:52', 1, '2021-04-29 13:07:15', '2021-04-29 13:07:14');
INSERT INTO `sys_menu` VALUES (1387634089447534594, 1387633500164599809, '修改', 'system_options_update', NULL, '2', NULL, NULL, NULL, 3, '0', '0', '0', 1, 1, '2021-04-29 13:05:23', 1, '2021-04-29 13:07:19', '2021-04-29 13:07:18');
INSERT INTO `sys_menu` VALUES (1387634157474951169, 1387633500164599809, '删除', 'system_options_delete', NULL, '2', NULL, NULL, NULL, 4, '0', '0', '0', 1, 1, '2021-04-29 13:05:39', 1, '2021-04-29 13:07:23', '2021-04-29 13:07:23');
INSERT INTO `sys_menu` VALUES (1389555212654223361, 1327893773049262082, '生成菜单', 'deve_creater_createMenu', NULL, '2', NULL, NULL, NULL, 8, '0', '0', '0', 1, 1, '2021-05-04 20:19:14', 1, '2021-05-04 20:19:52', '2021-05-04 20:19:52');
-COMMIT;
-- ----------------------------
-- Table structure for sys_options
-- ----------------------------
DROP TABLE IF EXISTS `sys_options`;
-CREATE TABLE `sys_options` (
+CREATE TABLE `sys_options` (
`id` bigint(19) NOT NULL COMMENT '唯一主键',
- `option_code` varchar(100) NOT NULL COMMENT '参数编号',
- `option_name` varchar(200) NOT NULL COMMENT '参数名称',
- `option_value` text COMMENT '参数值',
- `iz_lock` char(1) NOT NULL COMMENT '是否内置 0否 1是',
- `remark` varchar(255) DEFAULT NULL COMMENT '备注',
- `version` int(11) NOT NULL DEFAULT '0' COMMENT '版本(乐观锁)',
+ `option_code` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '参数编号',
+ `option_name` varchar(200) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '参数名称',
+ `option_value` text CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL COMMENT '参数值',
+ `iz_lock` char(1) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '是否内置 0否 1是',
+ `remark` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '备注',
+ `version` int(11) NOT NULL DEFAULT 0 COMMENT '版本(乐观锁)',
`create_by` bigint(19) NOT NULL COMMENT '创建用户',
- `create_time` datetime NOT NULL COMMENT '创建日期',
+ `create_time` datetime(0) NOT NULL COMMENT '创建日期',
`update_by` bigint(19) NOT NULL COMMENT '修改用户',
- `update_time` datetime NOT NULL COMMENT '修改日期',
- `ts` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '时间戳',
+ `update_time` datetime(0) NOT NULL COMMENT '修改日期',
+ `ts` timestamp(0) NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP(0) COMMENT '时间戳',
PRIMARY KEY (`id`) USING BTREE,
- UNIQUE KEY `index` (`option_code`) USING BTREE COMMENT '参数编号唯一'
-) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='系统参数表';
+ UNIQUE INDEX `index`(`option_code`) USING BTREE COMMENT '参数编号唯一'
+) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '系统参数表' ROW_FORMAT = Dynamic;
-- ----------------------------
-- Records of sys_options
-- ----------------------------
-BEGIN;
INSERT INTO `sys_options` VALUES (1, 'crypto_asymmetric', '非对称加解密算法', 'RSA', '1', NULL, 0, 1, '2021-02-10 23:19:35', 1313694379541635074, '2021-04-04 11:19:26', '2021-04-29 11:11:40');
INSERT INTO `sys_options` VALUES (2, 'crypto_asymmetric_public_key', '非对称加解密-公钥', 'MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQCQS75ZTYUL6IJJBgylgFDtksWZx4OsVK5CBJGXi3n9LON1Jg7KsxkgindCD28gQRIEh6ZP1IuhlMs9N/QteRbM3b1oDKW7Cbr7lFk+EYUmpO5nwD1+IHowiNc0AK+XfICOVF5287wE4LFLqBDnWhV0WNQFjYYpAc7852ZfEwThSQIDAQAB', '1', NULL, 0, 1, '2021-02-10 23:19:35', 1313694379541635074, '2021-04-04 11:19:26', '2021-04-29 11:11:41');
INSERT INTO `sys_options` VALUES (3, 'crypto_asymmetric_private_key', '非对称加解密-私钥', 'MIICdwIBADANBgkqhkiG9w0BAQEFAASCAmEwggJdAgEAAoGBAJBLvllNhQvogkkGDKWAUO2SxZnHg6xUrkIEkZeLef0s43UmDsqzGSCKd0IPbyBBEgSHpk/Ui6GUyz039C15FszdvWgMpbsJuvuUWT4RhSak7mfAPX4gejCI1zQAr5d8gI5UXnbzvATgsUuoEOdaFXRY1AWNhikBzvznZl8TBOFJAgMBAAECgYAJvtCmFi7RK6ysIxhBj6JnmTN24ltJpuJ2zpL8Sc0J+B+LyIk6z9CROqjS5L+PM+kN0BEmCedwTBNTf1VV3BXzbPcX/prE004LXcbv5mjgaHf/PybzJQumYM5MuD9dJYBLc1PUNu2b9eGekEU+vzn0HCnmAkfwU7FCdU7Nh8/ZnQJBAMkY/nzYxue0rdfD4ZybM8chBksp9EA8mwmCW/PosJGJ6YVJ913PbfovYuSG4rwm0Ew6i/1zcXvAFjt5dW+L5EsCQQC3sMq5EF4Bfils0dTdn8Pwtv2t3H6wwaAc9QAExHYtZ5pipFH9NXiWn6KUJYq28mRxxKtfoara/8Ahb5yHY0w7AkEArGnmfyno123cgppqC7gxW3AgEj+FL7IGhs+igOumvxFMCsBQ+rhGpXMNSbuwF/r7KfAkaAgbaytUpGdNXXbGIwJAas7uoXsl3iJYvgCokJFkYmRUzzJlrCt6CTxgXWVK/g2+1FqNnfjofFSoORI3PTdmNkzQBRRA/4Q0WHzIfGS9nwJBAMLXrVKH6uhn67dwXKRCy2Xt54dLEtL43jL+xzWeHJibSkSyImLiAn1n2imSpB6ubJnBuvH19Y0nOXKBP0+VDGA=', '1', NULL, 0, 1, '2021-02-10 23:19:35', 1313694379541635074, '2021-04-04 11:19:26', '2021-04-29 11:11:41');
@@ -6138,37 +6121,35 @@ INSERT INTO `sys_options` VALUES (1388333266843320322, '11', '111', '111', '0',
INSERT INTO `sys_options` VALUES (1388333321180528642, '222', '222', '222', '0', NULL, 0, 1313694379541635074, '2021-05-01 11:23:52', 1313694379541635074, '2021-05-01 11:23:52', '2021-05-01 11:23:52');
INSERT INTO `sys_options` VALUES (1388333452273500161, '333', '333', '333', '0', NULL, 0, 1313694379541635074, '2021-05-01 11:24:24', 1313694379541635074, '2021-05-01 11:24:24', '2021-05-01 11:24:23');
INSERT INTO `sys_options` VALUES (1388333500516384770, '444', '444', '444', '0', NULL, 0, 1313694379541635074, '2021-05-01 11:24:35', 1313694379541635074, '2021-05-01 11:24:35', '2021-05-01 11:24:35');
-COMMIT;
-- ----------------------------
-- Table structure for sys_org
-- ----------------------------
DROP TABLE IF EXISTS `sys_org`;
-CREATE TABLE `sys_org` (
+CREATE TABLE `sys_org` (
`id` bigint(19) NOT NULL COMMENT '字典主键',
- `parent_id` bigint(19) NOT NULL DEFAULT '0' COMMENT '父级主键',
- `org_code` varchar(120) NOT NULL COMMENT '组织机构编号',
- `org_name` varchar(120) NOT NULL COMMENT '组织机构名称',
+ `parent_id` bigint(19) NOT NULL DEFAULT 0 COMMENT '父级主键',
+ `org_code` varchar(120) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '组织机构编号',
+ `org_name` varchar(120) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '组织机构名称',
`org_type` int(3) NOT NULL COMMENT '组织机构类型',
`sort_no` int(11) NOT NULL COMMENT '排序',
- `iz_validate` char(1) NOT NULL DEFAULT '1' COMMENT '开启数据校验:0否,1是 默认为是',
- `tenant_id` bigint(20) DEFAULT NULL COMMENT '多租户ID',
- `deleted` char(1) NOT NULL DEFAULT '0' COMMENT '删除标记:0未删除,1删除',
+ `iz_validate` char(1) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '1' COMMENT '开启数据校验:0否,1是 默认为是',
+ `tenant_id` bigint(20) NULL DEFAULT NULL COMMENT '多租户ID',
+ `deleted` char(1) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '0' COMMENT '删除标记:0未删除,1删除',
`version` int(11) NOT NULL COMMENT '版本(乐观锁)',
`create_by` bigint(19) NOT NULL COMMENT '创建人',
- `create_time` datetime NOT NULL COMMENT '创建时间',
+ `create_time` datetime(0) NOT NULL COMMENT '创建时间',
`update_by` bigint(19) NOT NULL COMMENT '修改人',
- `update_time` datetime NOT NULL COMMENT '修改时间',
- `ts` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '时间戳',
+ `update_time` datetime(0) NOT NULL COMMENT '修改时间',
+ `ts` timestamp(0) NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP(0) COMMENT '时间戳',
PRIMARY KEY (`id`) USING BTREE,
- KEY `org_index` (`org_code`,`org_name`) USING BTREE,
- KEY `pid` (`parent_id`) USING BTREE COMMENT '上级id'
-) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='组织机构表';
+ INDEX `org_index`(`org_code`, `org_name`) USING BTREE,
+ INDEX `pid`(`parent_id`) USING BTREE COMMENT '上级id'
+) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '组织机构表' ROW_FORMAT = Dynamic;
-- ----------------------------
-- Records of sys_org
-- ----------------------------
-BEGIN;
INSERT INTO `sys_org` VALUES (1332710973848449026, 0, '0011', 'A公司', 1, 1, '1', 1, '0', 10, 1313694379541635074, '2020-11-28 23:40:31', 1313694379541635074, '2021-02-25 13:31:20', '2021-04-08 23:51:16');
INSERT INTO `sys_org` VALUES (1332720768622120961, 0, '0012', 'B公司', 1, 2, '1', 1, '1', 6, 1313694379541635074, '2020-11-29 00:19:27', 1313694379541635074, '2020-11-29 22:18:06', '2021-04-08 23:51:16');
INSERT INTO `sys_org` VALUES (1332876488965476354, 0, '0011', 'C公司', 1, 3, '0', 1, '1', 0, 1313694379541635074, '2020-11-29 10:38:13', 1313694379541635074, '2020-11-29 10:38:13', '2021-04-08 23:51:16');
@@ -6179,34 +6160,32 @@ INSERT INTO `sys_org` VALUES (1332880775317581826, 1332879851278856193, '0011_12
INSERT INTO `sys_org` VALUES (1336209704187879425, 0, '0012', 'B公司', 1, 2, '1', 1, '0', 3, 1313694379541635074, '2020-12-08 15:23:14', 1, '2021-01-11 19:19:51', '2021-04-08 23:51:16');
INSERT INTO `sys_org` VALUES (1389268887044624385, 1336209704187879425, '0012_1111', '1111', 2, 1, '1', 1, '0', 0, 1, '2021-05-04 01:21:29', 1, '2021-05-04 01:21:29', '2021-05-04 01:21:28');
INSERT INTO `sys_org` VALUES (1389268928454987778, 1389268887044624385, '0012_1111_2222', '11111', 3, 1, '1', 1, '0', 0, 1, '2021-05-04 01:21:39', 1, '2021-05-04 01:21:39', '2021-05-04 01:21:38');
-COMMIT;
-- ----------------------------
-- Table structure for sys_role
-- ----------------------------
DROP TABLE IF EXISTS `sys_role`;
-CREATE TABLE `sys_role` (
+CREATE TABLE `sys_role` (
`id` bigint(19) NOT NULL COMMENT '角色主键',
- `role_code` varchar(50) NOT NULL COMMENT '角色编码',
- `role_name` varchar(50) NOT NULL COMMENT '角色名称',
- `iz_lock` char(1) NOT NULL COMMENT '是否内置 0否 1是',
- `remark` varchar(255) DEFAULT NULL COMMENT '备注',
- `tenant_id` bigint(20) DEFAULT NULL COMMENT '多租户ID',
- `deleted` char(1) NOT NULL COMMENT '删除标记:0未删除,1删除',
+ `role_code` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '角色编码',
+ `role_name` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '角色名称',
+ `iz_lock` char(1) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '是否内置 0否 1是',
+ `remark` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '备注',
+ `tenant_id` bigint(20) NULL DEFAULT NULL COMMENT '多租户ID',
+ `deleted` char(1) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '删除标记:0未删除,1删除',
`version` int(11) NOT NULL COMMENT '版本(乐观锁)',
`create_by` bigint(19) NOT NULL COMMENT '创建用户',
- `create_time` datetime NOT NULL COMMENT '创建日期',
+ `create_time` datetime(0) NOT NULL COMMENT '创建日期',
`update_by` bigint(19) NOT NULL COMMENT '修改用户',
- `update_time` datetime NOT NULL COMMENT '修改日期',
- `ts` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '时间戳',
+ `update_time` datetime(0) NOT NULL COMMENT '修改日期',
+ `ts` timestamp(0) NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP(0) COMMENT '时间戳',
PRIMARY KEY (`id`) USING BTREE,
- KEY `role_code` (`role_code`,`role_name`,`tenant_id`) USING BTREE
-) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='角色信息表';
+ INDEX `role_code`(`role_code`, `role_name`, `tenant_id`) USING BTREE
+) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '角色信息表' ROW_FORMAT = Dynamic;
-- ----------------------------
-- Records of sys_role
-- ----------------------------
-BEGIN;
INSERT INTO `sys_role` VALUES (1, '000', '超级管理员', '1', '超级管理员', 1315203865179602945, '1', 4, 1, '2017-03-08 15:00:42', 1, '2020-10-11 17:08:13', '2021-04-08 23:51:21');
INSERT INTO `sys_role` VALUES (2, '001', '管理员', '1', '测试角色1', 1, '0', 11, 1, '2018-12-09 17:48:13', 1, '2020-10-11 17:08:22', '2021-04-08 23:51:21');
INSERT INTO `sys_role` VALUES (1311680492206051329, 'ces1', 'ces1', '0', NULL, 15321010110, '1', 0, 1, '2020-10-01 09:52:54', 1, '2020-10-01 09:52:54', '2021-04-08 23:51:21');
@@ -6224,24 +6203,22 @@ INSERT INTO `sys_role` VALUES (1313050196989300737, '7', '测试7', '0', NULL, 1
INSERT INTO `sys_role` VALUES (1313050221249155074, '8', '测试8', '0', NULL, 1, '0', 1, 1, '2020-10-05 04:35:43', 1, '2020-10-11 17:08:44', '2021-04-08 23:51:21');
INSERT INTO `sys_role` VALUES (1313050244015837185, '9', '测试9', '0', NULL, 1, '0', 2, 1, '2020-10-05 04:35:48', 1, '2020-10-11 17:08:29', '2021-04-08 23:51:21');
INSERT INTO `sys_role` VALUES (1313146842146213890, '007', '普通用户', '1', NULL, 1, '0', 4, 1, '2020-10-05 10:59:39', 1, '2021-04-09 23:28:16', '2021-04-09 23:28:16');
-COMMIT;
-- ----------------------------
-- Table structure for sys_role_menu_ref
-- ----------------------------
DROP TABLE IF EXISTS `sys_role_menu_ref`;
-CREATE TABLE `sys_role_menu_ref` (
+CREATE TABLE `sys_role_menu_ref` (
`id` bigint(19) NOT NULL COMMENT '用户角色关联',
`menu_id` bigint(19) NOT NULL COMMENT '用户主键',
`role_id` bigint(19) NOT NULL COMMENT '角色主键',
PRIMARY KEY (`id`) USING BTREE,
- KEY `sys_role_menu` (`menu_id`,`role_id`) USING BTREE
-) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='角色功能关联表';
+ INDEX `sys_role_menu`(`menu_id`, `role_id`) USING BTREE
+) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '角色功能关联表' ROW_FORMAT = Dynamic;
-- ----------------------------
-- Records of sys_role_menu_ref
-- ----------------------------
-BEGIN;
INSERT INTO `sys_role_menu_ref` VALUES (1387734139397865475, 1, 2);
INSERT INTO `sys_role_menu_ref` VALUES (1312770352622878721, 1, 1312770323526991874);
INSERT INTO `sys_role_menu_ref` VALUES (1387734139397865476, 3, 2);
@@ -6370,118 +6347,110 @@ INSERT INTO `sys_role_menu_ref` VALUES (1387734139313979398, 1387633799226863618
INSERT INTO `sys_role_menu_ref` VALUES (1387734139313979399, 1387633960401383426, 2);
INSERT INTO `sys_role_menu_ref` VALUES (1387734139313979400, 1387634089447534594, 2);
INSERT INTO `sys_role_menu_ref` VALUES (1387734139313979401, 1387634157474951169, 2);
-COMMIT;
-- ----------------------------
-- Table structure for sys_tenant
-- ----------------------------
DROP TABLE IF EXISTS `sys_tenant`;
-CREATE TABLE `sys_tenant` (
+CREATE TABLE `sys_tenant` (
`id` bigint(19) NOT NULL COMMENT '唯一主键',
- `tenant_name` varchar(50) NOT NULL COMMENT '租户名称',
- `enable` char(1) NOT NULL COMMENT '是否启用 0否 1是',
- `remark` varchar(255) DEFAULT NULL COMMENT '备注',
- `deleted` char(1) NOT NULL COMMENT '删除标记:0未删除,1删除',
+ `tenant_name` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '租户名称',
+ `enable` char(1) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '是否启用 0否 1是',
+ `remark` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '备注',
+ `deleted` char(1) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '删除标记:0未删除,1删除',
`version` int(11) NOT NULL COMMENT '版本(乐观锁)',
`create_by` bigint(19) NOT NULL COMMENT '创建用户',
- `create_time` datetime NOT NULL COMMENT '创建日期',
+ `create_time` datetime(0) NOT NULL COMMENT '创建日期',
`update_by` bigint(19) NOT NULL COMMENT '修改用户',
- `update_time` datetime NOT NULL COMMENT '修改日期',
- `ts` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '时间戳',
+ `update_time` datetime(0) NOT NULL COMMENT '修改日期',
+ `ts` timestamp(0) NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP(0) COMMENT '时间戳',
PRIMARY KEY (`id`) USING BTREE,
- KEY `role_code` (`tenant_name`) USING BTREE
-) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='角色信息表';
+ INDEX `role_code`(`tenant_name`) USING BTREE
+) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '角色信息表' ROW_FORMAT = Dynamic;
-- ----------------------------
-- Records of sys_tenant
-- ----------------------------
-BEGIN;
INSERT INTO `sys_tenant` VALUES (1, '演示租户', '1', '演示租户', '0', 14, 1, '2017-03-08 15:00:42', 1, '2020-12-24 14:59:48', '2021-04-09 00:13:01');
INSERT INTO `sys_tenant` VALUES (1315203865179602945, '默认租户', '1', '系统默认租户 勿动', '0', 2, 1, '2020-10-11 16:13:31', 1, '2020-10-11 16:14:41', '2021-04-08 23:51:26');
INSERT INTO `sys_tenant` VALUES (1315214795665907713, '测试租户', '0', '不启用租户', '0', 0, 1, '2020-10-11 16:56:57', 1, '2020-10-11 16:56:57', '2021-04-08 23:51:26');
-COMMIT;
-- ----------------------------
-- Table structure for sys_user
-- ----------------------------
DROP TABLE IF EXISTS `sys_user`;
-CREATE TABLE `sys_user` (
+CREATE TABLE `sys_user` (
`id` bigint(19) NOT NULL COMMENT '用户主键',
- `username` varchar(32) NOT NULL COMMENT '登录账户',
- `password` varchar(50) NOT NULL COMMENT '登录密码',
- `secret_key` varchar(50) NOT NULL COMMENT '盐值,密码秘钥',
- `enable` char(1) NOT NULL COMMENT '是否启用',
- `real_name` varchar(50) NOT NULL COMMENT '真实姓名',
- `mobile` varchar(15) DEFAULT NULL COMMENT '手机',
- `no` varchar(32) NOT NULL COMMENT '工号',
- `avatar` varchar(255) DEFAULT NULL COMMENT '用户头像',
- `login_ip` varchar(50) DEFAULT NULL COMMENT '最后登陆IP',
- `email` varchar(100) DEFAULT NULL COMMENT '邮箱',
- `sign` varchar(255) DEFAULT NULL COMMENT '签名',
- `remark` varchar(255) DEFAULT NULL COMMENT '备注',
- `tenant_id` bigint(19) DEFAULT NULL COMMENT '多租户ID',
- `deleted` char(1) NOT NULL DEFAULT '0' COMMENT '删除状态',
+ `username` varchar(32) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '登录账户',
+ `password` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '登录密码',
+ `secret_key` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '盐值,密码秘钥',
+ `enable` char(1) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '是否启用',
+ `real_name` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '真实姓名',
+ `mobile` varchar(15) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '手机',
+ `no` varchar(32) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '工号',
+ `avatar` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '用户头像',
+ `login_ip` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '最后登陆IP',
+ `email` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '邮箱',
+ `sign` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '签名',
+ `remark` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '备注',
+ `tenant_id` bigint(19) NULL DEFAULT NULL COMMENT '多租户ID',
+ `deleted` char(1) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '0' COMMENT '删除状态',
`version` int(11) NOT NULL COMMENT '版本(乐观锁)',
`create_by` bigint(19) NOT NULL COMMENT '创建人',
- `create_time` datetime NOT NULL COMMENT '创建时间',
+ `create_time` datetime(0) NOT NULL COMMENT '创建时间',
`update_by` bigint(19) NOT NULL COMMENT '修改人',
- `update_time` datetime NOT NULL COMMENT '修改时间',
- `ts` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '时间戳',
+ `update_time` datetime(0) NOT NULL COMMENT '修改时间',
+ `ts` timestamp(0) NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP(0) COMMENT '时间戳',
PRIMARY KEY (`id`) USING BTREE,
- KEY `sys_user` (`username`,`real_name`) USING BTREE,
- KEY `tenant` (`tenant_id`) USING BTREE COMMENT '租户'
-) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='用户信息表';
+ INDEX `sys_user`(`username`, `real_name`) USING BTREE,
+ INDEX `tenant`(`tenant_id`) USING BTREE COMMENT '租户'
+) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '用户信息表' ROW_FORMAT = Dynamic;
-- ----------------------------
-- Records of sys_user
-- ----------------------------
-BEGIN;
INSERT INTO `sys_user` VALUES (1, 'system', 'bffc4c8d318437f37f7203a5d0a16436', 'z25fk1otoj45ref83shq', '1', '超级管理员', '15321010110', '112', 'http://127.0.0.1:8080/opsli-boot/static/files/20210430/162056101700285193J6IAU.jpg', '127.0.0.1', 'meet.parker@foxmail.com', '没有自学能力的人没有未来', '', 1315203865179602945, '0', 95, 1, '2020-09-25 15:03:22', 1, '2021-05-04 01:59:11', '2021-05-04 01:59:10');
INSERT INTO `sys_user` VALUES (1313694379541635074, 'demo', '011eae89281e764ce9774b7f9b18b12a', '08oa2ktg9gi6vlv98f63', '1', '演示用户', '15321010110', 'test_001', 'http://127.0.0.1:8080/opsli-boot/static/files/20210503/162030164596296168YISD4.jpg', '127.0.0.1', 'meet.parker@foxmail.com', '没有自学能力的人没有未来', NULL, 1, '0', 2, 1, '2020-10-06 23:15:22', 1, '2020-10-11 16:53:58', '2021-05-03 01:51:05');
INSERT INTO `sys_user` VALUES (1315218541317750785, 'zhangsan', '386a1212b388a49d6cca827173824914', 'g6880o4q5k98w6a6hplu', '1', '张三', NULL, '123123', NULL, '127.0.0.1', NULL, NULL, NULL, NULL, '0', 0, 1, '2020-10-11 17:11:50', 1, '2020-10-11 17:11:50', '2021-04-09 21:04:07');
INSERT INTO `sys_user` VALUES (1315224529580072961, 'test', '248b77e86f3137b0381e78a0050c8eab', 'x93jqlq94e7bmludjzxm', '0', '123', NULL, '123123123', NULL, NULL, NULL, NULL, NULL, NULL, '1', 0, 1, '2020-10-11 17:35:38', 1, '2020-10-11 17:35:38', '2021-04-08 23:51:32');
INSERT INTO `sys_user` VALUES (1315224823500120066, 'lyf', 'e7f977aac0007f3ae2b36c46d5fdc5c9', '0ep05v5hl5q86lv0uprg', '1', '刘亦菲', NULL, '0101001', NULL, '127.0.0.1', NULL, NULL, NULL, 1, '0', 0, 1313694379541635074, '2020-10-11 17:36:48', 1313694379541635074, '2020-10-11 17:36:48', '2021-04-09 21:04:05');
INSERT INTO `sys_user` VALUES (1340328715309092866, 'tests', 'efb6175f6c12483b0e48d8dbb1da2f5c', 'v6u9hu3kl0yowdpoxuel', '0', '测试', NULL, '123213123', NULL, '127.0.0.1', NULL, NULL, NULL, 1, '1', 7, 1313694379541635074, '2020-12-20 00:10:42', 1313694379541635074, '2021-03-13 00:09:49', '2021-04-08 23:51:32');
-COMMIT;
-- ----------------------------
-- Table structure for sys_user_org_ref
-- ----------------------------
DROP TABLE IF EXISTS `sys_user_org_ref`;
-CREATE TABLE `sys_user_org_ref` (
+CREATE TABLE `sys_user_org_ref` (
`id` bigint(19) NOT NULL COMMENT '用户角色关联',
`user_id` bigint(19) NOT NULL COMMENT '用户主键',
`org_id` bigint(19) NOT NULL COMMENT '组织机构主键',
- `org_type` char(1) NOT NULL COMMENT '组织机构类型',
+ `org_type` char(1) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '组织机构类型',
PRIMARY KEY (`id`) USING BTREE,
- KEY `sys_org_user` (`user_id`,`org_id`,`org_type`) USING BTREE
-) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='组织机构用户关联表';
+ INDEX `sys_org_user`(`user_id`, `org_id`, `org_type`) USING BTREE
+) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '组织机构用户关联表' ROW_FORMAT = Dynamic;
-- ----------------------------
-- Records of sys_user_org_ref
-- ----------------------------
-BEGIN;
INSERT INTO `sys_user_org_ref` VALUES (1336194711962796034, 1313694379541635074, 1332710973848449026, '1');
INSERT INTO `sys_user_org_ref` VALUES (1336194711996350466, 1313694379541635074, 1332879851278856193, '2');
INSERT INTO `sys_user_org_ref` VALUES (1336204588500140033, 1315224823500120066, 1332878633177477122, '1');
-COMMIT;
-- ----------------------------
-- Table structure for sys_user_role_ref
-- ----------------------------
DROP TABLE IF EXISTS `sys_user_role_ref`;
-CREATE TABLE `sys_user_role_ref` (
+CREATE TABLE `sys_user_role_ref` (
`id` bigint(19) NOT NULL COMMENT '用户角色关联',
`user_id` bigint(19) NOT NULL COMMENT '用户主键',
`role_id` bigint(19) NOT NULL COMMENT '角色主键',
PRIMARY KEY (`id`) USING BTREE,
- KEY `sys_user_role` (`user_id`,`role_id`) USING BTREE
-) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='用户角色关联表';
+ INDEX `sys_user_role`(`user_id`, `role_id`) USING BTREE
+) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '用户角色关联表' ROW_FORMAT = Dynamic;
-- ----------------------------
-- Records of sys_user_role_ref
-- ----------------------------
-BEGIN;
INSERT INTO `sys_user_role_ref` VALUES (1365262284070248450, 1, 1313050074675007490);
INSERT INTO `sys_user_role_ref` VALUES (1365262284091219969, 1, 1313050098867752962);
INSERT INTO `sys_user_role_ref` VALUES (1365262284091219970, 1, 1313050122074836994);
@@ -6491,34 +6460,32 @@ INSERT INTO `sys_user_role_ref` VALUES (1313807974514323458, 1313694379541635074
INSERT INTO `sys_user_role_ref` VALUES (1315220477014192130, 1315218541317750785, 1313146842146213890);
INSERT INTO `sys_user_role_ref` VALUES (1315224868903460865, 1315224823500120066, 1313146842146213890);
INSERT INTO `sys_user_role_ref` VALUES (1340330479513047041, 1340328715309092866, 1313146842146213890);
-COMMIT;
-- ----------------------------
-- Table structure for test_car
-- ----------------------------
DROP TABLE IF EXISTS `test_car`;
-CREATE TABLE `test_car` (
+CREATE TABLE `test_car` (
`id` bigint(19) NOT NULL COMMENT '主键',
- `car_name` varchar(20) NOT NULL COMMENT '汽车名称',
- `car_type` varchar(20) NOT NULL COMMENT '汽车类型',
- `car_brand` varchar(50) DEFAULT NULL COMMENT '汽车品牌',
+ `car_name` varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '汽车名称',
+ `car_type` varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '汽车类型',
+ `car_brand` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '汽车品牌',
`produce_data` date NOT NULL COMMENT '生产日期',
- `iz_usable` char(1) NOT NULL COMMENT '是否启用',
- `tenant_id` bigint(19) DEFAULT NULL COMMENT '多租户ID',
- `deleted` char(1) NOT NULL COMMENT '删除标记:0未删除,1删除',
+ `iz_usable` char(1) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '是否启用',
+ `tenant_id` bigint(19) NULL DEFAULT NULL COMMENT '多租户ID',
+ `deleted` char(1) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '删除标记:0未删除,1删除',
`version` int(10) NOT NULL COMMENT '版本号(乐观锁)',
`create_by` bigint(19) NOT NULL COMMENT '创建用户',
- `create_time` datetime NOT NULL COMMENT '创建日期',
+ `create_time` datetime(0) NOT NULL COMMENT '创建日期',
`update_by` bigint(19) NOT NULL COMMENT '修改用户',
- `update_time` datetime NOT NULL COMMENT '修改日期',
- `ts` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '时间戳',
+ `update_time` datetime(0) NOT NULL COMMENT '修改日期',
+ `ts` timestamp(0) NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP(0) COMMENT '时间戳',
PRIMARY KEY (`id`) USING BTREE
-) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='测试汽车';
+) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '测试汽车' ROW_FORMAT = Dynamic;
-- ----------------------------
-- Records of test_car
-- ----------------------------
-BEGIN;
INSERT INTO `test_car` VALUES (1340634224709677058, '奔驰GXX', 'Gxx', '奔驰', '2020-12-20', '1', 1, '0', 0, 1313694379541635074, '2020-12-20 20:24:42', 1313694379541635074, '2020-12-20 20:24:42', '2021-04-08 23:51:39');
INSERT INTO `test_car` VALUES (1340634337075081217, '北汽绅宝', '电动', '绅宝', '2020-12-13', '1', 1, '0', 0, 1313694379541635074, '2020-12-20 20:25:08', 1313694379541635074, '2020-12-20 20:25:08', '2021-04-08 23:51:39');
INSERT INTO `test_car` VALUES (1340634432696823810, '宝马7系', '烧油', '宝马', '2020-12-20', '0', 1, '0', 0, 1313694379541635074, '2020-12-20 20:25:31', 1313694379541635074, '2020-12-20 20:25:31', '2021-04-08 23:51:39');
@@ -6526,141 +6493,139 @@ INSERT INTO `test_car` VALUES (1340634485616357378, '测试', '123', '123', '202
INSERT INTO `test_car` VALUES (1340635288087375874, '宝马7系', '烧油', '宝马', '2020-12-20', '0', 1, '0', 2, 1313694379541635074, '2020-12-20 20:28:55', 1313694379541635074, '2021-01-18 17:08:23', '2021-04-08 23:51:39');
INSERT INTO `test_car` VALUES (1340635288095764482, '北汽绅宝', '电动', '绅宝', '2020-12-13', '1', 1, '0', 0, 1313694379541635074, '2020-12-20 20:28:55', 1313694379541635074, '2020-12-20 20:28:55', '2021-04-08 23:51:39');
INSERT INTO `test_car` VALUES (1340635288099958786, '奔驰GXX', 'Gxx', '奔驰', '2020-12-20', '1', 1, '0', 0, 1313694379541635074, '2020-12-20 20:28:55', 1313694379541635074, '2020-12-20 20:28:55', '2021-04-08 23:51:39');
-COMMIT;
-- ----------------------------
-- Table structure for test_car_copy1
-- ----------------------------
DROP TABLE IF EXISTS `test_car_copy1`;
-CREATE TABLE `test_car_copy1` (
+CREATE TABLE `test_car_copy1` (
`id` bigint(19) NOT NULL COMMENT '主键',
- `car_name` varchar(20) NOT NULL COMMENT '汽车名称',
- `car_type` varchar(20) NOT NULL COMMENT '汽车类型',
- `car_brand` varchar(50) DEFAULT NULL COMMENT '汽车品牌',
+ `car_name` varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '汽车名称',
+ `car_type` varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '汽车类型',
+ `car_brand` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '汽车品牌',
`produce_data` date NOT NULL COMMENT '生产日期',
- `iz_usable` char(1) NOT NULL COMMENT '是否启用',
- `tenant_id` bigint(19) DEFAULT NULL COMMENT '多租户ID',
- `deleted` char(1) NOT NULL COMMENT '删除标记:0未删除,1删除',
+ `iz_usable` char(1) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '是否启用',
+ `tenant_id` bigint(19) NULL DEFAULT NULL COMMENT '多租户ID',
+ `deleted` char(1) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '删除标记:0未删除,1删除',
`version` int(10) NOT NULL COMMENT '版本号(乐观锁)',
`create_by` bigint(19) NOT NULL COMMENT '创建用户',
- `create_time` datetime NOT NULL COMMENT '创建日期',
+ `create_time` datetime(0) NOT NULL COMMENT '创建日期',
`update_by` bigint(19) NOT NULL COMMENT '修改用户',
- `update_time` datetime NOT NULL COMMENT '修改日期',
- `ts` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '时间戳',
+ `update_time` datetime(0) NOT NULL COMMENT '修改日期',
+ `ts` timestamp(0) NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP(0) COMMENT '时间戳',
PRIMARY KEY (`id`) USING BTREE
-) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='测试';
+) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '测试' ROW_FORMAT = Dynamic;
-- ----------------------------
-- Table structure for test_car_copy2
-- ----------------------------
DROP TABLE IF EXISTS `test_car_copy2`;
-CREATE TABLE `test_car_copy2` (
+CREATE TABLE `test_car_copy2` (
`id` bigint(19) NOT NULL COMMENT '主键',
- `car_name` varchar(20) NOT NULL COMMENT '汽车名称',
- `car_type` varchar(20) NOT NULL COMMENT '汽车类型',
- `car_brand` varchar(50) DEFAULT NULL COMMENT '汽车品牌',
+ `car_name` varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '汽车名称',
+ `car_type` varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '汽车类型',
+ `car_brand` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '汽车品牌',
`produce_data` date NOT NULL COMMENT '生产日期',
- `iz_usable` char(1) NOT NULL COMMENT '是否启用',
- `tenant_id` bigint(19) DEFAULT NULL COMMENT '多租户ID',
- `deleted` char(1) NOT NULL COMMENT '删除标记:0未删除,1删除',
+ `iz_usable` char(1) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '是否启用',
+ `tenant_id` bigint(19) NULL DEFAULT NULL COMMENT '多租户ID',
+ `deleted` char(1) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '删除标记:0未删除,1删除',
`version` int(10) NOT NULL COMMENT '版本号(乐观锁)',
`create_by` bigint(19) NOT NULL COMMENT '创建用户',
- `create_time` datetime NOT NULL COMMENT '创建日期',
+ `create_time` datetime(0) NOT NULL COMMENT '创建日期',
`update_by` bigint(19) NOT NULL COMMENT '修改用户',
- `update_time` datetime NOT NULL COMMENT '修改日期',
- `ts` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '时间戳',
+ `update_time` datetime(0) NOT NULL COMMENT '修改日期',
+ `ts` timestamp(0) NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP(0) COMMENT '时间戳',
PRIMARY KEY (`id`) USING BTREE
-) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='测试';
+) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '测试' ROW_FORMAT = Dynamic;
-- ----------------------------
-- Table structure for test_car_copy3
-- ----------------------------
DROP TABLE IF EXISTS `test_car_copy3`;
-CREATE TABLE `test_car_copy3` (
+CREATE TABLE `test_car_copy3` (
`id` bigint(19) NOT NULL COMMENT '主键',
- `car_name` varchar(20) NOT NULL COMMENT '汽车名称',
- `car_type` varchar(20) NOT NULL COMMENT '汽车类型',
- `car_brand` varchar(50) DEFAULT NULL COMMENT '汽车品牌',
+ `car_name` varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '汽车名称',
+ `car_type` varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '汽车类型',
+ `car_brand` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '汽车品牌',
`produce_data` date NOT NULL COMMENT '生产日期',
- `iz_usable` char(1) NOT NULL COMMENT '是否启用',
- `tenant_id` bigint(19) DEFAULT NULL COMMENT '多租户ID',
- `deleted` char(1) NOT NULL COMMENT '删除标记:0未删除,1删除',
+ `iz_usable` char(1) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '是否启用',
+ `tenant_id` bigint(19) NULL DEFAULT NULL COMMENT '多租户ID',
+ `deleted` char(1) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '删除标记:0未删除,1删除',
`version` int(10) NOT NULL COMMENT '版本号(乐观锁)',
`create_by` bigint(19) NOT NULL COMMENT '创建用户',
- `create_time` datetime NOT NULL COMMENT '创建日期',
+ `create_time` datetime(0) NOT NULL COMMENT '创建日期',
`update_by` bigint(19) NOT NULL COMMENT '修改用户',
- `update_time` datetime NOT NULL COMMENT '修改日期',
- `ts` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '时间戳',
+ `update_time` datetime(0) NOT NULL COMMENT '修改日期',
+ `ts` timestamp(0) NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP(0) COMMENT '时间戳',
PRIMARY KEY (`id`) USING BTREE
-) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='测试';
+) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '测试' ROW_FORMAT = Dynamic;
-- ----------------------------
-- Table structure for test_car_copy4
-- ----------------------------
DROP TABLE IF EXISTS `test_car_copy4`;
-CREATE TABLE `test_car_copy4` (
+CREATE TABLE `test_car_copy4` (
`id` bigint(19) NOT NULL COMMENT '主键',
- `car_name` varchar(20) NOT NULL COMMENT '汽车名称',
- `car_type` varchar(20) NOT NULL COMMENT '汽车类型',
- `car_brand` varchar(50) DEFAULT NULL COMMENT '汽车品牌',
+ `car_name` varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '汽车名称',
+ `car_type` varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '汽车类型',
+ `car_brand` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '汽车品牌',
`produce_data` date NOT NULL COMMENT '生产日期',
- `iz_usable` char(1) NOT NULL COMMENT '是否启用',
- `tenant_id` bigint(19) DEFAULT NULL COMMENT '多租户ID',
- `deleted` char(1) NOT NULL COMMENT '删除标记:0未删除,1删除',
+ `iz_usable` char(1) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '是否启用',
+ `tenant_id` bigint(19) NULL DEFAULT NULL COMMENT '多租户ID',
+ `deleted` char(1) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '删除标记:0未删除,1删除',
`version` int(10) NOT NULL COMMENT '版本号(乐观锁)',
`create_by` bigint(19) NOT NULL COMMENT '创建用户',
- `create_time` datetime NOT NULL COMMENT '创建日期',
+ `create_time` datetime(0) NOT NULL COMMENT '创建日期',
`update_by` bigint(19) NOT NULL COMMENT '修改用户',
- `update_time` datetime NOT NULL COMMENT '修改日期',
- `ts` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '时间戳',
+ `update_time` datetime(0) NOT NULL COMMENT '修改日期',
+ `ts` timestamp(0) NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP(0) COMMENT '时间戳',
PRIMARY KEY (`id`) USING BTREE
-) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='测试';
+) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '测试' ROW_FORMAT = Dynamic;
-- ----------------------------
-- Table structure for test_car_copy5
-- ----------------------------
DROP TABLE IF EXISTS `test_car_copy5`;
-CREATE TABLE `test_car_copy5` (
+CREATE TABLE `test_car_copy5` (
`id` bigint(19) NOT NULL COMMENT '主键',
- `car_name` varchar(20) NOT NULL COMMENT '汽车名称',
- `car_type` varchar(20) NOT NULL COMMENT '汽车类型',
- `car_brand` varchar(50) DEFAULT NULL COMMENT '汽车品牌',
+ `car_name` varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '汽车名称',
+ `car_type` varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '汽车类型',
+ `car_brand` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '汽车品牌',
`produce_data` date NOT NULL COMMENT '生产日期',
- `iz_usable` char(1) NOT NULL COMMENT '是否启用',
- `tenant_id` bigint(19) DEFAULT NULL COMMENT '多租户ID',
- `deleted` char(1) NOT NULL COMMENT '删除标记:0未删除,1删除',
+ `iz_usable` char(1) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '是否启用',
+ `tenant_id` bigint(19) NULL DEFAULT NULL COMMENT '多租户ID',
+ `deleted` char(1) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '删除标记:0未删除,1删除',
`version` int(10) NOT NULL COMMENT '版本号(乐观锁)',
`create_by` bigint(19) NOT NULL COMMENT '创建用户',
- `create_time` datetime NOT NULL COMMENT '创建日期',
+ `create_time` datetime(0) NOT NULL COMMENT '创建日期',
`update_by` bigint(19) NOT NULL COMMENT '修改用户',
- `update_time` datetime NOT NULL COMMENT '修改日期',
- `ts` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '时间戳',
+ `update_time` datetime(0) NOT NULL COMMENT '修改日期',
+ `ts` timestamp(0) NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP(0) COMMENT '时间戳',
PRIMARY KEY (`id`) USING BTREE
-) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='测试';
+) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '测试' ROW_FORMAT = Dynamic;
-- ----------------------------
-- Table structure for test_entity
-- ----------------------------
DROP TABLE IF EXISTS `test_entity`;
-CREATE TABLE `test_entity` (
+CREATE TABLE `test_entity` (
`id` bigint(19) NOT NULL,
- `name` varchar(255) DEFAULT NULL,
- `type` varchar(120) NOT NULL,
- `remark` varchar(255) DEFAULT NULL,
- `tenant_id` bigint(19) DEFAULT NULL COMMENT '多租户ID',
+ `name` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL,
+ `type` varchar(120) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL,
+ `remark` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL,
+ `tenant_id` bigint(19) NULL DEFAULT NULL COMMENT '多租户ID',
`create_by` bigint(19) NOT NULL,
- `create_time` datetime NOT NULL,
+ `create_time` datetime(0) NOT NULL,
`update_by` bigint(19) NOT NULL,
- `update_time` datetime NOT NULL,
+ `update_time` datetime(0) NOT NULL,
`version` int(11) NOT NULL,
- `ts` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '时间戳',
+ `ts` timestamp(0) NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP(0) COMMENT '时间戳',
PRIMARY KEY (`id`) USING BTREE
-) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
+) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci ROW_FORMAT = Dynamic;
-- ----------------------------
-- Records of test_entity
-- ----------------------------
-BEGIN;
INSERT INTO `test_entity` VALUES (1364199553082777601, '测试名称1607593481', '1', '测试备注138092174', 1, 1313694379541635074, '2021-02-23 21:04:54', 1313694379541635074, '2021-02-23 21:04:54', 0, '2021-04-08 23:52:08');
INSERT INTO `test_entity` VALUES (1364199553678368770, '测试名称612578871', '4', '测试备注-861279371', 1, 1313694379541635074, '2021-02-23 21:04:54', 1313694379541635074, '2021-02-23 21:04:54', 0, '2021-04-08 23:52:08');
INSERT INTO `test_entity` VALUES (1364199553732894722, '测试名称-520336040', '4', '测试备注-20781738', 1, 1313694379541635074, '2021-02-23 21:04:54', 1313694379541635074, '2021-02-23 21:04:54', 0, '2021-04-08 23:52:08');
@@ -31385,34 +31350,32 @@ INSERT INTO `test_entity` VALUES (1365267353196998658, '测试名称948161445',
INSERT INTO `test_entity` VALUES (1365267353243136001, '测试名称2080299310', '4', '测试备注1396804893', 1, 1313694379541635074, '2021-02-26 19:47:57', 1313694379541635074, '2021-02-26 19:47:57', 0, '2021-04-08 23:52:08');
INSERT INTO `test_entity` VALUES (1365267353289273346, '测试名称39969223', '4', '测试备注-1782248735', 1, 1313694379541635074, '2021-02-26 19:47:57', 1313694379541635074, '2021-02-26 19:47:57', 0, '2021-04-08 23:52:08');
INSERT INTO `test_entity` VALUES (1365267353335410690, '测试名称2131386477', '0', '测试备注-431824416', 1, 1313694379541635074, '2021-02-26 19:47:57', 1313694379541635074, '2021-02-26 19:47:57', 0, '2021-04-08 23:52:08');
-COMMIT;
-- ----------------------------
-- Table structure for test_user
-- ----------------------------
DROP TABLE IF EXISTS `test_user`;
-CREATE TABLE `test_user` (
+CREATE TABLE `test_user` (
`id` bigint(19) NOT NULL COMMENT '主键',
- `name` varchar(50) DEFAULT NULL COMMENT '名称',
- `money` double(8,2) NOT NULL COMMENT '金钱',
+ `name` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '名称',
+ `money` double(8, 2) NOT NULL COMMENT '金钱',
`age` smallint(5) NOT NULL COMMENT '年龄',
`birth` date NOT NULL COMMENT '生日',
- `iz_usable` char(1) NOT NULL COMMENT '是否启用',
- `tenant_id` bigint(19) DEFAULT NULL COMMENT '多租户ID',
- `deleted` char(1) NOT NULL COMMENT '删除标记:0未删除,1删除',
+ `iz_usable` char(1) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '是否启用',
+ `tenant_id` bigint(19) NULL DEFAULT NULL COMMENT '多租户ID',
+ `deleted` char(1) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '删除标记:0未删除,1删除',
`version` int(10) NOT NULL COMMENT '版本号(乐观锁)',
`create_by` bigint(19) NOT NULL COMMENT '创建用户',
- `create_time` datetime NOT NULL COMMENT '创建日期',
+ `create_time` datetime(0) NOT NULL COMMENT '创建日期',
`update_by` bigint(19) NOT NULL COMMENT '修改用户',
- `update_time` datetime NOT NULL COMMENT '修改日期',
- `ts` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '时间戳',
+ `update_time` datetime(0) NOT NULL COMMENT '修改日期',
+ `ts` timestamp(0) NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP(0) COMMENT '时间戳',
PRIMARY KEY (`id`) USING BTREE
-) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='某系统用户';
+) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '某系统用户' ROW_FORMAT = Dynamic;
-- ----------------------------
-- Records of test_user
-- ----------------------------
-BEGIN;
INSERT INTO `test_user` VALUES (1330395579818037249, '张三', 123.00, 11, '2020-11-03', '1', NULL, '0', 1, 1, '2020-11-22 14:19:58', 1, '2020-11-22 14:21:53', '2021-04-08 23:52:13');
INSERT INTO `test_user` VALUES (1330395677499183106, '李四', 123.00, 19, '2020-11-04', '0', NULL, '0', 0, 1, '2020-11-22 14:20:22', 1, '2020-11-22 14:20:22', '2021-04-08 23:52:13');
INSERT INTO `test_user` VALUES (1330395764019286017, '王五', 123.00, 12, '2020-11-02', '1', NULL, '0', 0, 1, '2020-11-22 14:20:42', 1, '2020-11-22 14:20:42', '2021-04-08 23:52:13');
@@ -31432,6 +31395,5 @@ INSERT INTO `test_user` VALUES (1336252034586361857, '李四', 1000.00, 22, '199
INSERT INTO `test_user` VALUES (1338285518968438785, '周宇琪', 9999.00, 21, '1979-12-01', '0', 1, '0', 9, 1313694379541635074, '2020-12-14 08:51:47', 1313694379541635074, '2021-01-18 17:08:18', '2021-04-08 23:52:13');
INSERT INTO `test_user` VALUES (1338682114751184897, '张世荣', 565433.00, 20, '2020-12-01', '0', 1, '1', 1, 1313694379541635074, '2020-12-15 11:07:42', 1313694379541635074, '2020-12-16 14:10:22', '2021-04-08 23:52:13');
INSERT INTO `test_user` VALUES (1339439636625866754, '李佳昌', 1111.00, 111, '2020-12-01', '1', 1, '1', 0, 1313694379541635074, '2020-12-17 13:17:50', 1313694379541635074, '2020-12-17 13:17:50', '2021-04-08 23:52:13');
-COMMIT;
SET FOREIGN_KEY_CHECKS = 1;