// Code generated by gormcol. DO NOT EDIT.

package dbmodel

import "git.ma-al.com/goc_marek/gormcol"

const TableNamePsSupplyOrderDetail = "ps_supply_order_detail"

// PsSupplyOrderDetail mapped from table <ps_supply_order_detail>
type PsSupplyOrderDetail struct {
	IDSupplyOrderDetail       int32    `gorm:"column:id_supply_order_detail;primaryKey;autoIncrement:true" json:"id_supply_order_detail"`
	IDSupplyOrder             int32    `gorm:"column:id_supply_order;not null;index:id_supply_order,priority:1" json:"id_supply_order"`
	IDCurrency                int32    `gorm:"column:id_currency;not null" json:"id_currency"`
	IDProduct                 int32    `gorm:"column:id_product;not null;index:id_product_product_attribute,priority:1;index:id_supply_order,priority:2" json:"id_product"`
	IDProductAttribute        int32    `gorm:"column:id_product_attribute;not null;index:id_product_attribute,priority:1;index:id_product_product_attribute,priority:2" json:"id_product_attribute"`
	Reference                 string   `gorm:"column:reference;not null" json:"reference"`
	SupplierReference         string   `gorm:"column:supplier_reference;not null" json:"supplier_reference"`
	Name                      string   `gorm:"column:name;not null" json:"name"`
	Ean13                     *string  `gorm:"column:ean13" json:"ean13"`
	Isbn                      *string  `gorm:"column:isbn" json:"isbn"`
	Upc                       *string  `gorm:"column:upc" json:"upc"`
	ExchangeRate              *float64 `gorm:"column:exchange_rate;default:0.000000" json:"exchange_rate"`
	UnitPriceTe               *float64 `gorm:"column:unit_price_te;default:0.000000" json:"unit_price_te"`
	QuantityExpected          int32    `gorm:"column:quantity_expected;not null" json:"quantity_expected"`
	QuantityReceived          int32    `gorm:"column:quantity_received;not null" json:"quantity_received"`
	PriceTe                   *float64 `gorm:"column:price_te;default:0.000000" json:"price_te"`
	DiscountRate              *float64 `gorm:"column:discount_rate;default:0.000000" json:"discount_rate"`
	DiscountValueTe           *float64 `gorm:"column:discount_value_te;default:0.000000" json:"discount_value_te"`
	PriceWithDiscountTe       *float64 `gorm:"column:price_with_discount_te;default:0.000000" json:"price_with_discount_te"`
	TaxRate                   *float64 `gorm:"column:tax_rate;default:0.000000" json:"tax_rate"`
	TaxValue                  *float64 `gorm:"column:tax_value;default:0.000000" json:"tax_value"`
	PriceTi                   *float64 `gorm:"column:price_ti;default:0.000000" json:"price_ti"`
	TaxValueWithOrderDiscount *float64 `gorm:"column:tax_value_with_order_discount;default:0.000000" json:"tax_value_with_order_discount"`
	PriceWithOrderDiscountTe  *float64 `gorm:"column:price_with_order_discount_te;default:0.000000" json:"price_with_order_discount_te"`
}

// TableName PsSupplyOrderDetail's table name
func (*PsSupplyOrderDetail) TableName() string {
	return TableNamePsSupplyOrderDetail
}

var PsSupplyOrderDetailCols = struct {
	IDSupplyOrderDetail gormcol.Field
	IDSupplyOrder gormcol.Field
	IDCurrency gormcol.Field
	IDProduct gormcol.Field
	IDProductAttribute gormcol.Field
	Reference gormcol.Field
	SupplierReference gormcol.Field
	Name gormcol.Field
	Ean13 gormcol.Field
	Isbn gormcol.Field
	Upc gormcol.Field
	ExchangeRate gormcol.Field
	UnitPriceTe gormcol.Field
	QuantityExpected gormcol.Field
	QuantityReceived gormcol.Field
	PriceTe gormcol.Field
	DiscountRate gormcol.Field
	DiscountValueTe gormcol.Field
	PriceWithDiscountTe gormcol.Field
	TaxRate gormcol.Field
	TaxValue gormcol.Field
	PriceTi gormcol.Field
	TaxValueWithOrderDiscount gormcol.Field
	PriceWithOrderDiscountTe gormcol.Field
}{
	IDSupplyOrderDetail: gormcol.Field{}.Set((&PsSupplyOrderDetail{}).TableName(), "id_supply_order_detail"),
	IDSupplyOrder: gormcol.Field{}.Set((&PsSupplyOrderDetail{}).TableName(), "id_supply_order"),
	IDCurrency: gormcol.Field{}.Set((&PsSupplyOrderDetail{}).TableName(), "id_currency"),
	IDProduct: gormcol.Field{}.Set((&PsSupplyOrderDetail{}).TableName(), "id_product"),
	IDProductAttribute: gormcol.Field{}.Set((&PsSupplyOrderDetail{}).TableName(), "id_product_attribute"),
	Reference: gormcol.Field{}.Set((&PsSupplyOrderDetail{}).TableName(), "reference"),
	SupplierReference: gormcol.Field{}.Set((&PsSupplyOrderDetail{}).TableName(), "supplier_reference"),
	Name: gormcol.Field{}.Set((&PsSupplyOrderDetail{}).TableName(), "name"),
	Ean13: gormcol.Field{}.Set((&PsSupplyOrderDetail{}).TableName(), "ean13"),
	Isbn: gormcol.Field{}.Set((&PsSupplyOrderDetail{}).TableName(), "isbn"),
	Upc: gormcol.Field{}.Set((&PsSupplyOrderDetail{}).TableName(), "upc"),
	ExchangeRate: gormcol.Field{}.Set((&PsSupplyOrderDetail{}).TableName(), "exchange_rate"),
	UnitPriceTe: gormcol.Field{}.Set((&PsSupplyOrderDetail{}).TableName(), "unit_price_te"),
	QuantityExpected: gormcol.Field{}.Set((&PsSupplyOrderDetail{}).TableName(), "quantity_expected"),
	QuantityReceived: gormcol.Field{}.Set((&PsSupplyOrderDetail{}).TableName(), "quantity_received"),
	PriceTe: gormcol.Field{}.Set((&PsSupplyOrderDetail{}).TableName(), "price_te"),
	DiscountRate: gormcol.Field{}.Set((&PsSupplyOrderDetail{}).TableName(), "discount_rate"),
	DiscountValueTe: gormcol.Field{}.Set((&PsSupplyOrderDetail{}).TableName(), "discount_value_te"),
	PriceWithDiscountTe: gormcol.Field{}.Set((&PsSupplyOrderDetail{}).TableName(), "price_with_discount_te"),
	TaxRate: gormcol.Field{}.Set((&PsSupplyOrderDetail{}).TableName(), "tax_rate"),
	TaxValue: gormcol.Field{}.Set((&PsSupplyOrderDetail{}).TableName(), "tax_value"),
	PriceTi: gormcol.Field{}.Set((&PsSupplyOrderDetail{}).TableName(), "price_ti"),
	TaxValueWithOrderDiscount: gormcol.Field{}.Set((&PsSupplyOrderDetail{}).TableName(), "tax_value_with_order_discount"),
	PriceWithOrderDiscountTe: gormcol.Field{}.Set((&PsSupplyOrderDetail{}).TableName(), "price_with_order_discount_te"),
}
