add models generation and josn print

This commit is contained in:
2026-03-26 02:22:14 +01:00
parent 7c5a993623
commit af2b276599
319 changed files with 7394 additions and 27 deletions

View File

@@ -0,0 +1,25 @@
// 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
const TableNamePsCustomization = "ps_customization"
// PsCustomization mapped from table <ps_customization>
type PsCustomization struct {
IDCustomization int32 `gorm:"column:id_customization;primaryKey;autoIncrement:true" json:"id_customization"`
IDProductAttribute int32 `gorm:"column:id_product_attribute;not null;index:id_cart_product,priority:3;index:id_product_attribute,priority:1" json:"id_product_attribute"`
IDAddressDelivery int32 `gorm:"column:id_address_delivery;primaryKey" json:"id_address_delivery"`
IDCart int32 `gorm:"column:id_cart;primaryKey;index:id_cart_product,priority:1" json:"id_cart"`
IDProduct int32 `gorm:"column:id_product;primaryKey;index:id_cart_product,priority:2" json:"id_product"`
Quantity int32 `gorm:"column:quantity;not null" json:"quantity"`
QuantityRefunded int32 `gorm:"column:quantity_refunded;not null" json:"quantity_refunded"`
QuantityReturned int32 `gorm:"column:quantity_returned;not null" json:"quantity_returned"`
InCart bool `gorm:"column:in_cart;not null" json:"in_cart"`
}
// TableName PsCustomization's table name
func (*PsCustomization) TableName() string {
return TableNamePsCustomization
}