clearTable.sql 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. truncate erp_goods; -- 商品
  2. truncate erp_product_group; -- sku分组
  3. truncate erp_product_stock; -- 库存
  4. truncate erp_product_group_item; -- sku分组明细
  5. truncate erp_product; -- sku明细
  6. truncate erp_goods_sn; -- 序列号
  7. truncate erp_locked_stock_detail; -- 冻结库存明细
  8. truncate erp_item_sn_code; -- 序列号绑定关系
  9. -- truncate erp_warehouse; -- 仓库
  10. -- truncate erp_warehouse_area; -- 库位
  11. -- truncate erp_warehouse_area_type; -- 库位类型
  12. truncate erp_order; -- 订单
  13. truncate erp_order_item; -- 订单明细
  14. truncate erp_order_return; -- 退货
  15. truncate erp_order_return_item; -- 退货明细
  16. truncate erp_order_send; -- 发货
  17. truncate erp_order_send_item; -- 发货明细
  18. truncate erp_warehouse_entry; -- 入库
  19. truncate erp_warehouse_entry_product; -- 入库明细
  20. truncate erp_warehouse_out; -- 出库
  21. truncate erp_warehouse_out_item; -- 出库明细
  22. truncate es_stock_damage_report; -- 报损
  23. truncate es_stock_damage_report_product; -- 报损明细
  24. truncate es_stock_inventory; -- 盘点
  25. truncate es_stock_inventory_product; -- 盘点明细
  26. truncate erp_stock_transfer; -- 调拨
  27. truncate erp_stock_transfer_product; -- 调拨明细
  28. truncate erp_goods; -- 商品
  29. truncate erp_product_group; -- sku分组
  30. truncate erp_product_stock; -- 库存
  31. truncate erp_goods_sn; -- 序列号
  32. truncate erp_locked_stock_detail; -- 冻结库存明细
  33. truncate erp_item_sn_code; -- 序列号绑定关系