67 lines
5.3 KiB
Go
67 lines
5.3 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 prestadb
|
|
|
|
import (
|
|
"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
|
|
}
|