package com.walkguide.repository;
import com.walkguide.entity.VoiceCommandConfig;
import com.walkguide.enums.VoiceCommandKey;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;
import java.util.List;
import java.util.Optional;
@Repository
public interface VoiceCommandConfigRepository extends JpaRepository<VoiceCommandConfig, Long> {
    List<VoiceCommandConfig> findByUserId(Long userId);
    Optional<VoiceCommandConfig> findByUserIdAndCommandKey(Long userId, VoiceCommandKey commandKey);
    boolean existsByUserId(Long userId);
    void deleteByUserId(Long userId);
}
