Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Answer ¶
type Answer struct { UUID uuid.UUID `gorm:"type:uuid;primary_key;" json:"UUID"` StationID int `json:"station" gorm:"references:station.ID"` AnswerTime time.Time `json:"answer_time"` SynchronizationTime time.Time `json:"synchronization_time"` ResultOption *int `json:"result_option"` ResultText *string `json:"result_text"` ResultNumber *float64 `json:"result_number"` }
func (*Answer) BeforeCreate ¶
BeforeCreate will set a UUID rather than numeric ID. taken from https://github.com/FachschaftMathPhysInfo/ostseee/blob/master/server/go/model_base.go
Click to show internal directories.
Click to hide internal directories.