28 lines
2.1 KiB
Go
28 lines
2.1 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 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
|
|
}
|