package gc.mda.kcg.domain.osint;

import org.springframework.data.jpa.repository.JpaRepository;

import java.time.Instant;
import java.util.List;

public interface OsintFeedRepository extends JpaRepository<OsintFeed, Long> {

    boolean existsBySourceAndSourceUrl(String source, String sourceUrl);

    boolean existsByTitle(String title);

    List<OsintFeed> findByRegionAndCollectedAtAfterOrderByPublishedAtDesc(String region, Instant since);
}
