// Code generated by gormcol. DO NOT EDIT.

package dbmodel

import (
	"git.ma-al.com/goc_marek/gormcol"
	"time"
)

const TableNamePsConfigurationKpi = "ps_configuration_kpi"

// PsConfigurationKpi mapped from table <ps_configuration_kpi>
type PsConfigurationKpi struct {
	IDConfigurationKpi int32     `gorm:"column:id_configuration_kpi;primaryKey;autoIncrement:true" json:"id_configuration_kpi"`
	IDShopGroup        *int32    `gorm:"column:id_shop_group;index:id_shop_group,priority:1" json:"id_shop_group"`
	IDShop             *int32    `gorm:"column:id_shop;index:id_shop,priority:1" json:"id_shop"`
	Name               string    `gorm:"column:name;not null;index:name,priority:1" json:"name"`
	Value              *string   `gorm:"column:value" json:"value"`
	DateAdd            time.Time `gorm:"column:date_add;not null" json:"date_add"`
	DateUpd            time.Time `gorm:"column:date_upd;not null" json:"date_upd"`
}

// TableName PsConfigurationKpi's table name
func (*PsConfigurationKpi) TableName() string {
	return TableNamePsConfigurationKpi
}

var PsConfigurationKpiCols = struct {
	IDConfigurationKpi gormcol.Field
	IDShopGroup gormcol.Field
	IDShop gormcol.Field
	Name gormcol.Field
	Value gormcol.Field
	DateAdd gormcol.Field
	DateUpd gormcol.Field
}{
	IDConfigurationKpi: gormcol.Field{}.Set((&PsConfigurationKpi{}).TableName(), "id_configuration_kpi"),
	IDShopGroup: gormcol.Field{}.Set((&PsConfigurationKpi{}).TableName(), "id_shop_group"),
	IDShop: gormcol.Field{}.Set((&PsConfigurationKpi{}).TableName(), "id_shop"),
	Name: gormcol.Field{}.Set((&PsConfigurationKpi{}).TableName(), "name"),
	Value: gormcol.Field{}.Set((&PsConfigurationKpi{}).TableName(), "value"),
	DateAdd: gormcol.Field{}.Set((&PsConfigurationKpi{}).TableName(), "date_add"),
	DateUpd: gormcol.Field{}.Set((&PsConfigurationKpi{}).TableName(), "date_upd"),
}
