change json field

This commit is contained in:
kandrusyak
2023-08-03 00:11:58 +03:00
parent fe09a32bbc
commit 95a66c2c16

View File

@@ -9,7 +9,7 @@ import (
// swagger:model Event // swagger:model Event
type Event struct { type Event struct {
gorm.Model gorm.Model
ID uuid.UUID `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"`
Author User `json:"author" gorm:"-"` Author User `json:"author" gorm:"-"`