// Code generated by gormcol. 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{}.Set((&PsOrder{}).TableName(), "id_order"),
	Reference: gormcol.Field{}.Set((&PsOrder{}).TableName(), "reference"),
	IDShopGroup: gormcol.Field{}.Set((&PsOrder{}).TableName(), "id_shop_group"),
	IDShop: gormcol.Field{}.Set((&PsOrder{}).TableName(), "id_shop"),
	IDCarrier: gormcol.Field{}.Set((&PsOrder{}).TableName(), "id_carrier"),
	IDLang: gormcol.Field{}.Set((&PsOrder{}).TableName(), "id_lang"),
	IDCustomer: gormcol.Field{}.Set((&PsOrder{}).TableName(), "id_customer"),
	IDCart: gormcol.Field{}.Set((&PsOrder{}).TableName(), "id_cart"),
	IDCurrency: gormcol.Field{}.Set((&PsOrder{}).TableName(), "id_currency"),
	IDAddressDelivery: gormcol.Field{}.Set((&PsOrder{}).TableName(), "id_address_delivery"),
	IDAddressInvoice: gormcol.Field{}.Set((&PsOrder{}).TableName(), "id_address_invoice"),
	CurrentState: gormcol.Field{}.Set((&PsOrder{}).TableName(), "current_state"),
	SecureKey: gormcol.Field{}.Set((&PsOrder{}).TableName(), "secure_key"),
	Payment: gormcol.Field{}.Set((&PsOrder{}).TableName(), "payment"),
	ConversionRate: gormcol.Field{}.Set((&PsOrder{}).TableName(), "conversion_rate"),
	Module: gormcol.Field{}.Set((&PsOrder{}).TableName(), "module"),
	Recyclable: gormcol.Field{}.Set((&PsOrder{}).TableName(), "recyclable"),
	Gift: gormcol.Field{}.Set((&PsOrder{}).TableName(), "gift"),
	GiftMessage: gormcol.Field{}.Set((&PsOrder{}).TableName(), "gift_message"),
	MobileTheme: gormcol.Field{}.Set((&PsOrder{}).TableName(), "mobile_theme"),
	ShippingNumber: gormcol.Field{}.Set((&PsOrder{}).TableName(), "shipping_number"),
	TotalDiscounts: gormcol.Field{}.Set((&PsOrder{}).TableName(), "total_discounts"),
	TotalDiscountsTaxIncl: gormcol.Field{}.Set((&PsOrder{}).TableName(), "total_discounts_tax_incl"),
	TotalDiscountsTaxExcl: gormcol.Field{}.Set((&PsOrder{}).TableName(), "total_discounts_tax_excl"),
	TotalPaid: gormcol.Field{}.Set((&PsOrder{}).TableName(), "total_paid"),
	TotalPaidTaxIncl: gormcol.Field{}.Set((&PsOrder{}).TableName(), "total_paid_tax_incl"),
	TotalPaidTaxExcl: gormcol.Field{}.Set((&PsOrder{}).TableName(), "total_paid_tax_excl"),
	TotalPaidReal: gormcol.Field{}.Set((&PsOrder{}).TableName(), "total_paid_real"),
	TotalProducts: gormcol.Field{}.Set((&PsOrder{}).TableName(), "total_products"),
	TotalProductsWt: gormcol.Field{}.Set((&PsOrder{}).TableName(), "total_products_wt"),
	TotalShipping: gormcol.Field{}.Set((&PsOrder{}).TableName(), "total_shipping"),
	TotalShippingTaxIncl: gormcol.Field{}.Set((&PsOrder{}).TableName(), "total_shipping_tax_incl"),
	TotalShippingTaxExcl: gormcol.Field{}.Set((&PsOrder{}).TableName(), "total_shipping_tax_excl"),
	CarrierTaxRate: gormcol.Field{}.Set((&PsOrder{}).TableName(), "carrier_tax_rate"),
	TotalWrapping: gormcol.Field{}.Set((&PsOrder{}).TableName(), "total_wrapping"),
	TotalWrappingTaxIncl: gormcol.Field{}.Set((&PsOrder{}).TableName(), "total_wrapping_tax_incl"),
	TotalWrappingTaxExcl: gormcol.Field{}.Set((&PsOrder{}).TableName(), "total_wrapping_tax_excl"),
	RoundMode: gormcol.Field{}.Set((&PsOrder{}).TableName(), "round_mode"),
	RoundType: gormcol.Field{}.Set((&PsOrder{}).TableName(), "round_type"),
	InvoiceNumber: gormcol.Field{}.Set((&PsOrder{}).TableName(), "invoice_number"),
	DeliveryNumber: gormcol.Field{}.Set((&PsOrder{}).TableName(), "delivery_number"),
	InvoiceDate: gormcol.Field{}.Set((&PsOrder{}).TableName(), "invoice_date"),
	DeliveryDate: gormcol.Field{}.Set((&PsOrder{}).TableName(), "delivery_date"),
	Valid: gormcol.Field{}.Set((&PsOrder{}).TableName(), "valid"),
	DateAdd: gormcol.Field{}.Set((&PsOrder{}).TableName(), "date_add"),
	DateUpd: gormcol.Field{}.Set((&PsOrder{}).TableName(), "date_upd"),
}
