package com.agent.management.repository;

import com.agent.management.model.entity.GraphSource;
import org.springframework.data.jpa.repository.JpaRepository;

import java.util.List;

public interface GraphSourceRepository extends JpaRepository<GraphSource, Long> {

    List<GraphSource> findAllByOrderByIdDesc();

    boolean existsByName(String name);
}
