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

import java.util.UUID;

import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Modifying;
import org.springframework.data.jpa.repository.Query;

public interface CardLockRepository extends JpaRepository<CardLockEntity, UUID> {

    @Modifying
    @Query("DELETE FROM CardLockEntity c WHERE c.lockId = :lockId")
    void deleteByLockId(UUID lockId);
}
