package de.oaa.xxx.social.repository;

import de.oaa.xxx.social.entity.ProfileImageEntity;
import org.springframework.data.jpa.repository.JpaRepository;

import java.util.List;
import java.util.UUID;

public interface ProfileImageRepository extends JpaRepository<ProfileImageEntity, UUID> {

    List<ProfileImageEntity> findByUserIdOrderByUploadedAtDesc(UUID userId);

    long countByUserId(UUID userId);
}
