change json field

This commit is contained in:
kandrusyak
2023-08-03 00:19:08 +03:00
parent 95a66c2c16
commit 15f51516af

View File

@@ -8,7 +8,7 @@ import (
// swagger:model Event
type Event struct {
gorm.Model
gorm.Model `json:"meta"`
ID uuid.UUID `json:"id" gorm:"type:uuid;default:gen_random_uuid();primarykey"`
Start time.Time `json:"start"`
End time.Time `json:"end"`