package kz.konturai.parser.repository;

import kz.konturai.parser.model.ReportHistory;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.mongodb.repository.MongoRepository;
import org.springframework.stereotype.Repository;

@Repository
public interface ReportHistoryRepository extends MongoRepository<ReportHistory, String> {
    Page<ReportHistory> findAllByOrderByCreatedAtDesc(Pageable pageable);
}
