// Code generated by gormcol. DO NOT EDIT.

package dbmodel

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

const TableNamePsSupplyOrderReceiptHistory = "ps_supply_order_receipt_history"

// PsSupplyOrderReceiptHistory mapped from table <ps_supply_order_receipt_history>
type PsSupplyOrderReceiptHistory struct {
	IDSupplyOrderReceiptHistory int32     `gorm:"column:id_supply_order_receipt_history;primaryKey;autoIncrement:true" json:"id_supply_order_receipt_history"`
	IDSupplyOrderDetail         int32     `gorm:"column:id_supply_order_detail;not null;index:id_supply_order_detail,priority:1" json:"id_supply_order_detail"`
	IDEmployee                  int32     `gorm:"column:id_employee;not null" json:"id_employee"`
	EmployeeLastname            *string   `gorm:"column:employee_lastname" json:"employee_lastname"`
	EmployeeFirstname           *string   `gorm:"column:employee_firstname" json:"employee_firstname"`
	IDSupplyOrderState          int32     `gorm:"column:id_supply_order_state;not null;index:id_supply_order_state,priority:1" json:"id_supply_order_state"`
	Quantity                    int32     `gorm:"column:quantity;not null" json:"quantity"`
	DateAdd                     time.Time `gorm:"column:date_add;not null" json:"date_add"`
}

// TableName PsSupplyOrderReceiptHistory's table name
func (*PsSupplyOrderReceiptHistory) TableName() string {
	return TableNamePsSupplyOrderReceiptHistory
}

var PsSupplyOrderReceiptHistoryCols = struct {
	IDSupplyOrderReceiptHistory gormcol.Field
	IDSupplyOrderDetail gormcol.Field
	IDEmployee gormcol.Field
	EmployeeLastname gormcol.Field
	EmployeeFirstname gormcol.Field
	IDSupplyOrderState gormcol.Field
	Quantity gormcol.Field
	DateAdd gormcol.Field
}{
	IDSupplyOrderReceiptHistory: gormcol.Field{}.Set((&PsSupplyOrderReceiptHistory{}).TableName(), "id_supply_order_receipt_history"),
	IDSupplyOrderDetail: gormcol.Field{}.Set((&PsSupplyOrderReceiptHistory{}).TableName(), "id_supply_order_detail"),
	IDEmployee: gormcol.Field{}.Set((&PsSupplyOrderReceiptHistory{}).TableName(), "id_employee"),
	EmployeeLastname: gormcol.Field{}.Set((&PsSupplyOrderReceiptHistory{}).TableName(), "employee_lastname"),
	EmployeeFirstname: gormcol.Field{}.Set((&PsSupplyOrderReceiptHistory{}).TableName(), "employee_firstname"),
	IDSupplyOrderState: gormcol.Field{}.Set((&PsSupplyOrderReceiptHistory{}).TableName(), "id_supply_order_state"),
	Quantity: gormcol.Field{}.Set((&PsSupplyOrderReceiptHistory{}).TableName(), "quantity"),
	DateAdd: gormcol.Field{}.Set((&PsSupplyOrderReceiptHistory{}).TableName(), "date_add"),
}
