package models import "time" type FirewallService struct { ID int64 `gorm:"primaryKey" json:"id"` Name string `gorm:"column:name;uniqueIndex" json:"name"` Proto string `gorm:"column:proto" json:"proto"` // tcp|udp|icmp|icmpv6|any PortStart *int `gorm:"column:port_start" json:"port_start,omitempty"` PortEnd *int `gorm:"column:port_end" json:"port_end,omitempty"` Builtin bool `gorm:"column:builtin" json:"builtin"` 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 (FirewallService) TableName() string { return "firewall_services" }