Skip to content

Commit

Permalink
Merge pull request #18 from SwimResults/develop
Browse files Browse the repository at this point in the history
add incident name extension
  • Loading branch information
konrad2002 authored Jun 2, 2024
2 parents ee0f02b + a745aee commit 29d9530
Showing 1 changed file with 11 additions and 10 deletions.
21 changes: 11 additions & 10 deletions model/incident.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,15 @@ import (
)

type Incident struct {
Identifier primitive.ObjectID `json:"_id,omitempty" bson:"_id,omitempty"`
Meeting string `json:"meeting,omitempty" bson:"meeting,omitempty"`
Type string `json:"type,omitempty" bson:"type,omitempty"` // EVENT, DURATION
Name string `json:"name,omitempty" bson:"name,omitempty"` // Einschwimmen, Kampfrichtersitzung, Mannschaftsleistersitzung
Start time.Time `json:"start,omitempty" bson:"start,omitempty"`
End time.Time `json:"end,omitempty" bson:"end,omitempty"`
PrevEvent int `json:"prev_event,omitempty" bson:"prev_event,omitempty"`
NextEvent int `json:"next_event,omitempty" bson:"next_event,omitempty"`
AddedAt time.Time `json:"added_at,omitempty" bson:"added_at,omitempty"`
UpdatedAt time.Time `json:"updated_at,omitempty" bson:"updated_at,omitempty"`
Identifier primitive.ObjectID `json:"_id,omitempty" bson:"_id,omitempty"`
Meeting string `json:"meeting,omitempty" bson:"meeting,omitempty"`
Type string `json:"type,omitempty" bson:"type,omitempty"` // EVENT, DURATION
Name string `json:"name,omitempty" bson:"name,omitempty"` // Einschwimmen, Kampfrichtersitzung, Mannschaftsleistersitzung
NameExtension string `json:"name_extension,omitempty" bson:"name_extension,omitempty"` // custom names or description
Start time.Time `json:"start,omitempty" bson:"start,omitempty"`
End time.Time `json:"end,omitempty" bson:"end,omitempty"`
PrevEvent int `json:"prev_event,omitempty" bson:"prev_event,omitempty"`
NextEvent int `json:"next_event,omitempty" bson:"next_event,omitempty"`
AddedAt time.Time `json:"added_at,omitempty" bson:"added_at,omitempty"`
UpdatedAt time.Time `json:"updated_at,omitempty" bson:"updated_at,omitempty"`
}

0 comments on commit 29d9530

Please sign in to comment.