Files
gormcol/app/model/dbmodel/ps_orders.go

164 lines
10 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 dbmodel
import (
"git.ma-al.com/goc_marek/gormcol"
"time"
)
const TableNamePsOrder = "ps_orders"
// PsOrder mapped from table <ps_orders>
type PsOrder struct {
IDOrder int32 `gorm:"column:id_order;primaryKey;autoIncrement:true" json:"id_order"`
Reference *string `gorm:"column:reference;index:reference,priority:1" json:"reference"`
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;default:1" json:"id_shop"`
IDCarrier int32 `gorm:"column:id_carrier;not null;index:id_carrier,priority:1" json:"id_carrier"`
IDLang int32 `gorm:"column:id_lang;not null;index:id_lang,priority:1" json:"id_lang"`
IDCustomer int32 `gorm:"column:id_customer;not null;index:id_customer,priority:1" json:"id_customer"`
IDCart int32 `gorm:"column:id_cart;not null;index:id_cart,priority:1" json:"id_cart"`
IDCurrency int32 `gorm:"column:id_currency;not null;index:id_currency,priority:1" json:"id_currency"`
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"`
CurrentState int32 `gorm:"column:current_state;not null;index:current_state,priority:1" json:"current_state"`
SecureKey string `gorm:"column:secure_key;not null;default:-1" json:"secure_key"`
Payment string `gorm:"column:payment;not null" json:"payment"`
ConversionRate float64 `gorm:"column:conversion_rate;not null;default:1.000000" json:"conversion_rate"`
Module *string `gorm:"column:module" json:"module"`
Recyclable bool `gorm:"column:recyclable;not null" 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"`
ShippingNumber *string `gorm:"column:shipping_number" json:"shipping_number"`
TotalDiscounts float64 `gorm:"column:total_discounts;not null;default:0.000000" json:"total_discounts"`
TotalDiscountsTaxIncl float64 `gorm:"column:total_discounts_tax_incl;not null;default:0.000000" json:"total_discounts_tax_incl"`
TotalDiscountsTaxExcl float64 `gorm:"column:total_discounts_tax_excl;not null;default:0.000000" json:"total_discounts_tax_excl"`
TotalPaid float64 `gorm:"column:total_paid;not null;default:0.000000" json:"total_paid"`
TotalPaidTaxIncl float64 `gorm:"column:total_paid_tax_incl;not null;default:0.000000" json:"total_paid_tax_incl"`
TotalPaidTaxExcl float64 `gorm:"column:total_paid_tax_excl;not null;default:0.000000" json:"total_paid_tax_excl"`
TotalPaidReal float64 `gorm:"column:total_paid_real;not null;default:0.000000" json:"total_paid_real"`
TotalProducts float64 `gorm:"column:total_products;not null;default:0.000000" json:"total_products"`
TotalProductsWt float64 `gorm:"column:total_products_wt;not null;default:0.000000" json:"total_products_wt"`
TotalShipping float64 `gorm:"column:total_shipping;not null;default:0.000000" json:"total_shipping"`
TotalShippingTaxIncl float64 `gorm:"column:total_shipping_tax_incl;not null;default:0.000000" json:"total_shipping_tax_incl"`
TotalShippingTaxExcl float64 `gorm:"column:total_shipping_tax_excl;not null;default:0.000000" json:"total_shipping_tax_excl"`
CarrierTaxRate float64 `gorm:"column:carrier_tax_rate;not null;default:0.000" json:"carrier_tax_rate"`
TotalWrapping float64 `gorm:"column:total_wrapping;not null;default:0.000000" json:"total_wrapping"`
TotalWrappingTaxIncl float64 `gorm:"column:total_wrapping_tax_incl;not null;default:0.000000" json:"total_wrapping_tax_incl"`
TotalWrappingTaxExcl float64 `gorm:"column:total_wrapping_tax_excl;not null;default:0.000000" json:"total_wrapping_tax_excl"`
RoundMode bool `gorm:"column:round_mode;not null;default:2" json:"round_mode"`
RoundType bool `gorm:"column:round_type;not null;default:1" json:"round_type"`
InvoiceNumber int32 `gorm:"column:invoice_number;not null;index:invoice_number,priority:1" json:"invoice_number"`
DeliveryNumber int32 `gorm:"column:delivery_number;not null" json:"delivery_number"`
InvoiceDate time.Time `gorm:"column:invoice_date;not null" json:"invoice_date"`
DeliveryDate time.Time `gorm:"column:delivery_date;not null" json:"delivery_date"`
Valid int32 `gorm:"column:valid;not null" json:"valid"`
DateAdd time.Time `gorm:"column:date_add;not null;index:date_add,priority:1" json:"date_add"`
DateUpd time.Time `gorm:"column:date_upd;not null" json:"date_upd"`
}
// TableName PsOrder's table name
func (*PsOrder) TableName() string {
return TableNamePsOrder
}
var PsOrderCols = struct {
IDOrder gormcol.Field
Reference gormcol.Field
IDShopGroup gormcol.Field
IDShop gormcol.Field
IDCarrier gormcol.Field
IDLang gormcol.Field
IDCustomer gormcol.Field
IDCart gormcol.Field
IDCurrency gormcol.Field
IDAddressDelivery gormcol.Field
IDAddressInvoice gormcol.Field
CurrentState gormcol.Field
SecureKey gormcol.Field
Payment gormcol.Field
ConversionRate gormcol.Field
Module gormcol.Field
Recyclable gormcol.Field
Gift gormcol.Field
GiftMessage gormcol.Field
MobileTheme gormcol.Field
ShippingNumber gormcol.Field
TotalDiscounts gormcol.Field
TotalDiscountsTaxIncl gormcol.Field
TotalDiscountsTaxExcl gormcol.Field
TotalPaid gormcol.Field
TotalPaidTaxIncl gormcol.Field
TotalPaidTaxExcl gormcol.Field
TotalPaidReal gormcol.Field
TotalProducts gormcol.Field
TotalProductsWt gormcol.Field
TotalShipping gormcol.Field
TotalShippingTaxIncl gormcol.Field
TotalShippingTaxExcl gormcol.Field
CarrierTaxRate gormcol.Field
TotalWrapping gormcol.Field
TotalWrappingTaxIncl gormcol.Field
TotalWrappingTaxExcl gormcol.Field
RoundMode gormcol.Field
RoundType gormcol.Field
InvoiceNumber gormcol.Field
DeliveryNumber gormcol.Field
InvoiceDate gormcol.Field
DeliveryDate gormcol.Field
Valid gormcol.Field
DateAdd gormcol.Field
DateUpd gormcol.Field
}{
IDOrder: gormcol.Field{Table: TableNamePsOrder, Column: "id_order"},
Reference: gormcol.Field{Table: TableNamePsOrder, Column: "reference"},
IDShopGroup: gormcol.Field{Table: TableNamePsOrder, Column: "id_shop_group"},
IDShop: gormcol.Field{Table: TableNamePsOrder, Column: "id_shop"},
IDCarrier: gormcol.Field{Table: TableNamePsOrder, Column: "id_carrier"},
IDLang: gormcol.Field{Table: TableNamePsOrder, Column: "id_lang"},
IDCustomer: gormcol.Field{Table: TableNamePsOrder, Column: "id_customer"},
IDCart: gormcol.Field{Table: TableNamePsOrder, Column: "id_cart"},
IDCurrency: gormcol.Field{Table: TableNamePsOrder, Column: "id_currency"},
IDAddressDelivery: gormcol.Field{Table: TableNamePsOrder, Column: "id_address_delivery"},
IDAddressInvoice: gormcol.Field{Table: TableNamePsOrder, Column: "id_address_invoice"},
CurrentState: gormcol.Field{Table: TableNamePsOrder, Column: "current_state"},
SecureKey: gormcol.Field{Table: TableNamePsOrder, Column: "secure_key"},
Payment: gormcol.Field{Table: TableNamePsOrder, Column: "payment"},
ConversionRate: gormcol.Field{Table: TableNamePsOrder, Column: "conversion_rate"},
Module: gormcol.Field{Table: TableNamePsOrder, Column: "module"},
Recyclable: gormcol.Field{Table: TableNamePsOrder, Column: "recyclable"},
Gift: gormcol.Field{Table: TableNamePsOrder, Column: "gift"},
GiftMessage: gormcol.Field{Table: TableNamePsOrder, Column: "gift_message"},
MobileTheme: gormcol.Field{Table: TableNamePsOrder, Column: "mobile_theme"},
ShippingNumber: gormcol.Field{Table: TableNamePsOrder, Column: "shipping_number"},
TotalDiscounts: gormcol.Field{Table: TableNamePsOrder, Column: "total_discounts"},
TotalDiscountsTaxIncl: gormcol.Field{Table: TableNamePsOrder, Column: "total_discounts_tax_incl"},
TotalDiscountsTaxExcl: gormcol.Field{Table: TableNamePsOrder, Column: "total_discounts_tax_excl"},
TotalPaid: gormcol.Field{Table: TableNamePsOrder, Column: "total_paid"},
TotalPaidTaxIncl: gormcol.Field{Table: TableNamePsOrder, Column: "total_paid_tax_incl"},
TotalPaidTaxExcl: gormcol.Field{Table: TableNamePsOrder, Column: "total_paid_tax_excl"},
TotalPaidReal: gormcol.Field{Table: TableNamePsOrder, Column: "total_paid_real"},
TotalProducts: gormcol.Field{Table: TableNamePsOrder, Column: "total_products"},
TotalProductsWt: gormcol.Field{Table: TableNamePsOrder, Column: "total_products_wt"},
TotalShipping: gormcol.Field{Table: TableNamePsOrder, Column: "total_shipping"},
TotalShippingTaxIncl: gormcol.Field{Table: TableNamePsOrder, Column: "total_shipping_tax_incl"},
TotalShippingTaxExcl: gormcol.Field{Table: TableNamePsOrder, Column: "total_shipping_tax_excl"},
CarrierTaxRate: gormcol.Field{Table: TableNamePsOrder, Column: "carrier_tax_rate"},
TotalWrapping: gormcol.Field{Table: TableNamePsOrder, Column: "total_wrapping"},
TotalWrappingTaxIncl: gormcol.Field{Table: TableNamePsOrder, Column: "total_wrapping_tax_incl"},
TotalWrappingTaxExcl: gormcol.Field{Table: TableNamePsOrder, Column: "total_wrapping_tax_excl"},
RoundMode: gormcol.Field{Table: TableNamePsOrder, Column: "round_mode"},
RoundType: gormcol.Field{Table: TableNamePsOrder, Column: "round_type"},
InvoiceNumber: gormcol.Field{Table: TableNamePsOrder, Column: "invoice_number"},
DeliveryNumber: gormcol.Field{Table: TableNamePsOrder, Column: "delivery_number"},
InvoiceDate: gormcol.Field{Table: TableNamePsOrder, Column: "invoice_date"},
DeliveryDate: gormcol.Field{Table: TableNamePsOrder, Column: "delivery_date"},
Valid: gormcol.Field{Table: TableNamePsOrder, Column: "valid"},
DateAdd: gormcol.Field{Table: TableNamePsOrder, Column: "date_add"},
DateUpd: gormcol.Field{Table: TableNamePsOrder, Column: "date_upd"},
}