package com.ruoyi.iot.domain;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.time.LocalDateTime;
import lombok.Getter;
import lombok.Setter;

/**
 * <p>
 *
 * </p>
 *
 * @author wzh
 * @since 2023-07-01
 */
@Getter
@Setter
@TableName("weitiandi_device_info")
public class WeitiandiDeviceInfo implements Serializable {

    private static final long serialVersionUID = 1L;

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

    /**
     * 老系统设备ID
     */
    private String deviceId;

    /**
     * 网卡唯一
     */
    private String imei;

    /**
     * 卡号唯一
     */
    private String ccid;

    /**
     * 创建时间
     */
    @TableField(fill = FieldFill.INSERT)
    private LocalDateTime createTime;

    /**
     * 上次心跳更新时间
     */
    private LocalDateTime heartTime;

    /**
     * 0离线1在线
     */
    private Integer status;

    /**
     * 二维码ID
     */
    private String qrcode;

    private Long user_id;

}
