removed unique constraint on consents

This commit is contained in:
$(pass /github/name)
2024-07-10 22:50:06 +02:00
parent 7464b77315
commit 20ed629e92

View File

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