/*
 Navicat Premium Data Transfer

 Source Server         : 124root
 Source Server Type    : MySQL
 Source Server Version : 80023
 Source Host           : 192.168.0.124:3306
 Source Schema         : h_test

 Target Server Type    : MySQL
 Target Server Version : 80023
 File Encoding         : 65001

 Date: 27/02/2024 16:17:13
*/

SET NAMES utf8mb4;
SET FOREIGN_KEY_CHECKS = 0;

-- ----------------------------
-- Table structure for xjr_file
-- ----------------------------
DROP TABLE IF EXISTS `xjr_file`;
CREATE TABLE `xjr_file`  (
  `id` bigint NOT NULL COMMENT '文件主键',
  `folder_id` bigint NULL DEFAULT NULL COMMENT '附件夹主键',
  `file_name` varchar(500) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT '文件名称',
  `file_url` varchar(250) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT '文件路径',
  `file_size` bigint NULL DEFAULT NULL COMMENT '文件大小',
  `file_suffiex` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT '文件后缀',
  `file_type` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT '文件类型',
  `download_count` int NULL DEFAULT NULL COMMENT '下载次数',
  `process_id` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT '关联的流程id',
  `remark` varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT '备注',
  `create_user_id` bigint NULL DEFAULT NULL,
  `create_date` datetime(3) NULL DEFAULT NULL,
  `modify_user_id` bigint NULL DEFAULT NULL,
  `modify_date` datetime(3) NULL DEFAULT NULL,
  `delete_mark` int NULL DEFAULT NULL,
  `enabled_mark` int NULL DEFAULT NULL,
  `th_url` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT '缩略图路径',
  `th_name` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT '缩略图名称',
  `th_size` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT '缩略图大小',
  `th_type` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT '缩略图mini类型',
  PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_0900_ai_ci COMMENT = '文件关联关系表' ROW_FORMAT = Dynamic;

SET FOREIGN_KEY_CHECKS = 1;
