package cn.cslg.report.entity;

import cn.cslg.report.common.model.BaseEntity;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.springframework.web.multipart.MultipartFile;

import java.util.Date;

/**
 * 文件表
 */
@Data
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = true)
@TableName(value = "REPORT_FILE")
public class ReportFiles extends BaseEntity<ReportFiles> {
    /**
     * 附件名称
     */
    @Schema(description = "附件名称")
    @TableField("NAME")
    private String name;

    /**
     * 文件名称
     */
    @Schema(description = "文件名称")
    @TableField("FILE_NAME")
    private String fileName;

    /**
     * 附件上传地址
     */
    @Schema(description = "附件上传地址")
    @TableField("ADDRESS")
    private String url;

    /**
     * 报告ID
     */
    @Schema(description = "报告ID")
    @TableField("ZID")
    private Integer reportId;

    @Schema(description = "备注")
@TableField("REMARK")
    private String remark;

    /**
     * 上传时间
     */
    @Schema(description = "上传时间")
    @TableField("UPDATE_TIME")
    private Date createTime;

    /**
     * 上传人
     */
    @Schema(description = "上传人")
    @TableField("UID")
    private Integer createBy;

    /**
     * 类型
     */
    @Schema(description = "类型")
    @TableField("TYPE")
    private String type;

    /**
     * 大小
     */
    @Schema(description = "大小")
    @TableField("SIZE")
    private Integer size;

    /**
     * 后缀
     */
    @Schema(description = "后缀")
    @TableField("SUFFIX")
    private String suffix;

    @TableField(exist = false)
    private String createName;

    @TableField(exist = false)
    private String projectName;
}
