change json field
This commit is contained in:
@@ -8,7 +8,7 @@ import (
|
|||||||
|
|
||||||
// swagger:model Event
|
// swagger:model Event
|
||||||
type Event struct {
|
type Event struct {
|
||||||
gorm.Model
|
gorm.Model `json:"meta"`
|
||||||
ID uuid.UUID `json:"id" gorm:"type:uuid;default:gen_random_uuid();primarykey"`
|
ID uuid.UUID `json:"id" gorm:"type:uuid;default:gen_random_uuid();primarykey"`
|
||||||
Start time.Time `json:"start"`
|
Start time.Time `json:"start"`
|
||||||
End time.Time `json:"end"`
|
End time.Time `json:"end"`
|
||||||
|
|||||||
Reference in New Issue
Block a user