From 20ed629e925d400a0d1b48df158adbe3b8fc3207 Mon Sep 17 00:00:00 2001 From: "$(pass /github/name)" <$(pass /github/email)> Date: Wed, 10 Jul 2024 22:50:06 +0200 Subject: [PATCH] removed unique constraint on consents --- internal/models/consents.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/models/consents.go b/internal/models/consents.go index dc5dc60..c5bdcb0 100644 --- a/internal/models/consents.go +++ b/internal/models/consents.go @@ -7,7 +7,7 @@ type Consent struct { UpdatedAt time.Time FirstName string `gorm:"not null" json:"first_name"` LastName string `gorm:"not null" json:"last_name"` - Email string `gorm:"unique" json:"email"` + Email string `json:"email"` ConsentType string `gorm:"not null" json:"consent_type"` ID int64 `gorm:"primaryKey"` UserID int64 `gorm:"not null" json:"user_id"`