package com.mvrent.carrental.repository;

import com.mvrent.carrental.model.VehicleLocation;
import org.springframework.data.jpa.repository.JpaRepository;

import java.util.Optional;

public interface VehicleLocationRepository extends JpaRepository<VehicleLocation, Long> {

    Optional<VehicleLocation> findByCarId(Long carId);
}
