File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -12,8 +12,8 @@ type UserID string
1212// User stores information about a user
1313type 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"`
You can’t perform that action at this time.
0 commit comments