// Code generated by gormcol. DO NOT EDIT.

package dbmodel

import (
	"git.ma-al.com/goc_marek/gormcol"
	"time"
)

const TableNamePsOrderInvoice = "ps_order_invoice"

// PsOrderInvoice mapped from table <ps_order_invoice>
type PsOrderInvoice struct {
	IDOrderInvoice               int32      `gorm:"column:id_order_invoice;primaryKey;autoIncrement:true" json:"id_order_invoice"`
	IDOrder                      int32      `gorm:"column:id_order;not null;index:id_order,priority:1" json:"id_order"`
	Number                       int32      `gorm:"column:number;not null" json:"number"`
	DeliveryNumber               int32      `gorm:"column:delivery_number;not null" json:"delivery_number"`
	DeliveryDate                 *time.Time `gorm:"column:delivery_date" json:"delivery_date"`
	TotalDiscountTaxExcl         float64    `gorm:"column:total_discount_tax_excl;not null;default:0.000000" json:"total_discount_tax_excl"`
	TotalDiscountTaxIncl         float64    `gorm:"column:total_discount_tax_incl;not null;default:0.000000" json:"total_discount_tax_incl"`
	TotalPaidTaxExcl             float64    `gorm:"column:total_paid_tax_excl;not null;default:0.000000" json:"total_paid_tax_excl"`
	TotalPaidTaxIncl             float64    `gorm:"column:total_paid_tax_incl;not null;default:0.000000" json:"total_paid_tax_incl"`
	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"`
	TotalShippingTaxExcl         float64    `gorm:"column:total_shipping_tax_excl;not null;default:0.000000" json:"total_shipping_tax_excl"`
	TotalShippingTaxIncl         float64    `gorm:"column:total_shipping_tax_incl;not null;default:0.000000" json:"total_shipping_tax_incl"`
	ShippingTaxComputationMethod int32      `gorm:"column:shipping_tax_computation_method;not null" json:"shipping_tax_computation_method"`
	TotalWrappingTaxExcl         float64    `gorm:"column:total_wrapping_tax_excl;not null;default:0.000000" json:"total_wrapping_tax_excl"`
	TotalWrappingTaxIncl         float64    `gorm:"column:total_wrapping_tax_incl;not null;default:0.000000" json:"total_wrapping_tax_incl"`
	ShopAddress                  *string    `gorm:"column:shop_address" json:"shop_address"`
	Note                         *string    `gorm:"column:note" json:"note"`
	DateAdd                      time.Time  `gorm:"column:date_add;not null" json:"date_add"`
	FinalNumber                  *int32     `gorm:"column:final_number" json:"final_number"`
	IDShopCompany                *int32     `gorm:"column:id_shop_company" json:"id_shop_company"`
}

// TableName PsOrderInvoice's table name
func (*PsOrderInvoice) TableName() string {
	return TableNamePsOrderInvoice
}

var PsOrderInvoiceCols = struct {
	IDOrderInvoice gormcol.Field
	IDOrder gormcol.Field
	Number gormcol.Field
	DeliveryNumber gormcol.Field
	DeliveryDate gormcol.Field
	TotalDiscountTaxExcl gormcol.Field
	TotalDiscountTaxIncl gormcol.Field
	TotalPaidTaxExcl gormcol.Field
	TotalPaidTaxIncl gormcol.Field
	TotalProducts gormcol.Field
	TotalProductsWt gormcol.Field
	TotalShippingTaxExcl gormcol.Field
	TotalShippingTaxIncl gormcol.Field
	ShippingTaxComputationMethod gormcol.Field
	TotalWrappingTaxExcl gormcol.Field
	TotalWrappingTaxIncl gormcol.Field
	ShopAddress gormcol.Field
	Note gormcol.Field
	DateAdd gormcol.Field
	FinalNumber gormcol.Field
	IDShopCompany gormcol.Field
}{
	IDOrderInvoice: gormcol.Field{}.Set((&PsOrderInvoice{}).TableName(), "id_order_invoice"),
	IDOrder: gormcol.Field{}.Set((&PsOrderInvoice{}).TableName(), "id_order"),
	Number: gormcol.Field{}.Set((&PsOrderInvoice{}).TableName(), "number"),
	DeliveryNumber: gormcol.Field{}.Set((&PsOrderInvoice{}).TableName(), "delivery_number"),
	DeliveryDate: gormcol.Field{}.Set((&PsOrderInvoice{}).TableName(), "delivery_date"),
	TotalDiscountTaxExcl: gormcol.Field{}.Set((&PsOrderInvoice{}).TableName(), "total_discount_tax_excl"),
	TotalDiscountTaxIncl: gormcol.Field{}.Set((&PsOrderInvoice{}).TableName(), "total_discount_tax_incl"),
	TotalPaidTaxExcl: gormcol.Field{}.Set((&PsOrderInvoice{}).TableName(), "total_paid_tax_excl"),
	TotalPaidTaxIncl: gormcol.Field{}.Set((&PsOrderInvoice{}).TableName(), "total_paid_tax_incl"),
	TotalProducts: gormcol.Field{}.Set((&PsOrderInvoice{}).TableName(), "total_products"),
	TotalProductsWt: gormcol.Field{}.Set((&PsOrderInvoice{}).TableName(), "total_products_wt"),
	TotalShippingTaxExcl: gormcol.Field{}.Set((&PsOrderInvoice{}).TableName(), "total_shipping_tax_excl"),
	TotalShippingTaxIncl: gormcol.Field{}.Set((&PsOrderInvoice{}).TableName(), "total_shipping_tax_incl"),
	ShippingTaxComputationMethod: gormcol.Field{}.Set((&PsOrderInvoice{}).TableName(), "shipping_tax_computation_method"),
	TotalWrappingTaxExcl: gormcol.Field{}.Set((&PsOrderInvoice{}).TableName(), "total_wrapping_tax_excl"),
	TotalWrappingTaxIncl: gormcol.Field{}.Set((&PsOrderInvoice{}).TableName(), "total_wrapping_tax_incl"),
	ShopAddress: gormcol.Field{}.Set((&PsOrderInvoice{}).TableName(), "shop_address"),
	Note: gormcol.Field{}.Set((&PsOrderInvoice{}).TableName(), "note"),
	DateAdd: gormcol.Field{}.Set((&PsOrderInvoice{}).TableName(), "date_add"),
	FinalNumber: gormcol.Field{}.Set((&PsOrderInvoice{}).TableName(), "final_number"),
	IDShopCompany: gormcol.Field{}.Set((&PsOrderInvoice{}).TableName(), "id_shop_company"),
}
