93 lines
5.3 KiB
Go
93 lines
5.3 KiB
Go
// Code generated by gormcol. DO NOT EDIT.
|
|
|
|
package dbmodel
|
|
|
|
import (
|
|
"git.ma-al.com/goc_marek/gormcol"
|
|
"time"
|
|
)
|
|
|
|
const TableNamePsCart = "ps_cart"
|
|
|
|
// PsCart mapped from table <ps_cart>
|
|
type PsCart struct {
|
|
IDCart int32 `gorm:"column:id_cart;primaryKey;autoIncrement:true" json:"id_cart"`
|
|
IDShopGroup int32 `gorm:"column:id_shop_group;not null;index:id_shop_group,priority:1;default:1" json:"id_shop_group"`
|
|
IDShop int32 `gorm:"column:id_shop;not null;index:id_shop,priority:1;index:id_shop_2,priority:1;default:1" json:"id_shop"`
|
|
IDCarrier int32 `gorm:"column:id_carrier;not null;index:id_carrier,priority:1" json:"id_carrier"`
|
|
DeliveryOption string `gorm:"column:delivery_option;not null" json:"delivery_option"`
|
|
IDLang int32 `gorm:"column:id_lang;not null;index:id_lang,priority:1" json:"id_lang"`
|
|
IDAddressDelivery int32 `gorm:"column:id_address_delivery;not null;index:id_address_delivery,priority:1" json:"id_address_delivery"`
|
|
IDAddressInvoice int32 `gorm:"column:id_address_invoice;not null;index:id_address_invoice,priority:1" json:"id_address_invoice"`
|
|
IDCurrency int32 `gorm:"column:id_currency;not null;index:id_currency,priority:1" json:"id_currency"`
|
|
IDCustomer int32 `gorm:"column:id_customer;not null;index:cart_customer,priority:1" json:"id_customer"`
|
|
IDGuest int32 `gorm:"column:id_guest;not null;index:id_guest,priority:1" json:"id_guest"`
|
|
SecureKey string `gorm:"column:secure_key;not null;default:-1" json:"secure_key"`
|
|
Recyclable bool `gorm:"column:recyclable;not null;default:1" json:"recyclable"`
|
|
Gift bool `gorm:"column:gift;not null" json:"gift"`
|
|
GiftMessage *string `gorm:"column:gift_message" json:"gift_message"`
|
|
MobileTheme bool `gorm:"column:mobile_theme;not null" json:"mobile_theme"`
|
|
AllowSeperatedPackage bool `gorm:"column:allow_seperated_package;not null" json:"allow_seperated_package"`
|
|
DateAdd time.Time `gorm:"column:date_add;not null;index:id_shop,priority:2" json:"date_add"`
|
|
DateUpd time.Time `gorm:"column:date_upd;not null;index:id_shop_2,priority:2" json:"date_upd"`
|
|
CheckoutSessionData *string `gorm:"column:checkout_session_data" json:"checkout_session_data"`
|
|
CustomeShippingPriceNetto *float64 `gorm:"column:custome_shipping_price_netto" json:"custome_shipping_price_netto"`
|
|
CustomeShippingPrice *float64 `gorm:"column:custome_shipping_price" json:"custome_shipping_price"`
|
|
CustomeShippingTaxRate *float64 `gorm:"column:custome_shipping_tax_rate" json:"custome_shipping_tax_rate"`
|
|
}
|
|
|
|
// TableName PsCart's table name
|
|
func (*PsCart) TableName() string {
|
|
return TableNamePsCart
|
|
}
|
|
|
|
var PsCartCols = struct {
|
|
IDCart gormcol.Field
|
|
IDShopGroup gormcol.Field
|
|
IDShop gormcol.Field
|
|
IDCarrier gormcol.Field
|
|
DeliveryOption gormcol.Field
|
|
IDLang gormcol.Field
|
|
IDAddressDelivery gormcol.Field
|
|
IDAddressInvoice gormcol.Field
|
|
IDCurrency gormcol.Field
|
|
IDCustomer gormcol.Field
|
|
IDGuest gormcol.Field
|
|
SecureKey gormcol.Field
|
|
Recyclable gormcol.Field
|
|
Gift gormcol.Field
|
|
GiftMessage gormcol.Field
|
|
MobileTheme gormcol.Field
|
|
AllowSeperatedPackage gormcol.Field
|
|
DateAdd gormcol.Field
|
|
DateUpd gormcol.Field
|
|
CheckoutSessionData gormcol.Field
|
|
CustomeShippingPriceNetto gormcol.Field
|
|
CustomeShippingPrice gormcol.Field
|
|
CustomeShippingTaxRate gormcol.Field
|
|
}{
|
|
IDCart: gormcol.Field{}.Set((&PsCart{}).TableName(), "id_cart"),
|
|
IDShopGroup: gormcol.Field{}.Set((&PsCart{}).TableName(), "id_shop_group"),
|
|
IDShop: gormcol.Field{}.Set((&PsCart{}).TableName(), "id_shop"),
|
|
IDCarrier: gormcol.Field{}.Set((&PsCart{}).TableName(), "id_carrier"),
|
|
DeliveryOption: gormcol.Field{}.Set((&PsCart{}).TableName(), "delivery_option"),
|
|
IDLang: gormcol.Field{}.Set((&PsCart{}).TableName(), "id_lang"),
|
|
IDAddressDelivery: gormcol.Field{}.Set((&PsCart{}).TableName(), "id_address_delivery"),
|
|
IDAddressInvoice: gormcol.Field{}.Set((&PsCart{}).TableName(), "id_address_invoice"),
|
|
IDCurrency: gormcol.Field{}.Set((&PsCart{}).TableName(), "id_currency"),
|
|
IDCustomer: gormcol.Field{}.Set((&PsCart{}).TableName(), "id_customer"),
|
|
IDGuest: gormcol.Field{}.Set((&PsCart{}).TableName(), "id_guest"),
|
|
SecureKey: gormcol.Field{}.Set((&PsCart{}).TableName(), "secure_key"),
|
|
Recyclable: gormcol.Field{}.Set((&PsCart{}).TableName(), "recyclable"),
|
|
Gift: gormcol.Field{}.Set((&PsCart{}).TableName(), "gift"),
|
|
GiftMessage: gormcol.Field{}.Set((&PsCart{}).TableName(), "gift_message"),
|
|
MobileTheme: gormcol.Field{}.Set((&PsCart{}).TableName(), "mobile_theme"),
|
|
AllowSeperatedPackage: gormcol.Field{}.Set((&PsCart{}).TableName(), "allow_seperated_package"),
|
|
DateAdd: gormcol.Field{}.Set((&PsCart{}).TableName(), "date_add"),
|
|
DateUpd: gormcol.Field{}.Set((&PsCart{}).TableName(), "date_upd"),
|
|
CheckoutSessionData: gormcol.Field{}.Set((&PsCart{}).TableName(), "checkout_session_data"),
|
|
CustomeShippingPriceNetto: gormcol.Field{}.Set((&PsCart{}).TableName(), "custome_shipping_price_netto"),
|
|
CustomeShippingPrice: gormcol.Field{}.Set((&PsCart{}).TableName(), "custome_shipping_price"),
|
|
CustomeShippingTaxRate: gormcol.Field{}.Set((&PsCart{}).TableName(), "custome_shipping_tax_rate"),
|
|
}
|