package com.pharmacopoeia.repository;

import com.pharmacopoeia.entity.UserProgress;
import org.springframework.data.jpa.repository.JpaRepository;

import java.util.Optional;

public interface UserProgressRepository extends JpaRepository<UserProgress, Long> {
    Optional<UserProgress> findByUserIdAndSubjectAndChapterId(Long userId, String subject, String chapterId);
    Optional<UserProgress> findByUserIdAndKnowledgePointId(Long userId, String knowledgePointId);
}
