package com.pressing.domain.storage;

import java.util.List;
import java.util.Optional;
import org.springframework.data.jpa.repository.JpaRepository;

public interface StorageAssignmentRepository extends JpaRepository<StorageAssignment, Long> {
    List<StorageAssignment> findBySiteIdOrderByAssignedAtDesc(Long siteId);
    Optional<StorageAssignment> findByIdAndSiteId(Long id, Long siteId);
}
