Files
b2b/app/model/prestadb/ps_customization.go

26 lines
1.3 KiB
Go

// 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
}