package com.devjob.application.repository;

import com.devjob.application.domain.Application;
import java.util.List;
import org.springframework.data.jpa.repository.JpaRepository;

public interface ApplicationRepository extends JpaRepository<Application, Long> {

    boolean existsByUserIdAndJobId(Long userId, Long jobId);

    List<Application> findByUserIdOrderByCreatedAtDesc(Long userId);
}
