170 lines
12 KiB
Go
170 lines
12 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 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{Table: TableNamePsOrderDetail, Column: "id_order_detail"},
|
|
IDOrder: gormcol.Field{Table: TableNamePsOrderDetail, Column: "id_order"},
|
|
IDOrderInvoice: gormcol.Field{Table: TableNamePsOrderDetail, Column: "id_order_invoice"},
|
|
IDWarehouse: gormcol.Field{Table: TableNamePsOrderDetail, Column: "id_warehouse"},
|
|
IDShop: gormcol.Field{Table: TableNamePsOrderDetail, Column: "id_shop"},
|
|
ProductID: gormcol.Field{Table: TableNamePsOrderDetail, Column: "product_id"},
|
|
ProductAttributeID: gormcol.Field{Table: TableNamePsOrderDetail, Column: "product_attribute_id"},
|
|
IDCustomization: gormcol.Field{Table: TableNamePsOrderDetail, Column: "id_customization"},
|
|
ProductName: gormcol.Field{Table: TableNamePsOrderDetail, Column: "product_name"},
|
|
ProductQuantity: gormcol.Field{Table: TableNamePsOrderDetail, Column: "product_quantity"},
|
|
ProductQuantityInStock: gormcol.Field{Table: TableNamePsOrderDetail, Column: "product_quantity_in_stock"},
|
|
ProductQuantityRefunded: gormcol.Field{Table: TableNamePsOrderDetail, Column: "product_quantity_refunded"},
|
|
ProductQuantityReturn: gormcol.Field{Table: TableNamePsOrderDetail, Column: "product_quantity_return"},
|
|
ProductQuantityReinjected: gormcol.Field{Table: TableNamePsOrderDetail, Column: "product_quantity_reinjected"},
|
|
ProductPrice: gormcol.Field{Table: TableNamePsOrderDetail, Column: "product_price"},
|
|
ReductionPercent: gormcol.Field{Table: TableNamePsOrderDetail, Column: "reduction_percent"},
|
|
ReductionAmount: gormcol.Field{Table: TableNamePsOrderDetail, Column: "reduction_amount"},
|
|
ReductionAmountTaxIncl: gormcol.Field{Table: TableNamePsOrderDetail, Column: "reduction_amount_tax_incl"},
|
|
ReductionAmountTaxExcl: gormcol.Field{Table: TableNamePsOrderDetail, Column: "reduction_amount_tax_excl"},
|
|
GroupReduction: gormcol.Field{Table: TableNamePsOrderDetail, Column: "group_reduction"},
|
|
ProductQuantityDiscount: gormcol.Field{Table: TableNamePsOrderDetail, Column: "product_quantity_discount"},
|
|
ProductEan13: gormcol.Field{Table: TableNamePsOrderDetail, Column: "product_ean13"},
|
|
ProductIsbn: gormcol.Field{Table: TableNamePsOrderDetail, Column: "product_isbn"},
|
|
ProductUpc: gormcol.Field{Table: TableNamePsOrderDetail, Column: "product_upc"},
|
|
ProductReference: gormcol.Field{Table: TableNamePsOrderDetail, Column: "product_reference"},
|
|
ProductSupplierReference: gormcol.Field{Table: TableNamePsOrderDetail, Column: "product_supplier_reference"},
|
|
ProductWeight: gormcol.Field{Table: TableNamePsOrderDetail, Column: "product_weight"},
|
|
IDTaxRulesGroup: gormcol.Field{Table: TableNamePsOrderDetail, Column: "id_tax_rules_group"},
|
|
TaxComputationMethod: gormcol.Field{Table: TableNamePsOrderDetail, Column: "tax_computation_method"},
|
|
TaxName: gormcol.Field{Table: TableNamePsOrderDetail, Column: "tax_name"},
|
|
TaxRate: gormcol.Field{Table: TableNamePsOrderDetail, Column: "tax_rate"},
|
|
Ecotax: gormcol.Field{Table: TableNamePsOrderDetail, Column: "ecotax"},
|
|
EcotaxTaxRate: gormcol.Field{Table: TableNamePsOrderDetail, Column: "ecotax_tax_rate"},
|
|
DiscountQuantityApplied: gormcol.Field{Table: TableNamePsOrderDetail, Column: "discount_quantity_applied"},
|
|
DownloadHash: gormcol.Field{Table: TableNamePsOrderDetail, Column: "download_hash"},
|
|
DownloadNb: gormcol.Field{Table: TableNamePsOrderDetail, Column: "download_nb"},
|
|
DownloadDeadline: gormcol.Field{Table: TableNamePsOrderDetail, Column: "download_deadline"},
|
|
TotalPriceTaxIncl: gormcol.Field{Table: TableNamePsOrderDetail, Column: "total_price_tax_incl"},
|
|
TotalPriceTaxExcl: gormcol.Field{Table: TableNamePsOrderDetail, Column: "total_price_tax_excl"},
|
|
UnitPriceTaxIncl: gormcol.Field{Table: TableNamePsOrderDetail, Column: "unit_price_tax_incl"},
|
|
UnitPriceTaxExcl: gormcol.Field{Table: TableNamePsOrderDetail, Column: "unit_price_tax_excl"},
|
|
TotalShippingPriceTaxIncl: gormcol.Field{Table: TableNamePsOrderDetail, Column: "total_shipping_price_tax_incl"},
|
|
TotalShippingPriceTaxExcl: gormcol.Field{Table: TableNamePsOrderDetail, Column: "total_shipping_price_tax_excl"},
|
|
TotalPriceTaxInclDiscounted: gormcol.Field{Table: TableNamePsOrderDetail, Column: "total_price_tax_incl_discounted"},
|
|
CartRules: gormcol.Field{Table: TableNamePsOrderDetail, Column: "cart_rules"},
|
|
PurchaseSupplierPrice: gormcol.Field{Table: TableNamePsOrderDetail, Column: "purchase_supplier_price"},
|
|
OriginalProductPrice: gormcol.Field{Table: TableNamePsOrderDetail, Column: "original_product_price"},
|
|
OriginalWholesalePrice: gormcol.Field{Table: TableNamePsOrderDetail, Column: "original_wholesale_price"},
|
|
}
|