package com.ruoyi.basic.pojo;
|
|
import com.baomidou.mybatisplus.annotation.*;
|
import com.fasterxml.jackson.annotation.JsonFormat;
|
import lombok.Data;
|
|
import java.io.Serializable;
|
import java.time.LocalDateTime;
|
|
/**
|
* 通用文件上传的附件信息 实体类
|
*
|
*/
|
@Data
|
@TableName("storage_attachment")
|
public class StorageAttachment implements Serializable {
|
|
private static final long serialVersionUID = 1L;
|
|
@TableId(value = "id", type = IdType.AUTO)
|
private Long id;
|
|
/** 创建时间 */
|
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
|
@TableField(fill = FieldFill.INSERT)
|
private LocalDateTime createTime;
|
|
/** 更新时间 */
|
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
|
@TableField(fill = FieldFill.INSERT_UPDATE)
|
private LocalDateTime updateTime;
|
|
/**
|
* 逻辑删除
|
*/
|
@TableField(value = "deleted")
|
private Long deleted;
|
/**
|
* 关联的记录类型
|
*/
|
@TableField(value = "record_type")
|
private String recordType;
|
/**
|
* 关联的记录id
|
*/
|
@TableField(value = "record_id")
|
private Long recordId;
|
/**
|
* 文件用途, 如: file, avatar (区分同一条记录不同类型的附件)
|
*/
|
@TableField(value = "application")
|
private String application;
|
/**
|
* 关联storage_blob记录id
|
*/
|
@TableField(value = "storage_blob_id")
|
private Long storageBlobId;
|
}
|