Send and receive SMS messages using your Android phone programmatically via a simple HTTP API
Remove uniqueue index
Acho Arnoldf21882d79c99
diff --git a/api/pkg/entities/user.go b/api/pkg/entities/user.goindex e664b644..e5753147 100644--- a/api/pkg/entities/user.go+++ b/api/pkg/entities/user.go@@ -12,8 +12,8 @@ type UserID string// User stores information about a usertype User struct {ID UserID `json:"id" gorm:"primaryKey;type:string;" example:"WB7DRDWrJZRGbYrv2CKGkqbzvqdC"`- Email string `json:"email" gorm:"uniqueIndex" example:"[email protected]"`- APIKey string `json:"api_key" gorm:"uniqueIndex" example:"xyz"`+ Email string `json:"email" example:"[email protected]"` // gorm:"uniqueIndex"+ APIKey string `json:"api_key" example:"xyz"` // gorm:"uniqueIndex"ActivePhoneID *uuid.UUID `json:"active_phone_id" gorm:"type:uuid;" example:"32343a19-da5e-4b1b-a767-3298a73703cb"`CreatedAt time.Time `json:"created_at" example:"2022-06-05T14:26:02.302718+03:00"`UpdatedAt time.Time `json:"updated_at" example:"2022-06-05T14:26:10.303278+03:00"`