package ru.soune.nocopy.repository;

import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;
import ru.soune.nocopy.entity.user.UserNotActive;

import java.time.LocalDateTime;
import java.util.List;
import java.util.Optional;

@Repository
public interface UserNotActiveRepository extends JpaRepository<UserNotActive, Long> {
    Optional<UserNotActive> findByUserId(Long userId);
    List<UserNotActive> findByBlockedUntilBefore(LocalDateTime now);

}
