package com.izouma.nineth.repo;

import com.izouma.nineth.TokenHistory;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;

import java.util.List;

public interface TokenHistoryRepo extends JpaRepository<TokenHistory, Long>, JpaSpecificationExecutor<TokenHistory> {
    List<TokenHistory> findByTokenIdOrderByCreatedAtDesc(String tokenId);
}
