package be.seeseepuff.allowanceplanner.repository;

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

import java.util.List;
import java.util.Optional;

@Repository
public interface TaskRepository extends JpaRepository<Task, Integer> {
    List<Task> findByCompletedIsNull();

    Optional<Task> findByIdAndCompletedIsNull(int id);
}
