package com.pressing.domain.catalog;

import java.util.List;
import java.util.Optional;
import org.springframework.data.jpa.repository.JpaRepository;

public interface PricingRepository extends JpaRepository<Pricing, Long> {
    List<Pricing> findBySiteIdOrderByIdDesc(Long siteId);
    Optional<Pricing> findByIdAndSiteId(Long id, Long siteId);
    Optional<Pricing> findBySiteIdAndServiceIdAndArticleTypeId(Long siteId, Long serviceId, Long articleTypeId);
}
