fix
This commit is contained in:
@@ -631,27 +631,6 @@ CREATE TABLE `uc_user_auth` (
|
||||
KEY `idx_unique_id` (`unique_id`)
|
||||
) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8mb4 COMMENT='用户授权中间表';
|
||||
|
||||
-- ----------------------------
|
||||
-- Table structure for uc_user_bank_account
|
||||
-- ----------------------------
|
||||
DROP TABLE IF EXISTS `uc_user_bank_account`;
|
||||
CREATE TABLE `uc_user_bank_account` (
|
||||
`id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '主键',
|
||||
`user_id` bigint(20) DEFAULT NULL COMMENT '用户id',
|
||||
`account_no` varchar(32) DEFAULT NULL COMMENT '卡号',
|
||||
`account_name` varchar(32) DEFAULT NULL COMMENT '户名',
|
||||
`bank_name` varchar(64) DEFAULT NULL COMMENT '银行名',
|
||||
`bank_branch_name` varchar(64) DEFAULT NULL COMMENT '开户行名',
|
||||
`default_account` bit(1) DEFAULT NULL COMMENT '是否默认账户',
|
||||
`deleted` bit(1) DEFAULT b'0' COMMENT '是否逻辑删除',
|
||||
`create_by` bigint(20) DEFAULT NULL COMMENT '创建人',
|
||||
`create_time` datetime DEFAULT NULL COMMENT '创建时间',
|
||||
`update_by` bigint(20) DEFAULT NULL COMMENT '更新人',
|
||||
`update_time` datetime DEFAULT NULL COMMENT '更新时间',
|
||||
`proxy_by` bigint(20) DEFAULT NULL COMMENT '代理人',
|
||||
PRIMARY KEY (`id`),
|
||||
KEY `INDEX12379426737700` (`user_id`)
|
||||
) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8mb4 COMMENT='用户银行卡表';
|
||||
|
||||
|
||||
-- ----------------------------
|
||||
@@ -734,28 +713,6 @@ CREATE TABLE `uc_user_face` (
|
||||
KEY `INDEX12379510213700` (`user_id`)
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='用户活体信息表';
|
||||
|
||||
-- ----------------------------
|
||||
-- Table structure for uc_user_identity_photo
|
||||
-- ----------------------------
|
||||
DROP TABLE IF EXISTS `uc_user_identity_photo`;
|
||||
CREATE TABLE `uc_user_identity_photo` (
|
||||
`id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '主键',
|
||||
`user_id` bigint(20) DEFAULT NULL COMMENT '用户id',
|
||||
`front_file_code` varchar(32) DEFAULT NULL COMMENT '正面照',
|
||||
`back_file_code` varchar(32) DEFAULT NULL COMMENT '反面照',
|
||||
`status` tinyint(4) DEFAULT NULL COMMENT '状态',
|
||||
`fail_reason` varchar(128) DEFAULT NULL COMMENT '失败原因',
|
||||
`deleted` bit(1) DEFAULT b'0' COMMENT '是否逻辑删除',
|
||||
`create_by` bigint(20) DEFAULT NULL COMMENT '创建人',
|
||||
`create_time` datetime DEFAULT NULL COMMENT '创建时间',
|
||||
`update_by` bigint(20) DEFAULT NULL COMMENT '更新人',
|
||||
`update_time` datetime DEFAULT NULL COMMENT '更新时间',
|
||||
`proxy_by` bigint(20) DEFAULT NULL COMMENT '代理人',
|
||||
PRIMARY KEY (`id`),
|
||||
KEY `INDEX12379555691300` (`user_id`)
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='用户身份证正反面';
|
||||
|
||||
|
||||
-- ----------------------------
|
||||
-- Table structure for uc_user_postal_info
|
||||
-- ----------------------------
|
||||
@@ -777,24 +734,6 @@ CREATE TABLE `uc_user_postal_info` (
|
||||
PRIMARY KEY (`id`)
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='用户邮寄信息';
|
||||
|
||||
-- ----------------------------
|
||||
-- Table structure for uc_user_real_name_two_verification
|
||||
-- ----------------------------
|
||||
DROP TABLE IF EXISTS `uc_user_real_name_two_verification`;
|
||||
CREATE TABLE `uc_user_real_name_two_verification` (
|
||||
`id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '主键',
|
||||
`user_id` bigint(20) DEFAULT NULL COMMENT '用户id',
|
||||
`config_code` varchar(64) DEFAULT NULL COMMENT '编码',
|
||||
`config_value` varchar(1024) DEFAULT NULL COMMENT '配置值',
|
||||
`remark` varchar(128) DEFAULT NULL COMMENT '备注',
|
||||
`deleted` bit(1) DEFAULT b'0' COMMENT '是否逻辑删除',
|
||||
`create_by` bigint(20) DEFAULT NULL COMMENT '创建人',
|
||||
`create_time` datetime DEFAULT NULL COMMENT '创建时间',
|
||||
`update_by` bigint(20) DEFAULT NULL COMMENT '更新人',
|
||||
`update_time` datetime DEFAULT NULL COMMENT '更新时间',
|
||||
`proxy_by` bigint(20) DEFAULT NULL COMMENT '代理人',
|
||||
PRIMARY KEY (`id`)
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='用户配置表';
|
||||
|
||||
-- ----------------------------
|
||||
-- Table structure for uc_user_register
|
||||
@@ -1163,26 +1102,6 @@ CREATE TABLE `xs_permission_resources` (
|
||||
KEY `INDEX12372582404500` (`permission_package_id`)
|
||||
) ENGINE=InnoDB AUTO_INCREMENT=43 DEFAULT CHARSET=utf8mb4 COMMENT='权限包-资源关系表';
|
||||
|
||||
-- ----------------------------
|
||||
-- Table structure for xs_real_name_two_verification
|
||||
-- ----------------------------
|
||||
DROP TABLE IF EXISTS `xs_real_name_two_verification`;
|
||||
CREATE TABLE `xs_real_name_two_verification` (
|
||||
`id` bigint(20) NOT NULL AUTO_INCREMENT,
|
||||
`user_id` bigint(20) DEFAULT NULL,
|
||||
`person_name` varchar(64) DEFAULT NULL,
|
||||
`identity_no` varchar(32) DEFAULT NULL,
|
||||
`status` varchar(2) DEFAULT '0',
|
||||
`authentication_source` tinyint(4) DEFAULT NULL,
|
||||
`err_msg` varchar(64) DEFAULT NULL,
|
||||
`deleted` bit(1) DEFAULT b'0',
|
||||
`create_by` bigint(20) DEFAULT NULL,
|
||||
`create_time` datetime DEFAULT NULL,
|
||||
`update_by` bigint(20) DEFAULT NULL,
|
||||
`update_time` datetime DEFAULT NULL,
|
||||
`proxy_by` bigint(20) DEFAULT NULL,
|
||||
PRIMARY KEY (`id`)
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
|
||||
|
||||
-- ----------------------------
|
||||
-- Table structure for xs_role
|
||||
@@ -1268,4 +1187,77 @@ CREATE TABLE `xs_url` (
|
||||
PRIMARY KEY (`id`)
|
||||
) ENGINE=InnoDB AUTO_INCREMENT=36 DEFAULT CHARSET=utf8mb4 COMMENT='菜单地址';
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
CREATE TABLE `x_file_category` (
|
||||
`id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '主键ID',
|
||||
`file_category` varchar(32) DEFAULT NULL COMMENT '文件种类',
|
||||
`file_suffix` varchar(32) DEFAULT NULL COMMENT '文件后缀',
|
||||
|
||||
`deleted` bit(1) DEFAULT b'0' COMMENT '是否删除',
|
||||
`create_by` bigint(20) DEFAULT NULL COMMENT '创建人',
|
||||
`create_time` datetime DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
|
||||
`update_by` bigint(20) DEFAULT NULL COMMENT '修改人',
|
||||
`update_time` datetime DEFAULT NULL ON UPDATE CURRENT_TIMESTAMP COMMENT '修改时间',
|
||||
`proxy_by` bigint(20) DEFAULT NULL COMMENT '代理人',
|
||||
PRIMARY KEY (`id`) USING BTREE
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='文件种类';
|
||||
|
||||
CREATE TABLE `x_user_space` (
|
||||
`id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '主键ID',
|
||||
`user_id` bigint(20) DEFAULT NULL COMMENT '用户id',
|
||||
`total_size` bigint DEFAULT NULL COMMENT '总容量',
|
||||
`used_size` bigint DEFAULT NULL COMMENT '已使用容量',
|
||||
|
||||
`deleted` bit(1) DEFAULT b'0' COMMENT '是否删除',
|
||||
`create_by` bigint(20) DEFAULT NULL COMMENT '创建人',
|
||||
`create_time` datetime DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
|
||||
`update_by` bigint(20) DEFAULT NULL COMMENT '修改人',
|
||||
`update_time` datetime DEFAULT NULL ON UPDATE CURRENT_TIMESTAMP COMMENT '修改时间',
|
||||
`proxy_by` bigint(20) DEFAULT NULL COMMENT '代理人',
|
||||
PRIMARY KEY (`id`) USING BTREE
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='用户空间';
|
||||
|
||||
CREATE TABLE `x_user_file` (
|
||||
`id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '主键ID',
|
||||
`user_id` bigint(20) DEFAULT NULL COMMENT '用户id',
|
||||
`root_type` varchar(2) DEFAULT NULL COMMENT '根类型:1普通/2内穿外/3外传内/4我的分享',
|
||||
`file_type` varchar(32) DEFAULT NULL COMMENT '文件大类:1文件/2文件夹',
|
||||
`file_name` varchar(256) DEFAULT NULL COMMENT '文件名',
|
||||
`parent_id` bigint(20) DEFAULT NULL COMMENT '父id',
|
||||
`file_code` varchar(32) DEFAULT NULL COMMENT '文件编码',
|
||||
`file_status` varchar(2) DEFAULT NULL COMMENT '文件状态:1正常2失效11解析中12待审核13传输中',
|
||||
`path` varchar(255) DEFAULT NULL COMMENT '路径',
|
||||
`end_time` datetime DEFAULT NULL COMMENT '有效期',
|
||||
`access_code` varchar(6) DEFAULT NULL COMMENT '访问码',
|
||||
`deleted` bit(1) DEFAULT b'0' COMMENT '是否删除',
|
||||
`create_by` bigint(20) DEFAULT NULL COMMENT '创建人',
|
||||
`create_time` datetime DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
|
||||
`update_by` bigint(20) DEFAULT NULL COMMENT '修改人',
|
||||
`update_time` datetime DEFAULT NULL ON UPDATE CURRENT_TIMESTAMP COMMENT '修改时间',
|
||||
`proxy_by` bigint(20) DEFAULT NULL COMMENT '代理人',
|
||||
PRIMARY KEY (`id`) USING BTREE
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='用户文件';
|
||||
|
||||
CREATE TABLE `x_file_risk` (
|
||||
`id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '主键ID',
|
||||
`file_code` varchar(32) DEFAULT NULL COMMENT '文件编码',
|
||||
`max_risk_level` varchar(2) DEFAULT NULL COMMENT '最高风险等级:1重度/2中度/3轻度',
|
||||
`risk_json` text DEFAULT NULL COMMENT '风险详情JSON',
|
||||
`dify_file_json` text DEFAULT NULL COMMENT 'Dify文件上传响应JSON',
|
||||
|
||||
`deleted` bit(1) DEFAULT b'0' COMMENT '是否删除',
|
||||
`create_by` bigint(20) DEFAULT NULL COMMENT '创建人',
|
||||
`create_time` datetime DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
|
||||
`update_by` bigint(20) DEFAULT NULL COMMENT '修改人',
|
||||
`update_time` datetime DEFAULT NULL ON UPDATE CURRENT_TIMESTAMP COMMENT '修改时间',
|
||||
`proxy_by` bigint(20) DEFAULT NULL COMMENT '代理人',
|
||||
PRIMARY KEY (`id`) USING BTREE,
|
||||
UNIQUE KEY `uk_file_code` (`file_code`) USING BTREE COMMENT '文件编码唯一索引'
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='文件风险';
|
||||
|
||||
|
||||
SET FOREIGN_KEY_CHECKS = 1;
|
||||
Reference in New Issue
Block a user