package com.mosquito.project.persistence.repository;

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

import java.util.List;

public interface UserRewardRepository extends JpaRepository<UserRewardEntity, Long> {
    List<UserRewardEntity> findByActivityIdAndUserIdOrderByCreatedAtDesc(Long activityId, Long userId);
}

