package com.gcsc.connection.apikey.repository;

import com.gcsc.connection.apikey.entity.KeyRequestStatus;
import com.gcsc.connection.apikey.entity.SnpApiKeyRequest;
import org.springframework.data.jpa.repository.JpaRepository;

import java.util.List;

public interface SnpApiKeyRequestRepository extends JpaRepository<SnpApiKeyRequest, Long> {

    List<SnpApiKeyRequest> findByUserUserId(Long userId);

    List<SnpApiKeyRequest> findByStatus(KeyRequestStatus status);

    List<SnpApiKeyRequest> findAllByOrderByCreatedAtDesc();
}
