package com.mosquito.project.persistence.repository;

import com.mosquito.project.persistence.entity.ApiKeyEntity;
import org.springframework.data.jpa.repository.JpaRepository;

import java.util.Optional;

public interface ApiKeyRepository extends JpaRepository<ApiKeyEntity, Long> {
    Optional<ApiKeyEntity> findByKeyHash(String keyHash);
    Optional<ApiKeyEntity> findByKeyPrefix(String keyPrefix);
}
