package com.davos.assessment.assessment;

import com.davos.assessment.user.AppUser;
import com.davos.assessment.project.Project;
import java.util.Optional;
import org.springframework.data.jpa.repository.JpaRepository;

public interface AssessmentProgressRepository extends JpaRepository<AssessmentProgress, Long> {
  Optional<AssessmentProgress> findByUserAndAssessment(AppUser user, Assessment assessment);
  Optional<AssessmentProgress> findByProjectAndUserAndAssessment(Project project, AppUser user, Assessment assessment);
}
