28 lines
1.3 KiB
Go
28 lines
1.3 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 TableNamePsStock = "ps_stock"
|
|
|
|
// PsStock mapped from table <ps_stock>
|
|
type PsStock struct {
|
|
IDStock int32 `gorm:"column:id_stock;primaryKey;autoIncrement:true" json:"id_stock"`
|
|
IDWarehouse int32 `gorm:"column:id_warehouse;not null;index:id_warehouse,priority:1" json:"id_warehouse"`
|
|
IDProduct int32 `gorm:"column:id_product;not null;index:id_product,priority:1" json:"id_product"`
|
|
IDProductAttribute int32 `gorm:"column:id_product_attribute;not null;index:id_product_attribute,priority:1" json:"id_product_attribute"`
|
|
Reference string `gorm:"column:reference;not null" json:"reference"`
|
|
Ean13 *string `gorm:"column:ean13" json:"ean13"`
|
|
Isbn *string `gorm:"column:isbn" json:"isbn"`
|
|
Upc *string `gorm:"column:upc" json:"upc"`
|
|
PhysicalQuantity int32 `gorm:"column:physical_quantity;not null" json:"physical_quantity"`
|
|
UsableQuantity int32 `gorm:"column:usable_quantity;not null" json:"usable_quantity"`
|
|
PriceTe *float64 `gorm:"column:price_te;default:0.000000" json:"price_te"`
|
|
}
|
|
|
|
// TableName PsStock's table name
|
|
func (*PsStock) TableName() string {
|
|
return TableNamePsStock
|
|
}
|