Added missing fields to formation db model

This commit is contained in:
2023-10-26 20:53:57 +02:00
parent 54b7f54ade
commit ec882f7fd9
@@ -15,8 +15,10 @@ import java.time.Instant
@CompoundIndex(def = "{'userId': 1, 'formationId': 1}", unique = true) @CompoundIndex(def = "{'userId': 1, 'formationId': 1}", unique = true)
data class Formation( data class Formation(
var userId: UserId, var userId: UserId,
var positiveInteger: FormationId, var formationId: FormationId,
var name: NonEmptyString var name: NonEmptyString,
var trainSimWorldFormationId: FormationId,
var coaches: List<NonEmptyString>
) { ) {
@Id @Id
var id: ObjectId = ObjectId() var id: ObjectId = ObjectId()