// Code generated by gormcol. DO NOT EDIT.

package dbmodel

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

const TableNamePsOrderSlip = "ps_order_slip"

// PsOrderSlip mapped from table <ps_order_slip>
type PsOrderSlip struct {
	IDOrderSlip          int32     `gorm:"column:id_order_slip;primaryKey;autoIncrement:true" json:"id_order_slip"`
	ConversionRate       float64   `gorm:"column:conversion_rate;not null;default:1.000000" json:"conversion_rate"`
	IDCustomer           int32     `gorm:"column:id_customer;not null;index:order_slip_customer,priority:1" json:"id_customer"`
	IDOrder              int32     `gorm:"column:id_order;not null;index:id_order,priority:1" json:"id_order"`
	TotalProductsTaxExcl *float64  `gorm:"column:total_products_tax_excl" json:"total_products_tax_excl"`
	TotalProductsTaxIncl *float64  `gorm:"column:total_products_tax_incl" json:"total_products_tax_incl"`
	TotalShippingTaxExcl *float64  `gorm:"column:total_shipping_tax_excl" json:"total_shipping_tax_excl"`
	TotalShippingTaxIncl *float64  `gorm:"column:total_shipping_tax_incl" json:"total_shipping_tax_incl"`
	ShippingCost         int32     `gorm:"column:shipping_cost;not null" json:"shipping_cost"`
	Amount               float64   `gorm:"column:amount;not null" json:"amount"`
	ShippingCostAmount   float64   `gorm:"column:shipping_cost_amount;not null" json:"shipping_cost_amount"`
	Partial              bool      `gorm:"column:partial;not null" json:"partial"`
	OrderSlipType        bool      `gorm:"column:order_slip_type;not null" json:"order_slip_type"`
	DateAdd              time.Time `gorm:"column:date_add;not null" json:"date_add"`
	DateUpd              time.Time `gorm:"column:date_upd;not null" json:"date_upd"`
}

// TableName PsOrderSlip's table name
func (*PsOrderSlip) TableName() string {
	return TableNamePsOrderSlip
}

var PsOrderSlipCols = struct {
	IDOrderSlip gormcol.Field
	ConversionRate gormcol.Field
	IDCustomer gormcol.Field
	IDOrder gormcol.Field
	TotalProductsTaxExcl gormcol.Field
	TotalProductsTaxIncl gormcol.Field
	TotalShippingTaxExcl gormcol.Field
	TotalShippingTaxIncl gormcol.Field
	ShippingCost gormcol.Field
	Amount gormcol.Field
	ShippingCostAmount gormcol.Field
	Partial gormcol.Field
	OrderSlipType gormcol.Field
	DateAdd gormcol.Field
	DateUpd gormcol.Field
}{
	IDOrderSlip: gormcol.Field{}.Set((&PsOrderSlip{}).TableName(), "id_order_slip"),
	ConversionRate: gormcol.Field{}.Set((&PsOrderSlip{}).TableName(), "conversion_rate"),
	IDCustomer: gormcol.Field{}.Set((&PsOrderSlip{}).TableName(), "id_customer"),
	IDOrder: gormcol.Field{}.Set((&PsOrderSlip{}).TableName(), "id_order"),
	TotalProductsTaxExcl: gormcol.Field{}.Set((&PsOrderSlip{}).TableName(), "total_products_tax_excl"),
	TotalProductsTaxIncl: gormcol.Field{}.Set((&PsOrderSlip{}).TableName(), "total_products_tax_incl"),
	TotalShippingTaxExcl: gormcol.Field{}.Set((&PsOrderSlip{}).TableName(), "total_shipping_tax_excl"),
	TotalShippingTaxIncl: gormcol.Field{}.Set((&PsOrderSlip{}).TableName(), "total_shipping_tax_incl"),
	ShippingCost: gormcol.Field{}.Set((&PsOrderSlip{}).TableName(), "shipping_cost"),
	Amount: gormcol.Field{}.Set((&PsOrderSlip{}).TableName(), "amount"),
	ShippingCostAmount: gormcol.Field{}.Set((&PsOrderSlip{}).TableName(), "shipping_cost_amount"),
	Partial: gormcol.Field{}.Set((&PsOrderSlip{}).TableName(), "partial"),
	OrderSlipType: gormcol.Field{}.Set((&PsOrderSlip{}).TableName(), "order_slip_type"),
	DateAdd: gormcol.Field{}.Set((&PsOrderSlip{}).TableName(), "date_add"),
	DateUpd: gormcol.Field{}.Set((&PsOrderSlip{}).TableName(), "date_upd"),
}
