mirror of
https://github.com/netbirdio/netbird.git
synced 2026-04-18 00:06:38 +00:00
18 lines
510 B
Go
18 lines
510 B
Go
package domain
|
|
|
|
type DomainType string
|
|
|
|
const (
|
|
TypeFree DomainType = "free"
|
|
TypeCustom DomainType = "custom"
|
|
)
|
|
|
|
type Domain struct {
|
|
ID string `gorm:"unique;primaryKey;autoIncrement"`
|
|
Domain string `gorm:"unique"` // Domain records must be unique, this avoids domain reuse across accounts.
|
|
AccountID string `gorm:"index"`
|
|
TargetCluster string // The proxy cluster this domain should be validated against
|
|
Type DomainType `gorm:"-"`
|
|
Validated bool
|
|
}
|