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

import com.zhongshu.card.client.type.DataState;
import com.zhongshu.card.client.type.scene.SceneType;
import com.zhongshu.card.server.core.domain.base.SuperMain;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Builder;
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/11/22
 */
@Data
@Builder
@Document
@AllArgsConstructor
@NoArgsConstructor
public class ProjectSceneInfo extends SuperMain {

    //-------------------场景信息 start -------------------
    @Schema(description = "场景数据")
    @DBRef(lazy = true)
    private SceneInfo sceneInfo;

    @Schema(description = "关联的数据ID")
    private String sceneInfoId;

    @Schema(description = "场景名称")
    private String name;

    @Schema(description = "类型")
    private SceneType sceneType;

    @Schema(description = "外面的状态")
    private DataState sceneState;
    //-------------------场景信息 end --------------------

    @Schema(description = "状态")
    private DataState state = DataState.Enable;

}
