package com.xiaoniu.subsystem.business.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.util.Date;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Getter;
import lombok.Setter;
import org.springframework.format.annotation.DateTimeFormat;

/**
 * <p>
 * 资料和文件关联表
 * </p>
 *
 * @author haoxuyang
 * @since 2024-11-28 05:13:47
 */
@Getter
@Setter
@TableName("tb_profile_file")
@Schema(description = "资料和文件关联表")
public class ProfileFile implements Serializable {

    private static final long serialVersionUID = 1L;

    @Schema(description = "资料解析id")
    @TableId(value = "profile_file_id", type = IdType.AUTO)
    private Long profileFileId;

    @Schema(description = "资料ID")
    private Long profileId;

    @Schema(description = "文件名称")
    private String fileName;

    @Schema(description = "文件后缀（示例：pdf）")
    private String type;

    @Schema(description = "文件存储url")
    private String url;

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

    @Schema(description = "创建人",hidden = true)
    private Long createUser;

    @Schema(description = "创建部门",hidden = true)
    private Long createDept;

    @Schema(description = "创建",hidden = true)
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date createTime;

    @Schema(description = "修改人")
    private Long updateUser;

    @Schema(description = "修改时间")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date updateTime;
}
