// Code generated by gormcol. DO NOT EDIT.

package dbmodel

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

const TableNamePsCartRuleProductRule = "ps_cart_rule_product_rule"

// PsCartRuleProductRule mapped from table <ps_cart_rule_product_rule>
type PsCartRuleProductRule struct {
	IDProductRule      int32  `gorm:"column:id_product_rule;primaryKey;autoIncrement:true" json:"id_product_rule"`
	IDProductRuleGroup int32  `gorm:"column:id_product_rule_group;not null" json:"id_product_rule_group"`
	Type               string `gorm:"column:type;not null" json:"type"`
}

// TableName PsCartRuleProductRule's table name
func (*PsCartRuleProductRule) TableName() string {
	return TableNamePsCartRuleProductRule
}

var PsCartRuleProductRuleCols = struct {
	IDProductRule gormcol.Field
	IDProductRuleGroup gormcol.Field
	Type gormcol.Field
}{
	IDProductRule: gormcol.Field{}.Set((&PsCartRuleProductRule{}).TableName(), "id_product_rule"),
	IDProductRuleGroup: gormcol.Field{}.Set((&PsCartRuleProductRule{}).TableName(), "id_product_rule_group"),
	Type: gormcol.Field{}.Set((&PsCartRuleProductRule{}).TableName(), "type"),
}
