// Code generated by gormcol. DO NOT EDIT.

package dbmodel

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

const TableNamePsProductAttributeShop = "ps_product_attribute_shop"

// PsProductAttributeShop mapped from table <ps_product_attribute_shop>
type PsProductAttributeShop struct {
	IDProduct          int32      `gorm:"column:id_product;not null;uniqueIndex:id_product,priority:1" json:"id_product"`
	IDProductAttribute int32      `gorm:"column:id_product_attribute;primaryKey" json:"id_product_attribute"`
	IDShop             int32      `gorm:"column:id_shop;primaryKey;uniqueIndex:id_product,priority:2" json:"id_shop"`
	WholesalePrice     float64    `gorm:"column:wholesale_price;not null;default:0.000000" json:"wholesale_price"`
	Price              float64    `gorm:"column:price;not null;default:0.000000" json:"price"`
	Ecotax             float64    `gorm:"column:ecotax;not null;default:0.000000" json:"ecotax"`
	Weight             float64    `gorm:"column:weight;not null;default:0.000000" json:"weight"`
	UnitPriceImpact    float64    `gorm:"column:unit_price_impact;not null;default:0.000000" json:"unit_price_impact"`
	DefaultOn          *bool      `gorm:"column:default_on;uniqueIndex:id_product,priority:3" json:"default_on"`
	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"`
	AvailableDate      *time.Time `gorm:"column:available_date" json:"available_date"`
}

// TableName PsProductAttributeShop's table name
func (*PsProductAttributeShop) TableName() string {
	return TableNamePsProductAttributeShop
}

var PsProductAttributeShopCols = struct {
	IDProduct gormcol.Field
	IDProductAttribute gormcol.Field
	IDShop gormcol.Field
	WholesalePrice gormcol.Field
	Price gormcol.Field
	Ecotax gormcol.Field
	Weight gormcol.Field
	UnitPriceImpact gormcol.Field
	DefaultOn gormcol.Field
	MinimalQuantity gormcol.Field
	LowStockThreshold gormcol.Field
	LowStockAlert gormcol.Field
	AvailableDate gormcol.Field
}{
	IDProduct: gormcol.Field{}.Set((&PsProductAttributeShop{}).TableName(), "id_product"),
	IDProductAttribute: gormcol.Field{}.Set((&PsProductAttributeShop{}).TableName(), "id_product_attribute"),
	IDShop: gormcol.Field{}.Set((&PsProductAttributeShop{}).TableName(), "id_shop"),
	WholesalePrice: gormcol.Field{}.Set((&PsProductAttributeShop{}).TableName(), "wholesale_price"),
	Price: gormcol.Field{}.Set((&PsProductAttributeShop{}).TableName(), "price"),
	Ecotax: gormcol.Field{}.Set((&PsProductAttributeShop{}).TableName(), "ecotax"),
	Weight: gormcol.Field{}.Set((&PsProductAttributeShop{}).TableName(), "weight"),
	UnitPriceImpact: gormcol.Field{}.Set((&PsProductAttributeShop{}).TableName(), "unit_price_impact"),
	DefaultOn: gormcol.Field{}.Set((&PsProductAttributeShop{}).TableName(), "default_on"),
	MinimalQuantity: gormcol.Field{}.Set((&PsProductAttributeShop{}).TableName(), "minimal_quantity"),
	LowStockThreshold: gormcol.Field{}.Set((&PsProductAttributeShop{}).TableName(), "low_stock_threshold"),
	LowStockAlert: gormcol.Field{}.Set((&PsProductAttributeShop{}).TableName(), "low_stock_alert"),
	AvailableDate: gormcol.Field{}.Set((&PsProductAttributeShop{}).TableName(), "available_date"),
}
