// Code generated by gormcol. DO NOT EDIT.

package dbmodel

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

const TableNamePsProductSupplier = "ps_product_supplier"

// PsProductSupplier mapped from table <ps_product_supplier>
type PsProductSupplier struct {
	IDProductSupplier        int32   `gorm:"column:id_product_supplier;primaryKey;autoIncrement:true" json:"id_product_supplier"`
	IDProduct                int32   `gorm:"column:id_product;not null;uniqueIndex:id_product,priority:1;index:id_supplier,priority:2" json:"id_product"`
	IDProductAttribute       int32   `gorm:"column:id_product_attribute;not null;uniqueIndex:id_product,priority:2" json:"id_product_attribute"`
	IDSupplier               int32   `gorm:"column:id_supplier;not null;uniqueIndex:id_product,priority:3;index:id_supplier,priority:1" json:"id_supplier"`
	ProductSupplierReference *string `gorm:"column:product_supplier_reference" json:"product_supplier_reference"`
	ProductSupplierPriceTe   float64 `gorm:"column:product_supplier_price_te;not null;default:0.000000" json:"product_supplier_price_te"`
	IDCurrency               int32   `gorm:"column:id_currency;not null" json:"id_currency"`
}

// TableName PsProductSupplier's table name
func (*PsProductSupplier) TableName() string {
	return TableNamePsProductSupplier
}

var PsProductSupplierCols = struct {
	IDProductSupplier gormcol.Field
	IDProduct gormcol.Field
	IDProductAttribute gormcol.Field
	IDSupplier gormcol.Field
	ProductSupplierReference gormcol.Field
	ProductSupplierPriceTe gormcol.Field
	IDCurrency gormcol.Field
}{
	IDProductSupplier: gormcol.Field{}.Set((&PsProductSupplier{}).TableName(), "id_product_supplier"),
	IDProduct: gormcol.Field{}.Set((&PsProductSupplier{}).TableName(), "id_product"),
	IDProductAttribute: gormcol.Field{}.Set((&PsProductSupplier{}).TableName(), "id_product_attribute"),
	IDSupplier: gormcol.Field{}.Set((&PsProductSupplier{}).TableName(), "id_supplier"),
	ProductSupplierReference: gormcol.Field{}.Set((&PsProductSupplier{}).TableName(), "product_supplier_reference"),
	ProductSupplierPriceTe: gormcol.Field{}.Set((&PsProductSupplier{}).TableName(), "product_supplier_price_te"),
	IDCurrency: gormcol.Field{}.Set((&PsProductSupplier{}).TableName(), "id_currency"),
}
