package com.honey.honey.repository;

import com.honey.honey.model.PromotionReward;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface PromotionRewardRepository extends JpaRepository<PromotionReward, Integer> {

    List<PromotionReward> findByPromotionIdOrderByPlaceAsc(Integer promotionId);

    void deleteByPromotionId(Integer promotionId);
}
