57 lines
2.3 KiB
Go
57 lines
2.3 KiB
Go
// Code generated by gormcol. DO NOT EDIT.
|
|
|
|
package dbmodel
|
|
|
|
import (
|
|
"git.ma-al.com/goc_marek/gormcol"
|
|
"time"
|
|
)
|
|
|
|
const TableNamePsDpdpolandParcel = "ps_dpdpoland_parcel"
|
|
|
|
// PsDpdpolandParcel mapped from table <ps_dpdpoland_parcel>
|
|
type PsDpdpolandParcel struct {
|
|
IDParcel int32 `gorm:"column:id_parcel;primaryKey" json:"id_parcel"`
|
|
IDPackageWs int32 `gorm:"column:id_package_ws;not null" json:"id_package_ws"`
|
|
Waybill string `gorm:"column:waybill;not null" json:"waybill"`
|
|
Content string `gorm:"column:content;not null" json:"content"`
|
|
Weight float64 `gorm:"column:weight;not null" json:"weight"`
|
|
Height float64 `gorm:"column:height;not null" json:"height"`
|
|
Length float64 `gorm:"column:length;not null" json:"length"`
|
|
Width float64 `gorm:"column:width;not null" json:"width"`
|
|
Number int32 `gorm:"column:number;not null" json:"number"`
|
|
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 PsDpdpolandParcel's table name
|
|
func (*PsDpdpolandParcel) TableName() string {
|
|
return TableNamePsDpdpolandParcel
|
|
}
|
|
|
|
var PsDpdpolandParcelCols = struct {
|
|
IDParcel gormcol.Field
|
|
IDPackageWs gormcol.Field
|
|
Waybill gormcol.Field
|
|
Content gormcol.Field
|
|
Weight gormcol.Field
|
|
Height gormcol.Field
|
|
Length gormcol.Field
|
|
Width gormcol.Field
|
|
Number gormcol.Field
|
|
DateAdd gormcol.Field
|
|
DateUpd gormcol.Field
|
|
}{
|
|
IDParcel: gormcol.Field{}.Set((&PsDpdpolandParcel{}).TableName(), "id_parcel"),
|
|
IDPackageWs: gormcol.Field{}.Set((&PsDpdpolandParcel{}).TableName(), "id_package_ws"),
|
|
Waybill: gormcol.Field{}.Set((&PsDpdpolandParcel{}).TableName(), "waybill"),
|
|
Content: gormcol.Field{}.Set((&PsDpdpolandParcel{}).TableName(), "content"),
|
|
Weight: gormcol.Field{}.Set((&PsDpdpolandParcel{}).TableName(), "weight"),
|
|
Height: gormcol.Field{}.Set((&PsDpdpolandParcel{}).TableName(), "height"),
|
|
Length: gormcol.Field{}.Set((&PsDpdpolandParcel{}).TableName(), "length"),
|
|
Width: gormcol.Field{}.Set((&PsDpdpolandParcel{}).TableName(), "width"),
|
|
Number: gormcol.Field{}.Set((&PsDpdpolandParcel{}).TableName(), "number"),
|
|
DateAdd: gormcol.Field{}.Set((&PsDpdpolandParcel{}).TableName(), "date_add"),
|
|
DateUpd: gormcol.Field{}.Set((&PsDpdpolandParcel{}).TableName(), "date_upd"),
|
|
}
|