mirror of
https://github.com/juanfont/headscale.git
synced 2025-08-25 08:24:00 +00:00
Require GivenName to be unique
This commit is contained in:
@@ -51,7 +51,7 @@ type Machine struct {
|
|||||||
//
|
//
|
||||||
// GivenName is the name used in all DNS related
|
// GivenName is the name used in all DNS related
|
||||||
// parts of headscale.
|
// parts of headscale.
|
||||||
GivenName string
|
GivenName string `gorm:"type:varchar(63);unique_index"`
|
||||||
NamespaceID uint
|
NamespaceID uint
|
||||||
Namespace Namespace `gorm:"foreignKey:NamespaceID"`
|
Namespace Namespace `gorm:"foreignKey:NamespaceID"`
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user