package com.unis.crk.common.entity;

import com.baomidou.mybatisplus.annotation.*;

import java.util.Date;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 数据删除记录
 * </p>
 *
 * @author TangSong
 * @since 2022-06-01
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value="DeleteDataRecord对象", description="数据删除记录")
public class DeleteDataRecord implements Serializable {

private static final long serialVersionUID=1L;

    @ApiModelProperty(value = "主键ID")
    @TableId(value = "SELF_ID", type = IdType.UUID)
    private String selfId;

    @ApiModelProperty(value = "数据删除主键ID")
    @TableField("DATAID")
    private String dataid;

    @ApiModelProperty(value = "数据删除表名")
    @TableField("TABLE_NAME")
    private String tableName;

    @ApiModelProperty(value = "上传时间")
    @TableField(value = "UPLOAD_TIME",strategy = FieldStrategy.IGNORED,update = "null",fill = FieldFill.UPDATE)
    private Date uploadTime;

    @ApiModelProperty(value = "删除数据时间")
    @TableField(value = "DELETE_TIME",fill = FieldFill.INSERT)
    private Date  deleteTime;

    @ApiModelProperty(value = "单位id")
    @TableField("unitid")
    private String unitid;
}
