upstream sync

This commit is contained in:
Senad Uka
2023-10-02 12:59:19 +02:00
parent 8a2dbfe055
commit 7df0c64d15
3 changed files with 7 additions and 3 deletions

View File

@@ -1,12 +1,14 @@
package models
import "github.com/jinzhu/gorm"
import (
"github.com/jinzhu/gorm"
)
type ProductTemplate struct {
gorm.Model
Name string
ProductTemplateConfig map[string]interface{} `json:",omitempty" sql:"-"`
Config JSON `json:"-" gorm:"embedded"`
Config string `json:"raw_config" gorm:"type:json"`
}
func (ProductTemplate) Update() (bool, error) {