package llc.arma.fleet.monitor.data.repository

import llc.arma.fleet.monitor.data.entity.BeaconTelemetryPacketEntity
import org.springframework.data.jpa.repository.JpaRepository
import java.time.OffsetDateTime

interface BeaconTelemetryPacketRepository : JpaRepository<BeaconTelemetryPacketEntity, Long> {
    fun findByMachineIdAndReceivedAtBetween(machineId: Long, start: OffsetDateTime, end: OffsetDateTime): List<BeaconTelemetryPacketEntity>
    fun findByBeaconIdAndReceivedAtBetween(beaconId: Long, start: OffsetDateTime, end: OffsetDateTime): List<BeaconTelemetryPacketEntity>
}
