Send and receive SMS messages using your Android phone programmatically via a simple HTTP API
Make index unique
Acho Arnoldff60d3f7d050
diff --git a/api/pkg/entities/user.go b/api/pkg/entities/user.goindex 05dfb834..f70c7fc9 100644--- a/api/pkg/entities/user.go+++ b/api/pkg/entities/user.go@@ -69,7 +69,7 @@ const SubscriptionName100KYearly = SubscriptionName("100k-yearly")type User struct {ID UserID `json:"id" gorm:"primaryKey;type:string;" example:"WB7DRDWrJZRGbYrv2CKGkqbzvqdC"`Email string `json:"email" example:"[email protected]"`- APIKey string `json:"api_key" gorm:"index:idx_users_api_key,unique" example:"x-api-key"`+ APIKey string `json:"api_key" gorm:"uniqueIndex:idx_users_api_key" example:"x-api-key"`Timezone string `json:"timezone" example:"Europe/Helsinki" gorm:"default:Africa/Accra"`ActivePhoneID *uuid.UUID `json:"active_phone_id" gorm:"type:uuid;" example:"32343a19-da5e-4b1b-a767-3298a73703cb"`SubscriptionName SubscriptionName `json:"subscription_name" example:"free"`