package com.moral.api.entity;
|
|
import com.baomidou.mybatisplus.annotation.IdType;
|
import com.baomidou.mybatisplus.extension.activerecord.Model;
|
import com.baomidou.mybatisplus.annotation.TableId;
|
import java.time.LocalDateTime;
|
import java.io.Serializable;
|
import java.util.Date;
|
|
import lombok.Data;
|
import lombok.EqualsAndHashCode;
|
import lombok.experimental.Accessors;
|
|
/**
|
* <p>
|
* 附件表
|
* </p>
|
*
|
* @author moral
|
* @since 2023-09-21
|
*/
|
@Data
|
@Accessors(chain = true)
|
@EqualsAndHashCode(callSuper = false)
|
public class FileTable extends Model<FileTable> {
|
|
private static final long serialVersionUID = 1L;
|
|
/**
|
* 主键id
|
*/
|
@TableId(value = "file_id", type = IdType.AUTO)
|
private Integer fileId;
|
|
/**
|
* 模块
|
*/
|
private Integer fileModule;
|
|
/**
|
* 关联主键id
|
*/
|
private Integer relationId;
|
|
/**
|
* 附件名称
|
*/
|
private String fileName;
|
|
/**
|
* 附件类型1图片2视频
|
*/
|
private Integer fileType;
|
|
/**
|
* 附件路径地址
|
*/
|
private String fileAddress;
|
|
/**
|
* 附件大小
|
*/
|
private Integer fileSize;
|
|
/**
|
* 是否删除
|
*/
|
private Integer isDel;
|
|
/**
|
* 创建人id
|
*/
|
private Integer createId;
|
|
/**
|
* 创建人姓名
|
*/
|
private String createName;
|
|
/**
|
* 创建时间
|
*/
|
private Date createTime;
|
|
|
|
@Override
|
protected Serializable pkVal() {
|
return this.fileId;
|
}
|
|
}
|