package de.cannamanage.service.repository;

import de.cannamanage.domain.entity.ForumReport;
import de.cannamanage.domain.enums.ReportStatus;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;

import java.util.UUID;

@Repository
public interface ForumReportRepository extends JpaRepository<ForumReport, UUID> {

    Page<ForumReport> findByClubIdAndStatusOrderByCreatedAtDesc(
            UUID clubId, ReportStatus status, Pageable pageable);

    long countByClubIdAndStatus(UUID clubId, ReportStatus status);
}
