package ai.decompile.workspace.model.repository;

import ai.decompile.workspace.model.entity.Project;
import jakarta.validation.constraints.NotBlank;
import java.util.UUID;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;

public interface ProjectRepository
    extends JpaRepository<Project, UUID>, JpaSpecificationExecutor<Project> {
  boolean existsByNameIgnoreCaseAndWorkspace_Id(@NotBlank String name, UUID workspaceId);
}
