package com.mosquito.project.persistence.repository;

import com.mosquito.project.persistence.entity.DailyActivityStatsEntity;
import org.springframework.data.jpa.repository.JpaRepository;

import java.time.LocalDate;
import java.util.Optional;

public interface DailyActivityStatsRepository extends JpaRepository<DailyActivityStatsEntity, Long> {
    Optional<DailyActivityStatsEntity> findByActivityIdAndStatDate(Long activityId, LocalDate statDate);

    java.util.List<DailyActivityStatsEntity> findByActivityIdOrderByStatDateAsc(Long activityId);
}
