package models import "time" type FirewallAddressGroup struct { ID int64 `gorm:"primaryKey" json:"id"` Name string `gorm:"column:name;uniqueIndex" json:"name"` 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"` // MemberIDs is filled by the repo's Get/List joiners — not a real // column. JSON-omitted when empty so the bare-create response // stays terse. MemberIDs []int64 `gorm:"-" json:"member_ids,omitempty"` } func (FirewallAddressGroup) TableName() string { return "firewall_address_groups" }