41 lines
1,023 B
Java
41 lines
1,023 B
Java
|
|
package com.xjhs.findmemerchant.file.dao;
|
||
|
|
|
||
|
|
import com.xjhs.findmemerchant.common.jpa.id.SnowflakeGenerated;
|
||
|
|
import jakarta.persistence.Column;
|
||
|
|
import jakarta.persistence.Entity;
|
||
|
|
import jakarta.persistence.Id;
|
||
|
|
import lombok.Data;
|
||
|
|
import org.hibernate.annotations.Comment;
|
||
|
|
|
||
|
|
import java.time.LocalDateTime;
|
||
|
|
|
||
|
|
|
||
|
|
/**
|
||
|
|
* 文件信息表
|
||
|
|
*/
|
||
|
|
@Data
|
||
|
|
@Entity
|
||
|
|
@Comment("文件信息表")
|
||
|
|
public class FileMetaInfo {
|
||
|
|
@Id
|
||
|
|
@SnowflakeGenerated
|
||
|
|
@Comment("主键")
|
||
|
|
private Long id;
|
||
|
|
@Comment("文件原始名称")
|
||
|
|
private String name;
|
||
|
|
@Comment("文件媒体类型")
|
||
|
|
private String contentType;
|
||
|
|
@Comment("文件扩展名称")
|
||
|
|
@Column(length = 10)
|
||
|
|
private String extension;
|
||
|
|
@Comment("本地存储路径")
|
||
|
|
private String savePath;
|
||
|
|
@Comment("是否已迁移到云服务")
|
||
|
|
private boolean moveToCloud = false;
|
||
|
|
@Comment("云对象id")
|
||
|
|
@Column(length = 50)
|
||
|
|
private String cloudObjectId;
|
||
|
|
@Comment("创建时间")
|
||
|
|
private LocalDateTime createTime = LocalDateTime.now();
|
||
|
|
|
||
|
|
}
|