package com.kt.event.eventservice.domain.repository;

import com.kt.event.eventservice.domain.entity.AiRecommendation;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * AI 추천 Repository
 *
 * @author Event Service Team
 * @version 1.0.0
 * @since 2025-10-23
 */
@Repository
public interface AiRecommendationRepository extends JpaRepository<AiRecommendation, String> {

    /**
     * 이벤트별 AI 추천 목록 조회
     */
    List<AiRecommendation> findByEventEventId(String eventId);

    /**
     * 이벤트별 선택된 AI 추천 조회
     */
    AiRecommendation findByEventEventIdAndIsSelectedTrue(String eventId);
}
