added ImageID and LinkRewrite
This commit is contained in:
@@ -62,11 +62,11 @@ type Product struct {
|
||||
DeliveryDays uint `gorm:"column:delivery_days" json:"delivery_days" form:"delivery_days"`
|
||||
}
|
||||
type ProductInList struct {
|
||||
ID uint `gorm:"column:id_product;primaryKey" json:"product_id" form:"product_id"`
|
||||
Name string `gorm:"column:name;default:'no name'" json:"name" form:"name"`
|
||||
Price float64 `gorm:"column:price;default:0.0" json:"price" form:"price"`
|
||||
ActiveAsProduct uint `gorm:"column:active;default:0" json:"active_as_product" form:"active_as_product"`
|
||||
ActiveInShop uint `gorm:"column:active;default:0" json:"active_in_shop" form:"active_in_shop"`
|
||||
ID uint `gorm:"column:id_product;primaryKey" json:"product_id" form:"product_id"`
|
||||
Name string `gorm:"column:name" json:"name" form:"name"`
|
||||
ImageID uint `gorm:"column:id_image"`
|
||||
LinkRewrite string `gorm:"column:link_rewrite"`
|
||||
Active uint `gorm:"column:active" json:"active" form:"active"`
|
||||
}
|
||||
|
||||
type ProductFilters struct {
|
||||
|
||||
Reference in New Issue
Block a user