package gc.mda.kcg.domain.event;

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

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

public interface EventRepository extends JpaRepository<Event, Long> {

    List<Event> findByTimestampBetweenOrderByTimestampAsc(Instant from, Instant to);

    boolean existsByEventId(String eventId);
}
