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

import kr.co.accura.wtm.domain.project.entity.ProjectTypeConfig;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Optional;

@Repository
public interface ProjectTypeConfigRepository extends JpaRepository<ProjectTypeConfig, Long> {

    List<ProjectTypeConfig> findByProjectTypeAndIsActiveTrue(String projectType);

    Optional<ProjectTypeConfig> findByProjectTypeAndConfigKey(String projectType, String configKey);
}
