package models import "time" type IPAddress struct { ID int64 `gorm:"primaryKey" json:"id"` InterfaceID int64 `gorm:"column:interface_id" json:"interface_id"` Address string `gorm:"column:address" json:"address"` Prefix int `gorm:"column:prefix" json:"prefix"` IsVIP bool `gorm:"column:is_vip" json:"is_vip"` VIPPriority *int `gorm:"column:vip_priority" json:"vip_priority,omitempty"` Description *string `gorm:"column:description" json:"description,omitempty"` Active bool `gorm:"column:active" json:"active"` CreatedAt time.Time `gorm:"column:created_at" json:"created_at"` UpdatedAt time.Time `gorm:"column:updated_at" json:"updated_at"` } func (IPAddress) TableName() string { return "ip_addresses" }