// Code generated by gormcol. DO NOT EDIT.

package dbmodel

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

const TableNamePsOrderDetail = "ps_order_detail"

// PsOrderDetail mapped from table <ps_order_detail>
type PsOrderDetail struct {
	IDOrderDetail               int32      `gorm:"column:id_order_detail;primaryKey;autoIncrement:true;index:id_order_id_order_detail,priority:2" json:"id_order_detail"`
	IDOrder                     int32      `gorm:"column:id_order;not null;index:id_order_id_order_detail,priority:1;index:order_detail_order,priority:1" json:"id_order"`
	IDOrderInvoice              *int32     `gorm:"column:id_order_invoice" json:"id_order_invoice"`
	IDWarehouse                 *int32     `gorm:"column:id_warehouse" json:"id_warehouse"`
	IDShop                      int32      `gorm:"column:id_shop;not null" json:"id_shop"`
	ProductID                   int32      `gorm:"column:product_id;not null;index:product_id,priority:1" json:"product_id"`
	ProductAttributeID          *int32     `gorm:"column:product_attribute_id;index:product_attribute_id,priority:1;index:product_id,priority:2" json:"product_attribute_id"`
	IDCustomization             *int32     `gorm:"column:id_customization" json:"id_customization"`
	ProductName                 string     `gorm:"column:product_name;not null" json:"product_name"`
	ProductQuantity             int32      `gorm:"column:product_quantity;not null" json:"product_quantity"`
	ProductQuantityInStock      int32      `gorm:"column:product_quantity_in_stock;not null" json:"product_quantity_in_stock"`
	ProductQuantityRefunded     int32      `gorm:"column:product_quantity_refunded;not null" json:"product_quantity_refunded"`
	ProductQuantityReturn       int32      `gorm:"column:product_quantity_return;not null" json:"product_quantity_return"`
	ProductQuantityReinjected   int32      `gorm:"column:product_quantity_reinjected;not null" json:"product_quantity_reinjected"`
	ProductPrice                float64    `gorm:"column:product_price;not null;default:0.000000" json:"product_price"`
	ReductionPercent            float64    `gorm:"column:reduction_percent;not null;default:0.00" json:"reduction_percent"`
	ReductionAmount             float64    `gorm:"column:reduction_amount;not null;default:0.000000" json:"reduction_amount"`
	ReductionAmountTaxIncl      float64    `gorm:"column:reduction_amount_tax_incl;not null;default:0.000000" json:"reduction_amount_tax_incl"`
	ReductionAmountTaxExcl      float64    `gorm:"column:reduction_amount_tax_excl;not null;default:0.000000" json:"reduction_amount_tax_excl"`
	GroupReduction              float64    `gorm:"column:group_reduction;not null;default:0.00" json:"group_reduction"`
	ProductQuantityDiscount     float64    `gorm:"column:product_quantity_discount;not null;default:0.000000" json:"product_quantity_discount"`
	ProductEan13                *string    `gorm:"column:product_ean13" json:"product_ean13"`
	ProductIsbn                 *string    `gorm:"column:product_isbn" json:"product_isbn"`
	ProductUpc                  *string    `gorm:"column:product_upc" json:"product_upc"`
	ProductReference            *string    `gorm:"column:product_reference" json:"product_reference"`
	ProductSupplierReference    *string    `gorm:"column:product_supplier_reference" json:"product_supplier_reference"`
	ProductWeight               float64    `gorm:"column:product_weight;not null" json:"product_weight"`
	IDTaxRulesGroup             *int32     `gorm:"column:id_tax_rules_group;index:id_tax_rules_group,priority:1" json:"id_tax_rules_group"`
	TaxComputationMethod        bool       `gorm:"column:tax_computation_method;not null" json:"tax_computation_method"`
	TaxName                     string     `gorm:"column:tax_name;not null" json:"tax_name"`
	TaxRate                     float64    `gorm:"column:tax_rate;not null;default:0.000" json:"tax_rate"`
	Ecotax                      float64    `gorm:"column:ecotax;not null;default:0.000000" json:"ecotax"`
	EcotaxTaxRate               float64    `gorm:"column:ecotax_tax_rate;not null;default:0.000" json:"ecotax_tax_rate"`
	DiscountQuantityApplied     bool       `gorm:"column:discount_quantity_applied;not null" json:"discount_quantity_applied"`
	DownloadHash                *string    `gorm:"column:download_hash" json:"download_hash"`
	DownloadNb                  *int32     `gorm:"column:download_nb" json:"download_nb"`
	DownloadDeadline            *time.Time `gorm:"column:download_deadline" json:"download_deadline"`
	TotalPriceTaxIncl           float64    `gorm:"column:total_price_tax_incl;not null;default:0.000000" json:"total_price_tax_incl"`
	TotalPriceTaxExcl           float64    `gorm:"column:total_price_tax_excl;not null;default:0.000000" json:"total_price_tax_excl"`
	UnitPriceTaxIncl            float64    `gorm:"column:unit_price_tax_incl;not null;default:0.000000" json:"unit_price_tax_incl"`
	UnitPriceTaxExcl            float64    `gorm:"column:unit_price_tax_excl;not null;default:0.000000" json:"unit_price_tax_excl"`
	TotalShippingPriceTaxIncl   float64    `gorm:"column:total_shipping_price_tax_incl;not null;default:0.000000" json:"total_shipping_price_tax_incl"`
	TotalShippingPriceTaxExcl   float64    `gorm:"column:total_shipping_price_tax_excl;not null;default:0.000000" json:"total_shipping_price_tax_excl"`
	TotalPriceTaxInclDiscounted *float64   `gorm:"column:total_price_tax_incl_discounted" json:"total_price_tax_incl_discounted"`
	CartRules                   *string    `gorm:"column:cart_rules" json:"cart_rules"`
	PurchaseSupplierPrice       float64    `gorm:"column:purchase_supplier_price;not null;default:0.000000" json:"purchase_supplier_price"`
	OriginalProductPrice        float64    `gorm:"column:original_product_price;not null;default:0.000000" json:"original_product_price"`
	OriginalWholesalePrice      float64    `gorm:"column:original_wholesale_price;not null;default:0.000000" json:"original_wholesale_price"`
}

// TableName PsOrderDetail's table name
func (*PsOrderDetail) TableName() string {
	return TableNamePsOrderDetail
}

var PsOrderDetailCols = struct {
	IDOrderDetail gormcol.Field
	IDOrder gormcol.Field
	IDOrderInvoice gormcol.Field
	IDWarehouse gormcol.Field
	IDShop gormcol.Field
	ProductID gormcol.Field
	ProductAttributeID gormcol.Field
	IDCustomization gormcol.Field
	ProductName gormcol.Field
	ProductQuantity gormcol.Field
	ProductQuantityInStock gormcol.Field
	ProductQuantityRefunded gormcol.Field
	ProductQuantityReturn gormcol.Field
	ProductQuantityReinjected gormcol.Field
	ProductPrice gormcol.Field
	ReductionPercent gormcol.Field
	ReductionAmount gormcol.Field
	ReductionAmountTaxIncl gormcol.Field
	ReductionAmountTaxExcl gormcol.Field
	GroupReduction gormcol.Field
	ProductQuantityDiscount gormcol.Field
	ProductEan13 gormcol.Field
	ProductIsbn gormcol.Field
	ProductUpc gormcol.Field
	ProductReference gormcol.Field
	ProductSupplierReference gormcol.Field
	ProductWeight gormcol.Field
	IDTaxRulesGroup gormcol.Field
	TaxComputationMethod gormcol.Field
	TaxName gormcol.Field
	TaxRate gormcol.Field
	Ecotax gormcol.Field
	EcotaxTaxRate gormcol.Field
	DiscountQuantityApplied gormcol.Field
	DownloadHash gormcol.Field
	DownloadNb gormcol.Field
	DownloadDeadline gormcol.Field
	TotalPriceTaxIncl gormcol.Field
	TotalPriceTaxExcl gormcol.Field
	UnitPriceTaxIncl gormcol.Field
	UnitPriceTaxExcl gormcol.Field
	TotalShippingPriceTaxIncl gormcol.Field
	TotalShippingPriceTaxExcl gormcol.Field
	TotalPriceTaxInclDiscounted gormcol.Field
	CartRules gormcol.Field
	PurchaseSupplierPrice gormcol.Field
	OriginalProductPrice gormcol.Field
	OriginalWholesalePrice gormcol.Field
}{
	IDOrderDetail: gormcol.Field{}.Set((&PsOrderDetail{}).TableName(), "id_order_detail"),
	IDOrder: gormcol.Field{}.Set((&PsOrderDetail{}).TableName(), "id_order"),
	IDOrderInvoice: gormcol.Field{}.Set((&PsOrderDetail{}).TableName(), "id_order_invoice"),
	IDWarehouse: gormcol.Field{}.Set((&PsOrderDetail{}).TableName(), "id_warehouse"),
	IDShop: gormcol.Field{}.Set((&PsOrderDetail{}).TableName(), "id_shop"),
	ProductID: gormcol.Field{}.Set((&PsOrderDetail{}).TableName(), "product_id"),
	ProductAttributeID: gormcol.Field{}.Set((&PsOrderDetail{}).TableName(), "product_attribute_id"),
	IDCustomization: gormcol.Field{}.Set((&PsOrderDetail{}).TableName(), "id_customization"),
	ProductName: gormcol.Field{}.Set((&PsOrderDetail{}).TableName(), "product_name"),
	ProductQuantity: gormcol.Field{}.Set((&PsOrderDetail{}).TableName(), "product_quantity"),
	ProductQuantityInStock: gormcol.Field{}.Set((&PsOrderDetail{}).TableName(), "product_quantity_in_stock"),
	ProductQuantityRefunded: gormcol.Field{}.Set((&PsOrderDetail{}).TableName(), "product_quantity_refunded"),
	ProductQuantityReturn: gormcol.Field{}.Set((&PsOrderDetail{}).TableName(), "product_quantity_return"),
	ProductQuantityReinjected: gormcol.Field{}.Set((&PsOrderDetail{}).TableName(), "product_quantity_reinjected"),
	ProductPrice: gormcol.Field{}.Set((&PsOrderDetail{}).TableName(), "product_price"),
	ReductionPercent: gormcol.Field{}.Set((&PsOrderDetail{}).TableName(), "reduction_percent"),
	ReductionAmount: gormcol.Field{}.Set((&PsOrderDetail{}).TableName(), "reduction_amount"),
	ReductionAmountTaxIncl: gormcol.Field{}.Set((&PsOrderDetail{}).TableName(), "reduction_amount_tax_incl"),
	ReductionAmountTaxExcl: gormcol.Field{}.Set((&PsOrderDetail{}).TableName(), "reduction_amount_tax_excl"),
	GroupReduction: gormcol.Field{}.Set((&PsOrderDetail{}).TableName(), "group_reduction"),
	ProductQuantityDiscount: gormcol.Field{}.Set((&PsOrderDetail{}).TableName(), "product_quantity_discount"),
	ProductEan13: gormcol.Field{}.Set((&PsOrderDetail{}).TableName(), "product_ean13"),
	ProductIsbn: gormcol.Field{}.Set((&PsOrderDetail{}).TableName(), "product_isbn"),
	ProductUpc: gormcol.Field{}.Set((&PsOrderDetail{}).TableName(), "product_upc"),
	ProductReference: gormcol.Field{}.Set((&PsOrderDetail{}).TableName(), "product_reference"),
	ProductSupplierReference: gormcol.Field{}.Set((&PsOrderDetail{}).TableName(), "product_supplier_reference"),
	ProductWeight: gormcol.Field{}.Set((&PsOrderDetail{}).TableName(), "product_weight"),
	IDTaxRulesGroup: gormcol.Field{}.Set((&PsOrderDetail{}).TableName(), "id_tax_rules_group"),
	TaxComputationMethod: gormcol.Field{}.Set((&PsOrderDetail{}).TableName(), "tax_computation_method"),
	TaxName: gormcol.Field{}.Set((&PsOrderDetail{}).TableName(), "tax_name"),
	TaxRate: gormcol.Field{}.Set((&PsOrderDetail{}).TableName(), "tax_rate"),
	Ecotax: gormcol.Field{}.Set((&PsOrderDetail{}).TableName(), "ecotax"),
	EcotaxTaxRate: gormcol.Field{}.Set((&PsOrderDetail{}).TableName(), "ecotax_tax_rate"),
	DiscountQuantityApplied: gormcol.Field{}.Set((&PsOrderDetail{}).TableName(), "discount_quantity_applied"),
	DownloadHash: gormcol.Field{}.Set((&PsOrderDetail{}).TableName(), "download_hash"),
	DownloadNb: gormcol.Field{}.Set((&PsOrderDetail{}).TableName(), "download_nb"),
	DownloadDeadline: gormcol.Field{}.Set((&PsOrderDetail{}).TableName(), "download_deadline"),
	TotalPriceTaxIncl: gormcol.Field{}.Set((&PsOrderDetail{}).TableName(), "total_price_tax_incl"),
	TotalPriceTaxExcl: gormcol.Field{}.Set((&PsOrderDetail{}).TableName(), "total_price_tax_excl"),
	UnitPriceTaxIncl: gormcol.Field{}.Set((&PsOrderDetail{}).TableName(), "unit_price_tax_incl"),
	UnitPriceTaxExcl: gormcol.Field{}.Set((&PsOrderDetail{}).TableName(), "unit_price_tax_excl"),
	TotalShippingPriceTaxIncl: gormcol.Field{}.Set((&PsOrderDetail{}).TableName(), "total_shipping_price_tax_incl"),
	TotalShippingPriceTaxExcl: gormcol.Field{}.Set((&PsOrderDetail{}).TableName(), "total_shipping_price_tax_excl"),
	TotalPriceTaxInclDiscounted: gormcol.Field{}.Set((&PsOrderDetail{}).TableName(), "total_price_tax_incl_discounted"),
	CartRules: gormcol.Field{}.Set((&PsOrderDetail{}).TableName(), "cart_rules"),
	PurchaseSupplierPrice: gormcol.Field{}.Set((&PsOrderDetail{}).TableName(), "purchase_supplier_price"),
	OriginalProductPrice: gormcol.Field{}.Set((&PsOrderDetail{}).TableName(), "original_product_price"),
	OriginalWholesalePrice: gormcol.Field{}.Set((&PsOrderDetail{}).TableName(), "original_wholesale_price"),
}
