package models import "time" type FirewallAddressObject struct { ID int64 `gorm:"primaryKey" json:"id"` Name string `gorm:"column:name;uniqueIndex" json:"name"` Kind string `gorm:"column:kind" json:"kind"` // host|network|range|fqdn Value string `gorm:"column:value" json:"value"` 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 (FirewallAddressObject) TableName() string { return "firewall_address_objects" }