1 parent b95701f commit cfa6746Copy full SHA for cfa6746
1 file changed
api/pkg/entities/user.go
@@ -69,7 +69,7 @@ const SubscriptionName100KYearly = SubscriptionName("100k-yearly")
69
type User struct {
70
ID UserID `json:"id" gorm:"primaryKey;type:string;" example:"WB7DRDWrJZRGbYrv2CKGkqbzvqdC"`
71
Email string `json:"email" example:"name@email.com"`
72
- APIKey string `json:"api_key" example:"xyz"`
+ APIKey string `json:"api_key" gorm:"index" example:"x-api-key"`
73
Timezone string `json:"timezone" example:"Europe/Helsinki" gorm:"default:Africa/Accra"`
74
ActivePhoneID *uuid.UUID `json:"active_phone_id" gorm:"type:uuid;" example:"32343a19-da5e-4b1b-a767-3298a73703cb"`
75
SubscriptionName SubscriptionName `json:"subscription_name" example:"free"`
0 commit comments