98 lines
5.4 KiB
Go
98 lines
5.4 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 dbmodel
|
|
|
|
import (
|
|
"git.ma-al.com/goc_marek/gormcol"
|
|
"time"
|
|
)
|
|
|
|
const TableNamePsInpostShipment = "ps_inpost_shipment"
|
|
|
|
// PsInpostShipment mapped from table <ps_inpost_shipment>
|
|
type PsInpostShipment struct {
|
|
IDShipment int32 `gorm:"column:id_shipment;primaryKey;autoIncrement:true" json:"id_shipment"`
|
|
OrganizationID int32 `gorm:"column:organization_id;not null" json:"organization_id"`
|
|
IDOrder int32 `gorm:"column:id_order;not null;index:id_order,priority:1" json:"id_order"`
|
|
Sandbox bool `gorm:"column:sandbox;not null" json:"sandbox"`
|
|
ShipxShipmentID int32 `gorm:"column:shipx_shipment_id;not null" json:"shipx_shipment_id"`
|
|
Reference *string `gorm:"column:reference" json:"reference"`
|
|
Email string `gorm:"column:email;not null" json:"email"`
|
|
Phone string `gorm:"column:phone;not null" json:"phone"`
|
|
Service string `gorm:"column:service;not null" json:"service"`
|
|
CommercialProductIdentifier *string `gorm:"column:commercial_product_identifier" json:"commercial_product_identifier"`
|
|
SendingMethod *string `gorm:"column:sending_method" json:"sending_method"`
|
|
SendingPoint *string `gorm:"column:sending_point" json:"sending_point"`
|
|
WeekendDelivery *bool `gorm:"column:weekend_delivery" json:"weekend_delivery"`
|
|
Template *string `gorm:"column:template" json:"template"`
|
|
Dimensions *string `gorm:"column:dimensions" json:"dimensions"`
|
|
IDDispatchOrder *int32 `gorm:"column:id_dispatch_order;index:id_dispatch_order,priority:1" json:"id_dispatch_order"`
|
|
TargetPoint *string `gorm:"column:target_point" json:"target_point"`
|
|
CodAmount *float64 `gorm:"column:cod_amount" json:"cod_amount"`
|
|
InsuranceAmount *float64 `gorm:"column:insurance_amount" json:"insurance_amount"`
|
|
TrackingNumber *string `gorm:"column:tracking_number" json:"tracking_number"`
|
|
Status *string `gorm:"column:status" json:"status"`
|
|
Price *float64 `gorm:"column:price" json:"price"`
|
|
LabelPrinted bool `gorm:"column:label_printed;not null" json:"label_printed"`
|
|
DateAdd time.Time `gorm:"column:date_add;not null" json:"date_add"`
|
|
}
|
|
|
|
// TableName PsInpostShipment's table name
|
|
func (*PsInpostShipment) TableName() string {
|
|
return TableNamePsInpostShipment
|
|
}
|
|
|
|
var PsInpostShipmentCols = struct {
|
|
IDShipment gormcol.Field
|
|
OrganizationID gormcol.Field
|
|
IDOrder gormcol.Field
|
|
Sandbox gormcol.Field
|
|
ShipxShipmentID gormcol.Field
|
|
Reference gormcol.Field
|
|
Email gormcol.Field
|
|
Phone gormcol.Field
|
|
Service gormcol.Field
|
|
CommercialProductIdentifier gormcol.Field
|
|
SendingMethod gormcol.Field
|
|
SendingPoint gormcol.Field
|
|
WeekendDelivery gormcol.Field
|
|
Template gormcol.Field
|
|
Dimensions gormcol.Field
|
|
IDDispatchOrder gormcol.Field
|
|
TargetPoint gormcol.Field
|
|
CodAmount gormcol.Field
|
|
InsuranceAmount gormcol.Field
|
|
TrackingNumber gormcol.Field
|
|
Status gormcol.Field
|
|
Price gormcol.Field
|
|
LabelPrinted gormcol.Field
|
|
DateAdd gormcol.Field
|
|
}{
|
|
IDShipment: gormcol.Field{Table: TableNamePsInpostShipment, Column: "id_shipment"},
|
|
OrganizationID: gormcol.Field{Table: TableNamePsInpostShipment, Column: "organization_id"},
|
|
IDOrder: gormcol.Field{Table: TableNamePsInpostShipment, Column: "id_order"},
|
|
Sandbox: gormcol.Field{Table: TableNamePsInpostShipment, Column: "sandbox"},
|
|
ShipxShipmentID: gormcol.Field{Table: TableNamePsInpostShipment, Column: "shipx_shipment_id"},
|
|
Reference: gormcol.Field{Table: TableNamePsInpostShipment, Column: "reference"},
|
|
Email: gormcol.Field{Table: TableNamePsInpostShipment, Column: "email"},
|
|
Phone: gormcol.Field{Table: TableNamePsInpostShipment, Column: "phone"},
|
|
Service: gormcol.Field{Table: TableNamePsInpostShipment, Column: "service"},
|
|
CommercialProductIdentifier: gormcol.Field{Table: TableNamePsInpostShipment, Column: "commercial_product_identifier"},
|
|
SendingMethod: gormcol.Field{Table: TableNamePsInpostShipment, Column: "sending_method"},
|
|
SendingPoint: gormcol.Field{Table: TableNamePsInpostShipment, Column: "sending_point"},
|
|
WeekendDelivery: gormcol.Field{Table: TableNamePsInpostShipment, Column: "weekend_delivery"},
|
|
Template: gormcol.Field{Table: TableNamePsInpostShipment, Column: "template"},
|
|
Dimensions: gormcol.Field{Table: TableNamePsInpostShipment, Column: "dimensions"},
|
|
IDDispatchOrder: gormcol.Field{Table: TableNamePsInpostShipment, Column: "id_dispatch_order"},
|
|
TargetPoint: gormcol.Field{Table: TableNamePsInpostShipment, Column: "target_point"},
|
|
CodAmount: gormcol.Field{Table: TableNamePsInpostShipment, Column: "cod_amount"},
|
|
InsuranceAmount: gormcol.Field{Table: TableNamePsInpostShipment, Column: "insurance_amount"},
|
|
TrackingNumber: gormcol.Field{Table: TableNamePsInpostShipment, Column: "tracking_number"},
|
|
Status: gormcol.Field{Table: TableNamePsInpostShipment, Column: "status"},
|
|
Price: gormcol.Field{Table: TableNamePsInpostShipment, Column: "price"},
|
|
LabelPrinted: gormcol.Field{Table: TableNamePsInpostShipment, Column: "label_printed"},
|
|
DateAdd: gormcol.Field{Table: TableNamePsInpostShipment, Column: "date_add"},
|
|
}
|