package com.gnx.telemedicine.repository;

import com.gnx.telemedicine.model.BreachNotification;
import com.gnx.telemedicine.model.UserModel;
import com.gnx.telemedicine.model.enums.BreachStatus;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.UUID;

@Repository
public interface BreachNotificationRepository extends JpaRepository<BreachNotification, UUID> {
    
    List<BreachNotification> findByStatusOrderByIncidentDateDesc(BreachStatus status);
    
    List<BreachNotification> findAllByOrderByIncidentDateDesc();
    
    void deleteByCreatedBy(UserModel createdBy);
}

