From ec882f7fd968baebafc77d908ad302b3c6228ab2 Mon Sep 17 00:00:00 2001 From: Jim Martens Date: Thu, 26 Oct 2023 20:53:57 +0200 Subject: [PATCH] Added missing fields to formation db model --- .../kotlin/de/twomartens/timetable/model/db/Formation.kt | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/module-server/src/main/kotlin/de/twomartens/timetable/model/db/Formation.kt b/module-server/src/main/kotlin/de/twomartens/timetable/model/db/Formation.kt index 88af887..c253729 100644 --- a/module-server/src/main/kotlin/de/twomartens/timetable/model/db/Formation.kt +++ b/module-server/src/main/kotlin/de/twomartens/timetable/model/db/Formation.kt @@ -15,8 +15,10 @@ import java.time.Instant @CompoundIndex(def = "{'userId': 1, 'formationId': 1}", unique = true) data class Formation( var userId: UserId, - var positiveInteger: FormationId, - var name: NonEmptyString + var formationId: FormationId, + var name: NonEmptyString, + var trainSimWorldFormationId: FormationId, + var coaches: List ) { @Id var id: ObjectId = ObjectId()