// Code generated by gormcol. DO NOT EDIT.

package dbmodel

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

const TableNamePsTagCount = "ps_tag_count"

// PsTagCount mapped from table <ps_tag_count>
type PsTagCount struct {
	IDGroup int32 `gorm:"column:id_group;primaryKey;index:id_group,priority:1" json:"id_group"`
	IDTag   int32 `gorm:"column:id_tag;primaryKey" json:"id_tag"`
	IDLang  int32 `gorm:"column:id_lang;not null;index:id_group,priority:2" json:"id_lang"`
	IDShop  int32 `gorm:"column:id_shop;not null;index:id_group,priority:3" json:"id_shop"`
	Counter int32 `gorm:"column:counter;not null;index:id_group,priority:4" json:"counter"`
}

// TableName PsTagCount's table name
func (*PsTagCount) TableName() string {
	return TableNamePsTagCount
}

var PsTagCountCols = struct {
	IDGroup gormcol.Field
	IDTag gormcol.Field
	IDLang gormcol.Field
	IDShop gormcol.Field
	Counter gormcol.Field
}{
	IDGroup: gormcol.Field{}.Set((&PsTagCount{}).TableName(), "id_group"),
	IDTag: gormcol.Field{}.Set((&PsTagCount{}).TableName(), "id_tag"),
	IDLang: gormcol.Field{}.Set((&PsTagCount{}).TableName(), "id_lang"),
	IDShop: gormcol.Field{}.Set((&PsTagCount{}).TableName(), "id_shop"),
	Counter: gormcol.Field{}.Set((&PsTagCount{}).TableName(), "counter"),
}
