// Code generated by gormcol. DO NOT EDIT.

package dbmodel

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

const TableNamePsOrderCarrier = "ps_order_carrier"

// PsOrderCarrier mapped from table <ps_order_carrier>
type PsOrderCarrier struct {
	IDOrderCarrier      int32     `gorm:"column:id_order_carrier;primaryKey;autoIncrement:true" json:"id_order_carrier"`
	IDOrder             int32     `gorm:"column:id_order;not null;index:id_order,priority:1" json:"id_order"`
	IDCarrier           int32     `gorm:"column:id_carrier;not null;index:id_carrier,priority:1" json:"id_carrier"`
	IDOrderInvoice      *int32    `gorm:"column:id_order_invoice;index:id_order_invoice,priority:1" json:"id_order_invoice"`
	Weight              *float64  `gorm:"column:weight" json:"weight"`
	ShippingCostTaxExcl *float64  `gorm:"column:shipping_cost_tax_excl" json:"shipping_cost_tax_excl"`
	ShippingCostTaxIncl *float64  `gorm:"column:shipping_cost_tax_incl" json:"shipping_cost_tax_incl"`
	TrackingNumber      *string   `gorm:"column:tracking_number" json:"tracking_number"`
	DateAdd             time.Time `gorm:"column:date_add;not null" json:"date_add"`
}

// TableName PsOrderCarrier's table name
func (*PsOrderCarrier) TableName() string {
	return TableNamePsOrderCarrier
}

var PsOrderCarrierCols = struct {
	IDOrderCarrier gormcol.Field
	IDOrder gormcol.Field
	IDCarrier gormcol.Field
	IDOrderInvoice gormcol.Field
	Weight gormcol.Field
	ShippingCostTaxExcl gormcol.Field
	ShippingCostTaxIncl gormcol.Field
	TrackingNumber gormcol.Field
	DateAdd gormcol.Field
}{
	IDOrderCarrier: gormcol.Field{}.Set((&PsOrderCarrier{}).TableName(), "id_order_carrier"),
	IDOrder: gormcol.Field{}.Set((&PsOrderCarrier{}).TableName(), "id_order"),
	IDCarrier: gormcol.Field{}.Set((&PsOrderCarrier{}).TableName(), "id_carrier"),
	IDOrderInvoice: gormcol.Field{}.Set((&PsOrderCarrier{}).TableName(), "id_order_invoice"),
	Weight: gormcol.Field{}.Set((&PsOrderCarrier{}).TableName(), "weight"),
	ShippingCostTaxExcl: gormcol.Field{}.Set((&PsOrderCarrier{}).TableName(), "shipping_cost_tax_excl"),
	ShippingCostTaxIncl: gormcol.Field{}.Set((&PsOrderCarrier{}).TableName(), "shipping_cost_tax_incl"),
	TrackingNumber: gormcol.Field{}.Set((&PsOrderCarrier{}).TableName(), "tracking_number"),
	DateAdd: gormcol.Field{}.Set((&PsOrderCarrier{}).TableName(), "date_add"),
}
