// Code generated by gormcol. DO NOT EDIT.

package dbmodel

import (
	"git.ma-al.com/goc_marek/gormcol"
	"time"
)

const TableNamePsProductShop = "ps_product_shop"

// PsProductShop mapped from table <ps_product_shop>
type PsProductShop struct {
	IDProduct               int32      `gorm:"column:id_product;primaryKey;index:idx_product_shop_active,priority:1;index:idx_ps_product_shop,priority:1;index:indexed,priority:3" json:"id_product"`
	IDShop                  int32      `gorm:"column:id_shop;primaryKey;index:idx_product_shop_active,priority:2;index:idx_ps_product_shop,priority:2" json:"id_shop"`
	IDCategoryDefault       *int32     `gorm:"column:id_category_default;index:id_category_default,priority:1" json:"id_category_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"`
	Ecotax                  float64    `gorm:"column:ecotax;not null;default:0.000000" json:"ecotax"`
	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"`
	AdditionalShippingCost  float64    `gorm:"column:additional_shipping_cost;not null;default:0.00" json:"additional_shipping_cost"`
	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;index:date_add,priority:2;index:idx_product_shop_active,priority:3;index:idx_ps_product_shop,priority:3;index:indexed,priority:2" 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;default:1" 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:date_add,priority:3;default:both" json:"visibility"`
	CacheDefaultAttribute   *int32     `gorm:"column:cache_default_attribute" json:"cache_default_attribute"`
	AdvancedStockManagement bool       `gorm:"column:advanced_stock_management;not null" json:"advanced_stock_management"`
	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" json:"date_upd"`
	PackStockType           int32      `gorm:"column:pack_stock_type;not null;default:3" json:"pack_stock_type"`
}

// TableName PsProductShop's table name
func (*PsProductShop) TableName() string {
	return TableNamePsProductShop
}

var PsProductShopCols = struct {
	IDProduct gormcol.Field
	IDShop gormcol.Field
	IDCategoryDefault gormcol.Field
	IDTaxRulesGroup gormcol.Field
	OnSale gormcol.Field
	OnlineOnly gormcol.Field
	Ecotax gormcol.Field
	MinimalQuantity gormcol.Field
	LowStockThreshold gormcol.Field
	LowStockAlert gormcol.Field
	Price gormcol.Field
	WholesalePrice gormcol.Field
	Unity gormcol.Field
	UnitPriceRatio gormcol.Field
	AdditionalShippingCost 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
	CacheDefaultAttribute gormcol.Field
	AdvancedStockManagement gormcol.Field
	DateAdd gormcol.Field
	DateUpd gormcol.Field
	PackStockType gormcol.Field
}{
	IDProduct: gormcol.Field{}.Set((&PsProductShop{}).TableName(), "id_product"),
	IDShop: gormcol.Field{}.Set((&PsProductShop{}).TableName(), "id_shop"),
	IDCategoryDefault: gormcol.Field{}.Set((&PsProductShop{}).TableName(), "id_category_default"),
	IDTaxRulesGroup: gormcol.Field{}.Set((&PsProductShop{}).TableName(), "id_tax_rules_group"),
	OnSale: gormcol.Field{}.Set((&PsProductShop{}).TableName(), "on_sale"),
	OnlineOnly: gormcol.Field{}.Set((&PsProductShop{}).TableName(), "online_only"),
	Ecotax: gormcol.Field{}.Set((&PsProductShop{}).TableName(), "ecotax"),
	MinimalQuantity: gormcol.Field{}.Set((&PsProductShop{}).TableName(), "minimal_quantity"),
	LowStockThreshold: gormcol.Field{}.Set((&PsProductShop{}).TableName(), "low_stock_threshold"),
	LowStockAlert: gormcol.Field{}.Set((&PsProductShop{}).TableName(), "low_stock_alert"),
	Price: gormcol.Field{}.Set((&PsProductShop{}).TableName(), "price"),
	WholesalePrice: gormcol.Field{}.Set((&PsProductShop{}).TableName(), "wholesale_price"),
	Unity: gormcol.Field{}.Set((&PsProductShop{}).TableName(), "unity"),
	UnitPriceRatio: gormcol.Field{}.Set((&PsProductShop{}).TableName(), "unit_price_ratio"),
	AdditionalShippingCost: gormcol.Field{}.Set((&PsProductShop{}).TableName(), "additional_shipping_cost"),
	Customizable: gormcol.Field{}.Set((&PsProductShop{}).TableName(), "customizable"),
	UploadableFiles: gormcol.Field{}.Set((&PsProductShop{}).TableName(), "uploadable_files"),
	TextFields: gormcol.Field{}.Set((&PsProductShop{}).TableName(), "text_fields"),
	Active: gormcol.Field{}.Set((&PsProductShop{}).TableName(), "active"),
	RedirectType: gormcol.Field{}.Set((&PsProductShop{}).TableName(), "redirect_type"),
	IDTypeRedirected: gormcol.Field{}.Set((&PsProductShop{}).TableName(), "id_type_redirected"),
	AvailableForOrder: gormcol.Field{}.Set((&PsProductShop{}).TableName(), "available_for_order"),
	AvailableDate: gormcol.Field{}.Set((&PsProductShop{}).TableName(), "available_date"),
	ShowCondition: gormcol.Field{}.Set((&PsProductShop{}).TableName(), "show_condition"),
	Condition: gormcol.Field{}.Set((&PsProductShop{}).TableName(), "condition"),
	ShowPrice: gormcol.Field{}.Set((&PsProductShop{}).TableName(), "show_price"),
	Indexed: gormcol.Field{}.Set((&PsProductShop{}).TableName(), "indexed"),
	Visibility: gormcol.Field{}.Set((&PsProductShop{}).TableName(), "visibility"),
	CacheDefaultAttribute: gormcol.Field{}.Set((&PsProductShop{}).TableName(), "cache_default_attribute"),
	AdvancedStockManagement: gormcol.Field{}.Set((&PsProductShop{}).TableName(), "advanced_stock_management"),
	DateAdd: gormcol.Field{}.Set((&PsProductShop{}).TableName(), "date_add"),
	DateUpd: gormcol.Field{}.Set((&PsProductShop{}).TableName(), "date_upd"),
	PackStockType: gormcol.Field{}.Set((&PsProductShop{}).TableName(), "pack_stock_type"),
}
