// Code generated by gormcol. DO NOT EDIT. package dbmodel import ( "git.ma-al.com/goc_marek/gormcol" "time" ) const TableNamePsCartProduct = "ps_cart_product" // PsCartProduct mapped from table 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 } var PsCartProductCols = struct { IDCart gormcol.Field IDProduct gormcol.Field IDAddressDelivery gormcol.Field IDShop gormcol.Field IDProductAttribute gormcol.Field IDCustomization gormcol.Field Quantity gormcol.Field DateAdd gormcol.Field }{ IDCart: gormcol.Field{}.Set((&PsCartProduct{}).TableName(), "id_cart"), IDProduct: gormcol.Field{}.Set((&PsCartProduct{}).TableName(), "id_product"), IDAddressDelivery: gormcol.Field{}.Set((&PsCartProduct{}).TableName(), "id_address_delivery"), IDShop: gormcol.Field{}.Set((&PsCartProduct{}).TableName(), "id_shop"), IDProductAttribute: gormcol.Field{}.Set((&PsCartProduct{}).TableName(), "id_product_attribute"), IDCustomization: gormcol.Field{}.Set((&PsCartProduct{}).TableName(), "id_customization"), Quantity: gormcol.Field{}.Set((&PsCartProduct{}).TableName(), "quantity"), DateAdd: gormcol.Field{}.Set((&PsCartProduct{}).TableName(), "date_add"), }