From a890f8ddba230dd57b6dc6790a7328a89715405a Mon Sep 17 00:00:00 2001 From: Everest Date: Sat, 27 Jan 2024 00:36:15 -0300 Subject: [PATCH] create attendee model --- pkg/attendee/model.go | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/pkg/attendee/model.go b/pkg/attendee/model.go index eb5c841..8b87ab1 100644 --- a/pkg/attendee/model.go +++ b/pkg/attendee/model.go @@ -3,7 +3,6 @@ package attendee import ( "gorm.io/gorm" - "github.com/marcopollivier/techagenda/pkg/event" "github.com/marcopollivier/techagenda/pkg/user" ) @@ -11,10 +10,9 @@ type Attendee struct { gorm.Model FullName string ContactInfo string - Metadata any - EventID string - UserID string + Metadata any `gorm:"serializer:json"` + EventID uint + UserID uint - event.Event - user.User + User user.User }