package de.oaa.xxx.location.repository;

import de.oaa.xxx.location.entity.LocationImageEntity;
import org.springframework.data.jpa.repository.JpaRepository;

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

public interface LocationImageRepository extends JpaRepository<LocationImageEntity, UUID> {

    List<LocationImageEntity> findByLocationIdOrderByUploadedAtAsc(UUID locationId);

    long countByLocationId(UUID locationId);

    void deleteByLocationId(UUID locationId);
}
