package at.procon.dip.domain.tenant.repository;

import at.procon.dip.domain.tenant.entity.DocumentTenant;
import java.util.Optional;
import java.util.UUID;
import org.springframework.data.jpa.repository.JpaRepository;

public interface DocumentTenantRepository extends JpaRepository<DocumentTenant, UUID> {

    Optional<DocumentTenant> findByTenantKey(String tenantKey);

    boolean existsByTenantKey(String tenantKey);
}
