package com.gnx.telemedicine.repository;

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

import java.time.Instant;
import java.util.List;
import java.util.UUID;

@Repository
public interface DataMinimizationLogRepository extends JpaRepository<DataMinimizationLog, UUID> {
    List<DataMinimizationLog> findByUser(UserModel user);
    
    List<DataMinimizationLog> findByUserAndTimestampBetween(
        UserModel user, Instant startDate, Instant endDate
    );
    
    List<DataMinimizationLog> findByDataCategory(String dataCategory);
}

