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,41 @@
// 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
import (
"time"
)
const TableNamePsDpdpolandPackage = "ps_dpdpoland_package"
// PsDpdpolandPackage mapped from table <ps_dpdpoland_package>
type PsDpdpolandPackage struct {
IDPackage int32 `gorm:"column:id_package;primaryKey;autoIncrement:true" json:"id_package"`
IDPackageWs int32 `gorm:"column:id_package_ws;not null;uniqueIndex:id_package_ws,priority:1" json:"id_package_ws"`
IDOrder int32 `gorm:"column:id_order;not null" json:"id_order"`
SessionID int32 `gorm:"column:sessionId;not null" json:"sessionId"`
SessionType string `gorm:"column:sessionType;not null" json:"sessionType"`
PayerNumber string `gorm:"column:payerNumber;not null" json:"payerNumber"`
IDAddressSender int32 `gorm:"column:id_address_sender;not null" json:"id_address_sender"`
IDAddressDelivery int32 `gorm:"column:id_address_delivery;not null" json:"id_address_delivery"`
CodAmount *float64 `gorm:"column:cod_amount" json:"cod_amount"`
DeclaredValueAmount *float64 `gorm:"column:declaredValue_amount" json:"declaredValue_amount"`
Ref1 *string `gorm:"column:ref1" json:"ref1"`
Ref2 *string `gorm:"column:ref2" json:"ref2"`
AdditionalInfo *string `gorm:"column:additional_info" json:"additional_info"`
LabelsPrinted bool `gorm:"column:labels_printed;not null" json:"labels_printed"`
IDSenderAddress int32 `gorm:"column:id_sender_address;not null" json:"id_sender_address"`
Cud bool `gorm:"column:cud;not null" json:"cud"`
Rod bool `gorm:"column:rod;not null" json:"rod"`
Dpde bool `gorm:"column:dpde;not null" json:"dpde"`
Dpdnd bool `gorm:"column:dpdnd;not null" json:"dpdnd"`
DateAdd time.Time `gorm:"column:date_add;not null" json:"date_add"`
DateUpd time.Time `gorm:"column:date_upd;not null" json:"date_upd"`
}
// TableName PsDpdpolandPackage's table name
func (*PsDpdpolandPackage) TableName() string {
return TableNamePsDpdpolandPackage
}