// Code generated by gormcol. DO NOT EDIT.

package dbmodel

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

const TableNamePsOrderHistory = "ps_order_history"

// PsOrderHistory mapped from table <ps_order_history>
type PsOrderHistory struct {
	IDOrderHistory int32     `gorm:"column:id_order_history;primaryKey;autoIncrement:true" json:"id_order_history"`
	IDEmployee     int32     `gorm:"column:id_employee;not null;index:id_employee,priority:1" json:"id_employee"`
	IDOrder        int32     `gorm:"column:id_order;not null;index:order_history_order,priority:1" json:"id_order"`
	IDOrderState   int32     `gorm:"column:id_order_state;not null;index:id_order_state,priority:1" json:"id_order_state"`
	DateAdd        time.Time `gorm:"column:date_add;not null" json:"date_add"`
}

// TableName PsOrderHistory's table name
func (*PsOrderHistory) TableName() string {
	return TableNamePsOrderHistory
}

var PsOrderHistoryCols = struct {
	IDOrderHistory gormcol.Field
	IDEmployee gormcol.Field
	IDOrder gormcol.Field
	IDOrderState gormcol.Field
	DateAdd gormcol.Field
}{
	IDOrderHistory: gormcol.Field{}.Set((&PsOrderHistory{}).TableName(), "id_order_history"),
	IDEmployee: gormcol.Field{}.Set((&PsOrderHistory{}).TableName(), "id_employee"),
	IDOrder: gormcol.Field{}.Set((&PsOrderHistory{}).TableName(), "id_order"),
	IDOrderState: gormcol.Field{}.Set((&PsOrderHistory{}).TableName(), "id_order_state"),
	DateAdd: gormcol.Field{}.Set((&PsOrderHistory{}).TableName(), "date_add"),
}
