Shares #109
1 changed files with 6 additions and 6 deletions
|
@ -15,11 +15,11 @@ type Incident struct {
|
||||||
ID uuid.UUID `json:"id"`
|
ID uuid.UUID `json:"id"`
|
||||||
Owner users.UserID `json:"owner"`
|
Owner users.UserID `json:"owner"`
|
||||||
Name string `json:"name"`
|
Name string `json:"name"`
|
||||||
Description *string `json:"description"`
|
Description *string `json:"description,omitempty"`
|
||||||
StartTime *jsontypes.Time `json:"startTime"`
|
StartTime *jsontypes.Time `json:"startTime,omitempty"`
|
||||||
EndTime *jsontypes.Time `json:"endTime"`
|
EndTime *jsontypes.Time `json:"endTime,omitempty"`
|
||||||
Location jsontypes.Location `json:"location"`
|
Location jsontypes.Location `json:"location,omitempty"`
|
||||||
Metadata jsontypes.Metadata `json:"metadata"`
|
Metadata jsontypes.Metadata `json:"metadata,omitempty"`
|
||||||
Calls []IncidentCall `json:"calls"`
|
Calls []IncidentCall `json:"calls"`
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -34,5 +34,5 @@ func (inc *Incident) PlaylistFilename() string {
|
||||||
|
|
||||||
type IncidentCall struct {
|
type IncidentCall struct {
|
||||||
calls.Call
|
calls.Call
|
||||||
Notes json.RawMessage `json:"notes"`
|
Notes json.RawMessage `json:"notes,omitempty"`
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue