// Code generated by gormcol. DO NOT EDIT.

package dbmodel

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

const TableNamePsProductGroupReductionCache = "ps_product_group_reduction_cache"

// PsProductGroupReductionCache mapped from table <ps_product_group_reduction_cache>
type PsProductGroupReductionCache struct {
	IDProduct int32   `gorm:"column:id_product;primaryKey" json:"id_product"`
	IDGroup   int32   `gorm:"column:id_group;primaryKey" json:"id_group"`
	Reduction float64 `gorm:"column:reduction;not null" json:"reduction"`
}

// TableName PsProductGroupReductionCache's table name
func (*PsProductGroupReductionCache) TableName() string {
	return TableNamePsProductGroupReductionCache
}

var PsProductGroupReductionCacheCols = struct {
	IDProduct gormcol.Field
	IDGroup   gormcol.Field
	Reduction gormcol.Field
}{
	IDProduct: gormcol.Field{}.Set((&PsProductGroupReductionCache{}).TableName(), "id_product"),
	IDGroup:   gormcol.Field{}.Set((&PsProductGroupReductionCache{}).TableName(), "id_group"),
	Reduction: gormcol.Field{}.Set((&PsProductGroupReductionCache{}).TableName(), "reduction"),
}
