package kz.konturai.parser.repository;

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

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

@Repository
public interface SocialMediaCredentialsRepository extends MongoRepository<SocialMediaCredentials, String> {
    Optional<SocialMediaCredentials> findByUserIdAndPlatform(String userId, String platform);
    List<SocialMediaCredentials> findByUserId(String userId);
    void deleteByUserIdAndPlatform(String userId, String platform);
}

