package com.fdkankan.scene.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.util.Date;
import lombok.Getter;
import lombok.Setter;

/**
 * <p>
 * 场景数据迁移日志--V4版本稳定后可删除
 * </p>
 *
 * @author 
 * @since 2022-04-22
 */
@Getter
@Setter
@TableName("t_scene_repair_log")
public class SceneRepairLog implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 场景码
     */
    @TableField("num")
    private String num;

    /**
     * 0-迁移中，1-成功，2-失败
     */
    @TableField("state")
    private Integer state;

    /**
     * 失败原因
     */
    @TableField("reason")
    private String reason;

    /**
     * 迁移耗时
     */
    @TableField("consum_time")
    private Long consumTime;

    @TableField("create_time")
    private Date createTime;

    @TableField("update_time")
    private Date updateTime;

    /**
     * 0-有效，1-删除, 2-禁用
     */
    @TableField("tb_status")
    @TableLogic
    private Integer tbStatus;


}
