package com.astalange.core.repository;

import com.astalange.core.entity.PreInscription;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface PreInscriptionRepository extends JpaRepository<PreInscription, Long> {
    List<PreInscription> findByStatutTraiteFalseOrderByDateCreationDesc();
    long countByStatutTraiteFalse();
}
