// Code generated by gormcol. DO NOT EDIT.

package dbmodel

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

const TableNamePsStockMvt = "ps_stock_mvt"

// PsStockMvt mapped from table <ps_stock_mvt>
type PsStockMvt struct {
	IDStockMvt        int64     `gorm:"column:id_stock_mvt;primaryKey;autoIncrement:true" json:"id_stock_mvt"`
	IDStock           int32     `gorm:"column:id_stock;not null;index:id_stock,priority:1" json:"id_stock"`
	IDOrder           *int32    `gorm:"column:id_order" json:"id_order"`
	IDSupplyOrder     *int32    `gorm:"column:id_supply_order" json:"id_supply_order"`
	IDStockMvtReason  int32     `gorm:"column:id_stock_mvt_reason;not null;index:id_stock_mvt_reason,priority:1" json:"id_stock_mvt_reason"`
	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"`
	PhysicalQuantity  int32     `gorm:"column:physical_quantity;not null" json:"physical_quantity"`
	DateAdd           time.Time `gorm:"column:date_add;not null" json:"date_add"`
	Sign              int32     `gorm:"column:sign;not null;default:1" json:"sign"`
	PriceTe           *float64  `gorm:"column:price_te;default:0.000000" json:"price_te"`
	LastWa            *float64  `gorm:"column:last_wa;default:0.000000" json:"last_wa"`
	CurrentWa         *float64  `gorm:"column:current_wa;default:0.000000" json:"current_wa"`
	Referer           *int64    `gorm:"column:referer" json:"referer"`
}

// TableName PsStockMvt's table name
func (*PsStockMvt) TableName() string {
	return TableNamePsStockMvt
}

var PsStockMvtCols = struct {
	IDStockMvt gormcol.Field
	IDStock gormcol.Field
	IDOrder gormcol.Field
	IDSupplyOrder gormcol.Field
	IDStockMvtReason gormcol.Field
	IDEmployee gormcol.Field
	EmployeeLastname gormcol.Field
	EmployeeFirstname gormcol.Field
	PhysicalQuantity gormcol.Field
	DateAdd gormcol.Field
	Sign gormcol.Field
	PriceTe gormcol.Field
	LastWa gormcol.Field
	CurrentWa gormcol.Field
	Referer gormcol.Field
}{
	IDStockMvt: gormcol.Field{}.Set((&PsStockMvt{}).TableName(), "id_stock_mvt"),
	IDStock: gormcol.Field{}.Set((&PsStockMvt{}).TableName(), "id_stock"),
	IDOrder: gormcol.Field{}.Set((&PsStockMvt{}).TableName(), "id_order"),
	IDSupplyOrder: gormcol.Field{}.Set((&PsStockMvt{}).TableName(), "id_supply_order"),
	IDStockMvtReason: gormcol.Field{}.Set((&PsStockMvt{}).TableName(), "id_stock_mvt_reason"),
	IDEmployee: gormcol.Field{}.Set((&PsStockMvt{}).TableName(), "id_employee"),
	EmployeeLastname: gormcol.Field{}.Set((&PsStockMvt{}).TableName(), "employee_lastname"),
	EmployeeFirstname: gormcol.Field{}.Set((&PsStockMvt{}).TableName(), "employee_firstname"),
	PhysicalQuantity: gormcol.Field{}.Set((&PsStockMvt{}).TableName(), "physical_quantity"),
	DateAdd: gormcol.Field{}.Set((&PsStockMvt{}).TableName(), "date_add"),
	Sign: gormcol.Field{}.Set((&PsStockMvt{}).TableName(), "sign"),
	PriceTe: gormcol.Field{}.Set((&PsStockMvt{}).TableName(), "price_te"),
	LastWa: gormcol.Field{}.Set((&PsStockMvt{}).TableName(), "last_wa"),
	CurrentWa: gormcol.Field{}.Set((&PsStockMvt{}).TableName(), "current_wa"),
	Referer: gormcol.Field{}.Set((&PsStockMvt{}).TableName(), "referer"),
}
