Skip to content

Commit cfa6746

Browse files
committed
Add inmdex to api key in users table
1 parent b95701f commit cfa6746

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

api/pkg/entities/user.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ const SubscriptionName100KYearly = SubscriptionName("100k-yearly")
6969
type User struct {
7070
ID UserID `json:"id" gorm:"primaryKey;type:string;" example:"WB7DRDWrJZRGbYrv2CKGkqbzvqdC"`
7171
Email string `json:"email" example:"name@email.com"`
72-
APIKey string `json:"api_key" example:"xyz"`
72+
APIKey string `json:"api_key" gorm:"index" example:"x-api-key"`
7373
Timezone string `json:"timezone" example:"Europe/Helsinki" gorm:"default:Africa/Accra"`
7474
ActivePhoneID *uuid.UUID `json:"active_phone_id" gorm:"type:uuid;" example:"32343a19-da5e-4b1b-a767-3298a73703cb"`
7575
SubscriptionName SubscriptionName `json:"subscription_name" example:"free"`

0 commit comments

Comments
 (0)