package com.codenetworkz.portfoliowebsite.repositories;

import com.codenetworkz.portfoliowebsite.models.ContactForm;
import com.codenetworkz.portfoliowebsite.models.Status;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;

import java.time.LocalDate;
import java.util.List;
import java.util.UUID;

@Repository
public interface ContactFormRepository extends JpaRepository<ContactForm, Long> {

   // List<ContactForm> findAllBySendMessageIsBefore(Status status, LocalDate last2Day);

    List<ContactForm> findAllBySendMessageAndCreateAtIsBefore(Status status, LocalDate last2Day);
}
