2021-09-6_001(黄福利) .sql 3.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. CREATE TABLE `weighing_management` (
  2. `id` varchar(32) NOT NULL COMMENT '主键',
  3. `comp_id` varchar(32) DEFAULT NULL COMMENT '公司id',
  4. `relation_id` varchar(32) DEFAULT NULL COMMENT '关联id',
  5. `number` varchar(50) DEFAULT NULL COMMENT '编号'
  6. `customer` varchar(50) DEFAULT NULL COMMENT '客户',
  7. `customer_phone` varchar(50) DEFAULT NULL COMMENT '客户电话',
  8. `contacts` varchar(50) DEFAULT NULL COMMENT '联系人',
  9. `contacts_phone` varchar(50) DEFAULT NULL COMMENT '联系人电话',
  10. `receiving_unit` varchar(100) DEFAULT NULL COMMENT '收货单位',
  11. `car_number` varchar(20) DEFAULT NULL COMMENT '车牌号',
  12. `goods_name_key` varchar(20) DEFAULT NULL COMMENT '货名key',
  13. `goods_name` varchar(100) DEFAULT NULL COMMENT '货名',
  14. `gross_weight` float(11,4) DEFAULT NULL COMMENT '毛重(公斤)',
  15. `tare` float(11,4) DEFAULT NULL COMMENT '皮重(公斤)',
  16. `buckle_miscellaneous` float(11,4) DEFAULT NULL COMMENT '扣杂(公斤)',
  17. `net_weight` float(11,4) DEFAULT NULL COMMENT '净重(公斤)',
  18. `bin_number` varchar(200) DEFAULT NULL COMMENT '仓位号',
  19. `storage_number` varchar(200) DEFAULT NULL COMMENT '囤位号',
  20. `secretary_weigher` varchar(50) DEFAULT NULL COMMENT '司称员',
  21. `suquality_testing_date` datetime DEFAULT NULL COMMENT '质检时间',
  22. `gross_date` datetime DEFAULT NULL COMMENT '毛重检斤时间',
  23. `tare_date` datetime DEFAULT NULL COMMENT '皮重检斤时间',
  24. `water_content` varchar(50) CHARACTER SET utf8 COLLATE utf8_bin DEFAULT NULL COMMENT '水分',
  25. `impurity` varchar(50) CHARACTER SET utf8 COLLATE utf8_bin DEFAULT NULL COMMENT '杂质',
  26. `mildew_grain` varchar(50) CHARACTER SET utf8 COLLATE utf8_bin DEFAULT NULL COMMENT '霉变粒',
  27. `imperfect_grain` varchar(50) CHARACTER SET utf8 COLLATE utf8_bin DEFAULT NULL COMMENT '不完善粒',
  28. `bulk_density` varchar(50) CHARACTER SET utf8 COLLATE utf8_bin DEFAULT NULL COMMENT '容重',
  29. `jiaorenli` varchar(50) CHARACTER SET utf8 COLLATE utf8_bin DEFAULT NULL COMMENT '热损伤',
  30. `grade_key` varchar(20) CHARACTER SET utf8 COLLATE utf8_bin DEFAULT NULL COMMENT '品级key',
  31. `grade` varchar(100) CHARACTER SET utf8 COLLATE utf8_bin DEFAULT NULL COMMENT '品级',
  32. `status_flag` varchar(10) DEFAULT NULL COMMENT '状态标识(1已质检3已称毛重5已称皮重)',
  33. `status` varchar(50) DEFAULT NULL COMMENT '状态',
  34. `status_en` varchar(50) DEFAULT NULL COMMENT '状态英文',
  35. `tared` varchar(50) DEFAULT NULL COMMENT '已称皮重状态(1是)',
  36. `delete_flag` char(1) NOT NULL DEFAULT '0' COMMENT '删除标识',
  37. `update_count` bigint(20) NOT NULL DEFAULT '0' COMMENT '更新次数',
  38. `create_date` datetime NOT NULL COMMENT '作成年月日',
  39. `create_user_id` varchar(50) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL COMMENT '作成用户ID',
  40. `update_date` datetime NOT NULL COMMENT '更新年月日',
  41. `update_user_id` varchar(50) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL COMMENT '更新用户ID',
  42. `update_flag` char(1) NOT NULL DEFAULT '0' COMMENT '更新标识',
  43. `now_version_no` bigint(20) NOT NULL DEFAULT '1' COMMENT '当前版本号',
  44. `prev_version_no` bigint(20) NOT NULL DEFAULT '0' COMMENT '更新前版本号',
  45. PRIMARY KEY (`id`) USING BTREE
  46. ) ENGINE=InnoDB DEFAULT CHARSET=utf8 ROW_FORMAT=COMPACT COMMENT='检斤管理';