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"`