Skip to content

Send and receive SMS messages using your Android phone programmatically via a simple HTTP API

Add inmdex to api key in users table

Acho Arnoldcfa67464b0be
diff --git a/api/pkg/entities/user.go b/api/pkg/entities/user.go
index ae48d3a5..17c1a517 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" example:"xyz"`
+ APIKey string `json:"api_key" gorm:"index" 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"`