package com.izouma.nineth.repo;

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

import java.util.List;
import java.util.Optional;

public interface AppointmentRepo extends JpaRepository<Appointment, Long>, JpaSpecificationExecutor<Appointment> {

    Optional<Appointment> findFirstByBlindBoxId(Long id);

    List<Appointment> findByUserId(Long userId);
}
