package kz.konturai.parser.repository;

import kz.konturai.parser.model.MarketingAnalysis;
import org.springframework.data.mongodb.repository.MongoRepository;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Optional;

@Repository
public interface MarketingAnalysisRepository extends MongoRepository<MarketingAnalysis, String> {
    Optional<MarketingAnalysis> findById(String id);
    List<MarketingAnalysis> findByUserIdOrderByCreatedAtDesc(String userId);
}
