mirror of
https://github.com/2martens/tsw-timetable.git
synced 2026-10-17 16:06:51 +02:00
fix: Make index unique
This commit is contained in:
+1
-1
@@ -12,7 +12,7 @@ import org.springframework.data.mongodb.core.mapping.Document
|
||||
import java.time.Instant
|
||||
|
||||
@Document
|
||||
@CompoundIndex(def = "{'userId': 1, 'tswTimetableId': 1}")
|
||||
@CompoundIndex(def = "{'userId': 1, 'tswTimetableId': 1}", unique = true)
|
||||
data class ScheduledProcessTimetableTask(
|
||||
var userId: UserId,
|
||||
var timetableId: TimetableId,
|
||||
|
||||
Reference in New Issue
Block a user