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

import com.zhongshu.card.server.core.domain.base.SuperMain;
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/12/19
 */
@Data
@Document
@AllArgsConstructor
@NoArgsConstructor
public class DeviceGroupToDevice extends SuperMain {

    @Schema(description = "所属分组")
    @DBRef(lazy = true)
    private DeviceGroup deviceGroup;

    @Schema(description = "设备数据")
    @DBRef(lazy = true)
    private DeviceInfo deviceInfo;

    @Schema(description = "设备ID、设备号")
    private String deviceId;

    @Schema(description = "设备名称")
    private String deviceName;

}
