package kr.co.zioinfo.web.repository;

import kr.co.zioinfo.web.model.Inquiry;
import org.springframework.data.domain.*;
import org.springframework.data.jpa.repository.JpaRepository;
import java.util.List;

public interface InquiryRepository extends JpaRepository<Inquiry, Long> {
    Page<Inquiry> findByStatus(String status, Pageable p);
    long countByStatus(String status);
    List<Inquiry> findTop5ByOrderByCreatedAtDesc();
}
