56 lines
3.5 KiB
Go
56 lines
3.5 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 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{Table: TableNamePsStockAvailable, Column: "id_stock_available"},
|
|
IDProduct: gormcol.Field{Table: TableNamePsStockAvailable, Column: "id_product"},
|
|
IDProductAttribute: gormcol.Field{Table: TableNamePsStockAvailable, Column: "id_product_attribute"},
|
|
IDShop: gormcol.Field{Table: TableNamePsStockAvailable, Column: "id_shop"},
|
|
IDShopGroup: gormcol.Field{Table: TableNamePsStockAvailable, Column: "id_shop_group"},
|
|
Quantity: gormcol.Field{Table: TableNamePsStockAvailable, Column: "quantity"},
|
|
PhysicalQuantity: gormcol.Field{Table: TableNamePsStockAvailable, Column: "physical_quantity"},
|
|
ReservedQuantity: gormcol.Field{Table: TableNamePsStockAvailable, Column: "reserved_quantity"},
|
|
DependsOnStock: gormcol.Field{Table: TableNamePsStockAvailable, Column: "depends_on_stock"},
|
|
OutOfStock: gormcol.Field{Table: TableNamePsStockAvailable, Column: "out_of_stock"},
|
|
Location: gormcol.Field{Table: TableNamePsStockAvailable, Column: "location"},
|
|
}
|