mirror of
https://github.com/netbirdio/netbird.git
synced 2024-12-16 11:51:30 +01:00
20 lines
378 B
Go
20 lines
378 B
Go
package networks
|
|
|
|
import "github.com/rs/xid"
|
|
|
|
type Network struct {
|
|
ID string `gorm:"index"`
|
|
AccountID string `gorm:"index"`
|
|
Name string
|
|
Description string
|
|
}
|
|
|
|
func NewNetwork(accountId, name, description string) *Network {
|
|
return &Network{
|
|
ID: xid.New().String(),
|
|
AccountID: accountId,
|
|
Name: name,
|
|
Description: description,
|
|
}
|
|
}
|