package de.oaa.xxx.social.repository;

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

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

public interface PinnwandEintragRepository extends JpaRepository<PinnwandEintragEntity, UUID> {

    List<PinnwandEintragEntity> findByProfilUserIdOrderByCreatedAtDesc(UUID profilUserId);

    void deleteByProfilUserId(UUID profilUserId);

    void deleteByAuthorId(UUID authorId);
}
