package ru.kayashov.bar.repository;

import org.springframework.data.jpa.repository.JpaRepository;
import ru.kayashov.bar.model.entity.Rating;

import java.util.Optional;

public interface RatingRepository extends JpaRepository<Rating, Long> {

    Optional<Rating> findRatingByCocktailIdAndVisitorId(Long cocktailId, Long visitorId);
}