liyong
3 天以前 d62a74c14a4002c0f401c94976fba8cc77cda6e1
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
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;
 
}