package br.gov.sigefp.rh.repository;

import br.gov.sigefp.rh.domain.AgentStatusHistory;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.UUID;

@Repository
public interface AgentStatusHistoryRepository extends JpaRepository<AgentStatusHistory, UUID> {

    List<AgentStatusHistory> findByAgentIdOrderByChangedAtDesc(UUID agentId);

    void deleteByAgentId(UUID agentId);
}
