// Code generated by gormcol. DO NOT EDIT.

package dbmodel

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

const TableNamePsCartRuleProductRuleGroup = "ps_cart_rule_product_rule_group"

// PsCartRuleProductRuleGroup mapped from table <ps_cart_rule_product_rule_group>
type PsCartRuleProductRuleGroup struct {
	IDProductRuleGroup int32 `gorm:"column:id_product_rule_group;primaryKey;autoIncrement:true" json:"id_product_rule_group"`
	IDCartRule         int32 `gorm:"column:id_cart_rule;not null" json:"id_cart_rule"`
	Quantity           int32 `gorm:"column:quantity;not null;default:1" json:"quantity"`
}

// TableName PsCartRuleProductRuleGroup's table name
func (*PsCartRuleProductRuleGroup) TableName() string {
	return TableNamePsCartRuleProductRuleGroup
}

var PsCartRuleProductRuleGroupCols = struct {
	IDProductRuleGroup gormcol.Field
	IDCartRule gormcol.Field
	Quantity gormcol.Field
}{
	IDProductRuleGroup: gormcol.Field{}.Set((&PsCartRuleProductRuleGroup{}).TableName(), "id_product_rule_group"),
	IDCartRule: gormcol.Field{}.Set((&PsCartRuleProductRuleGroup{}).TableName(), "id_cart_rule"),
	Quantity: gormcol.Field{}.Set((&PsCartRuleProductRuleGroup{}).TableName(), "quantity"),
}
