package com.davos.assessment.project;

import java.util.List;
import java.util.Optional;
import org.springframework.data.jpa.repository.JpaRepository;

public interface ProjectRepository extends JpaRepository<Project, Long> {
  Optional<Project> findBySlug(String slug);
  boolean existsBySlug(String slug);
  List<Project> findAllByOrderByCreatedAtDesc();
}
