removed unique constraint on consents
This commit is contained in:
@@ -7,7 +7,7 @@ type Consent struct {
|
|||||||
UpdatedAt time.Time
|
UpdatedAt time.Time
|
||||||
FirstName string `gorm:"not null" json:"first_name"`
|
FirstName string `gorm:"not null" json:"first_name"`
|
||||||
LastName string `gorm:"not null" json:"last_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"`
|
ConsentType string `gorm:"not null" json:"consent_type"`
|
||||||
ID int64 `gorm:"primaryKey"`
|
ID int64 `gorm:"primaryKey"`
|
||||||
UserID int64 `gorm:"not null" json:"user_id"`
|
UserID int64 `gorm:"not null" json:"user_id"`
|
||||||
|
|||||||
Reference in New Issue
Block a user