package cn.iocoder.yudao.module.knowledge.entity;

import com.baomidou.mybatisplus.annotation.*;
import cn.iocoder.yudao.framework.mybatis.core.dataobject.BaseDO;
import cn.iocoder.yudao.module.knowledge.annotation.ExcelOut;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

/**
 * 文件表(TFileInfo)表实体类
 *
 * @author makejava
 * @since 2024-04-12 10:31:34
 */
@Data
@TableName(value = "t_fileinfo")
public class TFileInfo extends BaseDO {

    @Schema(description = "主键", example = "1")
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @Schema(description = "文件的唯一编码", example = "ABC123")
    private String code;

    @Schema(description = "名称", example = "文件现名称")
    private String curName;

    @Schema(description = "文件真实存在的地方", example = "/path/to/file/example.jpg")
    private String fileUrl;

    @Schema(description = "文件大小", example = "1024KB")
    private Long fileSize;

    @Schema(description = "文件原名称", example = "example.jpg")
    private String originalName;

    @Schema(description = "创建者", example = "John Doe")
    @ExcelOut(name = "创建人", sort = 5)
    private String creator;

    @Schema(description = "创建者id", example = "1001")
    private String creatorId;

    @Schema(description = "文件长度", example = "1001")
    private Long fileLenght;



    @Schema(description = "绑定Id", example = "1001")
    private Long bindId;
}

