package com.maternalmall.repository;

import com.maternalmall.domain.MerchantApplication;
import org.springframework.data.jpa.repository.JpaRepository;

import java.util.List;

public interface MerchantApplicationRepository extends JpaRepository<MerchantApplication, Long> {
    List<MerchantApplication> findByStatus(String status);
    boolean existsByUserIdAndStatus(Long userId, String status);
}
