87 lines
4.5 KiB
Go
87 lines
4.5 KiB
Go
// Code generated by gormcol. DO NOT EDIT.
|
|
|
|
package dbmodel
|
|
|
|
import (
|
|
"git.ma-al.com/goc_marek/gormcol"
|
|
"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
|
|
}
|
|
|
|
var PsDpdpolandPackageCols = struct {
|
|
IDPackage gormcol.Field
|
|
IDPackageWs gormcol.Field
|
|
IDOrder gormcol.Field
|
|
SessionID gormcol.Field
|
|
SessionType gormcol.Field
|
|
PayerNumber gormcol.Field
|
|
IDAddressSender gormcol.Field
|
|
IDAddressDelivery gormcol.Field
|
|
CodAmount gormcol.Field
|
|
DeclaredValueAmount gormcol.Field
|
|
Ref1 gormcol.Field
|
|
Ref2 gormcol.Field
|
|
AdditionalInfo gormcol.Field
|
|
LabelsPrinted gormcol.Field
|
|
IDSenderAddress gormcol.Field
|
|
Cud gormcol.Field
|
|
Rod gormcol.Field
|
|
Dpde gormcol.Field
|
|
Dpdnd gormcol.Field
|
|
DateAdd gormcol.Field
|
|
DateUpd gormcol.Field
|
|
}{
|
|
IDPackage: gormcol.Field{}.Set((&PsDpdpolandPackage{}).TableName(), "id_package"),
|
|
IDPackageWs: gormcol.Field{}.Set((&PsDpdpolandPackage{}).TableName(), "id_package_ws"),
|
|
IDOrder: gormcol.Field{}.Set((&PsDpdpolandPackage{}).TableName(), "id_order"),
|
|
SessionID: gormcol.Field{}.Set((&PsDpdpolandPackage{}).TableName(), "sessionId"),
|
|
SessionType: gormcol.Field{}.Set((&PsDpdpolandPackage{}).TableName(), "sessionType"),
|
|
PayerNumber: gormcol.Field{}.Set((&PsDpdpolandPackage{}).TableName(), "payerNumber"),
|
|
IDAddressSender: gormcol.Field{}.Set((&PsDpdpolandPackage{}).TableName(), "id_address_sender"),
|
|
IDAddressDelivery: gormcol.Field{}.Set((&PsDpdpolandPackage{}).TableName(), "id_address_delivery"),
|
|
CodAmount: gormcol.Field{}.Set((&PsDpdpolandPackage{}).TableName(), "cod_amount"),
|
|
DeclaredValueAmount: gormcol.Field{}.Set((&PsDpdpolandPackage{}).TableName(), "declaredValue_amount"),
|
|
Ref1: gormcol.Field{}.Set((&PsDpdpolandPackage{}).TableName(), "ref1"),
|
|
Ref2: gormcol.Field{}.Set((&PsDpdpolandPackage{}).TableName(), "ref2"),
|
|
AdditionalInfo: gormcol.Field{}.Set((&PsDpdpolandPackage{}).TableName(), "additional_info"),
|
|
LabelsPrinted: gormcol.Field{}.Set((&PsDpdpolandPackage{}).TableName(), "labels_printed"),
|
|
IDSenderAddress: gormcol.Field{}.Set((&PsDpdpolandPackage{}).TableName(), "id_sender_address"),
|
|
Cud: gormcol.Field{}.Set((&PsDpdpolandPackage{}).TableName(), "cud"),
|
|
Rod: gormcol.Field{}.Set((&PsDpdpolandPackage{}).TableName(), "rod"),
|
|
Dpde: gormcol.Field{}.Set((&PsDpdpolandPackage{}).TableName(), "dpde"),
|
|
Dpdnd: gormcol.Field{}.Set((&PsDpdpolandPackage{}).TableName(), "dpdnd"),
|
|
DateAdd: gormcol.Field{}.Set((&PsDpdpolandPackage{}).TableName(), "date_add"),
|
|
DateUpd: gormcol.Field{}.Set((&PsDpdpolandPackage{}).TableName(), "date_upd"),
|
|
}
|