package com.usky.ems.domain;

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 lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * 网关表（dmp_gateway）
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("dmp_gateway")
public class DmpGateway implements Serializable {

    private static final long serialVersionUID = 1L;

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

    @TableField("device_uuid")
    private String deviceUuid;

    private String name;

    private String ip;

    private Integer port;

    private String installAddress;

    @TableField("comm_status")
    private Integer commStatus;

    @TableField("online_time")
    private LocalDateTime onlineTime;

    @TableField("offline_time")
    private LocalDateTime offlineTime;

    @TableField("update_config_time")
    private LocalDateTime updateConfigTime;

    @TableField("update_protocol_time")
    private LocalDateTime updateProtocolTime;

    @TableField("upgrade_time")
    private LocalDateTime upgradeTime;

    @TableField("virtual_device")
    private Integer virtualDevice;

    private String remark;

    @TableField("updated_by")
    private String updatedBy;

    @TableField("update_time")
    private LocalDateTime updateTime;

    @TableField("created_by")
    private String createdBy;

    @TableField("create_time")
    private LocalDateTime createTime;
    private Integer tenantId;
}
