diff --git a/module-bahnApi/src/main/kotlin/de/twomartens/timetable/bahnApi/model/db/BahnTimetable.kt b/module-bahnApi/src/main/kotlin/de/twomartens/timetable/bahnApi/model/db/BahnTimetable.kt index 2a66322..7d0c562 100644 --- a/module-bahnApi/src/main/kotlin/de/twomartens/timetable/bahnApi/model/db/BahnTimetable.kt +++ b/module-bahnApi/src/main/kotlin/de/twomartens/timetable/bahnApi/model/db/BahnTimetable.kt @@ -14,7 +14,7 @@ import org.springframework.data.mongodb.core.mapping.Document import java.time.Instant @Document -@CompoundIndex(def = "{'eva': 1, 'dateTime': 1}", unique = true) +@CompoundIndex(def = "{'eva': 1, 'hourAtDay': 1}", unique = true) data class BahnTimetable( var eva: Eva, var hourAtDay: HourAtDay,