package dev.rheinsw.gateway.repository;

import dev.rheinsw.gateway.model.ApiKey;
import org.springframework.data.jpa.repository.JpaRepository;

import java.util.Optional;

/**
 * @author Thatsaphorn Atchariyaphap
 * @since 25.04.25
 */
public interface ApiKeyRepository extends JpaRepository<ApiKey, Long> {
    Optional<ApiKey> findByApiKey(String apiKey);
}