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

89 lines
5.4 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 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{Table: TableNamePsOrderInvoice, Column: "id_order_invoice"},
IDOrder: gormcol.Field{Table: TableNamePsOrderInvoice, Column: "id_order"},
Number: gormcol.Field{Table: TableNamePsOrderInvoice, Column: "number"},
DeliveryNumber: gormcol.Field{Table: TableNamePsOrderInvoice, Column: "delivery_number"},
DeliveryDate: gormcol.Field{Table: TableNamePsOrderInvoice, Column: "delivery_date"},
TotalDiscountTaxExcl: gormcol.Field{Table: TableNamePsOrderInvoice, Column: "total_discount_tax_excl"},
TotalDiscountTaxIncl: gormcol.Field{Table: TableNamePsOrderInvoice, Column: "total_discount_tax_incl"},
TotalPaidTaxExcl: gormcol.Field{Table: TableNamePsOrderInvoice, Column: "total_paid_tax_excl"},
TotalPaidTaxIncl: gormcol.Field{Table: TableNamePsOrderInvoice, Column: "total_paid_tax_incl"},
TotalProducts: gormcol.Field{Table: TableNamePsOrderInvoice, Column: "total_products"},
TotalProductsWt: gormcol.Field{Table: TableNamePsOrderInvoice, Column: "total_products_wt"},
TotalShippingTaxExcl: gormcol.Field{Table: TableNamePsOrderInvoice, Column: "total_shipping_tax_excl"},
TotalShippingTaxIncl: gormcol.Field{Table: TableNamePsOrderInvoice, Column: "total_shipping_tax_incl"},
ShippingTaxComputationMethod: gormcol.Field{Table: TableNamePsOrderInvoice, Column: "shipping_tax_computation_method"},
TotalWrappingTaxExcl: gormcol.Field{Table: TableNamePsOrderInvoice, Column: "total_wrapping_tax_excl"},
TotalWrappingTaxIncl: gormcol.Field{Table: TableNamePsOrderInvoice, Column: "total_wrapping_tax_incl"},
ShopAddress: gormcol.Field{Table: TableNamePsOrderInvoice, Column: "shop_address"},
Note: gormcol.Field{Table: TableNamePsOrderInvoice, Column: "note"},
DateAdd: gormcol.Field{Table: TableNamePsOrderInvoice, Column: "date_add"},
FinalNumber: gormcol.Field{Table: TableNamePsOrderInvoice, Column: "final_number"},
IDShopCompany: gormcol.Field{Table: TableNamePsOrderInvoice, Column: "id_shop_company"},
}