package models import "time" type FirewallRule struct { ID int64 `gorm:"primaryKey" json:"id"` Chain string `gorm:"column:chain" json:"chain"` Priority int `gorm:"column:priority" json:"priority"` MatchExpr string `gorm:"column:match_expr" json:"match_expr"` Action string `gorm:"column:action" json:"action"` Comment *string `gorm:"column:comment" json:"comment,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 (FirewallRule) TableName() string { return "firewall_rules" }