// Code generated by gormcol. DO NOT EDIT.

package dbmodel

import "git.ma-al.com/goc_marek/gormcol"

const TableNamePsLayeredProductAttribute = "ps_layered_product_attribute"

// PsLayeredProductAttribute mapped from table <ps_layered_product_attribute>
type PsLayeredProductAttribute struct {
	IDAttribute      int32 `gorm:"column:id_attribute;primaryKey;uniqueIndex:id_attribute_group,priority:2" json:"id_attribute"`
	IDProduct        int32 `gorm:"column:id_product;primaryKey;uniqueIndex:id_attribute_group,priority:3" json:"id_product"`
	IDAttributeGroup int32 `gorm:"column:id_attribute_group;not null;uniqueIndex:id_attribute_group,priority:1" json:"id_attribute_group"`
	IDShop           int32 `gorm:"column:id_shop;primaryKey;uniqueIndex:id_attribute_group,priority:4;default:1" json:"id_shop"`
}

// TableName PsLayeredProductAttribute's table name
func (*PsLayeredProductAttribute) TableName() string {
	return TableNamePsLayeredProductAttribute
}

var PsLayeredProductAttributeCols = struct {
	IDAttribute gormcol.Field
	IDProduct gormcol.Field
	IDAttributeGroup gormcol.Field
	IDShop gormcol.Field
}{
	IDAttribute: gormcol.Field{}.Set((&PsLayeredProductAttribute{}).TableName(), "id_attribute"),
	IDProduct: gormcol.Field{}.Set((&PsLayeredProductAttribute{}).TableName(), "id_product"),
	IDAttributeGroup: gormcol.Field{}.Set((&PsLayeredProductAttribute{}).TableName(), "id_attribute_group"),
	IDShop: gormcol.Field{}.Set((&PsLayeredProductAttribute{}).TableName(), "id_shop"),
}
