package com.mvrent.carrental.repository;

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

import java.util.List;

public interface VendorSettlementRepository extends JpaRepository<VendorSettlement, Long> {
    List<VendorSettlement> findByVendorIdOrderByGeneratedAtDesc(Long vendorId);
    List<VendorSettlement> findAllByOrderByGeneratedAtDesc();
}
