package model type ScannedCategory struct { CategoryID uint `gorm:"column:category_id;primaryKey"` Name string `gorm:"column:name"` Active uint `gorm:"column:active"` Position uint `gorm:"column:position"` ParentID uint `gorm:"column:id_parent"` IsRoot uint `gorm:"column:is_root_category"` LinkRewrite string `gorm:"column:link_rewrite"` IsoCode string `gorm:"column:iso_code"` Visited bool // this is for internal backend use only Filter string // filter applicable to this category } type Category struct { CategoryID uint `json:"category_id" form:"category_id"` Label string `json:"label" form:"label"` // Active bool `json:"active" form:"active"` Params CategoryParams `json:"params" form:"params"` Children []Category `json:"children" form:"children"` } type CategoryParams struct { CategoryID uint `json:"category_id" form:"category_id"` LinkRewrite string `json:"link_rewrite" form:"link_rewrite"` Locale string `json:"locale" form:"locale"` Filter string `json:"filter" form:"filter"` } type CategoryInBreadcrumb struct { CategoryID uint `json:"category_id" form:"category_id"` Name string `json:"name" form:"name"` }