stock.go 869 B

1234567891011121314151617181920212223242526272829
  1. package model
  2. import "go-common/library/time"
  3. // SKUStockLog sku 库存操作日志
  4. type SKUStockLog struct {
  5. ID int64 `db:"id"`
  6. SKUID int64 `db:"sku_id"`
  7. OpType int16 `db:"op_type"`
  8. SrcID int64 `db:"src_id"`
  9. Stock int64 `db:"stock"`
  10. CanceledAt time.Time `db:"canceled_at"`
  11. Ctime time.Time `db:"ctime,autogen"`
  12. Mtime time.Time `db:"mtime,autogen"`
  13. }
  14. // SKUStock sku 库存
  15. type SKUStock struct {
  16. SKUID int64 `db:"sku_id"`
  17. ParentSKUID int64 `db:"parent_sku_id"`
  18. ItemID int64 `db:"item_id"`
  19. Specs string `db:"specs"`
  20. TotalStock int64 `db:"total_stock"`
  21. Stock int64 `db:"stock"`
  22. LockedStock int64 `db:"locked_stock"`
  23. SkAlert int64 `db:"sk_alert"`
  24. Ctime time.Time `db:"ctime,autogen"`
  25. Mtime time.Time `db:"mtime,autogen"`
  26. }