62 lines
2.7 KiB
Go
62 lines
2.7 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 TableNamePsDpdpolandPriceRule = "ps_dpdpoland_price_rule"
|
|
|
|
// PsDpdpolandPriceRule mapped from table <ps_dpdpoland_price_rule>
|
|
type PsDpdpolandPriceRule struct {
|
|
IDCsv int32 `gorm:"column:id_csv;primaryKey;autoIncrement:true" json:"id_csv"`
|
|
IDShop int32 `gorm:"column:id_shop;not null" json:"id_shop"`
|
|
DateAdd *time.Time `gorm:"column:date_add" json:"date_add"`
|
|
DateUpd *time.Time `gorm:"column:date_upd" json:"date_upd"`
|
|
IsoCountry string `gorm:"column:iso_country;not null" json:"iso_country"`
|
|
PriceFrom float64 `gorm:"column:price_from;not null" json:"price_from"`
|
|
PriceTo float64 `gorm:"column:price_to;not null" json:"price_to"`
|
|
WeightFrom float64 `gorm:"column:weight_from;not null" json:"weight_from"`
|
|
WeightTo float64 `gorm:"column:weight_to;not null" json:"weight_to"`
|
|
ParcelPrice float32 `gorm:"column:parcel_price;not null" json:"parcel_price"`
|
|
CodPrice string `gorm:"column:cod_price;not null" json:"cod_price"`
|
|
IDCarrier string `gorm:"column:id_carrier;not null" json:"id_carrier"`
|
|
}
|
|
|
|
// TableName PsDpdpolandPriceRule's table name
|
|
func (*PsDpdpolandPriceRule) TableName() string {
|
|
return TableNamePsDpdpolandPriceRule
|
|
}
|
|
|
|
var PsDpdpolandPriceRuleCols = struct {
|
|
IDCsv gormcol.Field
|
|
IDShop gormcol.Field
|
|
DateAdd gormcol.Field
|
|
DateUpd gormcol.Field
|
|
IsoCountry gormcol.Field
|
|
PriceFrom gormcol.Field
|
|
PriceTo gormcol.Field
|
|
WeightFrom gormcol.Field
|
|
WeightTo gormcol.Field
|
|
ParcelPrice gormcol.Field
|
|
CodPrice gormcol.Field
|
|
IDCarrier gormcol.Field
|
|
}{
|
|
IDCsv: gormcol.Field{Table: TableNamePsDpdpolandPriceRule, Column: "id_csv"},
|
|
IDShop: gormcol.Field{Table: TableNamePsDpdpolandPriceRule, Column: "id_shop"},
|
|
DateAdd: gormcol.Field{Table: TableNamePsDpdpolandPriceRule, Column: "date_add"},
|
|
DateUpd: gormcol.Field{Table: TableNamePsDpdpolandPriceRule, Column: "date_upd"},
|
|
IsoCountry: gormcol.Field{Table: TableNamePsDpdpolandPriceRule, Column: "iso_country"},
|
|
PriceFrom: gormcol.Field{Table: TableNamePsDpdpolandPriceRule, Column: "price_from"},
|
|
PriceTo: gormcol.Field{Table: TableNamePsDpdpolandPriceRule, Column: "price_to"},
|
|
WeightFrom: gormcol.Field{Table: TableNamePsDpdpolandPriceRule, Column: "weight_from"},
|
|
WeightTo: gormcol.Field{Table: TableNamePsDpdpolandPriceRule, Column: "weight_to"},
|
|
ParcelPrice: gormcol.Field{Table: TableNamePsDpdpolandPriceRule, Column: "parcel_price"},
|
|
CodPrice: gormcol.Field{Table: TableNamePsDpdpolandPriceRule, Column: "cod_price"},
|
|
IDCarrier: gormcol.Field{Table: TableNamePsDpdpolandPriceRule, Column: "id_carrier"},
|
|
}
|