package com.expensetracker.api.expenses.repository;

import com.expensetracker.api.expenses.model.Category;
import java.util.Optional;
import org.springframework.data.jpa.repository.JpaRepository;

public interface CategoryRepository extends JpaRepository<Category, Long> {
  Optional<Category> findByUserIdAndNameIgnoreCase(Long userId, String name);
}
