96 lines
5.3 KiB
Go
96 lines
5.3 KiB
Go
// Code generated by gormcol. 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{}.Set((&PsInpostShipment{}).TableName(), "id_shipment"),
|
|
OrganizationID: gormcol.Field{}.Set((&PsInpostShipment{}).TableName(), "organization_id"),
|
|
IDOrder: gormcol.Field{}.Set((&PsInpostShipment{}).TableName(), "id_order"),
|
|
Sandbox: gormcol.Field{}.Set((&PsInpostShipment{}).TableName(), "sandbox"),
|
|
ShipxShipmentID: gormcol.Field{}.Set((&PsInpostShipment{}).TableName(), "shipx_shipment_id"),
|
|
Reference: gormcol.Field{}.Set((&PsInpostShipment{}).TableName(), "reference"),
|
|
Email: gormcol.Field{}.Set((&PsInpostShipment{}).TableName(), "email"),
|
|
Phone: gormcol.Field{}.Set((&PsInpostShipment{}).TableName(), "phone"),
|
|
Service: gormcol.Field{}.Set((&PsInpostShipment{}).TableName(), "service"),
|
|
CommercialProductIdentifier: gormcol.Field{}.Set((&PsInpostShipment{}).TableName(), "commercial_product_identifier"),
|
|
SendingMethod: gormcol.Field{}.Set((&PsInpostShipment{}).TableName(), "sending_method"),
|
|
SendingPoint: gormcol.Field{}.Set((&PsInpostShipment{}).TableName(), "sending_point"),
|
|
WeekendDelivery: gormcol.Field{}.Set((&PsInpostShipment{}).TableName(), "weekend_delivery"),
|
|
Template: gormcol.Field{}.Set((&PsInpostShipment{}).TableName(), "template"),
|
|
Dimensions: gormcol.Field{}.Set((&PsInpostShipment{}).TableName(), "dimensions"),
|
|
IDDispatchOrder: gormcol.Field{}.Set((&PsInpostShipment{}).TableName(), "id_dispatch_order"),
|
|
TargetPoint: gormcol.Field{}.Set((&PsInpostShipment{}).TableName(), "target_point"),
|
|
CodAmount: gormcol.Field{}.Set((&PsInpostShipment{}).TableName(), "cod_amount"),
|
|
InsuranceAmount: gormcol.Field{}.Set((&PsInpostShipment{}).TableName(), "insurance_amount"),
|
|
TrackingNumber: gormcol.Field{}.Set((&PsInpostShipment{}).TableName(), "tracking_number"),
|
|
Status: gormcol.Field{}.Set((&PsInpostShipment{}).TableName(), "status"),
|
|
Price: gormcol.Field{}.Set((&PsInpostShipment{}).TableName(), "price"),
|
|
LabelPrinted: gormcol.Field{}.Set((&PsInpostShipment{}).TableName(), "label_printed"),
|
|
DateAdd: gormcol.Field{}.Set((&PsInpostShipment{}).TableName(), "date_add"),
|
|
}
|