package com.goldenchart.repository;

import com.goldenchart.entity.GcIndicatorSettings;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;

import java.util.Optional;

@Repository
public interface GcIndicatorSettingsRepository extends JpaRepository<GcIndicatorSettings, Long> {

    Optional<GcIndicatorSettings> findByDeviceId(String deviceId);

    Optional<GcIndicatorSettings> findByUserId(Long userId);
}
