From f50333d223ea7c86ea043a511e466b38c2c0cb3b Mon Sep 17 00:00:00 2001 From: Frederick Holland Date: Thu, 23 Oct 2025 16:44:56 +1100 Subject: [PATCH] Made user nullable in participant --- models/participant.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/models/participant.go b/models/participant.go index da8c4b1..a45f9af 100644 --- a/models/participant.go +++ b/models/participant.go @@ -24,7 +24,7 @@ type DBParticipant struct { Sessions []DBSession `gorm:"foreignKey:ParticipantId;references:Id"` Calls []DBCall `gorm:"foreignKey:ParticipantId;references:Id"` - User GCUser `gorm:"foreignKey:UserId;references:Id` + User *GCUser `gorm:"foreignKey:UserId;references:Id` } func (DBParticipant) TableName() string {