package com.agent.management.repository;

import com.agent.management.model.entity.WorkflowRun;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface WorkflowRunRepository extends JpaRepository<WorkflowRun, Long> {
    List<WorkflowRun> findByWorkflowIdOrderByStartedAtDesc(Long workflowId);
    List<WorkflowRun> findAllByOrderByStartedAtDesc();
}
