Skip to content

Commit d4bcb8e

Browse files
authored
Merge pull request #33 from sirosfoundation/fix/correct-fields-in-mongodb-indexes
fix: verifier url should be index field
2 parents 25189cf + e8b1f17 commit d4bcb8e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

internal/domain/credential.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ type Verifier struct {
101101
ID int64 `json:"id" bson:"_id,omitempty" gorm:"primaryKey;autoIncrement"`
102102
TenantID TenantID `json:"tenantId" bson:"tenant_id" gorm:"index;not null;default:'default'"`
103103
Name string `json:"name" bson:"name" gorm:"not null"`
104-
URL string `json:"url" bson:"url" gorm:"not null"`
104+
URL string `json:"url" bson:"url" gorm:"index;not null"`
105105
}
106106

107107
// TableName specifies the table name for GORM

0 commit comments

Comments
 (0)