package com.nbclass.szxgl.model;

import lombok.Data;

import javax.persistence.Id;
import javax.persistence.Table;
import javax.validation.constraints.NotEmpty;
import java.util.Date;

/**
 * @Author leiyun
 * @Date 2021/3/11 16:58
 **/
@Data
@Table(name = "project_files")
public class ProjectFiles {

    @Id
    private Long id;

    private Date createTime;

    private Date updateTime;

    //@Column(name = "project_id")
    @NotEmpty(message="项目Id不能为空")
    private String projectId;

    private String fileExt;

    private Long fileSize;

    @NotEmpty(message="原始文件名不能为空")
    private String originalName;

    @NotEmpty(message="文件路径不能为空")
    private String filePath;

}