package de.oaa.xxx.location.repository;

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

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

public interface LocationOpeningHoursRepository extends JpaRepository<LocationOpeningHoursEntity, UUID> {

    List<LocationOpeningHoursEntity> findByLocationIdOrderByDayOfWeek(UUID locationId);

    void deleteByLocationId(UUID locationId);
}
