// Code generated by gormcol. DO NOT EDIT.

package dbmodel

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

const TableNamePsWarehouseProductLocation = "ps_warehouse_product_location"

// PsWarehouseProductLocation mapped from table <ps_warehouse_product_location>
type PsWarehouseProductLocation struct {
	IDWarehouseProductLocation int32   `gorm:"column:id_warehouse_product_location;primaryKey;autoIncrement:true" json:"id_warehouse_product_location"`
	IDProduct                  int32   `gorm:"column:id_product;not null;uniqueIndex:id_product,priority:1" json:"id_product"`
	IDProductAttribute         int32   `gorm:"column:id_product_attribute;not null;uniqueIndex:id_product,priority:2" json:"id_product_attribute"`
	IDWarehouse                int32   `gorm:"column:id_warehouse;not null;uniqueIndex:id_product,priority:3" json:"id_warehouse"`
	Location                   *string `gorm:"column:location" json:"location"`
}

// TableName PsWarehouseProductLocation's table name
func (*PsWarehouseProductLocation) TableName() string {
	return TableNamePsWarehouseProductLocation
}

var PsWarehouseProductLocationCols = struct {
	IDWarehouseProductLocation gormcol.Field
	IDProduct gormcol.Field
	IDProductAttribute gormcol.Field
	IDWarehouse gormcol.Field
	Location gormcol.Field
}{
	IDWarehouseProductLocation: gormcol.Field{}.Set((&PsWarehouseProductLocation{}).TableName(), "id_warehouse_product_location"),
	IDProduct: gormcol.Field{}.Set((&PsWarehouseProductLocation{}).TableName(), "id_product"),
	IDProductAttribute: gormcol.Field{}.Set((&PsWarehouseProductLocation{}).TableName(), "id_product_attribute"),
	IDWarehouse: gormcol.Field{}.Set((&PsWarehouseProductLocation{}).TableName(), "id_warehouse"),
	Location: gormcol.Field{}.Set((&PsWarehouseProductLocation{}).TableName(), "location"),
}
