package com.fdkankan.modeling.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>
 * 
 * </p>
 *
 * @author 
 * @since 2022-04-07
 */
@Getter
@Setter
@TableName("t_build_log")
public class BuildLog implements Serializable {

    private static final long serialVersionUID = 1L;

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

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

    /**
     * 资源路径
     */
    @TableField("data_source")
    private String dataSource;

    /**
     * 主题名称
     */
    @TableField("queue_name")
    private String queueName;

    /**
     * -10:其他原因失败
-3:重复计算
-2:计算失败
-1:计算超时
0:计算中
1:计算成功
     */
    @TableField("build_status")
    private Integer buildStatus;

    /**
     * 服务器名称
     */
    @TableField("host_name")
    private String hostName;

    @TableField("build_type")
    private Integer buildType;

    /**
     * 相机类型
     */
    @TableField("camera_type")
    private Integer cameraType;

    @TableField("source")
    private String source;

    /**
     * java程序异常详情
     */
    @TableField("reason")
    private String reason;

    @TableField("log_detail_path")
    private String logDetailPath;

    /**
     * 计算耗时
     */
    @TableField("duration")
    private Long duration;

    /**
     * 开始计算时间
     */
    @TableField("create_time")
    private Date createTime;

    /**
     * 结束计算时间
     */
    @TableField("update_time")
    private Date updateTime;

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


}
