package com.agent.management.repository;

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

import java.util.List;

@Repository
public interface WorkflowRunNodeRepository extends JpaRepository<WorkflowRunNode, Long> {
    List<WorkflowRunNode> findByRunIdOrderBySortOrderAsc(Long runId);
    void deleteByRunId(Long runId);
}
