package cn.bunny.entity.system.file;

import cn.bunny.entity.base.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;

import java.io.Serial;
import java.io.Serializable;

/**
 * <p>
 * 用于存储文件信息的数据表
 * </p>
 *
 * @author Bunny
 * @since 2024-05-17
 */
@Getter
@Setter
@Accessors(chain = true)
@ApiModel(value = "Files对象", description = "用于存储文件信息的数据表")
public class Files extends BaseEntity implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

    @ApiModelProperty("文章ID")
    private Long articleId;

    @ApiModelProperty("文件的名称")
    private String filename;

    @ApiModelProperty("文件在服务器上的存储路径")
    private String filepath;

    @ApiModelProperty("文件的大小，以字节为单位")
    private Long fileSize;

    @ApiModelProperty("文件的MIME类型")
    private String fileType;

    @ApiModelProperty("创建用户")
    private Long createUser;

    @ApiModelProperty("下载次数")
    private Integer downloadCount;
}
