package com.adityachandel.booklore.repository;

import com.adityachandel.booklore.model.entity.KoboUserSettingsEntity;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;

import java.util.Optional;

@Repository
public interface KoboUserSettingsRepository extends JpaRepository<KoboUserSettingsEntity, Long> {

    Optional<KoboUserSettingsEntity> findByUserId(Long userId);

    Optional<KoboUserSettingsEntity> findByToken(String token);
}