package com.ruoyi.business.entity;
|
|
import com.baomidou.mybatisplus.annotation.*;
|
import lombok.Data;
|
import com.ruoyi.common.core.domain.MyBaseEntity;
|
|
/**
|
* 上传文件的基本信息 实体类
|
*
|
* @author ruoyi
|
* @date 2025-06-10
|
*/
|
@Data
|
@TableName("file")
|
public class File extends MyBaseEntity {
|
|
private static final long serialVersionUID = 1L;
|
|
/**
|
* 主键ID
|
*/
|
@TableId(value = "id", type = IdType.AUTO)
|
private Long id;
|
/**
|
* 关联的档案ID,外键引用 archive.id
|
*/
|
@TableField(value = "archive_id")
|
private Long archiveId;
|
/**
|
* 原始文件名(用户上传时的名称)
|
*/
|
@TableField(value = "original_name")
|
private String originalName;
|
/**
|
* 预览地址
|
*/
|
@TableField(value = "preview_url")
|
private String previewUrl;
|
/**
|
* 系统存储的唯一文件名
|
*/
|
@TableField(value = "file_name")
|
private String fileName;
|
/**
|
* 文件在服务器上的存储路径或访问URL
|
*/
|
@TableField(value = "file_path")
|
private String filePath;
|
/**
|
* 文件MIME类型,例如 image/png、application/pdf
|
*/
|
@TableField(value = "file_type")
|
private String fileType;
|
/**
|
* 文件大小,单位为字节
|
*/
|
@TableField(value = "file_size")
|
private String fileSize;
|
}
|