mirror of
https://github.com/2martens/tsw-timetable.git
synced 2026-10-17 16:06:51 +02:00
Added missing fields to formation db model
This commit is contained in:
@@ -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<NonEmptyString>
|
||||
) {
|
||||
@Id
|
||||
var id: ObjectId = ObjectId()
|
||||
|
||||
Reference in New Issue
Block a user