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,24 @@
// 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 TableNamePsDelivery = "ps_delivery"
// PsDelivery mapped from table <ps_delivery>
type PsDelivery struct {
IDDelivery int32 `gorm:"column:id_delivery;primaryKey;autoIncrement:true" json:"id_delivery"`
IDShop *int32 `gorm:"column:id_shop" json:"id_shop"`
IDShopGroup *int32 `gorm:"column:id_shop_group" json:"id_shop_group"`
IDCarrier int32 `gorm:"column:id_carrier;not null;index:id_carrier,priority:1" json:"id_carrier"`
IDRangePrice *int32 `gorm:"column:id_range_price;index:id_range_price,priority:1" json:"id_range_price"`
IDRangeWeight *int32 `gorm:"column:id_range_weight;index:id_range_weight,priority:1" json:"id_range_weight"`
IDZone int32 `gorm:"column:id_zone;not null;index:id_carrier,priority:2;index:id_zone,priority:1" json:"id_zone"`
Price float64 `gorm:"column:price;not null" json:"price"`
}
// TableName PsDelivery's table name
func (*PsDelivery) TableName() string {
return TableNamePsDelivery
}