package com.bytesw.bytebot.etl.dao;

import com.bytesw.bytebot.etl.model.EventHistory;
import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.CrudRepository;

public interface EventHistoryRepository extends CrudRepository<EventHistory, Long> {
    @Query("SELECT MAX(e.eventId) FROM EventHistory e")
    Long maxEventId();
}
