package de.oaa.xxx.games.chastity.keyholder;

import org.springframework.data.jpa.repository.JpaRepository;
import java.time.LocalDateTime;
import java.util.List;
import java.util.UUID;

public interface KeyholderTaskChoiceRepository extends JpaRepository<KeyholderTaskChoiceEntity, UUID> {
    List<KeyholderTaskChoiceEntity> findByLockIdAndActiveTrue(UUID lockId);
    List<KeyholderTaskChoiceEntity> findByActiveTrueAndExpiresAtBefore(LocalDateTime time);
}
