80 lines
4.9 KiB
Go
80 lines
4.9 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 TableNamePsSpecificPrice = "ps_specific_price"
|
|
|
|
// PsSpecificPrice mapped from table <ps_specific_price>
|
|
type PsSpecificPrice struct {
|
|
IDSpecificPrice int32 `gorm:"column:id_specific_price;primaryKey;autoIncrement:true" json:"id_specific_price"`
|
|
IDSpecificPriceRule int32 `gorm:"column:id_specific_price_rule;not null;uniqueIndex:id_product_2,priority:13;index:id_specific_price_rule,priority:1" json:"id_specific_price_rule"`
|
|
IDCart int32 `gorm:"column:id_cart;not null;uniqueIndex:id_product_2,priority:4;index:id_cart,priority:1" json:"id_cart"`
|
|
IDProduct int32 `gorm:"column:id_product;not null;uniqueIndex:id_product_2,priority:1;index:id_product,priority:1" json:"id_product"`
|
|
IDShop int32 `gorm:"column:id_shop;not null;uniqueIndex:id_product_2,priority:7;index:id_product,priority:2;index:id_shop,priority:1;default:1" json:"id_shop"`
|
|
IDShopGroup int32 `gorm:"column:id_shop_group;not null;uniqueIndex:id_product_2,priority:8" json:"id_shop_group"`
|
|
IDCurrency int32 `gorm:"column:id_currency;not null;uniqueIndex:id_product_2,priority:9;index:id_product,priority:3" json:"id_currency"`
|
|
IDCountry int32 `gorm:"column:id_country;not null;uniqueIndex:id_product_2,priority:10;index:id_product,priority:4" json:"id_country"`
|
|
IDGroup int32 `gorm:"column:id_group;not null;uniqueIndex:id_product_2,priority:11;index:id_product,priority:5" json:"id_group"`
|
|
IDCustomer int32 `gorm:"column:id_customer;not null;uniqueIndex:id_product_2,priority:3;index:id_customer,priority:1;index:id_product,priority:6" json:"id_customer"`
|
|
IDProductAttribute int32 `gorm:"column:id_product_attribute;not null;uniqueIndex:id_product_2,priority:2;index:id_product_attribute,priority:1" json:"id_product_attribute"`
|
|
Price float64 `gorm:"column:price;not null" json:"price"`
|
|
FromQuantity int32 `gorm:"column:from_quantity;not null;uniqueIndex:id_product_2,priority:12;index:from_quantity,priority:1;index:id_product,priority:7" json:"from_quantity"`
|
|
Reduction float64 `gorm:"column:reduction;not null" json:"reduction"`
|
|
ReductionTax bool `gorm:"column:reduction_tax;not null;default:1" json:"reduction_tax"`
|
|
ReductionType string `gorm:"column:reduction_type;not null" json:"reduction_type"`
|
|
From time.Time `gorm:"column:from;not null;uniqueIndex:id_product_2,priority:5;index:from,priority:1;index:id_product,priority:8" json:"from"`
|
|
To time.Time `gorm:"column:to;not null;uniqueIndex:id_product_2,priority:6;index:id_product,priority:9;index:to,priority:1" json:"to"`
|
|
}
|
|
|
|
// TableName PsSpecificPrice's table name
|
|
func (*PsSpecificPrice) TableName() string {
|
|
return TableNamePsSpecificPrice
|
|
}
|
|
|
|
var PsSpecificPriceCols = struct {
|
|
IDSpecificPrice gormcol.Field
|
|
IDSpecificPriceRule gormcol.Field
|
|
IDCart gormcol.Field
|
|
IDProduct gormcol.Field
|
|
IDShop gormcol.Field
|
|
IDShopGroup gormcol.Field
|
|
IDCurrency gormcol.Field
|
|
IDCountry gormcol.Field
|
|
IDGroup gormcol.Field
|
|
IDCustomer gormcol.Field
|
|
IDProductAttribute gormcol.Field
|
|
Price gormcol.Field
|
|
FromQuantity gormcol.Field
|
|
Reduction gormcol.Field
|
|
ReductionTax gormcol.Field
|
|
ReductionType gormcol.Field
|
|
From gormcol.Field
|
|
To gormcol.Field
|
|
}{
|
|
IDSpecificPrice: gormcol.Field{Table: TableNamePsSpecificPrice, Column: "id_specific_price"},
|
|
IDSpecificPriceRule: gormcol.Field{Table: TableNamePsSpecificPrice, Column: "id_specific_price_rule"},
|
|
IDCart: gormcol.Field{Table: TableNamePsSpecificPrice, Column: "id_cart"},
|
|
IDProduct: gormcol.Field{Table: TableNamePsSpecificPrice, Column: "id_product"},
|
|
IDShop: gormcol.Field{Table: TableNamePsSpecificPrice, Column: "id_shop"},
|
|
IDShopGroup: gormcol.Field{Table: TableNamePsSpecificPrice, Column: "id_shop_group"},
|
|
IDCurrency: gormcol.Field{Table: TableNamePsSpecificPrice, Column: "id_currency"},
|
|
IDCountry: gormcol.Field{Table: TableNamePsSpecificPrice, Column: "id_country"},
|
|
IDGroup: gormcol.Field{Table: TableNamePsSpecificPrice, Column: "id_group"},
|
|
IDCustomer: gormcol.Field{Table: TableNamePsSpecificPrice, Column: "id_customer"},
|
|
IDProductAttribute: gormcol.Field{Table: TableNamePsSpecificPrice, Column: "id_product_attribute"},
|
|
Price: gormcol.Field{Table: TableNamePsSpecificPrice, Column: "price"},
|
|
FromQuantity: gormcol.Field{Table: TableNamePsSpecificPrice, Column: "from_quantity"},
|
|
Reduction: gormcol.Field{Table: TableNamePsSpecificPrice, Column: "reduction"},
|
|
ReductionTax: gormcol.Field{Table: TableNamePsSpecificPrice, Column: "reduction_tax"},
|
|
ReductionType: gormcol.Field{Table: TableNamePsSpecificPrice, Column: "reduction_type"},
|
|
From: gormcol.Field{Table: TableNamePsSpecificPrice, Column: "from"},
|
|
To: gormcol.Field{Table: TableNamePsSpecificPrice, Column: "to"},
|
|
}
|