Files
gormcol/app/model/dbmodel/ps_stock_mvt.go

71 lines
3.3 KiB
Go

// Code generated by gorm.io/gen. DO NOT EDIT.
// Code generated by gorm.io/gen. DO NOT EDIT.
// Code generated by gorm.io/gen. 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{Table: TableNamePsStockMvt, Column: "id_stock_mvt"},
IDStock: gormcol.Field{Table: TableNamePsStockMvt, Column: "id_stock"},
IDOrder: gormcol.Field{Table: TableNamePsStockMvt, Column: "id_order"},
IDSupplyOrder: gormcol.Field{Table: TableNamePsStockMvt, Column: "id_supply_order"},
IDStockMvtReason: gormcol.Field{Table: TableNamePsStockMvt, Column: "id_stock_mvt_reason"},
IDEmployee: gormcol.Field{Table: TableNamePsStockMvt, Column: "id_employee"},
EmployeeLastname: gormcol.Field{Table: TableNamePsStockMvt, Column: "employee_lastname"},
EmployeeFirstname: gormcol.Field{Table: TableNamePsStockMvt, Column: "employee_firstname"},
PhysicalQuantity: gormcol.Field{Table: TableNamePsStockMvt, Column: "physical_quantity"},
DateAdd: gormcol.Field{Table: TableNamePsStockMvt, Column: "date_add"},
Sign: gormcol.Field{Table: TableNamePsStockMvt, Column: "sign"},
PriceTe: gormcol.Field{Table: TableNamePsStockMvt, Column: "price_te"},
LastWa: gormcol.Field{Table: TableNamePsStockMvt, Column: "last_wa"},
CurrentWa: gormcol.Field{Table: TableNamePsStockMvt, Column: "current_wa"},
Referer: gormcol.Field{Table: TableNamePsStockMvt, Column: "referer"},
}