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

import com.github.microservice.types.deviceUse.DeviceType;
import com.zhongshu.card.server.core.domain.base.SuperMain;
import com.zhongshu.card.server.core.domain.devices.DeviceInfo;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.checkerframework.common.aliasing.qual.NonLeaked;
import org.springframework.data.mongodb.core.index.Indexed;
import org.springframework.data.mongodb.core.mapping.DBRef;
import org.springframework.data.mongodb.core.mapping.Document;

/**
 * 组件的访客配置
 *
 * @author TRX
 * @date 2025/2/11
 */
@Data
@Document
@AllArgsConstructor
@NoArgsConstructor
@NonLeaked
public class VisitorSettingDevice extends SuperMain {

    @Schema(description = "组件id")
    @Indexed
    private String sceneComponentId;

    @Schema(description = "设备id")
    private String deviceId;

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

    @Schema(description = "设备类型")
    private DeviceType deviceType;

    @Schema(description = "设备信息")
    @DBRef(lazy = true)
    private DeviceInfo deviceInfo;
}
