// Code generated by gormcol. DO NOT EDIT.

package dbmodel

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

const TableNamePsLayeredCategory = "ps_layered_category"

// PsLayeredCategory mapped from table <ps_layered_category>
type PsLayeredCategory struct {
	IDLayeredCategory int32  `gorm:"column:id_layered_category;primaryKey;autoIncrement:true" json:"id_layered_category"`
	IDShop            int32  `gorm:"column:id_shop;not null;index:id_category_shop,priority:2" json:"id_shop"`
	IDCategory        int32  `gorm:"column:id_category;not null;index:id_category,priority:1;index:id_category_shop,priority:1" json:"id_category"`
	IDValue           *int32 `gorm:"column:id_value;index:id_category_shop,priority:4" json:"id_value"`
	Type              string `gorm:"column:type;not null;index:id_category,priority:2;index:id_category_shop,priority:3" json:"type"`
	Position          int32  `gorm:"column:position;not null;index:id_category_shop,priority:5" json:"position"`
	FilterType        int32  `gorm:"column:filter_type;not null" json:"filter_type"`
	FilterShowLimit   int32  `gorm:"column:filter_show_limit;not null" json:"filter_show_limit"`
}

// TableName PsLayeredCategory's table name
func (*PsLayeredCategory) TableName() string {
	return TableNamePsLayeredCategory
}

var PsLayeredCategoryCols = struct {
	IDLayeredCategory gormcol.Field
	IDShop gormcol.Field
	IDCategory gormcol.Field
	IDValue gormcol.Field
	Type gormcol.Field
	Position gormcol.Field
	FilterType gormcol.Field
	FilterShowLimit gormcol.Field
}{
	IDLayeredCategory: gormcol.Field{}.Set((&PsLayeredCategory{}).TableName(), "id_layered_category"),
	IDShop: gormcol.Field{}.Set((&PsLayeredCategory{}).TableName(), "id_shop"),
	IDCategory: gormcol.Field{}.Set((&PsLayeredCategory{}).TableName(), "id_category"),
	IDValue: gormcol.Field{}.Set((&PsLayeredCategory{}).TableName(), "id_value"),
	Type: gormcol.Field{}.Set((&PsLayeredCategory{}).TableName(), "type"),
	Position: gormcol.Field{}.Set((&PsLayeredCategory{}).TableName(), "position"),
	FilterType: gormcol.Field{}.Set((&PsLayeredCategory{}).TableName(), "filter_type"),
	FilterShowLimit: gormcol.Field{}.Set((&PsLayeredCategory{}).TableName(), "filter_show_limit"),
}
