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 com.zhongshu.card.server.core.domain.org.Role;
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 RoleSceneInfo extends SuperMain {

    @Schema(description = "场景数据")
    @DBRef(lazy = true)
    private SceneInfo sceneInfo;

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

    @Schema(description = "项目管理的数据")
    @DBRef(lazy = true)
    private ProjectSceneInfo projectSceneInfo;

    @Schema(description = "项目管理的场景ID")
    private String projectSceneInfoId;

    @Schema(description = "场景数据")
    @DBRef(lazy = true)
    private Role role;

    @Schema(description = "角色ID")
    private String roleId;
}
