replace id type
This commit is contained in:
@@ -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"`
|
||||
|
||||
Reference in New Issue
Block a user