// Code generated by gormcol. DO NOT EDIT.

package dbmodel

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

const TableNamePsSupplyOrderHistory = "ps_supply_order_history"

// PsSupplyOrderHistory mapped from table <ps_supply_order_history>
type PsSupplyOrderHistory struct {
	IDSupplyOrderHistory int32     `gorm:"column:id_supply_order_history;primaryKey;autoIncrement:true" json:"id_supply_order_history"`
	IDSupplyOrder        int32     `gorm:"column:id_supply_order;not null;index:id_supply_order,priority:1" json:"id_supply_order"`
	IDEmployee           int32     `gorm:"column:id_employee;not null;index:id_employee,priority:1" json:"id_employee"`
	EmployeeLastname     *string   `gorm:"column:employee_lastname" json:"employee_lastname"`
	EmployeeFirstname    *string   `gorm:"column:employee_firstname" json:"employee_firstname"`
	IDState              int32     `gorm:"column:id_state;not null;index:id_state,priority:1" json:"id_state"`
	DateAdd              time.Time `gorm:"column:date_add;not null" json:"date_add"`
}

// TableName PsSupplyOrderHistory's table name
func (*PsSupplyOrderHistory) TableName() string {
	return TableNamePsSupplyOrderHistory
}

var PsSupplyOrderHistoryCols = struct {
	IDSupplyOrderHistory gormcol.Field
	IDSupplyOrder gormcol.Field
	IDEmployee gormcol.Field
	EmployeeLastname gormcol.Field
	EmployeeFirstname gormcol.Field
	IDState gormcol.Field
	DateAdd gormcol.Field
}{
	IDSupplyOrderHistory: gormcol.Field{}.Set((&PsSupplyOrderHistory{}).TableName(), "id_supply_order_history"),
	IDSupplyOrder: gormcol.Field{}.Set((&PsSupplyOrderHistory{}).TableName(), "id_supply_order"),
	IDEmployee: gormcol.Field{}.Set((&PsSupplyOrderHistory{}).TableName(), "id_employee"),
	EmployeeLastname: gormcol.Field{}.Set((&PsSupplyOrderHistory{}).TableName(), "employee_lastname"),
	EmployeeFirstname: gormcol.Field{}.Set((&PsSupplyOrderHistory{}).TableName(), "employee_firstname"),
	IDState: gormcol.Field{}.Set((&PsSupplyOrderHistory{}).TableName(), "id_state"),
	DateAdd: gormcol.Field{}.Set((&PsSupplyOrderHistory{}).TableName(), "date_add"),
}
