Files
b2b/app/model/prestadb/ps_supply_order_detail.go

41 lines
3.0 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
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
}