2026_01_06_donglang_create.sql 1.7 KB

1234567891011121314151617181920
  1. create table kwt_forklift_waybill_order
  2. (
  3. id bigint NOT NULL AUTO_INCREMENT COMMENT '主键',
  4. f_order_no varchar(30) NOT NULL DEFAULT '-1' COMMENT '编号',
  5. ent_id bigint NOT NULL DEFAULT '-1' COMMENT '企业id',
  6. w_order_id bigint NOT NULL DEFAULT '-1' COMMENT '物流运单id',
  7. l_order_id bigint NOT NULL DEFAULT '-1' COMMENT '物流订单id',
  8. loading_type int NOT NULL DEFAULT '0' COMMENT '装载类型(0装载,1补货)',
  9. status int NOT NULL DEFAULT '0' COMMENT '是否为当前车辆(1已结单、5已完成)',
  10. driver_id bigint NOT NULL DEFAULT '-1' COMMENT '装载员id',
  11. driver_name varchar(40) DEFAULT NULL default '' COMMENT '接单的装载员',
  12. driver_phone varchar(20) DEFAULT NULL default '' COMMENT '装载员联系电话',
  13. finish_time datetime NOT NULL DEFAULT '1000-01-01 00:00:00' COMMENT '装载完成时间',
  14. create_time datetime NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
  15. update_time datetime NOT NULL DEFAULT CURRENT_TIMESTAMP on update CURRENT_TIMESTAMP COMMENT '更新时间',
  16. create_user bigint NOT NULL DEFAULT '-1' COMMENT '创建人',
  17. update_user bigint NOT NULL DEFAULT '-1' COMMENT '更新人',
  18. PRIMARY KEY (`id`) USING BTREE
  19. ) comment '铲车司机运单';