29 lines
1.3 KiB
Go
29 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
|
|
|
|
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
|
|
}
|