package com.iqser.red.service.persistence.management.v1.processor.service.persistence.repository;

import java.util.Optional;

import org.springframework.data.jpa.repository.JpaRepository;

import com.iqser.red.service.persistence.management.v1.processor.entity.notification.NotificationPreferencesEntity;

public interface NotificationPreferencesRepository extends JpaRepository<NotificationPreferencesEntity, String> {

    Optional<NotificationPreferencesEntity> findByUserId(String userId);


    NotificationPreferencesEntity getByUserId(String userId);


    void deleteByUserId(String userId);

}
