191 lines
12 KiB
Go
191 lines
12 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 TableNamePsProduct = "ps_product"
|
|
|
|
// PsProduct mapped from table <ps_product>
|
|
type PsProduct struct {
|
|
IDProduct int32 `gorm:"column:id_product;primaryKey;autoIncrement:true;index:product_manufacturer,priority:2" json:"id_product"`
|
|
IDSupplier *int32 `gorm:"column:id_supplier;index:product_supplier,priority:1" json:"id_supplier"`
|
|
IDManufacturer *int32 `gorm:"column:id_manufacturer;index:idx_product_manufacturer,priority:1;index:product_manufacturer,priority:1" json:"id_manufacturer"`
|
|
IDCategoryDefault *int32 `gorm:"column:id_category_default;index:id_category_default,priority:1" json:"id_category_default"`
|
|
IDShopDefault int32 `gorm:"column:id_shop_default;not null;default:1" json:"id_shop_default"`
|
|
IDTaxRulesGroup int32 `gorm:"column:id_tax_rules_group;not null" json:"id_tax_rules_group"`
|
|
OnSale bool `gorm:"column:on_sale;not null" json:"on_sale"`
|
|
OnlineOnly bool `gorm:"column:online_only;not null" json:"online_only"`
|
|
Ean13 *string `gorm:"column:ean13" json:"ean13"`
|
|
Isbn *string `gorm:"column:isbn" json:"isbn"`
|
|
Upc *string `gorm:"column:upc" json:"upc"`
|
|
Ecotax float64 `gorm:"column:ecotax;not null;default:0.000000" json:"ecotax"`
|
|
Quantity int32 `gorm:"column:quantity;not null" json:"quantity"`
|
|
MinimalQuantity int32 `gorm:"column:minimal_quantity;not null;default:1" json:"minimal_quantity"`
|
|
LowStockThreshold *int32 `gorm:"column:low_stock_threshold" json:"low_stock_threshold"`
|
|
LowStockAlert bool `gorm:"column:low_stock_alert;not null" json:"low_stock_alert"`
|
|
Price float64 `gorm:"column:price;not null;default:0.000000" json:"price"`
|
|
WholesalePrice float64 `gorm:"column:wholesale_price;not null;default:0.000000" json:"wholesale_price"`
|
|
Unity *string `gorm:"column:unity" json:"unity"`
|
|
UnitPriceRatio float64 `gorm:"column:unit_price_ratio;not null;default:0.000000" json:"unit_price_ratio"`
|
|
IDUnit int32 `gorm:"column:id_unit;not null" json:"id_unit"`
|
|
AdditionalShippingCost float64 `gorm:"column:additional_shipping_cost;not null;default:0.00" json:"additional_shipping_cost"`
|
|
Reference *string `gorm:"column:reference" json:"reference"`
|
|
SupplierReference *string `gorm:"column:supplier_reference" json:"supplier_reference"`
|
|
Location *string `gorm:"column:location" json:"location"`
|
|
Width float64 `gorm:"column:width;not null;default:0.000000" json:"width"`
|
|
Height float64 `gorm:"column:height;not null;default:0.000000" json:"height"`
|
|
Depth float64 `gorm:"column:depth;not null;default:0.000000" json:"depth"`
|
|
Weight float64 `gorm:"column:weight;not null;default:0.000000" json:"weight"`
|
|
OutOfStock int32 `gorm:"column:out_of_stock;not null;default:2" json:"out_of_stock"`
|
|
AdditionalDeliveryTimes int32 `gorm:"column:additional_delivery_times;not null;default:1" json:"additional_delivery_times"`
|
|
QuantityDiscount *bool `gorm:"column:quantity_discount" json:"quantity_discount"`
|
|
Customizable int32 `gorm:"column:customizable;not null" json:"customizable"`
|
|
UploadableFiles int32 `gorm:"column:uploadable_files;not null" json:"uploadable_files"`
|
|
TextFields int32 `gorm:"column:text_fields;not null" json:"text_fields"`
|
|
Active bool `gorm:"column:active;not null" json:"active"`
|
|
RedirectType string `gorm:"column:redirect_type;not null" json:"redirect_type"`
|
|
IDTypeRedirected int32 `gorm:"column:id_type_redirected;not null" json:"id_type_redirected"`
|
|
AvailableForOrder bool `gorm:"column:available_for_order;not null;default:1" json:"available_for_order"`
|
|
AvailableDate *time.Time `gorm:"column:available_date" json:"available_date"`
|
|
ShowCondition bool `gorm:"column:show_condition;not null" json:"show_condition"`
|
|
Condition string `gorm:"column:condition;not null;default:new" json:"condition"`
|
|
ShowPrice bool `gorm:"column:show_price;not null;default:1" json:"show_price"`
|
|
Indexed bool `gorm:"column:indexed;not null;index:indexed,priority:1" json:"indexed"`
|
|
Visibility string `gorm:"column:visibility;not null;index:idx_product_visibility,priority:1;index:idx_ps_product_visibility,priority:1;index:idx_visibility,priority:1;default:both" json:"visibility"`
|
|
CacheIsPack bool `gorm:"column:cache_is_pack;not null" json:"cache_is_pack"`
|
|
CacheHasAttachments bool `gorm:"column:cache_has_attachments;not null" json:"cache_has_attachments"`
|
|
IsVirtual bool `gorm:"column:is_virtual;not null" json:"is_virtual"`
|
|
CacheDefaultAttribute *int32 `gorm:"column:cache_default_attribute" json:"cache_default_attribute"`
|
|
DateAdd time.Time `gorm:"column:date_add;not null;index:date_add,priority:1" json:"date_add"`
|
|
DateUpd time.Time `gorm:"column:date_upd;not null;index:state,priority:2" json:"date_upd"`
|
|
AdvancedStockManagement bool `gorm:"column:advanced_stock_management;not null" json:"advanced_stock_management"`
|
|
PackStockType int32 `gorm:"column:pack_stock_type;not null;default:3" json:"pack_stock_type"`
|
|
State int32 `gorm:"column:state;not null;index:state,priority:1;default:1" json:"state"`
|
|
DeliveryDays *int32 `gorm:"column:delivery_days" json:"delivery_days"`
|
|
}
|
|
|
|
// TableName PsProduct's table name
|
|
func (*PsProduct) TableName() string {
|
|
return TableNamePsProduct
|
|
}
|
|
|
|
var PsProductCols = struct {
|
|
IDProduct gormcol.Field
|
|
IDSupplier gormcol.Field
|
|
IDManufacturer gormcol.Field
|
|
IDCategoryDefault gormcol.Field
|
|
IDShopDefault gormcol.Field
|
|
IDTaxRulesGroup gormcol.Field
|
|
OnSale gormcol.Field
|
|
OnlineOnly gormcol.Field
|
|
Ean13 gormcol.Field
|
|
Isbn gormcol.Field
|
|
Upc gormcol.Field
|
|
Ecotax gormcol.Field
|
|
Quantity gormcol.Field
|
|
MinimalQuantity gormcol.Field
|
|
LowStockThreshold gormcol.Field
|
|
LowStockAlert gormcol.Field
|
|
Price gormcol.Field
|
|
WholesalePrice gormcol.Field
|
|
Unity gormcol.Field
|
|
UnitPriceRatio gormcol.Field
|
|
IDUnit gormcol.Field
|
|
AdditionalShippingCost gormcol.Field
|
|
Reference gormcol.Field
|
|
SupplierReference gormcol.Field
|
|
Location gormcol.Field
|
|
Width gormcol.Field
|
|
Height gormcol.Field
|
|
Depth gormcol.Field
|
|
Weight gormcol.Field
|
|
OutOfStock gormcol.Field
|
|
AdditionalDeliveryTimes gormcol.Field
|
|
QuantityDiscount gormcol.Field
|
|
Customizable gormcol.Field
|
|
UploadableFiles gormcol.Field
|
|
TextFields gormcol.Field
|
|
Active gormcol.Field
|
|
RedirectType gormcol.Field
|
|
IDTypeRedirected gormcol.Field
|
|
AvailableForOrder gormcol.Field
|
|
AvailableDate gormcol.Field
|
|
ShowCondition gormcol.Field
|
|
Condition gormcol.Field
|
|
ShowPrice gormcol.Field
|
|
Indexed gormcol.Field
|
|
Visibility gormcol.Field
|
|
CacheIsPack gormcol.Field
|
|
CacheHasAttachments gormcol.Field
|
|
IsVirtual gormcol.Field
|
|
CacheDefaultAttribute gormcol.Field
|
|
DateAdd gormcol.Field
|
|
DateUpd gormcol.Field
|
|
AdvancedStockManagement gormcol.Field
|
|
PackStockType gormcol.Field
|
|
State gormcol.Field
|
|
DeliveryDays gormcol.Field
|
|
}{
|
|
IDProduct: gormcol.Field{Table: TableNamePsProduct, Column: "id_product"},
|
|
IDSupplier: gormcol.Field{Table: TableNamePsProduct, Column: "id_supplier"},
|
|
IDManufacturer: gormcol.Field{Table: TableNamePsProduct, Column: "id_manufacturer"},
|
|
IDCategoryDefault: gormcol.Field{Table: TableNamePsProduct, Column: "id_category_default"},
|
|
IDShopDefault: gormcol.Field{Table: TableNamePsProduct, Column: "id_shop_default"},
|
|
IDTaxRulesGroup: gormcol.Field{Table: TableNamePsProduct, Column: "id_tax_rules_group"},
|
|
OnSale: gormcol.Field{Table: TableNamePsProduct, Column: "on_sale"},
|
|
OnlineOnly: gormcol.Field{Table: TableNamePsProduct, Column: "online_only"},
|
|
Ean13: gormcol.Field{Table: TableNamePsProduct, Column: "ean13"},
|
|
Isbn: gormcol.Field{Table: TableNamePsProduct, Column: "isbn"},
|
|
Upc: gormcol.Field{Table: TableNamePsProduct, Column: "upc"},
|
|
Ecotax: gormcol.Field{Table: TableNamePsProduct, Column: "ecotax"},
|
|
Quantity: gormcol.Field{Table: TableNamePsProduct, Column: "quantity"},
|
|
MinimalQuantity: gormcol.Field{Table: TableNamePsProduct, Column: "minimal_quantity"},
|
|
LowStockThreshold: gormcol.Field{Table: TableNamePsProduct, Column: "low_stock_threshold"},
|
|
LowStockAlert: gormcol.Field{Table: TableNamePsProduct, Column: "low_stock_alert"},
|
|
Price: gormcol.Field{Table: TableNamePsProduct, Column: "price"},
|
|
WholesalePrice: gormcol.Field{Table: TableNamePsProduct, Column: "wholesale_price"},
|
|
Unity: gormcol.Field{Table: TableNamePsProduct, Column: "unity"},
|
|
UnitPriceRatio: gormcol.Field{Table: TableNamePsProduct, Column: "unit_price_ratio"},
|
|
IDUnit: gormcol.Field{Table: TableNamePsProduct, Column: "id_unit"},
|
|
AdditionalShippingCost: gormcol.Field{Table: TableNamePsProduct, Column: "additional_shipping_cost"},
|
|
Reference: gormcol.Field{Table: TableNamePsProduct, Column: "reference"},
|
|
SupplierReference: gormcol.Field{Table: TableNamePsProduct, Column: "supplier_reference"},
|
|
Location: gormcol.Field{Table: TableNamePsProduct, Column: "location"},
|
|
Width: gormcol.Field{Table: TableNamePsProduct, Column: "width"},
|
|
Height: gormcol.Field{Table: TableNamePsProduct, Column: "height"},
|
|
Depth: gormcol.Field{Table: TableNamePsProduct, Column: "depth"},
|
|
Weight: gormcol.Field{Table: TableNamePsProduct, Column: "weight"},
|
|
OutOfStock: gormcol.Field{Table: TableNamePsProduct, Column: "out_of_stock"},
|
|
AdditionalDeliveryTimes: gormcol.Field{Table: TableNamePsProduct, Column: "additional_delivery_times"},
|
|
QuantityDiscount: gormcol.Field{Table: TableNamePsProduct, Column: "quantity_discount"},
|
|
Customizable: gormcol.Field{Table: TableNamePsProduct, Column: "customizable"},
|
|
UploadableFiles: gormcol.Field{Table: TableNamePsProduct, Column: "uploadable_files"},
|
|
TextFields: gormcol.Field{Table: TableNamePsProduct, Column: "text_fields"},
|
|
Active: gormcol.Field{Table: TableNamePsProduct, Column: "active"},
|
|
RedirectType: gormcol.Field{Table: TableNamePsProduct, Column: "redirect_type"},
|
|
IDTypeRedirected: gormcol.Field{Table: TableNamePsProduct, Column: "id_type_redirected"},
|
|
AvailableForOrder: gormcol.Field{Table: TableNamePsProduct, Column: "available_for_order"},
|
|
AvailableDate: gormcol.Field{Table: TableNamePsProduct, Column: "available_date"},
|
|
ShowCondition: gormcol.Field{Table: TableNamePsProduct, Column: "show_condition"},
|
|
Condition: gormcol.Field{Table: TableNamePsProduct, Column: "condition"},
|
|
ShowPrice: gormcol.Field{Table: TableNamePsProduct, Column: "show_price"},
|
|
Indexed: gormcol.Field{Table: TableNamePsProduct, Column: "indexed"},
|
|
Visibility: gormcol.Field{Table: TableNamePsProduct, Column: "visibility"},
|
|
CacheIsPack: gormcol.Field{Table: TableNamePsProduct, Column: "cache_is_pack"},
|
|
CacheHasAttachments: gormcol.Field{Table: TableNamePsProduct, Column: "cache_has_attachments"},
|
|
IsVirtual: gormcol.Field{Table: TableNamePsProduct, Column: "is_virtual"},
|
|
CacheDefaultAttribute: gormcol.Field{Table: TableNamePsProduct, Column: "cache_default_attribute"},
|
|
DateAdd: gormcol.Field{Table: TableNamePsProduct, Column: "date_add"},
|
|
DateUpd: gormcol.Field{Table: TableNamePsProduct, Column: "date_upd"},
|
|
AdvancedStockManagement: gormcol.Field{Table: TableNamePsProduct, Column: "advanced_stock_management"},
|
|
PackStockType: gormcol.Field{Table: TableNamePsProduct, Column: "pack_stock_type"},
|
|
State: gormcol.Field{Table: TableNamePsProduct, Column: "state"},
|
|
DeliveryDays: gormcol.Field{Table: TableNamePsProduct, Column: "delivery_days"},
|
|
}
|