// Code generated by gormcol. DO NOT EDIT.

package dbmodel

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

const TableNamePsProductTag = "ps_product_tag"

// PsProductTag mapped from table <ps_product_tag>
type PsProductTag struct {
	IDProduct int32 `gorm:"column:id_product;primaryKey" json:"id_product"`
	IDTag     int32 `gorm:"column:id_tag;primaryKey;index:id_lang,priority:2;index:id_tag,priority:1" json:"id_tag"`
	IDLang    int32 `gorm:"column:id_lang;not null;index:id_lang,priority:1" json:"id_lang"`
}

// TableName PsProductTag's table name
func (*PsProductTag) TableName() string {
	return TableNamePsProductTag
}

var PsProductTagCols = struct {
	IDProduct gormcol.Field
	IDTag gormcol.Field
	IDLang gormcol.Field
}{
	IDProduct: gormcol.Field{}.Set((&PsProductTag{}).TableName(), "id_product"),
	IDTag: gormcol.Field{}.Set((&PsProductTag{}).TableName(), "id_tag"),
	IDLang: gormcol.Field{}.Set((&PsProductTag{}).TableName(), "id_lang"),
}
