76 lines
6.0 KiB
Go
76 lines
6.0 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
|
|
|
|
import (
|
|
"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
|
|
}
|