25 lines
1.1 KiB
Go
25 lines
1.1 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 prestadb
|
|
|
|
const TableNamePsDelivery = "ps_delivery"
|
|
|
|
// PsDelivery mapped from table <ps_delivery>
|
|
type PsDelivery struct {
|
|
IDDelivery int32 `gorm:"column:id_delivery;primaryKey;autoIncrement:true" json:"id_delivery"`
|
|
IDShop *int32 `gorm:"column:id_shop" json:"id_shop"`
|
|
IDShopGroup *int32 `gorm:"column:id_shop_group" json:"id_shop_group"`
|
|
IDCarrier int32 `gorm:"column:id_carrier;not null;index:id_carrier,priority:1" json:"id_carrier"`
|
|
IDRangePrice *int32 `gorm:"column:id_range_price;index:id_range_price,priority:1" json:"id_range_price"`
|
|
IDRangeWeight *int32 `gorm:"column:id_range_weight;index:id_range_weight,priority:1" json:"id_range_weight"`
|
|
IDZone int32 `gorm:"column:id_zone;not null;index:id_carrier,priority:2;index:id_zone,priority:1" json:"id_zone"`
|
|
Price float64 `gorm:"column:price;not null" json:"price"`
|
|
}
|
|
|
|
// TableName PsDelivery's table name
|
|
func (*PsDelivery) TableName() string {
|
|
return TableNamePsDelivery
|
|
}
|