add models generation and josn print
This commit is contained in:
28
app/model/prestadb/ps_cart_product.go
Normal file
28
app/model/prestadb/ps_cart_product.go
Normal file
@@ -0,0 +1,28 @@
|
||||
// Code generated by gorm.io/gen. DO NOT EDIT.
|
||||
// Code generated by gorm.io/gen. DO NOT EDIT.
|
||||
// Code generated by gorm.io/gen. DO NOT EDIT.
|
||||
|
||||
package prestadb
|
||||
|
||||
import (
|
||||
"time"
|
||||
)
|
||||
|
||||
const TableNamePsCartProduct = "ps_cart_product"
|
||||
|
||||
// PsCartProduct mapped from table <ps_cart_product>
|
||||
type PsCartProduct struct {
|
||||
IDCart int32 `gorm:"column:id_cart;primaryKey;index:id_cart_order,priority:1" json:"id_cart"`
|
||||
IDProduct int32 `gorm:"column:id_product;primaryKey;index:id_cart_order,priority:3" json:"id_product"`
|
||||
IDAddressDelivery int32 `gorm:"column:id_address_delivery;primaryKey" json:"id_address_delivery"`
|
||||
IDShop int32 `gorm:"column:id_shop;not null;default:1" json:"id_shop"`
|
||||
IDProductAttribute int32 `gorm:"column:id_product_attribute;primaryKey;index:id_cart_order,priority:4;index:id_product_attribute,priority:1" json:"id_product_attribute"`
|
||||
IDCustomization int32 `gorm:"column:id_customization;primaryKey" json:"id_customization"`
|
||||
Quantity int32 `gorm:"column:quantity;not null" json:"quantity"`
|
||||
DateAdd time.Time `gorm:"column:date_add;not null;index:id_cart_order,priority:2" json:"date_add"`
|
||||
}
|
||||
|
||||
// TableName PsCartProduct's table name
|
||||
func (*PsCartProduct) TableName() string {
|
||||
return TableNamePsCartProduct
|
||||
}
|
||||
Reference in New Issue
Block a user