jinyinhua_ddl_20231025.sql 8.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133
  1. SET NAMES utf8mb4;
  2. SET FOREIGN_KEY_CHECKS = 0;
  3. DROP TABLE IF EXISTS `ams_hexdefine_detail`;
  4. CREATE TABLE `ams_hexdefine_detail` (
  5. `id` int(11) NOT NULL AUTO_INCREMENT COMMENT '主键',
  6. `business_type` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT '任务类型',
  7. `col_name` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT '字段',
  8. `col_type` int(11) NULL DEFAULT NULL COMMENT '1值2绑定字段',
  9. `bind_table` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT '绑定表',
  10. `col_val` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT 'col_type1为值否则为bind_TABLE if not exists指定表字段',
  11. `val_type` int(11) NOT NULL DEFAULT 1 COMMENT '1字符串2数字',
  12. `sort_index` int(11) NOT NULL DEFAULT 1 COMMENT '字段排序',
  13. PRIMARY KEY (`id`) USING BTREE
  14. ) ENGINE = InnoDB AUTO_INCREMENT = 227 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_0900_ai_ci COMMENT = '任务定义表(lp0-lp30)' ROW_FORMAT = DYNAMIC;
  15. -- ----------------------------
  16. -- Table structure for ams_hexdefine_header
  17. -- ----------------------------
  18. DROP TABLE IF EXISTS `ams_hexdefine_header`;
  19. CREATE TABLE `ams_hexdefine_header` (
  20. `id` int(11) NOT NULL AUTO_INCREMENT COMMENT '主键',
  21. `task_name` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT '任务名称',
  22. `business_type` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT '任务类型',
  23. `create_date` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP,
  24. PRIMARY KEY (`id`) USING BTREE
  25. ) ENGINE = InnoDB AUTO_INCREMENT = 10 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_0900_ai_ci COMMENT = '16进制指令定义表' ROW_FORMAT = DYNAMIC;
  26. -- ----------------------------
  27. -- Table structure for ams_ndc_event
  28. -- ----------------------------
  29. DROP TABLE IF EXISTS `ams_ndc_event`;
  30. CREATE TABLE `ams_ndc_event` (
  31. `id` int(11) NOT NULL AUTO_INCREMENT,
  32. `type` int(11) NULL DEFAULT NULL,
  33. `eCode` int(11) NULL DEFAULT NULL,
  34. `locationIndex` int(11) NULL DEFAULT NULL,
  35. `lp1` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL,
  36. `lp2` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL,
  37. `lp3` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL,
  38. `lp4` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL,
  39. `display` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL,
  40. `displayID` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL,
  41. `level` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL,
  42. PRIMARY KEY (`id`) USING BTREE,
  43. INDEX `id`(`id`) USING BTREE
  44. ) ENGINE = InnoDB AUTO_INCREMENT = 140 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_0900_ai_ci COMMENT = 'Ndc反馈事件代码字典表' ROW_FORMAT = DYNAMIC;
  45. -- ----------------------------
  46. -- Table structure for ams_task
  47. -- ----------------------------
  48. DROP TABLE IF EXISTS `ams_task`;
  49. CREATE TABLE `ams_task` (
  50. `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT,
  51. `task_no` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL,
  52. `iKey` int(11) NULL DEFAULT NULL,
  53. `aci_index` tinyint(3) UNSIGNED NULL DEFAULT NULL,
  54. `st_from` int(10) UNSIGNED NOT NULL,
  55. `st_to` int(10) UNSIGNED NOT NULL,
  56. `priority` int(10) UNSIGNED NOT NULL DEFAULT 0,
  57. `system_status` int(10) UNSIGNED NULL DEFAULT NULL,
  58. `event` int(10) UNSIGNED NULL DEFAULT NULL,
  59. `server_ack` tinyint(3) UNSIGNED NULL DEFAULT 0,
  60. `aci_accept` tinyint(3) UNSIGNED NULL DEFAULT 0,
  61. `is_delete` tinyint(3) UNSIGNED NULL DEFAULT 0,
  62. `callBackUrl` varchar(1000) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL,
  63. `addtime` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP,
  64. `addwho` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL,
  65. `sys_name` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT '调用系统名称',
  66. `device_name` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT '设备名称',
  67. `business_type` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT '任务类型(01普通任务60进判断位90出判断位m释放判断位)',
  68. `ext1` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL,
  69. `ext2` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL,
  70. `ext3` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL,
  71. `height_level` varchar(10) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT '1(低) 2(中) 3(高)',
  72. `remark` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL,
  73. `roadway` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT '巷道',
  74. `tier` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT '层',
  75. PRIMARY KEY (`id`) USING BTREE,
  76. INDEX `id`(`id`) USING BTREE,
  77. INDEX `task_no`(`task_no`) USING BTREE
  78. ) ENGINE = InnoDB AUTO_INCREMENT = 1731588496044228611 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_0900_ai_ci ROW_FORMAT = DYNAMIC;
  79. -- ----------------------------
  80. -- Table structure for base_location_info
  81. -- ----------------------------
  82. DROP TABLE IF EXISTS `base_location_info`;
  83. CREATE TABLE `base_location_info` (
  84. `id` int(64) NOT NULL COMMENT '主键',
  85. `warehouse_id` int(11) NULL DEFAULT NULL COMMENT '车间id',
  86. `zone_id` int(11) NULL DEFAULT NULL COMMENT '区域id',
  87. `location_no` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '库位编码',
  88. `row_no` varchar(11) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '排号',
  89. `row_index` int(11) NULL DEFAULT NULL COMMENT '排序号',
  90. `col_no` varchar(11) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT '列号',
  91. `col_index` int(11) NULL DEFAULT NULL COMMENT '列序号',
  92. `shift_no` varchar(11) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT '层号',
  93. `shift_index` int(11) NULL DEFAULT NULL COMMENT '层序号',
  94. `stock_status` varchar(5) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT '储位状态(00)空闲,(10)占用,(20)完成,(90)合格,(99)不合格(80封存)',
  95. `is_empty` varchar(2) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT '是否为空(Y空/N非空)',
  96. `bind_sku` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT '指定产品',
  97. `location_type` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT '储位类型(1货架2地堆3流离货架)',
  98. `rack_id` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT '盘架编号',
  99. `agv_station` int(11) NULL DEFAULT NULL COMMENT 'AGV点位',
  100. `folded_tag` int(11) NULL DEFAULT 0 COMMENT '是否堆叠',
  101. `folded_count` int(11) NULL DEFAULT 0 COMMENT '叠空托盘上限(当folded_tag为1时有效)',
  102. `height_limit` double(12, 0) NULL DEFAULT 0 COMMENT '限高',
  103. `weight_limit` double(12, 0) NULL DEFAULT 0 COMMENT '限重',
  104. PRIMARY KEY (`id`) USING BTREE
  105. ) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_0900_ai_ci COMMENT = '库位信息' ROW_FORMAT = DYNAMIC;
  106. -- ----------------------------
  107. -- Table structure for car_info
  108. -- ----------------------------
  109. DROP TABLE IF EXISTS `car_info`;
  110. CREATE TABLE `car_info` (
  111. `id` int(11) NOT NULL AUTO_INCREMENT,
  112. `carNo` int(11) NULL DEFAULT NULL COMMENT '车编号',
  113. `warehouse_id` int(11) NULL DEFAULT NULL COMMENT '仓库编号',
  114. `state` varchar(10) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '1' COMMENT '状态',
  115. `active_flag` varchar(10) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT 'Y' COMMENT '是否启用',
  116. `userdefine1` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL,
  117. `userdefine2` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL,
  118. `userdefine3` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL,
  119. `userdefine4` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL,
  120. `userdefine5` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL,
  121. `battery` int(11) NULL DEFAULT NULL COMMENT '电池',
  122. `x` int(11) NULL DEFAULT NULL COMMENT 'x轴',
  123. `y` int(11) NULL DEFAULT NULL COMMENT 'y轴',
  124. PRIMARY KEY (`id`) USING BTREE
  125. ) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci ROW_FORMAT = DYNAMIC;
  126. SET FOREIGN_KEY_CHECKS = 1;