package ru.soune.nocopy.repository;

import org.springframework.data.jpa.repository.JpaRepository;
import ru.soune.nocopy.entity.user.ModerationStatus;
import ru.soune.nocopy.entity.user.moderation.UserVerification;

import java.util.List;

public interface UserVerificationRepository extends JpaRepository<UserVerification, Long> {
    List<UserVerification> findByUserId(Long userId);
    List<UserVerification>findByUserIdAndModerationStatus(Long userId, ModerationStatus moderationStatus);
}
