File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -7,11 +7,11 @@ type VerificationRequest struct {
77 Key string `json:"_key,omitempty" bson:"_key"` // for arangodb
88 ID string `gorm:"primaryKey;type:char(36)" json:"_id" bson:"_id"`
99 Token string `gorm:"type:text" json:"token" bson:"token"`
10- Identifier string `gorm:"uniqueIndex:idx_email_identifier" json:"identifier" bson:"identifier"`
10+ Identifier string `gorm:"uniqueIndex:idx_email_identifier;type:varchar(64) " json:"identifier" bson:"identifier"`
1111 ExpiresAt int64 `json:"expires_at" bson:"expires_at"`
1212 CreatedAt int64 `json:"created_at" bson:"created_at"`
1313 UpdatedAt int64 `json:"updated_at" bson:"updated_at"`
14- Email string `gorm:"uniqueIndex:idx_email_identifier" json:"email" bson:"email"`
14+ Email string `gorm:"uniqueIndex:idx_email_identifier;type:varchar(256) " json:"email" bson:"email"`
1515 Nonce string `gorm:"type:text" json:"nonce" bson:"nonce"`
1616 RedirectURI string `gorm:"type:text" json:"redirect_uri" bson:"redirect_uri"`
1717}
You can’t perform that action at this time.
0 commit comments