mirror of
https://github.com/2martens/tsw-timetable.git
synced 2026-10-17 16:06:51 +02:00
change: Use routeId for index of TswRoute
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user