Allow rate plan code per room type
All checks were successful
build-and-deploy / build-deploy (push) Successful in 35s

This commit is contained in:
androidlover5842
2026-01-29 05:35:19 +05:30
parent ac9df5f4bd
commit 3546b2de62
4 changed files with 47 additions and 4 deletions

View File

@@ -10,4 +10,5 @@ interface RatePlanRepo : JpaRepository<RatePlan, UUID> {
fun findByPropertyIdOrderByCode(propertyId: UUID): List<RatePlan>
fun findByIdAndPropertyId(id: UUID, propertyId: UUID): RatePlan?
fun existsByPropertyIdAndCode(propertyId: UUID, code: String): Boolean
fun existsByPropertyIdAndRoomTypeIdAndCode(propertyId: UUID, roomTypeId: UUID, code: String): Boolean
}