replace id type

This commit is contained in:
kandrusyak
2023-07-18 01:01:38 +03:00
parent 1aa6b6c87e
commit b74291f449
3 changed files with 5 additions and 0 deletions

View File

@@ -1,12 +1,14 @@
package model
import (
"github.com/google/uuid"
"github.com/lib/pq"
"gorm.io/gorm"
"time"
)
type Event struct {
ID uuid.UUID `gorm:"type:uuid;default:gen_random_uuid();primarykey"`
gorm.Model
Start time.Time `json:"start"`
End time.Time `json:"end"`