mirror of
https://gitlab.com/mbugroup/lti-api.git
synced 2026-05-20 21:41:55 +00:00
19 lines
847 B
Go
19 lines
847 B
Go
package entities
|
|
|
|
import "time"
|
|
|
|
type AdjustmentStock struct {
|
|
Id uint `gorm:"primaryKey"`
|
|
StockLogId uint `gorm:"column:stock_log_id;not null;index"`
|
|
ProductWarehouseId uint `gorm:"column:product_warehouse_id;not null"`
|
|
TotalQty float64 `gorm:"column:total_qty;default:0"`
|
|
TotalUsed float64 `gorm:"column:total_used;default:0"`
|
|
UsageQty float64 `gorm:"column:usage_qty;default:0"`
|
|
PendingQty float64 `gorm:"column:pending_qty;default:0"`
|
|
CreatedAt time.Time `gorm:"column:created_at;autoCreateTime"`
|
|
UpdatedAt time.Time `gorm:"column:updated_at;autoUpdateTime"`
|
|
|
|
StockLog *StockLog `gorm:"foreignKey:StockLogId;references:Id"`
|
|
ProductWarehouse *ProductWarehouse `gorm:"foreignKey:ProductWarehouseId;references:Id"`
|
|
}
|