package cn.iocoder.yudao.module.system.dal.dataobject.storage;
|
|
import cn.iocoder.yudao.framework.mybatis.core.dataobject.BaseDO;
|
import com.baomidou.mybatisplus.annotation.KeySequence;
|
import com.baomidou.mybatisplus.annotation.TableId;
|
import com.baomidou.mybatisplus.annotation.TableName;
|
import lombok.*;
|
|
/**
|
* 文件关联表 DO
|
*
|
* @author 芋道源码
|
*/
|
@TableName("system_storage_attachment")
|
@KeySequence("system_storage_attachment_seq")
|
@Data
|
@EqualsAndHashCode(callSuper = true)
|
@ToString(callSuper = true)
|
@Builder
|
@NoArgsConstructor
|
@AllArgsConstructor
|
public class SystemStorageAttachmentDO extends BaseDO {
|
|
/**
|
* 主键
|
*/
|
@TableId
|
private Long id;
|
|
/**
|
* 关联的记录类型(对应 StorageRecordTypeEnum 的 type 值)
|
*/
|
private String recordType;
|
|
/**
|
* 关联的记录ID
|
*/
|
private Long recordId;
|
|
/**
|
* 文件用途(对应 StorageApplicationTypeEnum 的 type 值)
|
* 如: file, image, avatar 等
|
*/
|
private String application;
|
|
/**
|
* 关联 system_storage_blob 记录ID
|
*/
|
private Long storageBlobId;
|
|
}
|