From cae30f430d48bc038896ab693a523d457f0803ba Mon Sep 17 00:00:00 2001 From: Jim Martens Date: Sat, 23 Sep 2023 21:22:14 +0200 Subject: [PATCH] Added index for name --- .../de/twomartens/timetable/bahnApi/model/db/BahnStation.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/module-server/src/main/kotlin/de/twomartens/timetable/bahnApi/model/db/BahnStation.kt b/module-server/src/main/kotlin/de/twomartens/timetable/bahnApi/model/db/BahnStation.kt index 03c7547..e4d903b 100644 --- a/module-server/src/main/kotlin/de/twomartens/timetable/bahnApi/model/db/BahnStation.kt +++ b/module-server/src/main/kotlin/de/twomartens/timetable/bahnApi/model/db/BahnStation.kt @@ -10,7 +10,7 @@ import java.time.Instant @Document data class BahnStation( - var name: String, + @Indexed var name: String, @Indexed(unique = true) var eva: String, var ds100: String, var db: Boolean