yonghu_ddl_20230921.sql 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. CREATE TABLE if not exists `pallet_match_log`
  2. (
  3. `id` varchar(255) NOT NULL COMMENT 'id',
  4. `pallet_no` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci DEFAULT NULL COMMENT '托盘',
  5. `sku` varchar(255) DEFAULT NULL COMMENT '物料/产品',
  6. `total_qty` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci DEFAULT NULL COMMENT '数量',
  7. `order_nos` varchar(2000) DEFAULT NULL COMMENT '所扫描出库单(多出库单以,隔开)',
  8. `location_id` varchar(255) DEFAULT NULL COMMENT '库位id',
  9. `agv_no` varchar(255) DEFAULT NULL COMMENT 'agv车号',
  10. `remark` varchar(255) DEFAULT NULL COMMENT '备注',
  11. `userdefine1` varchar(255) DEFAULT NULL,
  12. `userdefine2` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci DEFAULT NULL,
  13. `userdefine3` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci DEFAULT NULL,
  14. `userdefine4` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci DEFAULT NULL,
  15. `userdefine5` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci DEFAULT NULL,
  16. `create_by` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT '' COMMENT '创建者',
  17. `create_time` datetime DEFAULT NULL COMMENT '创建时间',
  18. `update_by` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT '' COMMENT '更新者',
  19. `update_time` datetime DEFAULT NULL COMMENT '更新时间',
  20. PRIMARY KEY (`id`)
  21. ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci COMMENT='托盘匹配记录';
  22. CREATE TABLE if not exists `stock_take_record` (
  23. `id` varchar(64) NOT NULL COMMENT 'id',
  24. `stock_no` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci DEFAULT NULL COMMENT '盘点单号',
  25. `bar_code` varchar(255) DEFAULT NULL COMMENT '条形码',
  26. `scan_pallet` varchar(255) DEFAULT NULL COMMENT '扫描托盘',
  27. `stock_pallet` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci DEFAULT NULL COMMENT '盘点托盘(实际栈板)',
  28. `source_pallet` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci DEFAULT NULL COMMENT '来源托盘(账面栈板)',
  29. `stock_status` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci DEFAULT NULL COMMENT '盘点状态 1:已完成 2:未完成',
  30. `stock_type` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci DEFAULT NULL COMMENT '盘点类型 1:盘亏 2:盘盈',
  31. `del_flag` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci DEFAULT NULL COMMENT '取消盘点标志 Y/N',
  32. `remark` varchar(255) DEFAULT NULL COMMENT '备注',
  33. `create_by` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT '' COMMENT '创建者',
  34. `create_time` datetime DEFAULT NULL COMMENT '创建时间',
  35. `update_by` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT '' COMMENT '更新者',
  36. `update_time` datetime DEFAULT NULL COMMENT '更新时间',
  37. PRIMARY KEY (`id`)
  38. ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci COMMENT='盘点记录';
  39. ALTER TABLE wms_box_info
  40. RENAME COLUMN box_remark TO remark;