fix top menu embeding struct
This commit is contained in:
@@ -30,8 +30,6 @@ type ProductRow struct {
|
||||
type MeiliSearchProduct struct {
|
||||
ProductID uint `gorm:"column:id_product"`
|
||||
Name string `gorm:"column:name"`
|
||||
Active uint8 `gorm:"column:active"`
|
||||
Price float64 `gorm:"column:price"`
|
||||
Description string `gorm:"column:description"`
|
||||
DescriptionShort string `gorm:"column:description_short"`
|
||||
Usage string `gorm:"column:used_for"`
|
||||
@@ -44,4 +42,6 @@ type MeiliSearchProduct struct {
|
||||
CategoryID uint `gorm:"column:id_category"`
|
||||
CategoryName string `gorm:"column:category_name"`
|
||||
Variations uint `gorm:"column:variations"`
|
||||
CategoryIDs []uint `gorm:"-"` // All category IDs including children for filtering
|
||||
CoverImage string `gorm:"-"` // Cover image URL (not indexed)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user