// Code generated by gormcol. DO NOT EDIT.

package dbmodel

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

const TableNamePsStockAvailable = "ps_stock_available"

// PsStockAvailable mapped from table <ps_stock_available>
type PsStockAvailable struct {
	IDStockAvailable   int32  `gorm:"column:id_stock_available;primaryKey;autoIncrement:true" json:"id_stock_available"`
	IDProduct          int32  `gorm:"column:id_product;not null;uniqueIndex:product_sqlstock,priority:1;index:idx_id_product_attribute,priority:1;index:idx_product_stock,priority:1;index:idx_ps_stock_available,priority:1;index:idx_stock_available,priority:1;index:id_product,priority:1" json:"id_product"`
	IDProductAttribute int32  `gorm:"column:id_product_attribute;not null;uniqueIndex:product_sqlstock,priority:2;index:idx_id_product_attribute,priority:2;index:idx_product_stock,priority:2;index:idx_stock_available,priority:2;index:id_product_attribute,priority:1" json:"id_product_attribute"`
	IDShop             int32  `gorm:"column:id_shop;not null;uniqueIndex:product_sqlstock,priority:3;index:idx_ps_stock_available,priority:2;index:idx_stock_available,priority:3;index:id_shop,priority:1" json:"id_shop"`
	IDShopGroup        int32  `gorm:"column:id_shop_group;not null;uniqueIndex:product_sqlstock,priority:4;index:idx_ps_stock_available,priority:3;index:idx_stock_available,priority:4;index:id_shop_group,priority:1" json:"id_shop_group"`
	Quantity           int32  `gorm:"column:quantity;not null;index:idx_stock_available,priority:5" json:"quantity"`
	PhysicalQuantity   int32  `gorm:"column:physical_quantity;not null" json:"physical_quantity"`
	ReservedQuantity   int32  `gorm:"column:reserved_quantity;not null" json:"reserved_quantity"`
	DependsOnStock     bool   `gorm:"column:depends_on_stock;not null" json:"depends_on_stock"`
	OutOfStock         bool   `gorm:"column:out_of_stock;not null;index:idx_stock_available,priority:6" json:"out_of_stock"`
	Location           string `gorm:"column:location;not null" json:"location"`
}

// TableName PsStockAvailable's table name
func (*PsStockAvailable) TableName() string {
	return TableNamePsStockAvailable
}

var PsStockAvailableCols = struct {
	IDStockAvailable gormcol.Field
	IDProduct gormcol.Field
	IDProductAttribute gormcol.Field
	IDShop gormcol.Field
	IDShopGroup gormcol.Field
	Quantity gormcol.Field
	PhysicalQuantity gormcol.Field
	ReservedQuantity gormcol.Field
	DependsOnStock gormcol.Field
	OutOfStock gormcol.Field
	Location gormcol.Field
}{
	IDStockAvailable: gormcol.Field{}.Set((&PsStockAvailable{}).TableName(), "id_stock_available"),
	IDProduct: gormcol.Field{}.Set((&PsStockAvailable{}).TableName(), "id_product"),
	IDProductAttribute: gormcol.Field{}.Set((&PsStockAvailable{}).TableName(), "id_product_attribute"),
	IDShop: gormcol.Field{}.Set((&PsStockAvailable{}).TableName(), "id_shop"),
	IDShopGroup: gormcol.Field{}.Set((&PsStockAvailable{}).TableName(), "id_shop_group"),
	Quantity: gormcol.Field{}.Set((&PsStockAvailable{}).TableName(), "quantity"),
	PhysicalQuantity: gormcol.Field{}.Set((&PsStockAvailable{}).TableName(), "physical_quantity"),
	ReservedQuantity: gormcol.Field{}.Set((&PsStockAvailable{}).TableName(), "reserved_quantity"),
	DependsOnStock: gormcol.Field{}.Set((&PsStockAvailable{}).TableName(), "depends_on_stock"),
	OutOfStock: gormcol.Field{}.Set((&PsStockAvailable{}).TableName(), "out_of_stock"),
	Location: gormcol.Field{}.Set((&PsStockAvailable{}).TableName(), "location"),
}
