【7.3.0】更新int的警告

pull/20/head
fengshuonan 2022-10-27 03:03:52 +08:00
parent 3b20fffbad
commit 2fd57577a5
1 changed files with 202 additions and 202 deletions

View File

@ -2,14 +2,14 @@
-- Table structure for hr_org_approver
-- ----------------------------
CREATE TABLE `hr_org_approver` (
`org_approver_id` bigint(20) NOT NULL COMMENT '主键id',
`org_approver_type` tinyint(4) NULL DEFAULT NULL COMMENT '组织审批类型1-负责人2-部长3-体系负责人4-部门助理5-资产助理专员6-考勤专员7-HRBP8-门禁员9-办公账号员10-转岗须知员',
`org_id` bigint(20) NULL DEFAULT NULL COMMENT '组织机构id',
`user_id` bigint(20) NULL DEFAULT NULL COMMENT '用户id',
`org_approver_id` bigint NOT NULL COMMENT '主键id',
`org_approver_type` tinyint NULL DEFAULT NULL COMMENT '组织审批类型1-负责人2-部长3-体系负责人4-部门助理5-资产助理专员6-考勤专员7-HRBP8-门禁员9-办公账号员10-转岗须知员',
`org_id` bigint NULL DEFAULT NULL COMMENT '组织机构id',
`user_id` bigint NULL DEFAULT NULL COMMENT '用户id',
`create_time` datetime(0) NULL DEFAULT NULL COMMENT '创建时间',
`create_user` bigint(20) NULL DEFAULT NULL COMMENT '创建人',
`create_user` bigint NULL DEFAULT NULL COMMENT '创建人',
`update_time` datetime(0) NULL DEFAULT NULL COMMENT '更新时间',
`update_user` bigint(20) NULL DEFAULT NULL COMMENT '更新人',
`update_user` bigint NULL DEFAULT NULL COMMENT '更新人',
PRIMARY KEY (`org_approver_id`) USING BTREE
) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '组织机构审批人' ROW_FORMAT = Dynamic;
@ -21,21 +21,21 @@ CREATE TABLE `hr_org_approver` (
-- Table structure for hr_organization
-- ----------------------------
CREATE TABLE `hr_organization` (
`org_id` bigint(20) NOT NULL COMMENT '主键',
`org_parent_id` bigint(20) NOT NULL COMMENT '父id一级节点父id是0',
`org_id` bigint NOT NULL COMMENT '主键',
`org_parent_id` bigint NOT NULL COMMENT '父id一级节点父id是0',
`org_pids` varchar(500) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '父ids',
`org_name` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '组织名称',
`org_code` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '组织编码',
`org_sort` decimal(10, 2) NOT NULL COMMENT '排序',
`status_flag` tinyint(4) NOT NULL COMMENT '状态1-启用2-禁用',
`org_type` tinyint(4) NULL DEFAULT 1 COMMENT '组织机构类型1-公司2-部门',
`status_flag` tinyint NOT NULL COMMENT '状态1-启用2-禁用',
`org_type` tinyint NULL DEFAULT 1 COMMENT '组织机构类型1-公司2-部门',
`tax_no` varchar(30) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '税号',
`org_remark` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '描述',
`del_flag` char(1) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '删除标记Y-已删除N-未删除',
`create_time` datetime(0) NULL DEFAULT NULL COMMENT '创建时间',
`create_user` bigint(20) NULL DEFAULT NULL COMMENT '创建人',
`create_user` bigint NULL DEFAULT NULL COMMENT '创建人',
`update_time` datetime(0) NULL DEFAULT NULL COMMENT '更新时间',
`update_user` bigint(20) NULL DEFAULT NULL COMMENT '更新人',
`update_user` bigint NULL DEFAULT NULL COMMENT '更新人',
PRIMARY KEY (`org_id`) USING BTREE
) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '组织机构信息' ROW_FORMAT = Dynamic;
@ -50,17 +50,17 @@ INSERT INTO `hr_organization` VALUES (1339554696976781409, 1339554696976781408,
-- Table structure for hr_position
-- ----------------------------
CREATE TABLE `hr_position` (
`position_id` bigint(20) NOT NULL COMMENT '主键',
`position_id` bigint NOT NULL COMMENT '主键',
`position_name` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '职位名称',
`position_code` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '职位编码',
`position_sort` decimal(10, 2) NOT NULL COMMENT '排序',
`status_flag` tinyint(4) NOT NULL DEFAULT 0 COMMENT '状态1-启用2-禁用',
`status_flag` tinyint NOT NULL DEFAULT 0 COMMENT '状态1-启用2-禁用',
`position_remark` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '备注',
`del_flag` char(1) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '删除标记Y-已删除N-未删除',
`create_time` datetime(0) NULL DEFAULT NULL COMMENT '创建时间',
`create_user` bigint(20) NULL DEFAULT NULL COMMENT '创建人',
`create_user` bigint NULL DEFAULT NULL COMMENT '创建人',
`update_time` datetime(0) NULL DEFAULT NULL COMMENT '更新时间',
`update_user` bigint(20) NULL DEFAULT NULL COMMENT '更新人',
`update_user` bigint NULL DEFAULT NULL COMMENT '更新人',
PRIMARY KEY (`position_id`) USING BTREE
) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '职位信息' ROW_FORMAT = Dynamic;
@ -75,19 +75,19 @@ INSERT INTO `hr_position` VALUES (1339554696976781334, '董事长', 'dsz', 3.00,
-- Table structure for sys_app
-- ----------------------------
CREATE TABLE `sys_app` (
`app_id` bigint(20) NOT NULL COMMENT '主键id',
`app_id` bigint NOT NULL COMMENT '主键id',
`app_name` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '应用名称',
`app_code` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '编码',
`app_icon` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '应用图标',
`active_flag` char(1) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '是否默认激活Y-是N-否,激活的应用下的菜单会在首页默认展开',
`status_flag` tinyint(4) NOT NULL COMMENT '状态1-启用2-禁用',
`app_sort` int(11) NULL DEFAULT NULL COMMENT '排序',
`status_flag` tinyint NOT NULL COMMENT '状态1-启用2-禁用',
`app_sort` int NULL DEFAULT NULL COMMENT '排序',
`devops_flag` char(1) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT 'N' COMMENT '是否是devops应用Y-是N-否',
`del_flag` char(1) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '是否删除Y-已删除N-未删除',
`create_time` datetime(0) NULL DEFAULT NULL COMMENT '创建时间',
`create_user` bigint(20) NULL DEFAULT NULL COMMENT '创建人',
`create_user` bigint NULL DEFAULT NULL COMMENT '创建人',
`update_time` datetime(0) NULL DEFAULT NULL COMMENT '修改时间',
`update_user` bigint(20) NULL DEFAULT NULL COMMENT '修改人',
`update_user` bigint NULL DEFAULT NULL COMMENT '修改人',
PRIMARY KEY (`app_id`) USING BTREE,
UNIQUE INDEX `APP_CODE_UNIQUE`(`app_code`) USING BTREE COMMENT 'app编码唯一'
) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '系统应用' ROW_FORMAT = Dynamic;
@ -102,19 +102,19 @@ INSERT INTO `sys_app` VALUES (1508982167982678018, '字段拓展', 'fieldExpand'
-- Table structure for sys_config
-- ----------------------------
CREATE TABLE `sys_config` (
`config_id` bigint(20) NOT NULL COMMENT '主键',
`config_id` bigint NOT NULL COMMENT '主键',
`config_name` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '名称',
`config_code` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT NULL COMMENT '属性编码',
`config_value` varchar(3500) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '属性值',
`sys_flag` char(1) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT 'Y' COMMENT '是否是系统参数Y-是N-否',
`remark` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT NULL COMMENT '备注',
`status_flag` tinyint(4) NULL DEFAULT 1 COMMENT '状态1-正常2-停用',
`status_flag` tinyint NULL DEFAULT 1 COMMENT '状态1-正常2-停用',
`group_code` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT NULL COMMENT '常量所属分类的编码,来自于“常量的分类”字典',
`del_flag` char(1) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT 'N' COMMENT '是否删除Y-被删除N-未删除',
`create_time` datetime(0) NULL DEFAULT NULL COMMENT '创建时间',
`create_user` bigint(20) NULL DEFAULT NULL COMMENT '创建人',
`create_user` bigint NULL DEFAULT NULL COMMENT '创建人',
`update_time` datetime(0) NULL DEFAULT NULL COMMENT '修改时间',
`update_user` bigint(20) NULL DEFAULT NULL COMMENT '修改人',
`update_user` bigint NULL DEFAULT NULL COMMENT '修改人',
PRIMARY KEY (`config_id`) USING BTREE,
UNIQUE INDEX `code_unique`(`config_code`) USING BTREE COMMENT '配置编码唯一索引'
) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '参数配置' ROW_FORMAT = Dynamic;
@ -211,21 +211,21 @@ INSERT INTO `sys_config` VALUES (1581687626275000321, '登录密码是否进行R
-- Table structure for sys_database_info
-- ----------------------------
CREATE TABLE `sys_database_info` (
`db_id` bigint(20) NOT NULL COMMENT '主键',
`db_id` bigint NOT NULL COMMENT '主键',
`db_name` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '数据库名称(英文名称)',
`jdbc_driver` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL COMMENT 'jdbc的驱动类型',
`jdbc_url` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL COMMENT 'jdbc的url',
`username` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '数据库连接的账号',
`password` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '数据库连接密码',
`schema_name` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT NULL COMMENT '数据库的schema名称每种数据库的schema意义都不同',
`status_flag` tinyint(4) NULL DEFAULT NULL COMMENT '数据源状态1-正常2-无法连接',
`status_flag` tinyint NULL DEFAULT NULL COMMENT '数据源状态1-正常2-无法连接',
`error_description` varchar(500) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT NULL COMMENT '连接失败原因',
`remarks` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT NULL COMMENT '备注,摘要',
`del_flag` char(1) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT 'N' COMMENT '是否删除Y-被删除N-未删除',
`create_time` datetime(0) NULL DEFAULT NULL COMMENT '创建时间',
`create_user` bigint(20) NULL DEFAULT NULL COMMENT '创建人',
`create_user` bigint NULL DEFAULT NULL COMMENT '创建人',
`update_time` datetime(0) NULL DEFAULT NULL COMMENT '修改时间',
`update_user` bigint(20) NULL DEFAULT NULL COMMENT '修改人',
`update_user` bigint NULL DEFAULT NULL COMMENT '修改人',
PRIMARY KEY (`db_id`) USING BTREE
) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '多数据源信息' ROW_FORMAT = Dynamic;
@ -238,7 +238,7 @@ INSERT INTO `sys_database_info` VALUES (1582737298775080962, 'master', 'com.mysq
-- Table structure for sys_dict
-- ----------------------------
CREATE TABLE `sys_dict` (
`dict_id` bigint(20) NOT NULL COMMENT '字典id',
`dict_id` bigint NOT NULL COMMENT '字典id',
`dict_code` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '字典编码',
`dict_name` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '字典名称',
`dict_name_pinyin` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT NULL COMMENT '字典名称首字母',
@ -246,15 +246,15 @@ CREATE TABLE `sys_dict` (
`dict_type_code` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '字典类型的编码',
`dict_short_name` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT NULL COMMENT '字典简称',
`dict_short_code` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT NULL COMMENT '字典简称的编码',
`dict_parent_id` bigint(20) NOT NULL COMMENT '上级字典的id(如果没有上级字典id则为-1)',
`status_flag` tinyint(4) NOT NULL COMMENT '状态:(1-启用,2-禁用),参考 StatusEnum',
`dict_parent_id` bigint NOT NULL COMMENT '上级字典的id(如果没有上级字典id则为-1)',
`status_flag` tinyint NOT NULL COMMENT '状态:(1-启用,2-禁用),参考 StatusEnum',
`dict_sort` decimal(10, 2) NULL DEFAULT NULL COMMENT '排序,带小数点',
`dict_pids` varchar(1000) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '父id集合',
`del_flag` char(1) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT 'N' COMMENT '是否删除Y-被删除N-未删除',
`create_time` datetime(0) NULL DEFAULT NULL COMMENT '创建时间',
`create_user` bigint(20) NULL DEFAULT NULL COMMENT '创建用户id',
`create_user` bigint NULL DEFAULT NULL COMMENT '创建用户id',
`update_time` datetime(0) NULL DEFAULT NULL COMMENT '修改时间',
`update_user` bigint(20) NULL DEFAULT NULL COMMENT '修改用户id',
`update_user` bigint NULL DEFAULT NULL COMMENT '修改用户id',
PRIMARY KEY (`dict_id`) USING BTREE
) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '字典' ROW_FORMAT = Dynamic;
@ -304,20 +304,20 @@ INSERT INTO `sys_dict` VALUES (1574327924788568065, '5', '当前申请人部门'
-- Table structure for sys_dict_type
-- ----------------------------
CREATE TABLE `sys_dict_type` (
`dict_type_id` bigint(20) NOT NULL COMMENT '字典类型id',
`dict_type_class` int(11) NULL DEFAULT NULL COMMENT '字典类型: 1-业务类型2-系统类型,参考 DictTypeClassEnum',
`dict_type_id` bigint NOT NULL COMMENT '字典类型id',
`dict_type_class` int NULL DEFAULT NULL COMMENT '字典类型: 1-业务类型2-系统类型,参考 DictTypeClassEnum',
`dict_type_bus_code` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT NULL COMMENT '字典类型业务编码',
`dict_type_code` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT NULL COMMENT '字典类型编码',
`dict_type_name` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT NULL COMMENT '字典类型名称',
`dict_type_name_pinyin` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT NULL COMMENT '字典类型名称首字母拼音',
`dict_type_desc` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT NULL COMMENT '字典类型描述',
`status_flag` tinyint(4) NULL DEFAULT NULL COMMENT '字典类型的状态1-启用2-禁用,参考 StatusEnum',
`status_flag` tinyint NULL DEFAULT NULL COMMENT '字典类型的状态1-启用2-禁用,参考 StatusEnum',
`dict_type_sort` decimal(10, 2) NULL DEFAULT NULL COMMENT '排序,带小数点',
`del_flag` char(1) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT 'N' COMMENT '是否删除Y-被删除N-未删除',
`create_time` datetime(0) NULL DEFAULT NULL COMMENT '创建时间',
`create_user` bigint(20) NULL DEFAULT NULL COMMENT '创建用户id',
`create_user` bigint NULL DEFAULT NULL COMMENT '创建用户id',
`update_time` datetime(0) NULL DEFAULT NULL COMMENT '修改时间',
`update_user` bigint(20) NULL DEFAULT NULL COMMENT '修改用户id',
`update_user` bigint NULL DEFAULT NULL COMMENT '修改用户id',
PRIMARY KEY (`dict_type_id`) USING BTREE
) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '字典类型' ROW_FORMAT = Dynamic;
@ -339,17 +339,17 @@ INSERT INTO `sys_dict_type` VALUES (1574327405802168321, 1, NULL, 'select_relati
-- Table structure for sys_expand
-- ----------------------------
CREATE TABLE `sys_expand` (
`expand_id` bigint(20) NOT NULL COMMENT '主键id',
`expand_id` bigint NOT NULL COMMENT '主键id',
`expand_name` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '拓展业务名称',
`expand_code` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '拓展业务唯一编码',
`expand_status` tinyint(4) NULL DEFAULT NULL COMMENT '状态1-启用2-禁用',
`expand_status` tinyint NULL DEFAULT NULL COMMENT '状态1-启用2-禁用',
`primary_table_name` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '主业务表例如sys_user',
`primary_field_name` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '业务主键id字段名例如user_id',
`primary_field_camel` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '业务主键id字段名驼峰法例如userId',
`create_time` datetime(0) NULL DEFAULT NULL COMMENT '创建时间',
`create_user` bigint(20) NULL DEFAULT NULL COMMENT '创建人',
`create_user` bigint NULL DEFAULT NULL COMMENT '创建人',
`update_time` datetime(0) NULL DEFAULT NULL COMMENT '更新时间',
`update_user` bigint(20) NULL DEFAULT NULL COMMENT '更新人',
`update_user` bigint NULL DEFAULT NULL COMMENT '更新人',
PRIMARY KEY (`expand_id`) USING BTREE
) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '业务拓展' ROW_FORMAT = Dynamic;
@ -363,14 +363,14 @@ INSERT INTO `sys_expand` VALUES (1509775027464073218, '系统用户', 'user_expa
-- Table structure for sys_expand_data
-- ----------------------------
CREATE TABLE `sys_expand_data` (
`expand_data_id` bigint(20) NOT NULL COMMENT '主键id',
`expand_id` bigint(20) NULL DEFAULT NULL COMMENT '拓展业务id',
`primary_field_value` bigint(20) NULL DEFAULT NULL COMMENT '业务主键id',
`expand_data_id` bigint NOT NULL COMMENT '主键id',
`expand_id` bigint NULL DEFAULT NULL COMMENT '拓展业务id',
`primary_field_value` bigint NULL DEFAULT NULL COMMENT '业务主键id',
`expand_data` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL COMMENT '拓展业务具体数据',
`create_time` datetime(0) NULL DEFAULT NULL COMMENT '创建时间',
`create_user` bigint(20) NULL DEFAULT NULL COMMENT '创建人',
`create_user` bigint NULL DEFAULT NULL COMMENT '创建人',
`update_time` datetime(0) NULL DEFAULT NULL COMMENT '更新时间',
`update_user` bigint(20) NULL DEFAULT NULL COMMENT '更新人',
`update_user` bigint NULL DEFAULT NULL COMMENT '更新人',
PRIMARY KEY (`expand_data_id`) USING BTREE
) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '业务拓展-具体数据' ROW_FORMAT = Dynamic;
@ -382,19 +382,19 @@ CREATE TABLE `sys_expand_data` (
-- Table structure for sys_expand_field
-- ----------------------------
CREATE TABLE `sys_expand_field` (
`field_id` bigint(20) NOT NULL COMMENT '主键id',
`expand_id` bigint(20) NOT NULL COMMENT '对应拓展业务的主键id',
`field_id` bigint NOT NULL COMMENT '主键id',
`expand_id` bigint NOT NULL COMMENT '对应拓展业务的主键id',
`field_name` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '字段中文名称,例如:身份证号',
`field_code` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '字段英文名称例如idCard',
`field_type` tinyint(4) NULL DEFAULT NULL COMMENT '字段类型1-字符串类型2-数字类型3-字典类型',
`field_type` tinyint NULL DEFAULT NULL COMMENT '字段类型1-字符串类型2-数字类型3-字典类型',
`field_required` char(1) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '是否必填Y-必填N-非必填',
`field_length` int(11) NULL DEFAULT NULL COMMENT '属性值长度,用于数字类型',
`field_length` int NULL DEFAULT NULL COMMENT '属性值长度,用于数字类型',
`field_dict_type_code` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '字典类型编码,用于字典类型',
`list_show_flag` char(1) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '列表是否显示Y-显示N-不显示',
`create_time` datetime(0) NULL DEFAULT NULL COMMENT '创建时间',
`create_user` bigint(20) NULL DEFAULT NULL COMMENT '创建人',
`create_user` bigint NULL DEFAULT NULL COMMENT '创建人',
`update_time` datetime(0) NULL DEFAULT NULL COMMENT '更新时间',
`update_user` bigint(20) NULL DEFAULT NULL COMMENT '更新人',
`update_user` bigint NULL DEFAULT NULL COMMENT '更新人',
PRIMARY KEY (`field_id`) USING BTREE
) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '业务拓展-字段信息' ROW_FORMAT = Dynamic;
@ -409,24 +409,24 @@ INSERT INTO `sys_expand_field` VALUES (1527833220710789122, 1509151239135424513,
-- Table structure for sys_file_info
-- ----------------------------
CREATE TABLE `sys_file_info` (
`file_id` bigint(20) NOT NULL COMMENT '文件主键id',
`file_code` bigint(20) NOT NULL COMMENT '文件编码,本号升级的依据,解决一个文件多个版本问题,多次上传文件编码不变',
`file_version` int(11) NOT NULL DEFAULT 1 COMMENT '文件版本从1开始',
`file_id` bigint NOT NULL COMMENT '文件主键id',
`file_code` bigint NOT NULL COMMENT '文件编码,本号升级的依据,解决一个文件多个版本问题,多次上传文件编码不变',
`file_version` int NOT NULL DEFAULT 1 COMMENT '文件版本从1开始',
`file_status` char(1) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '1' COMMENT '当前状态0-历史版,1-最新版',
`file_location` tinyint(4) NOT NULL COMMENT '文件存储位置1-阿里云2-腾讯云3-minio4-本地',
`file_location` tinyint NOT NULL COMMENT '文件存储位置1-阿里云2-腾讯云3-minio4-本地',
`file_bucket` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '文件仓库(文件夹)',
`file_origin_name` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '文件名称(上传时候的文件全名)',
`file_suffix` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT NULL COMMENT '文件后缀,例如.txt',
`file_size_kb` bigint(20) NULL DEFAULT NULL COMMENT '文件大小kb为单位',
`file_size_kb` bigint NULL DEFAULT NULL COMMENT '文件大小kb为单位',
`file_size_info` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT NULL COMMENT '文件大小信息,计算后的',
`file_object_name` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT NULL COMMENT '存储到bucket中的名称主键id+.后缀',
`file_path` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT NULL COMMENT '存储路径',
`secret_flag` char(1) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT NULL COMMENT '是否为机密文件Y-是机密N-不是机密',
`del_flag` char(1) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT 'N' COMMENT '是否删除Y-被删除N-未删除',
`create_time` datetime(0) NULL DEFAULT NULL COMMENT '创建时间',
`create_user` bigint(20) NULL DEFAULT NULL COMMENT '创建人',
`create_user` bigint NULL DEFAULT NULL COMMENT '创建人',
`update_time` datetime(0) NULL DEFAULT NULL COMMENT '修改时间',
`update_user` bigint(20) NULL DEFAULT NULL COMMENT '修改人',
`update_user` bigint NULL DEFAULT NULL COMMENT '修改人',
PRIMARY KEY (`file_id`) USING BTREE
) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '文件信息' ROW_FORMAT = Dynamic;
@ -441,7 +441,7 @@ INSERT INTO `sys_file_info` VALUES (1479753047148322818, 1479753047165100034, 1,
-- Table structure for sys_file_storage
-- ----------------------------
CREATE TABLE `sys_file_storage` (
`file_id` bigint(20) NOT NULL COMMENT '文件主键id关联file_info表的主键',
`file_id` bigint NOT NULL COMMENT '文件主键id关联file_info表的主键',
`file_bytes` longblob NULL COMMENT '具体文件的字节信息',
PRIMARY KEY (`file_id`) USING BTREE
) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '文件存储信息' ROW_FORMAT = Dynamic;
@ -457,15 +457,15 @@ INSERT INTO `sys_file_storage` VALUES (1479753047148322818, 0x89504E470D0A1A0A00
-- Table structure for sys_group
-- ----------------------------
CREATE TABLE `sys_group` (
`group_id` bigint(20) NOT NULL COMMENT '分组id',
`group_id` bigint NOT NULL COMMENT '分组id',
`group_biz_code` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '所属业务类别例如PROJECT',
`group_name` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '分组名称',
`business_id` bigint(20) NULL DEFAULT NULL COMMENT '业务主键id',
`user_id` bigint(20) NULL DEFAULT NULL COMMENT '所属用户id',
`business_id` bigint NULL DEFAULT NULL COMMENT '业务主键id',
`user_id` bigint NULL DEFAULT NULL COMMENT '所属用户id',
`create_time` datetime(0) NULL DEFAULT NULL COMMENT '创建时间',
`create_user` bigint(20) NULL DEFAULT NULL COMMENT '创建人',
`create_user` bigint NULL DEFAULT NULL COMMENT '创建人',
`update_time` datetime(0) NULL DEFAULT NULL COMMENT '更新时间',
`update_user` bigint(20) NULL DEFAULT NULL COMMENT '更新人',
`update_user` bigint NULL DEFAULT NULL COMMENT '更新人',
PRIMARY KEY (`group_id`) USING BTREE
) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '业务分组' ROW_FORMAT = Dynamic;
@ -477,7 +477,7 @@ CREATE TABLE `sys_group` (
-- Table structure for sys_log
-- ----------------------------
CREATE TABLE `sys_log` (
`log_id` bigint(20) NOT NULL COMMENT '主键',
`log_id` bigint NOT NULL COMMENT '主键',
`log_name` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT NULL COMMENT '日志的名称,一般为业务名称',
`log_content` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT NULL COMMENT '日志记录的内容',
`app_name` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT NULL COMMENT '服务名称一般为spring.application.name',
@ -486,14 +486,14 @@ CREATE TABLE `sys_log` (
`request_result` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL COMMENT 'http或方法的请求结果',
`server_ip` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT NULL COMMENT '当前服务器的ip',
`client_ip` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT NULL COMMENT '客户端的ip',
`user_id` bigint(20) NULL DEFAULT NULL COMMENT '用户id',
`user_id` bigint NULL DEFAULT NULL COMMENT '用户id',
`http_method` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT NULL COMMENT '请求http方法',
`client_browser` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT NULL COMMENT '客户浏览器标识',
`client_os` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT NULL COMMENT '客户操作系统',
`create_time` datetime(0) NULL DEFAULT NULL COMMENT '创建时间',
`create_user` bigint(20) NULL DEFAULT NULL COMMENT '创建人',
`create_user` bigint NULL DEFAULT NULL COMMENT '创建人',
`update_time` datetime(0) NULL DEFAULT NULL COMMENT '修改时间',
`update_user` bigint(20) NULL DEFAULT NULL COMMENT '修改人',
`update_user` bigint NULL DEFAULT NULL COMMENT '修改人',
PRIMARY KEY (`log_id`) USING BTREE
) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '日志记录' ROW_FORMAT = Dynamic;
@ -505,12 +505,12 @@ CREATE TABLE `sys_log` (
-- Table structure for sys_login_log
-- ----------------------------
CREATE TABLE `sys_login_log` (
`llg_id` bigint(20) NOT NULL COMMENT '主键',
`llg_id` bigint NOT NULL COMMENT '主键',
`llg_name` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '日志名称',
`llg_succeed` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '是否执行成功',
`llg_message` text CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL COMMENT '具体消息',
`llg_ip_address` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '登录ip',
`user_id` bigint(20) NULL DEFAULT NULL COMMENT '用户id',
`user_id` bigint NULL DEFAULT NULL COMMENT '用户id',
`create_time` datetime(0) NULL DEFAULT NULL COMMENT '创建时间',
PRIMARY KEY (`llg_id`) USING BTREE
) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '登录记录' ROW_FORMAT = Dynamic;
@ -523,14 +523,14 @@ CREATE TABLE `sys_login_log` (
-- Table structure for sys_menu
-- ----------------------------
CREATE TABLE `sys_menu` (
`menu_id` bigint(20) NOT NULL COMMENT '主键',
`menu_parent_id` bigint(20) NOT NULL COMMENT '父id顶级节点的父id是-1',
`menu_id` bigint NOT NULL COMMENT '主键',
`menu_parent_id` bigint NOT NULL COMMENT '父id顶级节点的父id是-1',
`menu_pids` varchar(1000) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '父id集合中括号包住逗号分隔',
`menu_name` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '菜单的名称',
`menu_code` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '菜单的编码',
`app_code` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '应用编码',
`menu_sort` decimal(10, 2) NOT NULL DEFAULT 100.00 COMMENT '排序',
`status_flag` tinyint(4) NOT NULL DEFAULT 1 COMMENT '状态1-启用2-禁用',
`status_flag` tinyint NOT NULL DEFAULT 1 COMMENT '状态1-启用2-禁用',
`remark` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '备注',
`layui_path` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '菜单的路径适用于layui-beetl版本',
`layui_icon` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '菜单的图标适用于layui-beetl版本',
@ -538,16 +538,16 @@ CREATE TABLE `sys_menu` (
`antdv_router` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '路由地址浏览器显示的URL例如/menu适用于antdvue版本',
`antdv_icon` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT 'icon-default' COMMENT '图标适用于antdvue版本',
`antdv_component` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '前端组件名适用于antdvue版本',
`antdv_link_open_type` tinyint(4) NULL DEFAULT 0 COMMENT '外部链接打开方式1-内置打开外链2-新页面外链适用于antdvue版本',
`antdv_link_open_type` tinyint NULL DEFAULT 0 COMMENT '外部链接打开方式1-内置打开外链2-新页面外链适用于antdvue版本',
`antdv_link_url` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '外部链接地址适用于antdvue版本',
`antdv_active_url` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '用于非菜单显示页面的重定向url设置',
`antdv_visible` char(1) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT 'Y' COMMENT '是否可见(分离版用)Y-是N-否',
`antdv_front_type` tinyint(4) NULL DEFAULT NULL COMMENT '前台还是后台菜单1-前台2-后台3-前后台都显示',
`antdv_front_type` tinyint NULL DEFAULT NULL COMMENT '前台还是后台菜单1-前台2-后台3-前后台都显示',
`del_flag` char(1) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT 'N' COMMENT '是否删除Y-被删除N-未删除',
`create_time` datetime(0) NULL DEFAULT NULL COMMENT '创建时间',
`create_user` bigint(20) NULL DEFAULT NULL COMMENT '创建人',
`create_user` bigint NULL DEFAULT NULL COMMENT '创建人',
`update_time` datetime(0) NULL DEFAULT NULL COMMENT '修改时间',
`update_user` bigint(20) NULL DEFAULT NULL COMMENT '修改人',
`update_user` bigint NULL DEFAULT NULL COMMENT '修改人',
PRIMARY KEY (`menu_id`) USING BTREE
) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '系统菜单' ROW_FORMAT = Dynamic;
@ -601,15 +601,15 @@ INSERT INTO `sys_menu` VALUES (1575396079602528258, 1399362846198013953, '[-1],[
-- Table structure for sys_menu_button
-- ----------------------------
CREATE TABLE `sys_menu_button` (
`button_id` bigint(20) NOT NULL COMMENT '主键',
`menu_id` bigint(20) NOT NULL COMMENT '菜单id按钮需要挂在菜单下',
`button_id` bigint NOT NULL COMMENT '主键',
`menu_id` bigint NOT NULL COMMENT '菜单id按钮需要挂在菜单下',
`button_name` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '按钮的名称',
`button_code` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '按钮的编码',
`del_flag` char(1) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT 'N' COMMENT '是否删除Y-被删除N-未删除',
`create_time` datetime(0) NULL DEFAULT NULL COMMENT '创建时间',
`create_user` bigint(20) NULL DEFAULT NULL COMMENT '创建人',
`create_user` bigint NULL DEFAULT NULL COMMENT '创建人',
`update_time` datetime(0) NULL DEFAULT NULL COMMENT '修改时间',
`update_user` bigint(20) NULL DEFAULT NULL COMMENT '修改人',
`update_user` bigint NULL DEFAULT NULL COMMENT '修改人',
PRIMARY KEY (`button_id`) USING BTREE
) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '菜单下的按钮' ROW_FORMAT = Dynamic;
@ -694,14 +694,14 @@ INSERT INTO `sys_menu_button` VALUES (1538827901623959557, 1339550467939639351,
-- Table structure for sys_menu_resource
-- ----------------------------
CREATE TABLE `sys_menu_resource` (
`menu_resource_id` bigint(20) NOT NULL COMMENT '主键',
`business_type` int(11) NOT NULL COMMENT '绑定资源的类型1菜单2菜单下按钮',
`business_id` bigint(20) NOT NULL COMMENT '菜单或按钮id',
`menu_resource_id` bigint NOT NULL COMMENT '主键',
`business_type` int NOT NULL COMMENT '绑定资源的类型1菜单2菜单下按钮',
`business_id` bigint NOT NULL COMMENT '菜单或按钮id',
`resource_code` varchar(300) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT 'N' COMMENT '资源的编码',
`create_time` datetime(0) NULL DEFAULT NULL COMMENT '创建时间',
`create_user` bigint(20) NULL DEFAULT NULL COMMENT '创建人',
`create_user` bigint NULL DEFAULT NULL COMMENT '创建人',
`update_time` datetime(0) NULL DEFAULT NULL COMMENT '修改时间',
`update_user` bigint(20) NULL DEFAULT NULL COMMENT '修改人',
`update_user` bigint NULL DEFAULT NULL COMMENT '修改人',
PRIMARY KEY (`menu_resource_id`) USING BTREE
) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '菜单资源绑定' ROW_FORMAT = Dynamic;
@ -1002,21 +1002,21 @@ INSERT INTO `sys_menu_resource` VALUES (1538830519846928386, 1, 1472814801600692
-- Table structure for sys_message
-- ----------------------------
CREATE TABLE `sys_message` (
`message_id` bigint(20) NOT NULL COMMENT '主键',
`receive_user_id` bigint(20) NULL DEFAULT NULL COMMENT '接收用户id',
`send_user_id` bigint(20) NULL DEFAULT NULL COMMENT '发送用户id',
`message_id` bigint NOT NULL COMMENT '主键',
`receive_user_id` bigint NULL DEFAULT NULL COMMENT '接收用户id',
`send_user_id` bigint NULL DEFAULT NULL COMMENT '发送用户id',
`message_title` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT NULL COMMENT '消息标题',
`message_content` varchar(512) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT NULL COMMENT '消息内容',
`message_type` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT NULL COMMENT '消息类型',
`priority_level` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT NULL COMMENT '优先级',
`message_send_time` datetime(0) NULL DEFAULT NULL COMMENT '消息发送时间',
`business_id` bigint(20) NULL DEFAULT NULL COMMENT '业务id',
`business_id` bigint NULL DEFAULT NULL COMMENT '业务id',
`business_type` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT NULL COMMENT '业务类型(根据业务id和业务类型可以确定业务数据)',
`read_flag` tinyint(4) NULL DEFAULT 0 COMMENT '阅读状态0-未读1-已读',
`read_flag` tinyint NULL DEFAULT 0 COMMENT '阅读状态0-未读1-已读',
`del_flag` char(1) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT 'N' COMMENT '是否删除Y-被删除N-未删除',
`create_user` bigint(20) NULL DEFAULT NULL COMMENT '创建人',
`create_user` bigint NULL DEFAULT NULL COMMENT '创建人',
`create_time` datetime(0) NULL DEFAULT NULL COMMENT '创建时间',
`update_user` bigint(20) NULL DEFAULT NULL COMMENT '修改人',
`update_user` bigint NULL DEFAULT NULL COMMENT '修改人',
`update_time` datetime(0) NULL DEFAULT NULL COMMENT '修改时间',
PRIMARY KEY (`message_id`) USING BTREE
) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '系统消息' ROW_FORMAT = Dynamic;
@ -1029,7 +1029,7 @@ CREATE TABLE `sys_message` (
-- Table structure for sys_notice
-- ----------------------------
CREATE TABLE `sys_notice` (
`notice_id` bigint(20) NOT NULL COMMENT '主键',
`notice_id` bigint NOT NULL COMMENT '主键',
`notice_title` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT NULL COMMENT '通知标题',
`notice_summary` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT NULL COMMENT '通知摘要',
`notice_content` varchar(512) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT NULL COMMENT '通知内容',
@ -1038,9 +1038,9 @@ CREATE TABLE `sys_notice` (
`notice_end_time` datetime(0) NULL DEFAULT NULL COMMENT '结束时间',
`notice_scope` varchar(3000) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT NULL COMMENT '通知范围用户id字符串',
`del_flag` char(1) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT 'N' COMMENT '是否删除Y-被删除N-未删除',
`create_user` bigint(20) NULL DEFAULT NULL COMMENT '创建人',
`create_user` bigint NULL DEFAULT NULL COMMENT '创建人',
`create_time` datetime(0) NULL DEFAULT NULL COMMENT '创建时间',
`update_user` bigint(20) NULL DEFAULT NULL COMMENT '修改人',
`update_user` bigint NULL DEFAULT NULL COMMENT '修改人',
`update_time` datetime(0) NULL DEFAULT NULL COMMENT '修改时间',
PRIMARY KEY (`notice_id`) USING BTREE
) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '通知管理' ROW_FORMAT = Dynamic;
@ -1053,21 +1053,21 @@ CREATE TABLE `sys_notice` (
-- Table structure for sys_role
-- ----------------------------
CREATE TABLE `sys_role` (
`role_id` bigint(20) NOT NULL COMMENT '主键id',
`role_id` bigint NOT NULL COMMENT '主键id',
`role_name` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '角色名称',
`role_code` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '角色编码',
`role_sort` decimal(10, 2) NOT NULL COMMENT '序号',
`data_scope_type` tinyint(4) NOT NULL DEFAULT 1 COMMENT '数据范围类型10-仅本人数据20-本部门数据30-本部门及以下数据40-指定部门数据50-全部数据',
`status_flag` tinyint(4) NOT NULL DEFAULT 0 COMMENT '状态1-启用2-禁用',
`data_scope_type` tinyint NOT NULL DEFAULT 1 COMMENT '数据范围类型10-仅本人数据20-本部门数据30-本部门及以下数据40-指定部门数据50-全部数据',
`status_flag` tinyint NOT NULL DEFAULT 0 COMMENT '状态1-启用2-禁用',
`remark` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '备注',
`admin_flag` char(1) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '是否是管理员角色,管理员角色只能管理后台相关菜单',
`role_system_flag` char(1) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '是否是系统角色Y-是N-否。系统角色不能删除',
`role_type_code` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '字典:角色类型',
`del_flag` char(1) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT 'N' COMMENT '是否删除Y-已删除N-未删除',
`create_time` datetime(0) NULL DEFAULT NULL COMMENT '创建时间',
`create_user` bigint(20) NULL DEFAULT NULL COMMENT '创建人',
`create_user` bigint NULL DEFAULT NULL COMMENT '创建人',
`update_time` datetime(0) NULL DEFAULT NULL COMMENT '更新时间',
`update_user` bigint(20) NULL DEFAULT NULL COMMENT '更新人',
`update_user` bigint NULL DEFAULT NULL COMMENT '更新人',
PRIMARY KEY (`role_id`) USING BTREE
) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '系统角色' ROW_FORMAT = Dynamic;
@ -1083,13 +1083,13 @@ INSERT INTO `sys_role` VALUES (1339550467939639306, 'B端人员', 'b', 4.00, 10,
-- Table structure for sys_role_data_scope
-- ----------------------------
CREATE TABLE `sys_role_data_scope` (
`role_data_scope_id` bigint(20) NOT NULL COMMENT '主键',
`role_id` bigint(20) NOT NULL COMMENT '角色id',
`organization_id` bigint(20) NOT NULL COMMENT '机构id',
`role_data_scope_id` bigint NOT NULL COMMENT '主键',
`role_id` bigint NOT NULL COMMENT '角色id',
`organization_id` bigint NOT NULL COMMENT '机构id',
`create_time` datetime(0) NULL DEFAULT NULL COMMENT '创建时间',
`create_user` bigint(20) NULL DEFAULT NULL COMMENT '创建人',
`create_user` bigint NULL DEFAULT NULL COMMENT '创建人',
`update_time` datetime(0) NULL DEFAULT NULL COMMENT '修改时间',
`update_user` bigint(20) NULL DEFAULT NULL COMMENT '修改人',
`update_user` bigint NULL DEFAULT NULL COMMENT '修改人',
PRIMARY KEY (`role_data_scope_id`) USING BTREE
) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '角色数据范围' ROW_FORMAT = Dynamic;
@ -1101,13 +1101,13 @@ CREATE TABLE `sys_role_data_scope` (
-- Table structure for sys_role_menu
-- ----------------------------
CREATE TABLE `sys_role_menu` (
`role_menu_id` bigint(20) NOT NULL COMMENT '主键',
`role_id` bigint(20) NOT NULL COMMENT '角色id',
`menu_id` bigint(20) NOT NULL COMMENT '菜单id',
`role_menu_id` bigint NOT NULL COMMENT '主键',
`role_id` bigint NOT NULL COMMENT '角色id',
`menu_id` bigint NOT NULL COMMENT '菜单id',
`create_time` datetime(0) NULL DEFAULT NULL COMMENT '创建时间',
`create_user` bigint(20) NULL DEFAULT NULL COMMENT '创建人',
`create_user` bigint NULL DEFAULT NULL COMMENT '创建人',
`update_time` datetime(0) NULL DEFAULT NULL COMMENT '修改时间',
`update_user` bigint(20) NULL DEFAULT NULL COMMENT '修改人',
`update_user` bigint NULL DEFAULT NULL COMMENT '修改人',
PRIMARY KEY (`role_menu_id`) USING BTREE
) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '角色菜单关联' ROW_FORMAT = Dynamic;
@ -1163,14 +1163,14 @@ INSERT INTO `sys_role_menu` VALUES (1425353280486322177, 1339550467939639304, 13
-- Table structure for sys_role_menu_button
-- ----------------------------
CREATE TABLE `sys_role_menu_button` (
`role_button_id` bigint(20) NOT NULL COMMENT '主键',
`role_id` bigint(20) NOT NULL COMMENT '角色id',
`button_id` bigint(20) NOT NULL COMMENT '按钮id',
`role_button_id` bigint NOT NULL COMMENT '主键',
`role_id` bigint NOT NULL COMMENT '角色id',
`button_id` bigint NOT NULL COMMENT '按钮id',
`button_code` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '按钮编码',
`create_time` datetime(0) NULL DEFAULT NULL COMMENT '创建时间',
`create_user` bigint(20) NULL DEFAULT NULL COMMENT '创建人',
`create_user` bigint NULL DEFAULT NULL COMMENT '创建人',
`update_time` datetime(0) NULL DEFAULT NULL COMMENT '修改时间',
`update_user` bigint(20) NULL DEFAULT NULL COMMENT '修改人',
`update_user` bigint NULL DEFAULT NULL COMMENT '修改人',
PRIMARY KEY (`role_button_id`) USING BTREE
) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '角色按钮关联' ROW_FORMAT = Dynamic;
@ -1227,18 +1227,18 @@ INSERT INTO `sys_role_menu_button` VALUES (1425351785732845570, 1339550467939639
-- Table structure for sys_sms
-- ----------------------------
CREATE TABLE `sys_sms` (
`sms_id` bigint(20) NOT NULL COMMENT '主键',
`sms_id` bigint NOT NULL COMMENT '主键',
`phone_number` varchar(11) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT NULL COMMENT '手机号',
`validate_code` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT NULL COMMENT '短信验证码',
`template_code` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT NULL COMMENT '短信模板编号',
`biz_id` varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT NULL COMMENT '业务id',
`status_flag` tinyint(4) NULL DEFAULT NULL COMMENT '发送状态1-未发送2-发送成功3-发送失败4-失效',
`source` int(11) NULL DEFAULT NULL COMMENT '来源1-app2-pc3-其他',
`status_flag` tinyint NULL DEFAULT NULL COMMENT '发送状态1-未发送2-发送成功3-发送失败4-失效',
`source` int NULL DEFAULT NULL COMMENT '来源1-app2-pc3-其他',
`invalid_time` datetime(0) NULL DEFAULT NULL COMMENT '短信失效截止时间',
`create_time` datetime(0) NULL DEFAULT NULL COMMENT '创建时间',
`create_user` bigint(20) NULL DEFAULT NULL COMMENT '创建人',
`create_user` bigint NULL DEFAULT NULL COMMENT '创建人',
`update_time` datetime(0) NULL DEFAULT NULL COMMENT '修改时间',
`update_user` bigint(20) NULL DEFAULT NULL COMMENT '修改人',
`update_user` bigint NULL DEFAULT NULL COMMENT '修改人',
PRIMARY KEY (`sms_id`) USING BTREE
) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '短信发送记录' ROW_FORMAT = Dynamic;
@ -1250,14 +1250,14 @@ CREATE TABLE `sys_sms` (
-- Table structure for sys_statistics_count
-- ----------------------------
CREATE TABLE `sys_statistics_count` (
`stat_count_id` bigint(20) NOT NULL COMMENT '主键ID',
`user_id` bigint(20) NULL DEFAULT NULL COMMENT '用户id',
`stat_url_id` bigint(20) NULL DEFAULT NULL COMMENT '访问的地址',
`stat_count` int(11) NULL DEFAULT NULL COMMENT '访问的次数',
`stat_count_id` bigint NOT NULL COMMENT '主键ID',
`user_id` bigint NULL DEFAULT NULL COMMENT '用户id',
`stat_url_id` bigint NULL DEFAULT NULL COMMENT '访问的地址',
`stat_count` int NULL DEFAULT NULL COMMENT '访问的次数',
`create_time` datetime(0) NULL DEFAULT NULL COMMENT '创建时间',
`create_user` bigint(20) NULL DEFAULT NULL COMMENT '创建人',
`create_user` bigint NULL DEFAULT NULL COMMENT '创建人',
`update_time` datetime(0) NULL DEFAULT NULL COMMENT '更新时间',
`update_user` bigint(20) NULL DEFAULT NULL COMMENT '更新人',
`update_user` bigint NULL DEFAULT NULL COMMENT '更新人',
PRIMARY KEY (`stat_count_id`) USING BTREE
) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '常用功能的统计次数' ROW_FORMAT = Dynamic;
@ -1269,15 +1269,15 @@ CREATE TABLE `sys_statistics_count` (
-- Table structure for sys_statistics_url
-- ----------------------------
CREATE TABLE `sys_statistics_url` (
`stat_url_id` bigint(20) NOT NULL COMMENT '主键ID',
`stat_url_id` bigint NOT NULL COMMENT '主键ID',
`stat_name` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '被统计名称',
`stat_menu_id` bigint(20) NULL DEFAULT NULL COMMENT '被统计菜单ID',
`stat_menu_id` bigint NULL DEFAULT NULL COMMENT '被统计菜单ID',
`stat_url` varchar(200) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '被统计的URL',
`always_show` char(1) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '是否常驻显示Y-是N-否',
`create_time` datetime(0) NULL DEFAULT NULL COMMENT '创建时间',
`create_user` bigint(20) NULL DEFAULT NULL COMMENT '创建人',
`create_user` bigint NULL DEFAULT NULL COMMENT '创建人',
`update_time` datetime(0) NULL DEFAULT NULL COMMENT '更新时间',
`update_user` bigint(20) NULL DEFAULT NULL COMMENT '更新人',
`update_user` bigint NULL DEFAULT NULL COMMENT '更新人',
PRIMARY KEY (`stat_url_id`) USING BTREE
) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '常用功能列表' ROW_FORMAT = Dynamic;
@ -1305,15 +1305,15 @@ INSERT INTO `sys_statistics_url` VALUES (1492345345508683793, '我的消息', 13
-- Table structure for sys_theme
-- ----------------------------
CREATE TABLE `sys_theme` (
`theme_id` bigint(20) NOT NULL COMMENT '主键',
`theme_id` bigint NOT NULL COMMENT '主键',
`theme_name` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '主题名称',
`theme_value` text CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '主题属性json格式',
`template_id` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '主题模板id',
`status_flag` char(1) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '是否启用Y-启用N-禁用',
`create_time` datetime(0) NULL DEFAULT NULL COMMENT '创建时间',
`create_user` bigint(20) NULL DEFAULT NULL COMMENT '创建人',
`create_user` bigint NULL DEFAULT NULL COMMENT '创建人',
`update_time` datetime(0) NULL DEFAULT NULL COMMENT '修改时间',
`update_user` bigint(20) NULL DEFAULT NULL COMMENT '修改人',
`update_user` bigint NULL DEFAULT NULL COMMENT '修改人',
PRIMARY KEY (`theme_id`) USING BTREE
) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '系统主题' ROW_FORMAT = Dynamic;
@ -1326,15 +1326,15 @@ INSERT INTO `sys_theme` VALUES (1477272515573542913, 'Guns后台管理系统默
-- Table structure for sys_theme_template
-- ----------------------------
CREATE TABLE `sys_theme_template` (
`template_id` bigint(20) NOT NULL COMMENT '主键',
`template_id` bigint NOT NULL COMMENT '主键',
`template_name` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '主题名称',
`template_code` varchar(40) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '主题编码',
`template_type` tinyint(4) NOT NULL COMMENT '主题类型1-系统类型2-业务类型',
`template_type` tinyint NOT NULL COMMENT '主题类型1-系统类型2-业务类型',
`status_flag` char(1) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '启用状态Y-启用N-禁用',
`create_time` datetime(0) NULL DEFAULT NULL COMMENT '创建时间',
`create_user` bigint(20) NULL DEFAULT NULL COMMENT '创建人',
`create_user` bigint NULL DEFAULT NULL COMMENT '创建人',
`update_time` datetime(0) NULL DEFAULT NULL COMMENT '修改时间',
`update_user` bigint(20) NULL DEFAULT NULL COMMENT '修改人',
`update_user` bigint NULL DEFAULT NULL COMMENT '修改人',
PRIMARY KEY (`template_id`) USING BTREE
) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '系统主题-模板' ROW_FORMAT = Dynamic;
@ -1347,17 +1347,17 @@ INSERT INTO `sys_theme_template` VALUES (1477171926286020610, 'Guns后台管理
-- Table structure for sys_theme_template_field
-- ----------------------------
CREATE TABLE `sys_theme_template_field` (
`field_id` bigint(20) NOT NULL COMMENT '主键',
`field_id` bigint NOT NULL COMMENT '主键',
`field_name` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '属性名称',
`field_code` varchar(50) 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_required` char(1) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '是否必填Y-必填N-非必填',
`field_length` int(11) NULL DEFAULT NULL COMMENT '属性值长度',
`field_length` int NULL DEFAULT NULL COMMENT '属性值长度',
`field_description` varchar(2000) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '属性描述',
`create_time` datetime(0) NULL DEFAULT NULL COMMENT '创建时间',
`create_user` bigint(20) NULL DEFAULT NULL COMMENT '创建人',
`create_user` bigint NULL DEFAULT NULL COMMENT '创建人',
`update_time` datetime(0) NULL DEFAULT NULL COMMENT '修改时间',
`update_user` bigint(20) NULL DEFAULT NULL COMMENT '修改人',
`update_user` bigint NULL DEFAULT NULL COMMENT '修改人',
PRIMARY KEY (`field_id`) USING BTREE
) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '系统主题-模板属性' ROW_FORMAT = Dynamic;
@ -1376,13 +1376,13 @@ INSERT INTO `sys_theme_template_field` VALUES (1477170929413206017, '备案号
-- Table structure for sys_theme_template_rel
-- ----------------------------
CREATE TABLE `sys_theme_template_rel` (
`relation_id` bigint(20) NOT NULL COMMENT '主键',
`template_id` bigint(20) NOT NULL COMMENT '模板主键id',
`relation_id` bigint NOT NULL COMMENT '主键',
`template_id` bigint NOT NULL COMMENT '模板主键id',
`field_code` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '属性编码',
`create_time` datetime(0) NULL DEFAULT NULL COMMENT '创建时间',
`create_user` bigint(20) NULL DEFAULT NULL COMMENT '创建人',
`create_user` bigint NULL DEFAULT NULL COMMENT '创建人',
`update_time` datetime(0) NULL DEFAULT NULL COMMENT '修改时间',
`update_user` bigint(20) NULL DEFAULT NULL COMMENT '修改人',
`update_user` bigint NULL DEFAULT NULL COMMENT '修改人',
PRIMARY KEY (`relation_id`) USING BTREE
) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '系统主题-模板配置关联关系' ROW_FORMAT = Dynamic;
@ -1401,18 +1401,18 @@ INSERT INTO `sys_theme_template_rel` VALUES (1477175606787780610, 14771719262860
-- Table structure for sys_timers
-- ----------------------------
CREATE TABLE `sys_timers` (
`timer_id` bigint(20) NOT NULL COMMENT '定时器id',
`timer_id` bigint NOT NULL COMMENT '定时器id',
`timer_name` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT NULL COMMENT '任务名称',
`action_class` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT NULL COMMENT '执行任务的class的类名实现了TimerAction接口的类的全称',
`cron` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT NULL COMMENT '定时任务表达式',
`params` varchar(2000) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT NULL COMMENT '参数',
`job_status` int(11) NULL DEFAULT NULL COMMENT '状态1-运行2-停止',
`job_status` int NULL DEFAULT NULL COMMENT '状态1-运行2-停止',
`remark` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT NULL COMMENT '备注信息',
`del_flag` char(1) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT 'N' COMMENT '是否删除Y-被删除N-未删除',
`create_time` datetime(0) NULL DEFAULT NULL COMMENT '创建时间',
`create_user` bigint(20) NULL DEFAULT NULL COMMENT '创建人',
`create_user` bigint NULL DEFAULT NULL COMMENT '创建人',
`update_time` datetime(0) NULL DEFAULT NULL COMMENT '修改时间',
`update_user` bigint(20) NULL DEFAULT NULL COMMENT '修改人',
`update_user` bigint NULL DEFAULT NULL COMMENT '修改人',
PRIMARY KEY (`timer_id`) USING BTREE
) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '定时任务' ROW_FORMAT = Dynamic;
@ -1427,15 +1427,15 @@ INSERT INTO `sys_timers` VALUES (1492358213574615041, '常用功能统计', 'cn.
-- Table structure for sys_translation
-- ----------------------------
CREATE TABLE `sys_translation` (
`tran_id` bigint(20) NOT NULL COMMENT '主键id',
`tran_id` bigint NOT NULL COMMENT '主键id',
`tran_code` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '编码',
`tran_name` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '多语言条例名称',
`tran_language_code` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '语种字典',
`tran_value` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '翻译的值',
`create_time` datetime(0) NULL DEFAULT NULL COMMENT '创建时间',
`create_user` bigint(20) NULL DEFAULT NULL COMMENT '创建人',
`create_user` bigint NULL DEFAULT NULL COMMENT '创建人',
`update_time` datetime(0) NULL DEFAULT NULL COMMENT '更新时间',
`update_user` bigint(20) NULL DEFAULT NULL COMMENT '更新人',
`update_user` bigint NULL DEFAULT NULL COMMENT '更新人',
PRIMARY KEY (`tran_id`) USING BTREE
) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '多语言' ROW_FORMAT = Dynamic;
@ -1543,27 +1543,27 @@ INSERT INTO `sys_translation` VALUES (1355392385093332994, 'BTN_CANCEL', '按钮
-- Table structure for sys_user
-- ----------------------------
CREATE TABLE `sys_user` (
`user_id` bigint(20) NOT NULL COMMENT '主键',
`user_id` bigint NOT NULL COMMENT '主键',
`real_name` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '姓名',
`nick_name` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '昵称',
`account` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '账号',
`password` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '密码加密方式为BCrypt',
`avatar` bigint(20) NULL DEFAULT NULL COMMENT '头像存的为文件id',
`avatar` bigint NULL DEFAULT NULL COMMENT '头像存的为文件id',
`birthday` date NULL DEFAULT NULL COMMENT '生日',
`sex` char(1) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '性别M-男F-女',
`email` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '邮箱',
`phone` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '手机',
`tel` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '电话',
`super_admin_flag` char(1) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT 'N' COMMENT '是否是超级管理员Y-是N-否',
`status_flag` tinyint(4) NOT NULL DEFAULT 1 COMMENT '状态1-正常2-冻结',
`login_count` int(11) NULL DEFAULT 1 COMMENT '登录次数',
`status_flag` tinyint NOT NULL DEFAULT 1 COMMENT '状态1-正常2-冻结',
`login_count` int NULL DEFAULT 1 COMMENT '登录次数',
`last_login_ip` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '最后登陆IP',
`last_login_time` datetime(0) NULL DEFAULT NULL COMMENT '最后登陆时间',
`del_flag` char(1) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT 'N' COMMENT '删除标记Y-已删除N-未删除',
`create_time` datetime(0) NULL DEFAULT NULL COMMENT '创建时间',
`create_user` bigint(20) NULL DEFAULT NULL COMMENT '创建人',
`create_user` bigint NULL DEFAULT NULL COMMENT '创建人',
`update_time` datetime(0) NULL DEFAULT NULL COMMENT '更新时间',
`update_user` bigint(20) NULL DEFAULT NULL COMMENT '更新人',
`update_user` bigint NULL DEFAULT NULL COMMENT '更新人',
PRIMARY KEY (`user_id`) USING BTREE
) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '系统用户' ROW_FORMAT = Dynamic;
@ -1576,13 +1576,13 @@ INSERT INTO `sys_user` VALUES (1339550467939639299, '管理员', '超管', 'admi
-- Table structure for sys_user_data_scope
-- ----------------------------
CREATE TABLE `sys_user_data_scope` (
`user_data_scope_id` bigint(20) NOT NULL COMMENT '主键',
`user_id` bigint(20) NOT NULL COMMENT '用户id',
`org_id` bigint(20) NOT NULL COMMENT '机构id',
`user_data_scope_id` bigint NOT NULL COMMENT '主键',
`user_id` bigint NOT NULL COMMENT '用户id',
`org_id` bigint NOT NULL COMMENT '机构id',
`create_time` datetime(0) NULL DEFAULT NULL COMMENT '创建时间',
`create_user` bigint(20) NULL DEFAULT NULL COMMENT '创建人',
`create_user` bigint NULL DEFAULT NULL COMMENT '创建人',
`update_time` datetime(0) NULL DEFAULT NULL COMMENT '修改时间',
`update_user` bigint(20) NULL DEFAULT NULL COMMENT '修改人',
`update_user` bigint NULL DEFAULT NULL COMMENT '修改人',
PRIMARY KEY (`user_data_scope_id`) USING BTREE
) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '用户数据范围' ROW_FORMAT = Dynamic;
@ -1594,12 +1594,12 @@ CREATE TABLE `sys_user_data_scope` (
-- Table structure for sys_user_group
-- ----------------------------
CREATE TABLE `sys_user_group` (
`user_group_id` bigint(20) NOT NULL COMMENT '用户组id',
`user_group_id` bigint NOT NULL COMMENT '用户组id',
`user_group_title` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '用户分组标题简称',
`user_group_detail_name` varchar(2000) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '组内选择项的合并',
`create_user` bigint(20) NULL DEFAULT NULL COMMENT '创建人',
`create_user` bigint NULL DEFAULT NULL COMMENT '创建人',
`create_time` datetime(0) NULL DEFAULT NULL COMMENT '创建时间',
`update_user` bigint(20) NULL DEFAULT NULL COMMENT '更新人',
`update_user` bigint NULL DEFAULT NULL COMMENT '更新人',
`update_time` datetime(0) NULL DEFAULT NULL COMMENT '更新时间',
PRIMARY KEY (`user_group_id`) USING BTREE
) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '用户组' ROW_FORMAT = Dynamic;
@ -1612,14 +1612,14 @@ CREATE TABLE `sys_user_group` (
-- Table structure for sys_user_group_detail
-- ----------------------------
CREATE TABLE `sys_user_group_detail` (
`detail_id` bigint(20) NOT NULL COMMENT '详情id',
`user_group_id` bigint(20) NULL DEFAULT NULL COMMENT '所属用户组id',
`select_type` tinyint(4) NULL DEFAULT NULL COMMENT '授权对象类型1-用户2-部门3-角色4-职位5-关系',
`select_value` bigint(20) NULL DEFAULT NULL COMMENT '授权对象id值例如用户id部门id',
`detail_id` bigint NOT NULL COMMENT '详情id',
`user_group_id` bigint NULL DEFAULT NULL COMMENT '所属用户组id',
`select_type` tinyint NULL DEFAULT NULL COMMENT '授权对象类型1-用户2-部门3-角色4-职位5-关系',
`select_value` bigint NULL DEFAULT NULL COMMENT '授权对象id值例如用户id部门id',
`select_value_name` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '授权对象名称,例如:张三,研发部,管理员等',
`create_user` bigint(20) NULL DEFAULT NULL COMMENT '创建人',
`create_user` bigint NULL DEFAULT NULL COMMENT '创建人',
`create_time` datetime(0) NULL DEFAULT NULL COMMENT '创建时间',
`update_user` bigint(20) NULL DEFAULT NULL COMMENT '更新人',
`update_user` bigint NULL DEFAULT NULL COMMENT '更新人',
`update_time` datetime(0) NULL DEFAULT NULL COMMENT '更新时间',
PRIMARY KEY (`detail_id`) USING BTREE
) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '用户组详情' ROW_FORMAT = Dynamic;
@ -1632,14 +1632,14 @@ CREATE TABLE `sys_user_group_detail` (
-- Table structure for sys_user_org
-- ----------------------------
CREATE TABLE `sys_user_org` (
`user_org_id` bigint(20) NOT NULL COMMENT '企业员工主键id',
`user_id` bigint(20) NOT NULL COMMENT '用户id',
`org_id` bigint(20) NOT NULL COMMENT '所属机构id',
`position_id` bigint(20) NULL DEFAULT NULL COMMENT '职位id',
`user_org_id` bigint NOT NULL COMMENT '企业员工主键id',
`user_id` bigint NOT NULL COMMENT '用户id',
`org_id` bigint NOT NULL COMMENT '所属机构id',
`position_id` bigint NULL DEFAULT NULL COMMENT '职位id',
`create_time` datetime(0) NULL DEFAULT NULL COMMENT '添加时间',
`create_user` bigint(20) NULL DEFAULT NULL COMMENT '添加人',
`create_user` bigint NULL DEFAULT NULL COMMENT '添加人',
`update_time` datetime(0) NULL DEFAULT NULL COMMENT '更新时间',
`update_user` bigint(20) NULL DEFAULT NULL COMMENT '更新人',
`update_user` bigint NULL DEFAULT NULL COMMENT '更新人',
PRIMARY KEY (`user_org_id`) USING BTREE
) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '用户组织机构关联' ROW_FORMAT = Dynamic;
@ -1652,13 +1652,13 @@ INSERT INTO `sys_user_org` VALUES (1339554696976781405, 1339550467939639299, 133
-- Table structure for sys_user_role
-- ----------------------------
CREATE TABLE `sys_user_role` (
`user_role_id` bigint(20) NOT NULL COMMENT '主键',
`user_id` bigint(20) NOT NULL COMMENT '用户id',
`role_id` bigint(20) NOT NULL COMMENT '角色id',
`user_role_id` bigint NOT NULL COMMENT '主键',
`user_id` bigint NOT NULL COMMENT '用户id',
`role_id` bigint NOT NULL COMMENT '角色id',
`create_time` datetime(0) NULL DEFAULT NULL COMMENT '创建时间',
`create_user` bigint(20) NULL DEFAULT NULL COMMENT '创建人',
`create_user` bigint NULL DEFAULT NULL COMMENT '创建人',
`update_time` datetime(0) NULL DEFAULT NULL COMMENT '修改时间',
`update_user` bigint(20) NULL DEFAULT NULL COMMENT '修改人',
`update_user` bigint NULL DEFAULT NULL COMMENT '修改人',
PRIMARY KEY (`user_role_id`) USING BTREE
) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '用户角色关联' ROW_FORMAT = Dynamic;
@ -1671,7 +1671,7 @@ INSERT INTO `sys_user_role` VALUES (1339554696976781379, 1339550467939639299, 13
-- Table structure for toc_customer
-- ----------------------------
CREATE TABLE `toc_customer` (
`customer_id` bigint(20) NOT NULL COMMENT '主键id',
`customer_id` bigint NOT NULL COMMENT '主键id',
`account` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '账号',
`password` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '密码BCrypt',
`old_password` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '旧密码',
@ -1681,18 +1681,18 @@ CREATE TABLE `toc_customer` (
`telephone` varchar(30) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '手机',
`verify_code` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '邮箱或手机验证码',
`verified_flag` char(1) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT 'N' COMMENT '是否已经邮箱或手机验证通过Y-通过N-未通过',
`avatar` bigint(20) NULL DEFAULT NULL COMMENT '用户头像文件表id',
`avatar` bigint NULL DEFAULT NULL COMMENT '用户头像文件表id',
`avatar_object_name` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '用户头像的文件全名',
`score` int(11) NULL DEFAULT NULL COMMENT '用户积分',
`status_flag` tinyint(4) NULL DEFAULT NULL COMMENT '用户状态1-启用2-禁用',
`score` int NULL DEFAULT NULL COMMENT '用户积分',
`status_flag` tinyint NULL DEFAULT NULL COMMENT '用户状态1-启用2-禁用',
`secret_key` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '用户秘钥,用在调用会员校验等',
`member_expire_time` datetime(0) NULL DEFAULT NULL COMMENT '会员截止日期,到期时间',
`last_login_ip` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '上次登录ip',
`last_login_time` datetime(0) NULL DEFAULT NULL COMMENT '上次登录时间',
`create_time` datetime(0) NULL DEFAULT NULL COMMENT '创建时间',
`create_user` bigint(20) NULL DEFAULT NULL COMMENT '创建人',
`create_user` bigint NULL DEFAULT NULL COMMENT '创建人',
`update_time` datetime(0) NULL DEFAULT NULL COMMENT '更新时间',
`update_user` bigint(20) NULL DEFAULT NULL COMMENT '更新人',
`update_user` bigint NULL DEFAULT NULL COMMENT '更新人',
PRIMARY KEY (`customer_id`) USING BTREE
) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = 'C端用户表' ROW_FORMAT = Dynamic;
@ -1700,7 +1700,7 @@ CREATE TABLE `toc_customer` (
-- Table structure for sys_resource
-- ----------------------------
CREATE TABLE `sys_resource` (
`resource_id` bigint(20) NOT NULL COMMENT '资源id',
`resource_id` bigint NOT NULL COMMENT '资源id',
`app_code` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '应用编码',
`resource_code` varchar(300) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '资源编码',
`resource_name` varchar(300) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '资源名称',
@ -1713,15 +1713,15 @@ CREATE TABLE `sys_resource` (
`view_flag` char(1) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '是否是视图类型Y-是N-否\r\n如果是视图类型url需要以 \'/view\' 开头,\r\n视图类型的接口会渲染出html界面而不是json数据\r\n视图层一般会在前后端不分离项目出现',
`url` varchar(300) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '资源url',
`http_method` varchar(10) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT 'http请求方法',
`resource_biz_type` tinyint(4) NULL DEFAULT 1 COMMENT '资源的业务类型1-业务类2-系统类',
`resource_biz_type` tinyint NULL DEFAULT 1 COMMENT '资源的业务类型1-业务类2-系统类',
`required_login_flag` char(1) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '是否需要登录Y-是N-否',
`required_permission_flag` char(1) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '是否需要鉴权Y-是N-否',
`validate_groups` text CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL COMMENT '需要进行参数校验的分组',
`param_field_descriptions` text CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL COMMENT '接口参数的字段描述',
`response_field_descriptions` text CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL COMMENT '接口返回结果的字段描述',
`create_user` bigint(20) NULL DEFAULT NULL COMMENT '创建人',
`create_user` bigint NULL DEFAULT NULL COMMENT '创建人',
`create_time` datetime(0) NULL DEFAULT NULL COMMENT '创建时间',
`update_user` bigint(20) NULL DEFAULT NULL COMMENT '更新人',
`update_user` bigint NULL DEFAULT NULL COMMENT '更新人',
`update_time` datetime(0) NULL DEFAULT NULL COMMENT '更新时间',
PRIMARY KEY (`resource_id`) USING BTREE,
INDEX `RESOURCE_CODE_URL`(`resource_code`, `url`) USING BTREE COMMENT '资源code和url的联合索引'
@ -1731,14 +1731,14 @@ CREATE TABLE `sys_resource` (
-- Table structure for sys_role_resource
-- ----------------------------
CREATE TABLE `sys_role_resource` (
`role_resource_id` bigint(20) NOT NULL COMMENT '主键',
`role_id` bigint(20) NOT NULL COMMENT '角色id',
`role_resource_id` bigint NOT NULL COMMENT '主键',
`role_id` bigint NOT NULL COMMENT '角色id',
`resource_code` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '资源编码',
`resource_biz_type` tinyint(4) NULL DEFAULT 2 COMMENT '资源的业务类型1-业务类2-系统类',
`resource_biz_type` tinyint NULL DEFAULT 2 COMMENT '资源的业务类型1-业务类2-系统类',
`create_time` datetime(0) NULL DEFAULT NULL COMMENT '创建时间',
`create_user` bigint(20) NULL DEFAULT NULL COMMENT '创建人',
`create_user` bigint NULL DEFAULT NULL COMMENT '创建人',
`update_time` datetime(0) NULL DEFAULT NULL COMMENT '修改时间',
`update_user` bigint(20) NULL DEFAULT NULL COMMENT '修改人',
`update_user` bigint NULL DEFAULT NULL COMMENT '修改人',
PRIMARY KEY (`role_resource_id`) USING BTREE
) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '角色资源关联' ROW_FORMAT = Dynamic;