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;

/**
 * 设备（leo.ems_device）
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("ems_device")
public class EmsDevice implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.INPUT)
    private String id;

    @TableField("project_id")
    private Long projectId;
    private String number;
    private String name;
    @TableField("product_id")
    private Long productId;
    @TableField("product_template_id")
    private Long productTemplateId;
    @TableField("installation_location")
    private Long installationLocation;
    @TableField("monitoring_location")
    private Long monitoringLocation;
    private String location;
    @TableField("comm_address")
    private String commAddress;
    @TableField("channel_id")
    private Long channelId;
    @TableField("gateway_id")
    private String gatewayId;
    @TableField("virtual_device")
    private Integer virtualDevice;
    private Integer focus;
    @TableField("device_system")
    private Integer deviceSystem;
    private Integer status;
    @TableField("comm_status")
    private Integer commStatus;
    @TableField("comm_status_code")
    private String commStatusCode;
    @TableField("online_time")
    private LocalDateTime onlineTime;
    @TableField("offline_time")
    private LocalDateTime offlineTime;
    @TableField("external_id")
    private String externalId;
    @TableField("updated_by")
    private Long updatedBy;
    @TableField("update_time")
    private LocalDateTime updateTime;
    @TableField("created_by")
    private Long createdBy;
    @TableField("create_time")
    private LocalDateTime createTime;
}
