2021-09-06_001(张新竹).sql 3.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. CREATE TABLE `quality_inspection_management` (
  2. `id` varchar(32) NOT NULL COMMENT '主键',
  3. `relation_id` varchar(32) DEFAULT NULL COMMENT '关联id',
  4. `quality_no` varchar(200) DEFAULT NULL COMMENT '质检编号',
  5. `customer_name` varchar(200) DEFAULT NULL COMMENT '客户',
  6. `customer_phone` varchar(20) DEFAULT NULL COMMENT '客户电话',
  7. `quality_inspector` varchar(100) DEFAULT NULL COMMENT '质检员',
  8. `car_number` varchar(20) DEFAULT NULL COMMENT '车牌号',
  9. `contacts` varchar(200) DEFAULT NULL COMMENT '联系人',
  10. `receiving_unit` varchar(200) DEFAULT NULL COMMENT '收货单位',
  11. `contacts_phone` varchar(20) DEFAULT NULL COMMENT '联系人电话',
  12. `warehouse_name` varchar(200) DEFAULT NULL COMMENT '仓库名称',
  13. `buckleweight_ratio` float(11,4) DEFAULT NULL COMMENT '扣重比',
  14. `goods_name_key` varchar(20) CHARACTER SET utf8 COLLATE utf8_bin DEFAULT NULL COMMENT '货名key',
  15. `goods_name` varchar(100) CHARACTER SET utf8 COLLATE utf8_bin DEFAULT NULL COMMENT '货名',
  16. `tidalgrain_price` float(11,4) DEFAULT NULL COMMENT '潮粮单价(元/吨)',
  17. `bin_number` varchar(200) DEFAULT NULL COMMENT '仓位编号',
  18. `storagetag_no` varchar(200) DEFAULT NULL COMMENT '囤位编号',
  19. `quality_date` datetime NOT NULL COMMENT '质检时间',
  20. `status_flag` varchar(10) DEFAULT NULL COMMENT '状态标识',
  21. `status` varchar(50) DEFAULT NULL COMMENT '状态(1已质检3已称毛重5已称皮重)',
  22. `status_en` varchar(50) DEFAULT NULL COMMENT '状态英文',
  23. `water_content` varchar(50) CHARACTER SET utf8 COLLATE utf8_bin DEFAULT NULL COMMENT '水分',
  24. `impurity` varchar(50) CHARACTER SET utf8 COLLATE utf8_bin DEFAULT NULL COMMENT '杂质',
  25. `mildew_grain` varchar(50) CHARACTER SET utf8 COLLATE utf8_bin DEFAULT NULL COMMENT '霉变粒',
  26. `imperfect_grain` varchar(50) CHARACTER SET utf8 COLLATE utf8_bin DEFAULT NULL COMMENT '不完善粒',
  27. `bulk_density` varchar(50) CHARACTER SET utf8 COLLATE utf8_bin DEFAULT NULL COMMENT '容重',
  28. `jiaorenli` varchar(50) CHARACTER SET utf8 COLLATE utf8_bin DEFAULT NULL COMMENT '热损伤',
  29. `grade_key` varchar(20) CHARACTER SET utf8 COLLATE utf8_bin DEFAULT NULL COMMENT '等级key',
  30. `grade` varchar(100) CHARACTER SET utf8 COLLATE utf8_bin DEFAULT NULL COMMENT '等级',
  31. `delete_flag` char(1) NOT NULL DEFAULT '0' COMMENT '删除标识',
  32. `update_count` bigint(20) NOT NULL DEFAULT '0' COMMENT '更新次数',
  33. `create_date` datetime NOT NULL COMMENT '作成年月日',
  34. `create_user_id` varchar(50) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL COMMENT '作成用户ID',
  35. `update_date` datetime NOT NULL COMMENT '更新年月日',
  36. `update_user_id` varchar(50) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL COMMENT '更新用户ID',
  37. `update_flag` char(1) NOT NULL DEFAULT '0' COMMENT '更新标识',
  38. `now_version_no` bigint(20) NOT NULL DEFAULT '1' COMMENT '当前版本号',
  39. `prev_version_no` bigint(20) NOT NULL DEFAULT '0' COMMENT '更新前版本号',
  40. PRIMARY KEY (`id`) USING BTREE
  41. ) ENGINE=InnoDB DEFAULT CHARSET=utf8 ROW_FORMAT=COMPACT COMMENT='记录质检管理数据信息';