Revoke cards by cardIndex and drop cardId uniqueness
All checks were successful
build-and-deploy / build-deploy (push) Successful in 1m33s

This commit is contained in:
androidlover5842
2026-01-28 18:24:40 +05:30
parent 914d824e51
commit 385a66d5c5
3 changed files with 7 additions and 39 deletions

View File

@@ -9,6 +9,7 @@ interface IssuedCardRepo : JpaRepository<IssuedCard, UUID> {
fun findByIdAndPropertyId(id: UUID, propertyId: UUID): IssuedCard?
fun findByCardIdIgnoreCaseAndPropertyId(cardId: String, propertyId: UUID): IssuedCard?
fun findAllByCardIdIgnoreCaseAndPropertyId(cardId: String, propertyId: UUID): List<IssuedCard>
fun findByPropertyIdAndCardIndex(propertyId: UUID, cardIndex: Int): IssuedCard?
@org.springframework.data.jpa.repository.Query("""
select case when count(c) > 0 then true else false end