From eaa67bfdfef1c53fe90279e5ecb6873013a476a7 Mon Sep 17 00:00:00 2001 From: Jim Martens Date: Mon, 8 Jan 2024 19:19:48 +0100 Subject: [PATCH] change: Use routeId for index of TswRoute --- .../main/kotlin/de/twomartens/timetable/model/db/TswRoute.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/module-model/src/main/kotlin/de/twomartens/timetable/model/db/TswRoute.kt b/module-model/src/main/kotlin/de/twomartens/timetable/model/db/TswRoute.kt index ab3dde8..8380396 100644 --- a/module-model/src/main/kotlin/de/twomartens/timetable/model/db/TswRoute.kt +++ b/module-model/src/main/kotlin/de/twomartens/timetable/model/db/TswRoute.kt @@ -14,7 +14,7 @@ import org.springframework.data.mongodb.core.mapping.Document import java.time.Instant @Document -@CompoundIndex(def = "{'userId': 1, 'name': 1}", unique = true) +@CompoundIndex(def = "{'userId': 1, 'routeId': 1}", unique = true) data class TswRoute( var userId: UserId, var routeId: RouteId,