package com.mvrent.carrental.repository;

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

import java.util.List;

public interface InspectionRepository extends JpaRepository<InspectionRecord, Long> {

    List<InspectionRecord> findAllByOrderByInspectionDateDescIdDesc();

    List<InspectionRecord> findByCarIdOrderByInspectionDateDescIdDesc(Long carId);
}
