package kr.co.accura.wtm.domain.audit.repository;

import kr.co.accura.wtm.domain.audit.entity.SaAccessLog;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.jpa.repository.JpaRepository;

public interface SaAccessLogRepository extends JpaRepository<SaAccessLog, Long> {

    Page<SaAccessLog> findByUserIdOrderByCreatedAtDesc(Long userId, Pageable pageable);

    Page<SaAccessLog> findAllByOrderByCreatedAtDesc(Pageable pageable);
}
