// Code generated by gormcol. DO NOT EDIT.

package dbmodel

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

const TableNamePsCategoryProduct = "ps_category_product"

// PsCategoryProduct mapped from table <ps_category_product>
type PsCategoryProduct struct {
	IDCategory int32 `gorm:"column:id_category;primaryKey;index:idx_category_product,priority:2;index:id_category,priority:1" json:"id_category"`
	IDProduct  int32 `gorm:"column:id_product;primaryKey;index:idx_category_product,priority:1;index:id_product,priority:1" json:"id_product"`
	Position   int32 `gorm:"column:position;not null;index:id_category,priority:2" json:"position"`
}

// TableName PsCategoryProduct's table name
func (*PsCategoryProduct) TableName() string {
	return TableNamePsCategoryProduct
}

var PsCategoryProductCols = struct {
	IDCategory gormcol.Field
	IDProduct gormcol.Field
	Position gormcol.Field
}{
	IDCategory: gormcol.Field{}.Set((&PsCategoryProduct{}).TableName(), "id_category"),
	IDProduct: gormcol.Field{}.Set((&PsCategoryProduct{}).TableName(), "id_product"),
	Position: gormcol.Field{}.Set((&PsCategoryProduct{}).TableName(), "position"),
}
