Skip to content

Commit

Permalink
Require GivenName to be unique
Browse files Browse the repository at this point in the history
  • Loading branch information
kradalby committed May 16, 2022
1 parent 9b393eb commit 4aae917
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion machine.go
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ type Machine struct {
//
// GivenName is the name used in all DNS related
// parts of headscale.
GivenName string
GivenName string `gorm:"type:varchar(63);unique_index"`
NamespaceID uint
Namespace Namespace `gorm:"foreignKey:NamespaceID"`

Expand Down

0 comments on commit 4aae917

Please sign in to comment.