package models import "time" type NetworkInterface struct { ID int64 `gorm:"primaryKey" json:"id"` Name string `gorm:"column:name;uniqueIndex" json:"name"` Type string `gorm:"column:type" json:"type"` Parent *string `gorm:"column:parent" json:"parent,omitempty"` VLANID *int `gorm:"column:vlan_id" json:"vlan_id,omitempty"` Role string `gorm:"column:role" json:"role"` MTU *int `gorm:"column:mtu" json:"mtu,omitempty"` Active bool `gorm:"column:active" json:"active"` Description *string `gorm:"column:description" json:"description,omitempty"` CreatedAt time.Time `gorm:"column:created_at" json:"created_at"` UpdatedAt time.Time `gorm:"column:updated_at" json:"updated_at"` } func (NetworkInterface) TableName() string { return "network_interfaces" }