package com.codvision.base.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

@Data
@TableName(value = "tbl_sys_file")
@ApiModel(value = "SysFile", description = "系统文件")
public class SysFile implements Serializable {

    private static final long serialVersionUID = -3504343125557629647L;

    @TableId(value = "id", type = IdType.AUTO)
    @ApiModelProperty(value = "编号")
    private String id;

    @ApiModelProperty(value = "上传时间")
    private Date createTime;

    @ApiModelProperty(value = "更新时间")
    private Date updateTime;

    @ApiModelProperty(value = "")
    private Integer delFlag;

    @ApiModelProperty(value = "")
    private String original;

    @ApiModelProperty(value = "修改人")
    private String updateUser;

    @ApiModelProperty(value = "文件名")
    private String fileName;

    @ApiModelProperty(value = "空间名")
    private String bucketName;

    @ApiModelProperty(value = "创建人")
    private String createUser;

    @ApiModelProperty(value = "文件类型")
    private String type;

    @ApiModelProperty(value = "文件大小")
    private Long fileSize;

    @ApiModelProperty(value = "文件存储位置：1.文件服务器，2.ECS服务器")
    private String position;

    @ApiModelProperty(value = "来源：0文件上传模块，1其他模块")
    private Integer source;

    @ApiModelProperty("文件是否有效，默认1-有效，0-无效")
    private Integer isValid;

}
