add models generation and josn print

This commit is contained in:
2026-03-26 02:22:14 +01:00
parent 7c5a993623
commit af2b276599
319 changed files with 7394 additions and 27 deletions

View File

@@ -0,0 +1,27 @@
// 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
}