package be.seeseepuff.allowanceplanner.repository;

import be.seeseepuff.allowanceplanner.entity.History;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface HistoryRepository extends JpaRepository<History, Integer> {
    List<History> findByUserIdOrderByIdDesc(int userId);
}
