[management] optimize proxy network map (#4324)

This commit is contained in:
Pascal Fischer
2025-08-20 19:04:19 +02:00
committed by GitHub
parent f425870c8e
commit 0d2845ea31
5 changed files with 18 additions and 12 deletions

View File

@@ -24,7 +24,7 @@ type Peer struct {
// Meta is a Peer system meta data
Meta PeerSystemMeta `gorm:"embedded;embeddedPrefix:meta_"`
// Name is peer's name (machine name)
Name string
Name string `gorm:"index"`
// DNSLabel is the parsed peer name for domain resolution. It is used to form an FQDN by appending the account's
// domain to the peer label. e.g. peer-dns-label.netbird.cloud
DNSLabel string // uniqueness index per accountID (check migrations)