package com.davos.assessment.legal;

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

public interface LegalDocumentRepository extends JpaRepository<LegalDocument, Long> {
  Optional<LegalDocument> findByDocType(LegalDocumentType docType);
  Optional<LegalDocument> findByProjectAndDocType(Project project, LegalDocumentType docType);
}
