package com.fdkankan.scene.entity;

import com.baomidou.mybatisplus.annotation.*;
import lombok.Getter;
import lombok.Setter;

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

/**
 * <p>
 * 场景下载记录
 * </p>
 *
 * @author 
 * @since 2022-01-20
 */
@Getter
@Setter
@TableName("t_scene_download_log")
public class SceneDownloadLog implements Serializable {

    private static final long serialVersionUID = 1L;

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

    /**
     * 用户id
     */
    @TableField("user_id")
    private Long userId;

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

    /**
     * 场景版本
     */
    @TableField("scene_version")
    private Integer sceneVersion;

    /**
     * 场景打包之后的连接
     */
    @TableField("download_url")
    private String downloadUrl;

    /**
     * 0下载中，1下载成功，2下载失败
     */
    @TableField("download_status")
    private Integer downloadStatus;

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

    /**
     * 创建时间
     */
    @TableField("create_time")
    private Date createTime;

    /**
     * 更新时间
     */
    @TableField("update_time")
    private Date updateTime;

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


}
