package com.unis.crk.basic.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

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

/**
 * <p>
 * 附件列表
 * </p>
 *
 * @author TangSong
 * @since 2022-05-27
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value="Attaches对象", description="附件列表")
public class Attaches implements Serializable {

private static final long serialVersionUID=1L;

    @ApiModelProperty(value = "数据ID")
    @TableId(value = "SelfID", type = IdType.UUID)
    private String SelfID;

    @ApiModelProperty(value = "单位ID")
    @TableField("UnitID")
    private String UnitID;

    @ApiModelProperty(value = "公告或其他单据ID")
    @TableField("ReferencesID")
    private String ReferencesID;

    @ApiModelProperty(value = "附件名称")
    @TableField("FileName")
    private String FileName;

    @ApiModelProperty(value = "扩展名")
    @TableField("ExtensionName")
    private String ExtensionName;

    @ApiModelProperty(value = "下载地址")
    @TableField("URL")
    private String url;

    @ApiModelProperty(value = "创建时间")
    @TableField("UPLOAD_TIME")
    private Date uploadTime;

    @ApiModelProperty(value = "是否向数据中心传输完成-0:未传输-1:已传输")
    @TableField("FLAG")
    private Integer flag;


}
