Skip to content

Commit f21882d

Browse files
committed
Remove uniqueue index
1 parent 4959665 commit f21882d

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

api/pkg/entities/user.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@ type UserID string
1212
// User stores information about a user
1313
type User struct {
1414
ID UserID `json:"id" gorm:"primaryKey;type:string;" example:"WB7DRDWrJZRGbYrv2CKGkqbzvqdC"`
15-
Email string `json:"email" gorm:"uniqueIndex" example:"name@email.com"`
16-
APIKey string `json:"api_key" gorm:"uniqueIndex" example:"xyz"`
15+
Email string `json:"email" example:"name@email.com"` // gorm:"uniqueIndex"
16+
APIKey string `json:"api_key" example:"xyz"` // gorm:"uniqueIndex"
1717
ActivePhoneID *uuid.UUID `json:"active_phone_id" gorm:"type:uuid;" example:"32343a19-da5e-4b1b-a767-3298a73703cb"`
1818
CreatedAt time.Time `json:"created_at" example:"2022-06-05T14:26:02.302718+03:00"`
1919
UpdatedAt time.Time `json:"updated_at" example:"2022-06-05T14:26:10.303278+03:00"`

0 commit comments

Comments
 (0)