Skip to content

Commit

Permalink
AccessKey.Key unqiue index
Browse files Browse the repository at this point in the history
  • Loading branch information
mxyng committed Feb 2, 2022
1 parent b10933e commit 1225cb7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/registry/models/access_key.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ type AccessKey struct {
// TODO: remove me with machine identities
Permissions string

Key string
Key string `gorm:"<-;uniqueIndex:,where:deleted_at is NULL"`
Secret string `gorm:"-"`
SecretChecksum []byte
}

0 comments on commit 1225cb7

Please sign in to comment.