mirror of
https://gitlab.com/mbugroup/lti-api.git
synced 2026-05-20 13:31:56 +00:00
18 lines
840 B
Go
18 lines
840 B
Go
package entities
|
|
|
|
import "time"
|
|
|
|
type AdjustmentStock struct {
|
|
Id uint `gorm:"primaryKey"`
|
|
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"`
|
|
|
|
ProductWarehouse *ProductWarehouse `gorm:"foreignKey:ProductWarehouseId;references:Id"`
|
|
StockLog *StockLog `gorm:"polymorphic:Loggable;polymorphicType:LoggableType;polymorphicId:LoggableId;polymorphicValue:ADJUSTMENT"`
|
|
}
|