Skip to content

Commit

Permalink
fix: use unique in model
Browse files Browse the repository at this point in the history
  • Loading branch information
katallaxie authored Jun 27, 2024
1 parent c523df9 commit d5346f0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion adapters/adapter.go
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ type GothUser struct {
// Name is the name of the user.
Name string `json:"name" validate:"required,max=255"`
// Email is the email of the user.
Email string `json:"email" gorm:"uniqueIndex" validate:"required,email"`
Email string `json:"email" gorm:"unique" validate:"required,email"`
// EmailVerified is true if the email is verified.
EmailVerified *bool `json:"email_verified"`
// Image is the image URL of the user.
Expand Down

0 comments on commit d5346f0

Please sign in to comment.