package com.izouma.dingdong.repo.rider;

import com.izouma.dingdong.domain.rider.Rider;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;

import java.util.Optional;

public interface RiderRepo extends JpaRepository<Rider, Long>, JpaSpecificationExecutor<Rider> {

    Optional<Rider> findByUserId(Long userId);

    Optional<Rider> findByJobNumber(Long jobNumber);
}