package com.zhongshu.card.server.core.domain.devices;

import com.zhongshu.card.client.type.OnLineState;
import com.zhongshu.card.server.core.domain.base.SuperMain;
import com.zhongshu.card.server.core.domain.school.Area;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.data.mongodb.core.mapping.DBRef;
import org.springframework.data.mongodb.core.mapping.Document;

/**
 * 物联网 硬件设备  网关信息
 *
 * @author TRX
 * @date 2024/5/14
 */
@Data
@Document
@NoArgsConstructor
@AllArgsConstructor
public class GateWayInfo extends SuperMain {

    @Schema(description = "网关ID")
    private String gateWayId;

    @Schema(description = "网关名称")
    private String gateWayName;

    @Schema(description = "关联的项目code")
    private String projectInfoCode;

    @Schema(description = "关联的项目Name")
    private String projectInfoName;

    @Schema(description = "ip地址")
    private String ip;

    @Schema(description = "网关在线状态")
    OnLineState state;

    @Schema(description = "所属区域")
    @DBRef(lazy = true)
    private Area area;

}
