// Code generated by gormcol. DO NOT EDIT.

package dbmodel

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

const TableNamePsCondition = "ps_condition"

// PsCondition mapped from table <ps_condition>
type PsCondition struct {
	IDCondition       int32     `gorm:"column:id_condition;primaryKey;autoIncrement:true" json:"id_condition"`
	IDPsCondition     int32     `gorm:"column:id_ps_condition;primaryKey" json:"id_ps_condition"`
	Type              string    `gorm:"column:type;not null" json:"type"`
	Request           *string   `gorm:"column:request" json:"request"`
	Operator          *string   `gorm:"column:operator" json:"operator"`
	Value             *string   `gorm:"column:value" json:"value"`
	Result            *string   `gorm:"column:result" json:"result"`
	CalculationType   *string   `gorm:"column:calculation_type" json:"calculation_type"`
	CalculationDetail *string   `gorm:"column:calculation_detail" json:"calculation_detail"`
	Validated         bool      `gorm:"column:validated;not null" json:"validated"`
	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 PsCondition's table name
func (*PsCondition) TableName() string {
	return TableNamePsCondition
}

var PsConditionCols = struct {
	IDCondition gormcol.Field
	IDPsCondition gormcol.Field
	Type gormcol.Field
	Request gormcol.Field
	Operator gormcol.Field
	Value gormcol.Field
	Result gormcol.Field
	CalculationType gormcol.Field
	CalculationDetail gormcol.Field
	Validated gormcol.Field
	DateAdd gormcol.Field
	DateUpd gormcol.Field
}{
	IDCondition: gormcol.Field{}.Set((&PsCondition{}).TableName(), "id_condition"),
	IDPsCondition: gormcol.Field{}.Set((&PsCondition{}).TableName(), "id_ps_condition"),
	Type: gormcol.Field{}.Set((&PsCondition{}).TableName(), "type"),
	Request: gormcol.Field{}.Set((&PsCondition{}).TableName(), "request"),
	Operator: gormcol.Field{}.Set((&PsCondition{}).TableName(), "operator"),
	Value: gormcol.Field{}.Set((&PsCondition{}).TableName(), "value"),
	Result: gormcol.Field{}.Set((&PsCondition{}).TableName(), "result"),
	CalculationType: gormcol.Field{}.Set((&PsCondition{}).TableName(), "calculation_type"),
	CalculationDetail: gormcol.Field{}.Set((&PsCondition{}).TableName(), "calculation_detail"),
	Validated: gormcol.Field{}.Set((&PsCondition{}).TableName(), "validated"),
	DateAdd: gormcol.Field{}.Set((&PsCondition{}).TableName(), "date_add"),
	DateUpd: gormcol.Field{}.Set((&PsCondition{}).TableName(), "date_upd"),
}
