/*
 Navicat Premium Dump SQL

 Source Server         : TEST-A
 Source Server Type    : MySQL
 Source Server Version : 50744 (5.7.44)
 Source Host           : 10.168.1.111:3306
 Source Schema         : zcnest

 Target Server Type    : MySQL
 Target Server Version : 50744 (5.7.44)
 File Encoding         : 65001

 Date: 19/02/2025 16:02:57
*/

SET NAMES utf8mb4;
SET FOREIGN_KEY_CHECKS = 0;

-- ----------------------------
-- Table structure for adjust
-- ----------------------------
DROP TABLE IF EXISTS `adjust`;
CREATE TABLE `adjust`  (
  `id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '主键ID',
  `preStatus` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '修改前状态',
  `status` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '0' COMMENT '修改后状态',
  `orderType` int(2) NULL DEFAULT NULL COMMENT '单据类型',
  `orderId` bigint(20) NULL DEFAULT NULL COMMENT '单据id',
  `subOrderId` bigint(20) NULL DEFAULT NULL COMMENT '单据详情ID',
  `preNum` int(10) NULL DEFAULT NULL COMMENT '修改前数量',
  `num` int(10) NULL DEFAULT 0 COMMENT '修改后数量',
  `preProdDate` timestamp NULL DEFAULT NULL COMMENT '修改前生产日期',
  `prodDate` timestamp NULL DEFAULT NULL COMMENT '修改后生产日期',
  `preBatch` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '修改前批次',
  `batch` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '0000-00-00 00:00:00' COMMENT '修改后批次',
  `preBoxId` int(11) NULL DEFAULT NULL COMMENT '修改前托盘ID',
  `boxId` int(11) NULL DEFAULT NULL COMMENT '修改后托盘ID',
  `createrId` bigint(11) NULL DEFAULT NULL COMMENT '创建人ID',
  `createDate` timestamp NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
  `materialId` int(11) NULL DEFAULT NULL COMMENT '货物ID',
  `remark` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '备注',
  `type` int(11) NULL DEFAULT NULL COMMENT '调整类型（0：盘点调整，1手动调整）',
  `state` int(11) NULL DEFAULT 0 COMMENT '调整状态(0：未调整；1：已调整)',
  `operationId` int(11) NULL DEFAULT NULL COMMENT '操作人ID',
  `operationTime` timestamp NULL DEFAULT NULL COMMENT '操作时间',
  `updateType` char(2) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '单据修改类别（0：数量、1：状态、2：生产日期）',
  PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8 COLLATE = utf8_general_ci COMMENT = '调整' ROW_FORMAT = DYNAMIC;

-- ----------------------------
-- Records of adjust
-- ----------------------------

-- ----------------------------
-- Table structure for agv_conf
-- ----------------------------
DROP TABLE IF EXISTS `agv_conf`;
CREATE TABLE `agv_conf`  (
  `id` int(11) NOT NULL AUTO_INCREMENT COMMENT '配置项ID',
  `name` varchar(20) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '配置项名称',
  `rotationSpeed` float NOT NULL COMMENT '转弯的速度m/s',
  `liftSpeed` float NOT NULL COMMENT '上升/下降速度',
  `pick` float NOT NULL COMMENT '取卸货花费的时间(s)',
  `start` float NOT NULL COMMENT '开始到匀速需要的时间(s)',
  `stop` float NOT NULL COMMENT '减速到停止需要的时间(s)',
  `a` float NOT NULL COMMENT '加速度(m/s^2)',
  `speed` float NOT NULL COMMENT '最大速度',
  `robotType` int(11) NULL DEFAULT 1 COMMENT 'AGV的类型--固定是1，代表国自类型AGV',
  PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8 COLLATE = utf8_general_ci ROW_FORMAT = DYNAMIC;

-- ----------------------------
-- Records of agv_conf
-- ----------------------------

-- ----------------------------
-- Table structure for attachment
-- ----------------------------
DROP TABLE IF EXISTS `attachment`;
CREATE TABLE `attachment`  (
  `id` bigint(32) NOT NULL AUTO_INCREMENT,
  `origin_filename` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '上传文件原文件名',
  `filename` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '文件名',
  `extension` varchar(20) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '扩展名',
  `description` varchar(500) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '文件描述',
  `url` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '文件URL',
  `reference_id` bigint(32) NULL DEFAULT NULL COMMENT '附件被引用id',
  `reference_type` int(11) NULL DEFAULT NULL COMMENT '附件被应用表类型',
  `created_time` datetime NULL DEFAULT NULL,
  `created_by` bigint(32) NULL DEFAULT NULL,
  `modified_time` datetime NULL DEFAULT NULL,
  `modified_by` bigint(32) NULL DEFAULT NULL,
  `deleted` tinyint(1) NULL DEFAULT 0,
  PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8 COLLATE = utf8_general_ci ROW_FORMAT = DYNAMIC;

-- ----------------------------
-- Records of attachment
-- ----------------------------

-- ----------------------------
-- Table structure for auto_id
-- ----------------------------
DROP TABLE IF EXISTS `auto_id`;
CREATE TABLE `auto_id`  (
  `id` int(11) NOT NULL AUTO_INCREMENT COMMENT '递增之后的值',
  PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 124 CHARACTER SET = utf8 COLLATE = utf8_general_ci ROW_FORMAT = DYNAMIC;

-- ----------------------------
-- Records of auto_id
-- ----------------------------
INSERT INTO `auto_id` VALUES (1);
INSERT INTO `auto_id` VALUES (2);
INSERT INTO `auto_id` VALUES (3);
INSERT INTO `auto_id` VALUES (4);
INSERT INTO `auto_id` VALUES (5);
INSERT INTO `auto_id` VALUES (6);
INSERT INTO `auto_id` VALUES (7);
INSERT INTO `auto_id` VALUES (8);
INSERT INTO `auto_id` VALUES (9);
INSERT INTO `auto_id` VALUES (10);
INSERT INTO `auto_id` VALUES (11);
INSERT INTO `auto_id` VALUES (12);
INSERT INTO `auto_id` VALUES (13);
INSERT INTO `auto_id` VALUES (14);
INSERT INTO `auto_id` VALUES (15);
INSERT INTO `auto_id` VALUES (16);
INSERT INTO `auto_id` VALUES (17);
INSERT INTO `auto_id` VALUES (18);
INSERT INTO `auto_id` VALUES (19);
INSERT INTO `auto_id` VALUES (20);
INSERT INTO `auto_id` VALUES (21);
INSERT INTO `auto_id` VALUES (22);
INSERT INTO `auto_id` VALUES (23);
INSERT INTO `auto_id` VALUES (24);
INSERT INTO `auto_id` VALUES (25);
INSERT INTO `auto_id` VALUES (26);
INSERT INTO `auto_id` VALUES (27);
INSERT INTO `auto_id` VALUES (28);
INSERT INTO `auto_id` VALUES (29);
INSERT INTO `auto_id` VALUES (30);
INSERT INTO `auto_id` VALUES (31);
INSERT INTO `auto_id` VALUES (32);
INSERT INTO `auto_id` VALUES (33);
INSERT INTO `auto_id` VALUES (34);
INSERT INTO `auto_id` VALUES (35);
INSERT INTO `auto_id` VALUES (36);
INSERT INTO `auto_id` VALUES (37);
INSERT INTO `auto_id` VALUES (38);
INSERT INTO `auto_id` VALUES (39);
INSERT INTO `auto_id` VALUES (40);
INSERT INTO `auto_id` VALUES (41);
INSERT INTO `auto_id` VALUES (42);
INSERT INTO `auto_id` VALUES (43);
INSERT INTO `auto_id` VALUES (44);
INSERT INTO `auto_id` VALUES (45);
INSERT INTO `auto_id` VALUES (46);
INSERT INTO `auto_id` VALUES (47);
INSERT INTO `auto_id` VALUES (48);
INSERT INTO `auto_id` VALUES (49);
INSERT INTO `auto_id` VALUES (50);
INSERT INTO `auto_id` VALUES (51);
INSERT INTO `auto_id` VALUES (52);
INSERT INTO `auto_id` VALUES (53);
INSERT INTO `auto_id` VALUES (54);
INSERT INTO `auto_id` VALUES (55);
INSERT INTO `auto_id` VALUES (56);
INSERT INTO `auto_id` VALUES (57);
INSERT INTO `auto_id` VALUES (58);
INSERT INTO `auto_id` VALUES (59);
INSERT INTO `auto_id` VALUES (60);
INSERT INTO `auto_id` VALUES (61);
INSERT INTO `auto_id` VALUES (62);
INSERT INTO `auto_id` VALUES (63);
INSERT INTO `auto_id` VALUES (64);
INSERT INTO `auto_id` VALUES (65);
INSERT INTO `auto_id` VALUES (66);
INSERT INTO `auto_id` VALUES (67);
INSERT INTO `auto_id` VALUES (68);
INSERT INTO `auto_id` VALUES (69);
INSERT INTO `auto_id` VALUES (70);
INSERT INTO `auto_id` VALUES (71);
INSERT INTO `auto_id` VALUES (72);
INSERT INTO `auto_id` VALUES (73);
INSERT INTO `auto_id` VALUES (74);
INSERT INTO `auto_id` VALUES (75);
INSERT INTO `auto_id` VALUES (76);
INSERT INTO `auto_id` VALUES (77);
INSERT INTO `auto_id` VALUES (78);
INSERT INTO `auto_id` VALUES (79);
INSERT INTO `auto_id` VALUES (80);
INSERT INTO `auto_id` VALUES (81);
INSERT INTO `auto_id` VALUES (82);
INSERT INTO `auto_id` VALUES (83);
INSERT INTO `auto_id` VALUES (84);
INSERT INTO `auto_id` VALUES (85);
INSERT INTO `auto_id` VALUES (86);
INSERT INTO `auto_id` VALUES (87);
INSERT INTO `auto_id` VALUES (88);
INSERT INTO `auto_id` VALUES (89);
INSERT INTO `auto_id` VALUES (90);
INSERT INTO `auto_id` VALUES (91);
INSERT INTO `auto_id` VALUES (92);
INSERT INTO `auto_id` VALUES (93);
INSERT INTO `auto_id` VALUES (94);
INSERT INTO `auto_id` VALUES (95);
INSERT INTO `auto_id` VALUES (96);
INSERT INTO `auto_id` VALUES (97);
INSERT INTO `auto_id` VALUES (98);
INSERT INTO `auto_id` VALUES (99);
INSERT INTO `auto_id` VALUES (100);
INSERT INTO `auto_id` VALUES (101);
INSERT INTO `auto_id` VALUES (102);
INSERT INTO `auto_id` VALUES (103);
INSERT INTO `auto_id` VALUES (104);
INSERT INTO `auto_id` VALUES (105);
INSERT INTO `auto_id` VALUES (106);
INSERT INTO `auto_id` VALUES (107);
INSERT INTO `auto_id` VALUES (108);
INSERT INTO `auto_id` VALUES (109);
INSERT INTO `auto_id` VALUES (110);
INSERT INTO `auto_id` VALUES (111);
INSERT INTO `auto_id` VALUES (112);
INSERT INTO `auto_id` VALUES (113);
INSERT INTO `auto_id` VALUES (114);
INSERT INTO `auto_id` VALUES (115);
INSERT INTO `auto_id` VALUES (116);
INSERT INTO `auto_id` VALUES (117);
INSERT INTO `auto_id` VALUES (118);
INSERT INTO `auto_id` VALUES (119);
INSERT INTO `auto_id` VALUES (120);
INSERT INTO `auto_id` VALUES (121);
INSERT INTO `auto_id` VALUES (122);
INSERT INTO `auto_id` VALUES (123);

-- ----------------------------
-- Table structure for block
-- ----------------------------
DROP TABLE IF EXISTS `block`;
CREATE TABLE `block`  (
  `id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '区域ID',
  `name` varchar(20) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '区域名称',
  `type` int(11) NULL DEFAULT 1 COMMENT '区域类型，1-互斥区',
  `geometry` varchar(1000) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '区域的边界，格式为闭合的顶点，例如：3828,9345;3828,7345;1828,7345;1828,9345;3828,9345',
  `enable` varchar(1) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT 'Y' COMMENT '是否启用Y-启用 N-禁用',
  `area_id` int(11) NULL DEFAULT 1,
  `color` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '颜色',
  `created_time` datetime NULL DEFAULT NULL COMMENT '创建时间',
  `modified_time` datetime NULL DEFAULT NULL COMMENT '修改时间',
  `created_by` bigint(20) NULL DEFAULT NULL COMMENT '创建人id',
  `modified_by` bigint(20) NULL DEFAULT NULL COMMENT '最后修改人id',
  PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8 COLLATE = utf8_general_ci ROW_FORMAT = DYNAMIC;

-- ----------------------------
-- Records of block
-- ----------------------------

-- ----------------------------
-- Table structure for box
-- ----------------------------
DROP TABLE IF EXISTS `box`;
CREATE TABLE `box`  (
  `id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '托盘id',
  `typeId` int(11) NULL DEFAULT NULL COMMENT '类型 字段参考dic_box_type表',
  `sizePercentage` int(11) NULL DEFAULT 0 COMMENT '已经使用的比例',
  `lockSizePercentage` double NULL DEFAULT 0 COMMENT '锁定的百分比。 只在补货有用',
  `enable` varchar(1) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT 'Y' COMMENT 'Y启用   N禁用',
  PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8 COLLATE = utf8_general_ci ROW_FORMAT = DYNAMIC;

-- ----------------------------
-- Records of box
-- ----------------------------

-- ----------------------------
-- Table structure for charge_conf
-- ----------------------------
DROP TABLE IF EXISTS `charge_conf`;
CREATE TABLE `charge_conf`  (
  `conf_id` bigint(20) NOT NULL COMMENT '配置项ID',
  `type` int(11) NULL DEFAULT 1 COMMENT '电池类型 1--锂电池 2 铅酸电池',
  `offset_x` int(11) NOT NULL DEFAULT 0 COMMENT '充电接触点到参考点的x方向的距离',
  `offset_y` int(11) NOT NULL DEFAULT 0 COMMENT '充电接触点到参考点的Y方向的距离',
  `back_offset` int(11) NULL DEFAULT NULL,
  PRIMARY KEY (`conf_id`) USING BTREE
) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_general_ci ROW_FORMAT = DYNAMIC;

-- ----------------------------
-- Records of charge_conf
-- ----------------------------
INSERT INTO `charge_conf` VALUES (102, 1, 0, 0, 900);

-- ----------------------------
-- Table structure for conf
-- ----------------------------
DROP TABLE IF EXISTS `conf`;
CREATE TABLE `conf`  (
  `regex` text CHARACTER SET utf8 COLLATE utf8_general_ci NULL,
  `regexA` text CHARACTER SET utf8 COLLATE utf8_general_ci NULL,
  `regexB` text CHARACTER SET utf8 COLLATE utf8_general_ci NULL,
  `regexC` text CHARACTER SET utf8 COLLATE utf8_general_ci NULL,
  `regexD` text CHARACTER SET utf8 COLLATE utf8_general_ci NULL,
  `numbers` text CHARACTER SET utf8 COLLATE utf8_general_ci NULL,
  `nextWrong` text CHARACTER SET utf8 COLLATE utf8_general_ci NULL,
  `preWrong` text CHARACTER SET utf8 COLLATE utf8_general_ci NULL,
  `nextContinue` text CHARACTER SET utf8 COLLATE utf8_general_ci NULL,
  `chnNextWrong` text CHARACTER SET utf8 COLLATE utf8_general_ci NULL,
  `nextSeriousChars` text CHARACTER SET utf8 COLLATE utf8_general_ci NULL,
  `outer` text CHARACTER SET utf8 COLLATE utf8_general_ci NULL,
  `inner` text CHARACTER SET utf8 COLLATE utf8_general_ci NULL
) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_general_ci ROW_FORMAT = DYNAMIC;

-- ----------------------------
-- Records of conf
-- ----------------------------

-- ----------------------------
-- Table structure for config
-- ----------------------------
DROP TABLE IF EXISTS `config`;
CREATE TABLE `config`  (
  `id` bigint(11) NOT NULL AUTO_INCREMENT COMMENT '主键',
  `name` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '名称',
  `code` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '编码',
  `value` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '值',
  `defalutValue` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '默认值',
  PRIMARY KEY (`id`) USING BTREE,
  UNIQUE INDEX `code`(`code`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 7 CHARACTER SET = utf8 COLLATE = utf8_general_ci ROW_FORMAT = DYNAMIC;

-- ----------------------------
-- Records of config
-- ----------------------------
INSERT INTO `config` VALUES (1, '优先货架数量', 'prior_shelf_number', NULL, '2');
INSERT INTO `config` VALUES (2, '货物优先级计算周期 （天）', 'prior_cycle_days', NULL, '2');
INSERT INTO `config` VALUES (3, '优先货位存储几天的货物数量', 'prior_store_days', NULL, '2');
INSERT INTO `config` VALUES (4, '移库在无任务（上架、盘点、出库）多少分钟后才开启', 'move_start_term_minutes', NULL, '30');
INSERT INTO `config` VALUES (5, '定时创建盘点的托盘数', 'check_box_num', NULL, '10');
INSERT INTO `config` VALUES (6, '当前计划执行到的托盘id', 'check_plan_last_box_id', '98906', NULL);

-- ----------------------------
-- Table structure for config_modify
-- ----------------------------
DROP TABLE IF EXISTS `config_modify`;
CREATE TABLE `config_modify`  (
  `type` varchar(20) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '配置项类型，道路限高/节点坐标/插齿高度/行驶速度',
  `location` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '修改的记录ID',
  `oldValue` varchar(20) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '原值，坐标为x,y',
  `newValue` varchar(20) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '新值，坐标为x,y',
  `modifyMan` varchar(20) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '修改者名称',
  `modifyTime` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '修改时间',
  `robotDicId` int(11) NULL DEFAULT NULL COMMENT '机器人模板ID',
  `correctValue` varchar(30) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '系统修正值'
) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_general_ci ROW_FORMAT = DYNAMIC;

-- ----------------------------
-- Records of config_modify
-- ----------------------------

-- ----------------------------
-- Table structure for container_specification
-- ----------------------------
DROP TABLE IF EXISTS `container_specification`;
CREATE TABLE `container_specification`  (
  `id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '容器规格ID',
  `specification` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '容器规格',
  `detection` int(11) NULL DEFAULT NULL COMMENT '到位检测方式',
  `distance` int(11) NULL DEFAULT NULL COMMENT '到位距离',
  `created_time` datetime NULL DEFAULT NULL COMMENT '创建时间',
  `modified_time` datetime NULL DEFAULT NULL COMMENT '修改时间',
  `created_by` bigint(20) NULL DEFAULT NULL COMMENT '创建人id',
  `modified_by` bigint(20) NULL DEFAULT NULL COMMENT '最后修改人id',
  PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8 COLLATE = utf8_general_ci ROW_FORMAT = DYNAMIC;

-- ----------------------------
-- Records of container_specification
-- ----------------------------

-- ----------------------------
-- Table structure for contract
-- ----------------------------
DROP TABLE IF EXISTS `contract`;
CREATE TABLE `contract`  (
  `id` int(11) NOT NULL AUTO_INCREMENT COMMENT '主键ID',
  `contractCode` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '合同编号',
  `projectName` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '项目名称（公司名称）',
  `startTime` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '合同生效时间',
  `endTime` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00' COMMENT '合同过期时间',
  `administratorNum` int(11) NOT NULL COMMENT '管理员人数',
  `operatorNum` int(11) NOT NULL COMMENT '操作员人数',
  `phone` varchar(15) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '联系电话',
  `email` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '联系邮箱',
  `contactName` varchar(20) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '联系人姓名',
  `saleName` varchar(20) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '系统销售人员姓名',
  `remark` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '备注',
  `parentId` bigint(11) NULL DEFAULT NULL COMMENT '【此字段无需手动维护】用户验证是否已创建账户 和其它验证操作',
  PRIMARY KEY (`id`, `contractCode`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8 COLLATE = utf8_general_ci ROW_FORMAT = DYNAMIC;

-- ----------------------------
-- Records of contract
-- ----------------------------

-- ----------------------------
-- Table structure for device_conf
-- ----------------------------
DROP TABLE IF EXISTS `device_conf`;
CREATE TABLE `device_conf`  (
  `id` int(11) NOT NULL AUTO_INCREMENT COMMENT '主键ID',
  `device_code` varchar(20) CHARACTER SET utf8 COLLATE utf8_croatian_ci NOT NULL COMMENT '设备编号 唯一',
  `area_id` int(11) NOT NULL COMMENT '库房ID',
  `ip` varchar(32) CHARACTER SET utf8 COLLATE utf8_croatian_ci NOT NULL COMMENT 'IP',
  `port` int(8) NOT NULL COMMENT '端口',
  `enable` char(2) CHARACTER SET utf8 COLLATE utf8_croatian_ci NOT NULL DEFAULT 'Y' COMMENT '启用-Y 禁用-N 默认启用',
  `wifi` int(5) NOT NULL DEFAULT 0 COMMENT '信号状态 默认0',
  PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8 COLLATE = utf8_croatian_ci ROW_FORMAT = DYNAMIC;

-- ----------------------------
-- Records of device_conf
-- ----------------------------

-- ----------------------------
-- Table structure for device_conf_detail
-- ----------------------------
DROP TABLE IF EXISTS `device_conf_detail`;
CREATE TABLE `device_conf_detail`  (
  `device_id` int(11) NOT NULL COMMENT '设备配置ID',
  `signal` varchar(10) CHARACTER SET utf8 COLLATE utf8_croatian_ci NOT NULL COMMENT '信号',
  `state` int(2) NOT NULL COMMENT '状态：0-开、1-合',
  `qrcode` varchar(32) CHARACTER SET utf8 COLLATE utf8_croatian_ci NOT NULL COMMENT '节点编号(可能是id 、qrcode、道路字符串)',
  `type` int(2) NOT NULL COMMENT '节点类型 0-道路点 1-道路 2-货架 3-仓位',
  `process_state` int(2) NOT NULL COMMENT '流程状态 0-满 1-请求避让 2-锁'
) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_croatian_ci ROW_FORMAT = DYNAMIC;

-- ----------------------------
-- Records of device_conf_detail
-- ----------------------------

-- ----------------------------
-- Table structure for dic_box_type
-- ----------------------------
DROP TABLE IF EXISTS `dic_box_type`;
CREATE TABLE `dic_box_type`  (
  `id` int(11) NULL DEFAULT NULL COMMENT '字典ID',
  `name` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '名称',
  `size` int(11) NULL DEFAULT 0 COMMENT '多少平方厘米， 体积',
  `width` int(11) NULL DEFAULT NULL COMMENT '托盘宽度',
  INDEX `id`(`id`) USING BTREE
) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_general_ci ROW_FORMAT = DYNAMIC;

-- ----------------------------
-- Records of dic_box_type
-- ----------------------------
INSERT INTO `dic_box_type` VALUES (1, '800托盘', 0, 800);
INSERT INTO `dic_box_type` VALUES (2, '600托盘', 0, 600);
INSERT INTO `dic_box_type` VALUES (3, '400托盘', 0, 400);

-- ----------------------------
-- Table structure for dic_light_status
-- ----------------------------
DROP TABLE IF EXISTS `dic_light_status`;
CREATE TABLE `dic_light_status`  (
  `process` int(11) NULL DEFAULT NULL COMMENT '流程ID 参考dic_process表',
  `status` int(11) NULL DEFAULT NULL COMMENT '托盘的状态',
  `light` int(11) NULL DEFAULT NULL COMMENT '灯光的颜色ID',
  `description` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '灯光ID的描述'
) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_general_ci ROW_FORMAT = DYNAMIC;

-- ----------------------------
-- Records of dic_light_status
-- ----------------------------

-- ----------------------------
-- Table structure for dic_material_group
-- ----------------------------
DROP TABLE IF EXISTS `dic_material_group`;
CREATE TABLE `dic_material_group`  (
  `name` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL
) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_general_ci ROW_FORMAT = DYNAMIC;

-- ----------------------------
-- Records of dic_material_group
-- ----------------------------

-- ----------------------------
-- Table structure for dic_shelf
-- ----------------------------
DROP TABLE IF EXISTS `dic_shelf`;
CREATE TABLE `dic_shelf`  (
  `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT '字典ID',
  `type` int(11) NULL DEFAULT NULL COMMENT '类型，1-内部货架 2拣选货架',
  `name` varchar(20) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '名称 拣选货架/内部货架',
  `x_size` int(11) NOT NULL COMMENT 'x方向可放托盘数',
  `y_size` int(11) NULL DEFAULT 1 COMMENT 'y方向可放托盘数',
  `z_size` int(11) NOT NULL COMMENT '层高数',
  `xs` varchar(700) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '数组，x的横向距离，单位是mm。 示例 1,2,3,4',
  `ys` varchar(700) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '数组，y的距离，单位是mm。 示例 1,2,3,4',
  `zs` varchar(700) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '数组，z离地距离，单位是mm。 示例 1,2,3,4',
  `length` int(11) NULL DEFAULT NULL COMMENT '货架横向长度，单位mm',
  `width` int(11) NULL DEFAULT NULL COMMENT '货架宽度，单位mm',
  `height` int(11) NULL DEFAULT NULL COMMENT '货架高度，单位mm',
  `column_width` int(11) NULL DEFAULT NULL COMMENT '货架立柱宽度，单位mm',
  `pallet_width` int(11) NULL DEFAULT NULL COMMENT '托盘宽度(进插面的宽度)，单位mm',
  `pallet_length` double NULL DEFAULT NULL COMMENT '托盘长度(非进插面宽度)，单位mm',
  `pallet_separation` int(11) NULL DEFAULT NULL COMMENT '两临近托盘列间距，单位mm',
  `pallet_row_separation` int(11) NULL DEFAULT NULL COMMENT '两临近托盘行间距，单位mm',
  `group` int(11) NULL DEFAULT 1 COMMENT '多少个为一组，例如工位、区域',
  `show_type` int(11) NULL DEFAULT NULL COMMENT '仓位类型 1-PAD导铁  圆形图标 2-托盘库位  方形',
  `created_time` datetime NULL DEFAULT NULL COMMENT '创建时间',
  `modified_time` datetime NULL DEFAULT NULL COMMENT '修改时间',
  `created_by` bigint(20) NULL DEFAULT NULL COMMENT '创建人id',
  `modified_by` bigint(20) NULL DEFAULT NULL COMMENT '最后修改人id',
  PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 3 CHARACTER SET = utf8 COLLATE = utf8_general_ci ROW_FORMAT = DYNAMIC;

-- ----------------------------
-- Records of dic_shelf
-- ----------------------------
INSERT INTO `dic_shelf` VALUES (1, 1, '地堆', 1, 1, 1, '600', '500', '100', 1200, 1000, 1000, 50, 1000, 1200, 0, 0, 1, 2, '2025-02-17 17:25:15', '2025-02-17 17:25:15', NULL, NULL);
INSERT INTO `dic_shelf` VALUES (2, 5, '电梯模版', 1, 1, 1, '600', '500', '100', 1200, 1000, 1000, 50, 1000, 1200, 0, 0, 1, 2, '2025-02-17 17:26:00', '2025-02-17 17:26:00', NULL, NULL);

-- ----------------------------
-- Table structure for dic_storage
-- ----------------------------
DROP TABLE IF EXISTS `dic_storage`;
CREATE TABLE `dic_storage`  (
  `id` int(11) NULL DEFAULT NULL COMMENT '标签ID，必须是质数',
  `name` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '标签名称',
  INDEX `id`(`id`) USING BTREE
) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_general_ci ROW_FORMAT = DYNAMIC;

-- ----------------------------
-- Records of dic_storage
-- ----------------------------

-- ----------------------------
-- Table structure for domain
-- ----------------------------
DROP TABLE IF EXISTS `domain`;
CREATE TABLE `domain`  (
  `id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '主键ID',
  `name` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '区域名称',
  `description` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '描述',
  `area_id` bigint(20) NOT NULL COMMENT '库房ID',
  `created_time` datetime NULL DEFAULT NULL COMMENT '创建时间',
  `modified_time` datetime NULL DEFAULT NULL COMMENT '修改时间',
  `created_by` bigint(20) NULL DEFAULT NULL COMMENT '创建人id',
  `modified_by` bigint(20) NULL DEFAULT NULL COMMENT '最后修改人id',
  PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8 COLLATE = utf8_general_ci ROW_FORMAT = DYNAMIC;

-- ----------------------------
-- Records of domain
-- ----------------------------

-- ----------------------------
-- Table structure for elevator
-- ----------------------------
DROP TABLE IF EXISTS `elevator`;
CREATE TABLE `elevator`  (
  `id` bigint(20) NOT NULL AUTO_INCREMENT,
  `name` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '电梯名称',
  `type` int(11) NOT NULL COMMENT '电梯类型，1：机器人跟随电梯，2：机器人不随电梯',
  `ip` varchar(20) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL,
  `port` int(11) NOT NULL,
  `device_id` int(11) NULL DEFAULT NULL COMMENT '设备自定义的id，lora通讯的电梯，这里是lora的id',
  `protocol` int(11) NULL DEFAULT 0 COMMENT '0：众仓仿真电梯，1：众仓lora控制协议，2：旺龙局域网控制协议',
  `enable` varchar(1) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT 'Y' COMMENT 'Y-启用，N-禁用',
  `valid` tinyint(4) NULL DEFAULT 1 COMMENT '电梯是否有效，0：无效/禁用；1有效',
  `created_time` datetime NULL DEFAULT NULL COMMENT '创建时间',
  `modified_time` datetime NULL DEFAULT NULL COMMENT '修改时间',
  `created_by` bigint(20) NULL DEFAULT NULL COMMENT '创建人id',
  `modified_by` bigint(20) NULL DEFAULT NULL COMMENT '最后修改人id',
  PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 1891419255604244482 CHARACTER SET = utf8 COLLATE = utf8_general_ci ROW_FORMAT = DYNAMIC;

-- ----------------------------
-- Records of elevator
-- ----------------------------
INSERT INTO `elevator` VALUES (1891419255604244481, '测试电梯', 1, '192.168.1.111', 10002, 1, 0, 'Y', 1, '2025-02-17 17:27:46', '2025-02-17 17:27:46', NULL, NULL);

-- ----------------------------
-- Table structure for elevator_shelf_box
-- ----------------------------
DROP TABLE IF EXISTS `elevator_shelf_box`;
CREATE TABLE `elevator_shelf_box`  (
  `id` bigint(32) NOT NULL AUTO_INCREMENT,
  `elevator_id` bigint(20) NOT NULL COMMENT '电梯ID',
  `area_id` int(11) NOT NULL COMMENT '库房ID',
  `level` int(11) NOT NULL COMMENT '所在楼层',
  `shelf_box_id` int(11) NOT NULL COMMENT '对应楼层的仓位ID',
  `qrcode_id` int(11) NOT NULL COMMENT '对应楼层的货架道路节点ID',
  `enable` varchar(1) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT 'Y' COMMENT 'Y-启用，N-禁用',
  `robot_id` int(11) NULL DEFAULT NULL COMMENT '当前占用机器人ID',
  `box_id` int(11) NULL DEFAULT NULL COMMENT '当前占用托盘ID',
  `to_shelf_box_id` int(11) NULL DEFAULT NULL COMMENT '要前往的仓位ID',
  `wms_id` int(11) NULL DEFAULT NULL,
  `door_open` tinyint(1) NULL DEFAULT 0 COMMENT '开门状态',
  `created_time` datetime NULL DEFAULT NULL COMMENT '创建时间',
  `modified_time` datetime NULL DEFAULT NULL COMMENT '修改时间',
  `created_by` bigint(20) NULL DEFAULT NULL COMMENT '创建人id',
  `modified_by` bigint(20) NULL DEFAULT NULL COMMENT '最后修改人id',
  PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 1891440087768494083 CHARACTER SET = utf8 COLLATE = utf8_general_ci ROW_FORMAT = DYNAMIC;

-- ----------------------------
-- Records of elevator_shelf_box
-- ----------------------------
INSERT INTO `elevator_shelf_box` VALUES (1891439885854699521, 1891419255604244481, 1, 1, 1001, 32, 'Y', NULL, NULL, NULL, NULL, 0, '2025-02-17 18:49:45', '2025-02-17 18:49:45', NULL, NULL);
INSERT INTO `elevator_shelf_box` VALUES (1891440087768494082, 1891419255604244481, 2, 2, 10001, 81, 'Y', NULL, 1, NULL, NULL, 0, '2025-02-17 18:50:33', '2025-02-17 18:50:33', NULL, NULL);

-- ----------------------------
-- Table structure for emergency_stop
-- ----------------------------
DROP TABLE IF EXISTS `emergency_stop`;
CREATE TABLE `emergency_stop`  (
  `id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '主键id',
  `name` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '名称',
  `conf_id` int(11) NOT NULL COMMENT '机器人类型ID',
  `device_id` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '设备id',
  `created_time` datetime NULL DEFAULT NULL COMMENT '创建时间',
  `modified_time` datetime NULL DEFAULT NULL COMMENT '修改时间',
  `created_by` bigint(20) NULL DEFAULT NULL COMMENT '创建人id',
  `modified_by` bigint(20) NULL DEFAULT NULL COMMENT '最后修改人id',
  PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8 COLLATE = utf8_general_ci ROW_FORMAT = COMPACT;

-- ----------------------------
-- Records of emergency_stop
-- ----------------------------

-- ----------------------------
-- Table structure for emulation
-- ----------------------------
DROP TABLE IF EXISTS `emulation`;
CREATE TABLE `emulation`  (
  `id` int(11) NOT NULL AUTO_INCREMENT COMMENT '主键ID',
  `positionpast` varchar(20) CHARACTER SET latin1 COLLATE latin1_swedish_ci NOT NULL COMMENT '前一个工位',
  `sku` varchar(80) CHARACTER SET latin1 COLLATE latin1_swedish_ci NULL DEFAULT NULL COMMENT '条形码',
  `state` char(2) CHARACTER SET latin1 COLLATE latin1_swedish_ci NULL DEFAULT '2' COMMENT '状态（0：开始 ；1：进行中；2：结束）默认为2',
  `positionnow` varchar(20) CHARACTER SET latin1 COLLATE latin1_swedish_ci NULL DEFAULT NULL COMMENT '当前工位',
  PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = latin1 COLLATE = latin1_swedish_ci ROW_FORMAT = DYNAMIC;

-- ----------------------------
-- Records of emulation
-- ----------------------------

-- ----------------------------
-- Table structure for encoder
-- ----------------------------
DROP TABLE IF EXISTS `encoder`;
CREATE TABLE `encoder`  (
  `id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '主键id',
  `name` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '名称',
  `conf_id` int(11) NOT NULL COMMENT '机器人类型ID',
  `device_id` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '设备id',
  `baud_rate` int(11) NULL DEFAULT NULL COMMENT '波特率b/s',
  `created_time` datetime NULL DEFAULT NULL COMMENT '创建时间',
  `modified_time` datetime NULL DEFAULT NULL COMMENT '修改时间',
  `created_by` bigint(20) NULL DEFAULT NULL COMMENT '创建人id',
  `modified_by` bigint(20) NULL DEFAULT NULL COMMENT '最后修改人id',
  PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8 COLLATE = utf8_general_ci ROW_FORMAT = COMPACT;

-- ----------------------------
-- Records of encoder
-- ----------------------------

-- ----------------------------
-- Table structure for external_integration_setting
-- ----------------------------
DROP TABLE IF EXISTS `external_integration_setting`;
CREATE TABLE `external_integration_setting`  (
  `id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT 'id',
  `order_status_notify_url` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '订单状态通知地址',
  `target_apply_url` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '目标仓位申请地址',
  `enable` varchar(20) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL DEFAULT 'Y' COMMENT '是否启用',
  `created_time` datetime NULL DEFAULT NULL COMMENT '创建时间',
  `modified_time` datetime NULL DEFAULT NULL COMMENT '修改时间',
  `created_by` bigint(20) NULL DEFAULT NULL COMMENT '创建人id',
  `modified_by` bigint(20) NULL DEFAULT NULL COMMENT '最后修改人id',
  PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8 COLLATE = utf8_general_ci COMMENT = '外部对接整合设置' ROW_FORMAT = DYNAMIC;

-- ----------------------------
-- Records of external_integration_setting
-- ----------------------------

-- ----------------------------
-- Table structure for face
-- ----------------------------
DROP TABLE IF EXISTS `face`;
CREATE TABLE `face`  (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `userId` int(11) NOT NULL,
  `name` varchar(20) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL,
  `imageUrl` varchar(200) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL,
  `faceToken` varchar(200) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL,
  PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8 COLLATE = utf8_general_ci ROW_FORMAT = DYNAMIC;

-- ----------------------------
-- Records of face
-- ----------------------------

-- ----------------------------
-- Table structure for file_log
-- ----------------------------
DROP TABLE IF EXISTS `file_log`;
CREATE TABLE `file_log`  (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `name` varchar(20) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL,
  `startTime` datetime NULL DEFAULT CURRENT_TIMESTAMP,
  `doneTime` datetime NULL DEFAULT NULL,
  `itemNum` int(11) NULL DEFAULT NULL,
  `failNum` int(11) NULL DEFAULT NULL,
  `sameNum` int(11) NULL DEFAULT NULL,
  `status` int(11) NOT NULL,
  PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8 COLLATE = utf8_general_ci ROW_FORMAT = DYNAMIC;

-- ----------------------------
-- Records of file_log
-- ----------------------------

-- ----------------------------
-- Table structure for fitting
-- ----------------------------
DROP TABLE IF EXISTS `fitting`;
CREATE TABLE `fitting`  (
  `id` int(11) NOT NULL AUTO_INCREMENT COMMENT '记录id',
  `robotId` int(11) NOT NULL COMMENT '机器人ID',
  `name` varchar(20) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '配件名称',
  `createTime` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '创建时间',
  `installMan` varchar(20) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '配件安装的用户名称',
  `repairMonth` int(11) NOT NULL COMMENT '配件x个月维修int',
  PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8 COLLATE = utf8_general_ci ROW_FORMAT = DYNAMIC;

-- ----------------------------
-- Records of fitting
-- ----------------------------

-- ----------------------------
-- Table structure for forklift_conf
-- ----------------------------
DROP TABLE IF EXISTS `forklift_conf`;
CREATE TABLE `forklift_conf`  (
  `id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '配置项ID',
  `name` varchar(20) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '叉车类型名称',
  `model` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '叉车型号',
  `body_producer` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '车体生产商',
  `a` float NOT NULL COMMENT '加速度(m/s^2)',
  `robot_type` int(11) NOT NULL COMMENT '1: AGV, 2: 叉车类型3: 牵引车, 5: 全向叉车',
  `speed` float NOT NULL COMMENT '最大直行速度',
  `back_speed` float NULL DEFAULT NULL COMMENT '最大后退速度',
  `rotation_speed` float NOT NULL COMMENT '直行转弯速度(m/s)',
  `rotation_back_speed` float NULL DEFAULT NULL COMMENT '最大转弯后退速度',
  `abstract_speed` float NULL DEFAULT 0.3 COMMENT '辅道的行驶速度',
  `abstract_back_speed` float NULL DEFAULT NULL COMMENT '最大辅道后退速度',
  `pick_up_with_box` float NOT NULL COMMENT '负重时候插齿上升速度(m/s)',
  `pick_up_empty` float NOT NULL COMMENT '空插齿时候上升速度(m/s)',
  `pick_down_with_box` float NOT NULL COMMENT '负重时间插齿下降速度(m/s)',
  `pick_down_empty` float NOT NULL COMMENT '空插齿时候下降速度(m/s)',
  `length` float NULL DEFAULT 0 COMMENT '车体的长度(mm)',
  `width` float NOT NULL COMMENT '车体的宽度(mm)',
  `height` float NOT NULL COMMENT '车体的高度（mm）',
  `move_height` int(11) NULL DEFAULT NULL COMMENT '移动时候的叉车高度(mm)',
  `fork_width` float NULL DEFAULT NULL COMMENT '2个插齿之间的宽度(mm)',
  `fork_distance` float NULL DEFAULT NULL COMMENT '插齿取货时候和上横梁的距离(mm)',
  `pick_id` int(11) NOT NULL COMMENT '仿真模型的取货的动作ID（前端使用）',
  `unpick_id` int(11) NOT NULL COMMENT '仿真模型的卸货动作ID（前端使用）',
  `center_z` float NOT NULL COMMENT '仿真模型整体的中心Z方向的基准线（前端使用）',
  `body_z` float NOT NULL COMMENT '仿真模型车身Z方向的基准线（前端使用）',
  `fork_z` float NULL DEFAULT NULL COMMENT '仿真模型的插齿Z方向的基准线（前端使用）',
  `fork_body_distance` float NULL DEFAULT NULL COMMENT '仿真模型的插齿和车身距离',
  `fork_time` int(11) NOT NULL COMMENT '插齿前移和后退的时间',
  `module_name` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '仿真模型的文件夹名称',
  `x_offset` int(11) NULL DEFAULT 0 COMMENT '车体几何中心距离转弯点的X方向的距离(正数为右面，负数为左面)',
  `y_offset` int(11) NULL DEFAULT 0 COMMENT '车体几何中心距离转弯点的Y方向的距离(正数为前面，负数为后面)',
  `fork_horizontal_offset` int(11) NULL DEFAULT NULL COMMENT '插齿横向时，载货中心距离运动中心的x距离（正数）',
  `edges` varchar(1000) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '边界，格式为非闭环的顶点坐标集，不填则代表长宽的矩形的边界1745,0;1545,-775;650,-775;650,-700;-1065,-700;-1065,700;650,700;650,775;1545,775',
  `suspend_energy` int(3) NOT NULL DEFAULT 20 COMMENT '亏电电量',
  `low_energy` int(3) NOT NULL DEFAULT 30 COMMENT '强制充电电量',
  `free_energy` int(3) NOT NULL DEFAULT 80 COMMENT '空闲充电电量',
  `do_task_energy` int(3) NOT NULL DEFAULT 60 COMMENT '充电可以做任务电量',
  `charge_mode` tinyint(2) NOT NULL DEFAULT 0 COMMENT '手动自动充电配置项，0自动，1手动',
  PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 1001001 CHARACTER SET = utf8 COLLATE = utf8_general_ci ROW_FORMAT = DYNAMIC;

-- ----------------------------
-- Records of forklift_conf
-- ----------------------------
INSERT INTO `forklift_conf` VALUES (1, 'PG-CD20-MA-001', NULL, NULL, 0.15, 2, 1.5, 0.3, 0.3, 0.1, 0.3, 0.1, 0.15, 0.25, 0.8, 0.6, 1668, 1012, 2084, 2590, 600, 250, 3, 3, 1000, 100, 100, -1850, 2, 'PG-CD', 366, 506, NULL, '1200,0;1200,-506;-468,-506;-468,506;1200,506;', 20, 30, 60, 60, 0);
INSERT INTO `forklift_conf` VALUES (2, 'PG-CD15-ZC-001', NULL, NULL, 0.15, 2, 1.5, 0.3, 0.3, 0.1, 0.3, 0.1, 0.15, 0.25, 0.8, 0.6, 1885, 1045, 2100, 2590, 600, 250, 3, 3, 1000, 100, 100, -1850, 2, 'PG-CD', 508, 523, NULL, '1450,0;1450,-523;-435,-523;-435,523;1450,523', 20, 30, 60, 60, 0);
INSERT INTO `forklift_conf` VALUES (101, 'PG-S14-MA-001', NULL, NULL, 0.15, 2, 1.5, 0.3, 0.3, 0.3, 0.3, 0.1, 0.15, 0.25, 0.41, 0.34, 1849, 1170, 2035, 1300, 680, 250, 3, 3, 1000, 100, 100, -1850, 2, 'yonghengli_duigao', 289, 585, NULL, '1213,0;1213,-585;-636,-585;-636,585;1213,585;', 20, 30, 60, 60, 0);
INSERT INTO `forklift_conf` VALUES (102, 'PG-S14-MA-002', NULL, NULL, 0.15, 2, 1.5, 0.3, 0.3, 0.3, 0.3, 0.1, 0.15, 0.25, 0.41, 0.34, 1714, 1025, 1937, 1300, 680, 250, 3, 3, 1000, 100, 100, -1850, 2, 'yonghengli_duigao', 271, 513, NULL, '1128,0;1128,-513;-586,-513;-586,513;1128,513;', 20, 30, 60, 60, 0);
INSERT INTO `forklift_conf` VALUES (103, 'PG-S14-EHA002T', NULL, NULL, 0.15, 2, 1.5, 0.3, 0.3, 0.3, 0.3, 0.1, 0.15, 0.25, 0.41, 0.34, 1714, 1025, 2230, 1300, 680, 250, 3, 3, 1000, 100, 100, -1850, 2, 'yonghengli_duigao', 271, 513, NULL, '1128,0;1128,-513;-586,-513;-586,513;1128,513', 20, 30, 60, 60, 0);
INSERT INTO `forklift_conf` VALUES (201, 'PG-L16-LD-001', NULL, NULL, 0.15, 2, 1.5, 0.3, 0.3, 0.3, 0.3, 0.1, 0.16, 0.24, 0.39, 0.26, 1910, 1006, 2082, 2435, 695, 160, 3, 3, 1000, 100, 100, -1850, 0, 'PG-CR15', 725, 503, NULL, '1680,0;1680,-503;-230,-503;-230,503;1680,503;', 20, 30, 60, 60, 0);
INSERT INTO `forklift_conf` VALUES (202, 'PG-CR15-MA-001', NULL, NULL, 0.15, 2, 1.5, 0.3, 0.3, 0.3, 0.3, 0.1, 0.16, 0.24, 0.39, 0.26, 2010, 1080, 2106, 2435, 695, 160, 3, 3, 1000, 100, 100, -1850, 0, 'PG-CR15', 710, 540, NULL, '1715,0;1715,-540;-295,-540;-295,540;1715,540', 20, 30, 60, 60, 0);
INSERT INTO `forklift_conf` VALUES (203, 'PG-S15-ZC-001', '', '', 0.15, 2, 1.5, 0.3, 0.3, 0.3, 0.3, 0.1, 0.16, 0.24, 0.39, 0.26, 1878, 1034, 2154, 2435, 695, 160, 3, 3, 1000, 100, 100, -1850, 0, 'PG-CR15', 509, 517, NULL, '1448,0;1448,-517;-430,-517;-430,517;1448,517', 20, 30, 60, 60, 0);
INSERT INTO `forklift_conf` VALUES (204, 'PG-CR16-ZSA001T', NULL, NULL, 0.15, 2, 1.5, 0.3, 0.3, 0.3, 0.3, 0.1, 0.16, 0.24, 0.39, 0.26, 2013, 1600, 1890, 2435, 695, 160, 3, 3, 1000, 100, 100, -1850, 0, 'PG-CR15', 438, 800, NULL, '1444,0;1444,-800;-569,-800;-569,800;1444,800', 20, 30, 60, 60, 0);
INSERT INTO `forklift_conf` VALUES (205, 'PG-CR16-ZSA002T', NULL, NULL, 0.15, 2, 1.5, 0.3, 0.3, 0.3, 0.3, 0.1, 0.16, 0.24, 0.39, 0.26, 1960, 1060, 2185, 2435, 695, 160, 3, 3, 1000, 100, 100, -1850, 0, 'PG-CR15', 355, 530, NULL, '1335,0;1335,-530;-625,-530;-625,530;1335,530', 20, 30, 60, 60, 0);
INSERT INTO `forklift_conf` VALUES (206, 'PG-CR16-ZHA003S', NULL, NULL, 0.15, 2, 1.5, 0.3, 0.3, 0.3, 0.3, 0.1, 0.16, 0.24, 0.39, 0.26, 1960, 1060, 2370, 2435, 695, 160, 3, 3, 1000, 100, 100, -1850, 0, 'PG-CR15', 455, 530, NULL, '1435,0;1435,-530;-525,-530;-525,530;1435,530', 20, 30, 60, 60, 0);
INSERT INTO `forklift_conf` VALUES (207, 'PG-CR02-ZHA001T', NULL, NULL, 0.15, 2, 1.5, 0.3, 0.3, 0.3, 0.3, 0.1, 0.16, 0.24, 0.39, 0.26, 1940, 850, 1920, 2435, 695, 160, 3, 3, 1000, 100, 100, -1850, 0, 'PG-CR15', 490, 425, 0, '1460,0;1460,-425;-480,-425;-480,425;1460,425', 20, 30, 60, 60, 0);
INSERT INTO `forklift_conf` VALUES (208, 'PG-CR02-ZHA002T', NULL, NULL, 0.15, 2, 1.5, 0.3, 0.3, 0.3, 0.3, 0.1, 0.16, 0.24, 0.39, 0.26, 1640, 850, 1920, 2435, 695, 160, 3, 3, 1000, 100, 100, -1850, 0, 'PG-CR15', 640, 425, 0, '1460,0;1460,-425;-180,-425;-180,425;1460,425', 20, 30, 60, 60, 0);
INSERT INTO `forklift_conf` VALUES (401, 'PG-HQD20-EHA001T', NULL, NULL, 0.15, 2, 1.5, 0.3, 0.3, 0.3, 0.3, 0.1, 0.15, 0.25, 0.41, 0.36, 2350, 1286, 3620, 1850, 900, 250, 1, 1, 1, 1, 1, 1, 2, 'PG-CQD16', 555, 643, 0, '1730,0;1730,-643;-620,-643;-620,643;1730,643', 20, 30, 60, 60, 0);
INSERT INTO `forklift_conf` VALUES (402, 'PG-HCQ16-EHA002T ', NULL, NULL, 0.15, 2, 1.5, 0.3, 0.3, 0.3, 0.3, 0.1, 0.15, 0.25, 0.41, 0.36, 2330, 1360, 3620, 1850, 900, 250, 1, 1, 1, 1, 1, 1, 2, 'PG-CQD16', 555, 643, 0, '1730,0;1730,-643;-620,-643;-620,643;1730,643', 20, 30, 60, 60, 0);
INSERT INTO `forklift_conf` VALUES (601, 'PG-MCA16-EHA001T', NULL, NULL, 0.15, 6, 1.5, 0.3, 0.3, 0.3, 0.3, 0.1, 0.15, 0.46, 0.5, 0.56, 3455, 1570, 3435, 2210, 708, 250, 3, 3, 1000, 100, 100, -1850, 2, 'PG-SX', 454, 785, 900, '2181,0;2181,-785;-1274,-785;-1274,785;2181,785', 20, 30, 60, 60, 0);
INSERT INTO `forklift_conf` VALUES (10001, '杭叉叉车', NULL, NULL, 0.3, 2, 1.5, 0.2, 0.3, 0.1, 0.3, 0.24, 0.3, 0.5, 0.8, 0.6, 2400, 1000, 2400, 1850, 1, 1, 1, 1, 1, 1, 1, 1, 2, 'forklift2', 600, 500, NULL, '1808,0;1430,-480;682,-480;682,-500;-518,-500;-518,500;682,500;682,480;1430,480', 20, 30, 60, 60, 0);
INSERT INTO `forklift_conf` VALUES (10002, '宇峰叉车', NULL, NULL, 0.5, 2, 2.78, 0.3, 0.3, 0.1, 0.3, 0.24, 0.3, 0.5, 0.8, 0.6, 2690, 1500, 6000, 1950, 100, 250, 3, 3, 1300, 100, 100, 1090, 2, 'yfeng_move', 710, 750, NULL, NULL, 20, 30, 60, 60, 0);
INSERT INTO `forklift_conf` VALUES (10003, '永恒力前移车ETV114-9020', NULL, NULL, 0.2, 2, 2.5, 1, 0.3, 0.1, 0.3, 0.24, 0.34, 0.64, 0.5, 0.4, 2670, 1440, 3540, 3540, 100, 250, 3, 3, 1100, 82, 120, -300, 2, 'yonghengli_move', 930, 720, NULL, '1740,0;1500,-720;-135,-720;-135,-500;-930,-500;-930,500;-135,500;-135,720;1500,720', 20, 30, 60, 60, 0);
INSERT INTO `forklift_conf` VALUES (10004, '定制堆高', NULL, NULL, 0.5, 2, 1.5, 0.3, 0.3, 0.1, 0.3, 0.24, 0.3, 0.5, 0.8, 0.6, 2400, 1000, 2400, 2200, 100, 250, 3, 3, 1200, 50, -250, -840, 2, 'custom_duigao', 620, 500, NULL, NULL, 20, 30, 60, 60, 0);
INSERT INTO `forklift_conf` VALUES (10005, '永恒力堆高ERC220', NULL, NULL, 0.3, 2, 1.5, 0.3, 0.3, 0.1, 0.3, 0.24, 0.15, 0.25, 0.8, 0.6, 2250, 1000, 2450, 2450, 600, 250, 3, 3, 1000, 100, 100, -1850, 2, '永恒力堆高ERC220', 476, 540, NULL, '1700,0;1500,-490;780,-490;650,-500;-550,-500;-550,500;650,500;780,490;1500,490;', 20, 30, 60, 60, 0);
INSERT INTO `forklift_conf` VALUES (10006, 'PG-S14', NULL, NULL, 0.2, 2, 1.5, 0.3, 0.3, 0.1, 0.3, 0.24, 0.15, 0.25, 0.41, 0.34, 2316, 1080, 2450, 1300, 100, 250, 3, 3, 1000, 100, 100, -1850, 2, 'yonghengli_duigao', 476, 540, NULL, '1235,0;1106,-442;600,-442;600,-500;-600,-500;-600,500;600,500;600,442;1106,442', 20, 30, 60, 60, 0);
INSERT INTO `forklift_conf` VALUES (10007, 'PG-CD', NULL, NULL, 0.5, 2, 1.2, 0.3, 0.3, 0.1, 0.3, 0.24, 0.15, 0.25, 0.41, 0.36, 2400, 1000, 2400, 1850, 100, 250, 1, 1, 1, 1, 1, 1, 2, 'PG-CD', 250, 500, NULL, '2150,-500;950,-500;950,-500;-250,-500;-250,500;950,500;950,500;2150,500', 20, 30, 60, 60, 0);
INSERT INTO `forklift_conf` VALUES (10008, 'PG-CPD15R', NULL, NULL, 0.5, 2, 1.5, 0.3, 0.3, 0.1, 0.3, 0.24, 0.15, 0.25, 0.41, 0.36, 2750, 1300, 2400, 1850, 100, 250, 1, 1, 1, 1, 1, 1, 2, 'PG-CPD15R', 270, 500, NULL, '1650,0;1650,-650;-1100,-650;-1100,650;1650,650;', 20, 30, 60, 60, 0);
INSERT INTO `forklift_conf` VALUES (10009, 'PG-OPL10S', NULL, NULL, 0.5, 3, 1.5, 0.3, 0.3, 0.1, 0.3, 0.24, 0.15, 0.25, 0.41, 0.36, 2950, 1440, 2163, 2163, 100, 0, 1, 1, 1, 1, 1, 1, 2, 'PG-OPL10S', 75, 750, NULL, '1550,450;850,700;-200,720;-200,600;-1400,600;-1400,-600;-200,-600;-200,-720;850,-700;1550,-450\r\n', 20, 30, 60, 60, 0);
INSERT INTO `forklift_conf` VALUES (100010, '如意小型平衡重CPD', NULL, NULL, 0.3, 2, 1.5, 0.5, 0.3, 0.3, 0.3, 0.3, 0.15, 0.25, 0.8, 0.6, 3062, 1600, 1735, 1735, 600, 250, 3, 3, 1000, 100, 100, -1850, 2, '如意小型平衡重CPD', 201, 800, NULL, '1700,0;1600,500;-1365,500;-1365,-500;1600,-500;', 20, 30, 60, 60, 0);
INSERT INTO `forklift_conf` VALUES (100011, '如意小型地牛CBD15', NULL, NULL, 0.3, 2, 1.5, 0.3, 0.3, 0.1, 0.3, 0.24, 0.15, 0.25, 0.8, 0.6, 1972, 1000, 1600, 1600, 600, 250, 3, 3, 1000, 100, 100, -1850, 2, 'PG-CD', 700, 500, NULL, '1686,0;1450,-467;988,-467;914,-500;-286,-500;-286,500;914,500;988,467;1450,467;', 20, 30, 60, 60, 0);
INSERT INTO `forklift_conf` VALUES (100012, 'PG-QDD20H', NULL, NULL, 0.3, 3, 1.5, 0.1, 0.3, 0.1, 0.3, 0.24, 0.15, 0.25, 0.41, 0.34, 1445, 1000, 2246, 2246, 100, 250, 3, 3, 1000, 100, 100, -1850, 2, 'PG-QDD20H', 373, 500, NULL, '1095,-500;-350,-500;-350,500;1095,500', 20, 30, 60, 60, 0);
INSERT INTO `forklift_conf` VALUES (100013, '如意小型地牛CBD15-2号', NULL, NULL, 0.3, 2, 1, 0.3, 0.3, 0.1, 0.3, 0.24, 0.15, 0.25, 0.8, 0.6, 1972, 1000, 1600, 1600, 600, 250, 3, 3, 1000, 100, 100, -1850, 2, '如意小型地牛CBD15-2号', 700, 500, NULL, '1686,0;1450,-467;988,-467;914,-500;-286,-500;-286,500;914,500;988,467;1450,467;', 20, 30, 60, 60, 0);
INSERT INTO `forklift_conf` VALUES (100014, '如意小型平衡重CPD-2号', NULL, NULL, 0.3, 2, 1.5, 0.5, 0.3, 0.3, 0.3, 0.3, 0.15, 0.25, 0.8, 0.6, 3062, 1600, 1735, 1735, 600, 250, 3, 3, 1000, 100, 100, -1850, 2, '如意小型平衡重CPD-2号', 201, 800, NULL, '1700,0;1600,500;-1365,500;-1365,-500;1600,-500;', 20, 30, 60, 60, 0);
INSERT INTO `forklift_conf` VALUES (100015, 'PG-CR15', NULL, '如意', 0.3, 2, 1.5, 0.5, 0.3, 0.3, 0.3, 0.3, 0.16, 0.24, 0.39, 0.26, 2035, 996, 2235, 2435, 695, 160, 3, 3, 1000, 100, 100, -1850, 0, 'PG-CR15', 580, 500, NULL, '1700,0;1700,-600;-500,-600;-500,600;1700,600;', 20, 30, 60, 60, 0);
INSERT INTO `forklift_conf` VALUES (100016, 'PG-全向车', NULL, '如意', 0.15, 5, 1.5, 0.5, 0.3, 0.3, 0.3, 0.1, 0.3, 0.46, 0.5, 0.56, 2566, 1760, 2210, 2210, 708, 250, 3, 3, 1000, 100, 100, -1850, 2, 'PG-QX', 0, 1283, NULL, '1283,0;1283,-880;-1283,-880;-1283,880;1283,880;', 20, 30, 60, 60, 0);
INSERT INTO `forklift_conf` VALUES (100017, 'PG-全向车加长', NULL, NULL, 0.15, 5, 1.5, 0.5, 0.3, 0.3, 0.3, 0.1, 0.3, 0.46, 0.5, 0.56, 3120, 1910, 2210, 2210, 708, 250, 3, 3, 1000, 100, 100, -1850, 2, 'PG-QX', 0, 955, NULL, '1560,0;1560,-955;-1560,-955;-1560,955;1560,955;', 20, 30, 60, 60, 0);
INSERT INTO `forklift_conf` VALUES (100018, 'PG-S14-1600', 'PG-S14-1600', '搬易通', 0.2, 2, 1.5, 0.3, 0.3, 0.1, 0.3, 0.3, 0.15, 0.25, 0.41, 0.34, 1714, 1025, 1937, 1300, 680, 250, 3, 3, 1000, 100, 100, -1850, 2, 'yonghengli_duigao', 476, 540, NULL, '1128,0;1128,-513;-586,-513;-586,513;1128,513;', 20, 30, 60, 60, 0);
INSERT INTO `forklift_conf` VALUES (100019, 'PG-CQD16', NULL, '如意', 0.3, 2, 1.5, 0.3, 0.3, 0.1, 0.3, 0.3, 0.15, 0.25, 0.41, 0.36, 2750, 1300, 3190, 1850, 900, 250, 1, 1, 1, 1, 1, 1, 2, 'PG-CQD16', 270, 500, NULL, '1650,0;1650,-650;-1100,-650;-1100,650;1650,650;', 20, 30, 60, 60, 0);
INSERT INTO `forklift_conf` VALUES (1000100, '手自一体搬运车', 'PG-CBD15', '如意-小型地牛CBD15', 0.15, 2, 1.5, 0.3, 0.3, 0.1, 0.3, 0.1, 0.15, 0.25, 0.8, 0.6, 1972, 1000, 1600, 1600, 600, 250, 3, 3, 1000, 100, 100, -1850, 2, 'PG-CD', 700, 500, NULL, '1686,0;1450,-467;988,-467;914,-500;-286,-500;-286,500;914,500;988,467;1450,467;', 20, 30, 60, 60, 0);
INSERT INTO `forklift_conf` VALUES (1000102, '手自一体搬运车MA-2吨', 'PG-CBD20-MA', '米玛-MEV20', 0.15, 2, 1.5, 0.3, 0.3, 0.1, 0.3, 0.1, 0.15, 0.25, 0.8, 0.6, 1560, 820, 2590, 2590, 600, 250, 3, 3, 1000, 100, 100, -1850, 2, 'PG-CD', 310, 410, NULL, '1090,0;1090,-410;-470,-410;-470,410;1090,410;', 20, 30, 60, 60, 0);
INSERT INTO `forklift_conf` VALUES (1000200, '手自一体堆高车3.5米', 'PG-CDD15-3500', '如意-手自一体堆高车CDD15', 0.15, 2, 1.5, 0.3, 0.3, 0.3, 0.3, 0.1, 0.16, 0.24, 0.39, 0.26, 2035, 996, 2235, 2435, 695, 160, 3, 3, 1000, 100, 100, -1850, 0, 'PG-CR15', 580, 500, NULL, '1700,0;1700,-600;-500,-600;-500,600;1700,600;', 20, 30, 60, 60, 0);
INSERT INTO `forklift_conf` VALUES (1000201, '手自一体堆高车5米', 'PG-CDD15-5000', '如意-手自一体堆高车CDD15', 0.15, 2, 1.5, 0.3, 0.3, 0.3, 0.3, 0.1, 0.16, 0.24, 0.39, 0.26, 2035, 996, 2235, 2435, 695, 160, 3, 3, 1000, 100, 100, -1850, 0, 'PG-CR15', 580, 500, NULL, '1700,0;1700,-600;-500,-600;-500,600;1700,600;', 20, 30, 60, 60, 0);
INSERT INTO `forklift_conf` VALUES (1000205, '托盘堆垛车MA', 'PG-CDD20-MA', '米玛-托盘堆垛车', 0.15, 2, 1.5, 0.3, 0.3, 0.3, 0.3, 0.1, 0.16, 0.24, 0.39, 0.26, 2115, 1100, 2221, 2221, 640, 190, 3, 3, 1000, 100, 100, -1850, 0, 'PG-CR15', 660, 550, NULL, '1717,0;1717,-550;-398,-550;-398,550;1717,550;', 20, 30, 60, 60, 0);
INSERT INTO `forklift_conf` VALUES (1000300, '手自一体平衡重', 'PG-CPD15', '如意-小型平衡重CPD15R', 0.15, 2, 1.5, 0.3, 0.3, 0.3, 0.3, 0.1, 0.15, 0.25, 0.8, 0.6, 3062, 1600, 1735, 1735, 600, 250, 3, 3, 1000, 100, 100, -1850, 2, '如意小型平衡重CPD', 201, 800, NULL, '1700,0;1600,500;-1365,500;-1365,-500;1600,-500;', 20, 30, 60, 60, 0);
INSERT INTO `forklift_conf` VALUES (1000301, '平衡重MA', 'PG-CP15-MA', '米玛-平衡重', 0.15, 2, 1.5, 0.3, 0.3, 0.3, 0.3, 0.1, 0.15, 0.25, 0.8, 0.6, 2580, 1282, 2026, 2026, 600, 250, 3, 3, 1000, 100, 100, -1850, 2, '如意小型平衡重CPD', 54, 800, NULL, '1343,0;1343,-641;-1235,-641;-1235,641;1343,641;', 20, 30, 60, 60, 0);
INSERT INTO `forklift_conf` VALUES (1000400, '小前移叉车MA', 'PG-CQD15-MA', '米玛-MFA', 0.15, 2, 1.5, 0.3, 0.3, 0.3, 0.3, 0.1, 0.15, 0.25, 0.41, 0.36, 2425, 1402, 2870, 1850, 700, 250, 1, 1, 1, 1, 1, 1, 2, 'PG-CQ15-MA', 533, 701, NULL, '1745,0;1745,-701;-680,-701;-680,701;1745,701;', 20, 30, 60, 60, 0);
INSERT INTO `forklift_conf` VALUES (1000500, '全向前移车', 'PG-CSD20', '如意-全向前移车CSD20', 0.15, 5, 1.5, 0.3, 0.3, 0.3, 0.3, 0.1, 0.15, 0.46, 0.5, 0.56, 2566, 1760, 2210, 2210, 708, 250, 3, 3, 1000, 100, 100, -1850, 2, 'PG-QX', 0, 1283, NULL, '1283,0;1283,-880;-1283,-880;-1283,880;1283,880;', 20, 30, 60, 60, 0);
INSERT INTO `forklift_conf` VALUES (1000501, '全向前移车(国网)', 'PG-CSD20-GW', '如意-全向前移车CSD20加长定制', 0.15, 5, 1.5, 0.3, 0.3, 0.3, 0.3, 0.1, 0.15, 0.46, 0.5, 0.56, 3120, 1910, 2210, 2210, 708, 250, 3, 3, 1000, 100, 100, -1850, 2, 'PG-QX', 0, 955, NULL, '1560,0;1560,-955;-1560,-955;-1560,955;1560,955;', 20, 30, 60, 60, 0);
INSERT INTO `forklift_conf` VALUES (1000600, '窄通道堆高车1.6米', 'PG-S14-1600', '米玛-SLIM', 0.15, 2, 1.5, 0.3, 0.3, 0.3, 0.3, 0.1, 0.15, 0.25, 0.41, 0.34, 1714, 1025, 1937, 1300, 680, 250, 3, 3, 1000, 100, 100, -1850, 2, 'yonghengli_duigao', 476, 540, NULL, '1128,0;1128,-513;-586,-513;-586,513;1128,513;', 20, 30, 60, 60, 0);
INSERT INTO `forklift_conf` VALUES (1000601, '窄通道堆高车2米', 'PG-S14-2000', '米玛-SLIM', 0.15, 2, 1.5, 0.3, 0.3, 0.3, 0.3, 0.1, 0.15, 0.25, 0.41, 0.34, 1714, 1025, 1937, 1300, 680, 250, 3, 3, 1000, 100, 100, -1850, 2, 'yonghengli_duigao', 476, 540, NULL, '1128,0;1128,-513;-586,-513;-586,513;1128,513;', 20, 30, 60, 60, 0);
INSERT INTO `forklift_conf` VALUES (1000700, '大前移叉车', 'PG-CQD16', '如意-前移式叉车CQD16', 0.15, 2, 1.5, 0.3, 0.3, 0.3, 0.3, 0.1, 0.15, 0.25, 0.41, 0.36, 2750, 1300, 3190, 1850, 900, 250, 1, 1, 1, 1, 1, 1, 2, 'PG-CQD16', 270, 500, NULL, '1650,0;1650,-650;-1100,-650;-1100,650;1650,650;', 20, 30, 60, 60, 0);
INSERT INTO `forklift_conf` VALUES (1000800, '小前移叉车', 'PG-CQD15', '如意-小前移叉车', 0.15, 2, 1.5, 0.3, 0.3, 0.3, 0.3, 0.1, 0.15, 0.25, 0.5, 0.4, 2400, 1070, 3540, 3540, 900, 250, 3, 3, 1100, 82, 120, -300, 2, 'yonghengli_move', 930, 720, NULL, '1830,0;1830,-535;-570,-535;-570,535;1830,535;', 20, 30, 60, 60, 0);
INSERT INTO `forklift_conf` VALUES (1000900, 'AGV平衡重', 'PG-CPD20-1600-CD', '永捷力-AGV叉车CDD20B-16', 0.15, 2, 1.5, 0.3, 0.15, 0.3, 0.3, 0.1, 0.15, 0.25, 0.8, 0.6, 3062, 1600, 1735, 1735, 600, 250, 3, 3, 1000, 100, 100, -1850, 2, '如意小型平衡重CPD', 201, 800, NULL, '1700,0;1600,500;-1365,500;-1365,-500;1600,-500;', 20, 30, 60, 60, 0);
INSERT INTO `forklift_conf` VALUES (1001000, '三向叉车MA', NULL, NULL, 0.15, 6, 1.5, 0.3, 0.3, 0.3, 0.3, 0.1, 0.15, 0.46, 0.5, 0.56, 2566, 1760, 2210, 2210, 708, 250, 3, 3, 1000, 100, 100, -1850, 2, 'PG-SX', 0, 1283, 1200, '1283,0;1283,-880;-1283,-880;-1283,880;1283,880;', 20, 30, 60, 60, 0);

-- ----------------------------
-- Table structure for frozen
-- ----------------------------
DROP TABLE IF EXISTS `frozen`;
CREATE TABLE `frozen`  (
  `boxId` bigint(20) NOT NULL DEFAULT 0 COMMENT '托盘Id',
  `number` int(11) NOT NULL COMMENT '数量',
  `materialId` bigint(20) NOT NULL COMMENT '货物Id',
  `createTime` datetime NULL DEFAULT NULL COMMENT '生产日期，如果没有，则是入库日期',
  `id` bigint(20) NOT NULL AUTO_INCREMENT,
  `type` int(2) NOT NULL DEFAULT 0 COMMENT '0 系统冻结；1人工冻结',
  `status` int(2) NULL DEFAULT 1 COMMENT '0：取消；1冻结',
  `fromShelfBoxId` bigint(20) NULL DEFAULT NULL COMMENT '来源货位id',
  `toShelfBoxId` bigint(20) NULL DEFAULT NULL COMMENT '目标货位id',
  `updateTime` datetime NULL DEFAULT NULL,
  `updater` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL,
  `receiveTime` timestamp NULL DEFAULT NULL COMMENT '被冻结的货物的入库时间',
  PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8 COLLATE = utf8_general_ci ROW_FORMAT = DYNAMIC;

-- ----------------------------
-- Records of frozen
-- ----------------------------

-- ----------------------------
-- Table structure for gear_shaping
-- ----------------------------
DROP TABLE IF EXISTS `gear_shaping`;
CREATE TABLE `gear_shaping`  (
  `id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '主键id',
  `name` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '名称',
  `conf_id` int(11) NOT NULL COMMENT '机器人类型ID',
  `device_id` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '设备id',
  `calibrate_segments` int(11) NOT NULL COMMENT '上下标定分段数',
  `calibrate_average_mistake` int(11) NOT NULL COMMENT '标定平均误差',
  `calibrate_max_mistake` int(11) NOT NULL COMMENT '标定最大误差',
  `allow_inclinate` int(11) NULL DEFAULT NULL COMMENT '是否允许倾斜 1-是 2-否',
  `allow_lift` int(11) NULL DEFAULT NULL COMMENT '是否允许上下升降 1-是 2-否',
  `allow_left_and_right_move` int(11) NULL DEFAULT NULL COMMENT '是否允许左右移动 1-是 2-否',
  `allow_forward_and_backword_move` int(11) NULL DEFAULT NULL COMMENT '是否允许前后移动 1-是 2-否',
  `max_hight` int(11) NULL DEFAULT NULL COMMENT '插齿抬升最大高度mm',
  `max_move_distance` int(11) NULL DEFAULT NULL COMMENT '插齿平移最大距离mm',
  `max_forward_move_distance` int(11) NULL DEFAULT NULL COMMENT '插齿前移最大距离mm',
  `brand` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '品牌',
  `inductive` int(11) NULL DEFAULT NULL COMMENT '感应',
  `not_inductive` int(11) NULL DEFAULT NULL COMMENT '未感应',
  `created_time` datetime NULL DEFAULT NULL COMMENT '创建时间',
  `modified_time` datetime NULL DEFAULT NULL COMMENT '修改时间',
  `created_by` bigint(20) NULL DEFAULT NULL COMMENT '创建人id',
  `modified_by` bigint(20) NULL DEFAULT NULL COMMENT '最后修改人id',
  PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8 COLLATE = utf8_general_ci ROW_FORMAT = COMPACT;

-- ----------------------------
-- Records of gear_shaping
-- ----------------------------

-- ----------------------------
-- Table structure for hbxs_main
-- ----------------------------
DROP TABLE IF EXISTS `hbxs_main`;
CREATE TABLE `hbxs_main`  (
  `id` int(11) NOT NULL AUTO_INCREMENT COMMENT '主键ID',
  `batchNumber` varchar(30) CHARACTER SET utf8mb4 COLLATE utf8mb4_croatian_ci NULL DEFAULT NULL COMMENT '批次号',
  `taskNumber` int(11) NULL DEFAULT 0 COMMENT '任务数量',
  `executeNumber` int(11) NULL DEFAULT 0 COMMENT '执行数量',
  `robotId` int(11) NULL DEFAULT NULL COMMENT '机器人ID',
  `type` char(2) CHARACTER SET utf8mb4 COLLATE utf8mb4_croatian_ci NULL DEFAULT NULL COMMENT '类型（0：入  1：出）',
  `status` char(2) CHARACTER SET utf8mb4 COLLATE utf8mb4_croatian_ci NULL DEFAULT '0' COMMENT '状态（0：未开始 1：进行中 2：已完成）',
  `createTime` timestamp NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
  PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_croatian_ci ROW_FORMAT = DYNAMIC;

-- ----------------------------
-- Records of hbxs_main
-- ----------------------------

-- ----------------------------
-- Table structure for hbxs_task
-- ----------------------------
DROP TABLE IF EXISTS `hbxs_task`;
CREATE TABLE `hbxs_task`  (
  `taskId` varchar(60) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL,
  `type` int(11) NOT NULL,
  `materialName` varchar(20) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL,
  `quantity` float NOT NULL,
  `location` varchar(20) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL,
  `materialNumber` varchar(20) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL,
  `batchNumber` varchar(20) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL,
  `prority` int(11) NOT NULL,
  `rcsId` int(11) NULL DEFAULT NULL,
  `status` int(11) NOT NULL DEFAULT 0,
  `robotId` int(11) NULL DEFAULT NULL,
  `productionLine` varchar(30) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL,
  `userName` varchar(30) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL,
  PRIMARY KEY (`taskId`) USING BTREE
) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_general_ci ROW_FORMAT = DYNAMIC;

-- ----------------------------
-- Records of hbxs_task
-- ----------------------------

-- ----------------------------
-- Table structure for huaxiao_machine
-- ----------------------------
DROP TABLE IF EXISTS `huaxiao_machine`;
CREATE TABLE `huaxiao_machine`  (
  `id` int(11) NOT NULL,
  `ip` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT 'ip地址',
  `port` int(11) NOT NULL COMMENT '端口',
  `shelfId` int(255) NULL DEFAULT NULL COMMENT '货架的id',
  `name` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL,
  `type` int(11) NULL DEFAULT NULL,
  `taskAddress` int(11) NULL DEFAULT NULL,
  `enable` varchar(1) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '是否可用， 包含了启动时候查看对方是否可以连接',
  PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_general_ci ROW_FORMAT = DYNAMIC;

-- ----------------------------
-- Records of huaxiao_machine
-- ----------------------------

-- ----------------------------
-- Table structure for human
-- ----------------------------
DROP TABLE IF EXISTS `human`;
CREATE TABLE `human`  (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `name` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL,
  `fromQrcodeId` int(11) NOT NULL,
  `toQrcodeId` int(11) NOT NULL,
  `qrcodes` varchar(100) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL,
  PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8 COLLATE = utf8_general_ci ROW_FORMAT = DYNAMIC;

-- ----------------------------
-- Records of human
-- ----------------------------

-- ----------------------------
-- Table structure for hw_link_virtualbox_shelfbox
-- ----------------------------
DROP TABLE IF EXISTS `hw_link_virtualbox_shelfbox`;
CREATE TABLE `hw_link_virtualbox_shelfbox`  (
  `boxId` bigint(20) NOT NULL COMMENT '托盘Id',
  `shelfBoxId` bigint(20) NOT NULL COMMENT '货位Id',
  `status` int(11) NOT NULL COMMENT '当前状态0准备入库1在货位上2准备订单出库3准备rcs搬出库5货物在操作台\r\n\r\n移库\r\n70锁定  71patch  72rcs lock 73在工位',
  `distance` int(11) NULL DEFAULT NULL COMMENT '临时变量、操作台和货架的距离',
  `time` datetime NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '最后更新时间',
  `relId` bigint(20) NULL DEFAULT NULL COMMENT '关联id  暂时只有移库id',
  `relType` varchar(10) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '关联类型  1 移库',
  PRIMARY KEY (`shelfBoxId`) USING BTREE
) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_general_ci ROW_FORMAT = DYNAMIC;

-- ----------------------------
-- Records of hw_link_virtualbox_shelfbox
-- ----------------------------

-- ----------------------------
-- Table structure for imu
-- ----------------------------
DROP TABLE IF EXISTS `imu`;
CREATE TABLE `imu`  (
  `id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '主键id',
  `name` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '名称',
  `conf_id` int(11) NOT NULL COMMENT '机器人类型ID',
  `device_id` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '设备id',
  `created_time` datetime NULL DEFAULT NULL COMMENT '创建时间',
  `modified_time` datetime NULL DEFAULT NULL COMMENT '修改时间',
  `created_by` bigint(20) NULL DEFAULT NULL COMMENT '创建人id',
  `modified_by` bigint(20) NULL DEFAULT NULL COMMENT '最后修改人id',
  PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8 COLLATE = utf8_general_ci ROW_FORMAT = COMPACT;

-- ----------------------------
-- Records of imu
-- ----------------------------

-- ----------------------------
-- Table structure for in_position_switch
-- ----------------------------
DROP TABLE IF EXISTS `in_position_switch`;
CREATE TABLE `in_position_switch`  (
  `id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '主键id',
  `name` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '名称',
  `conf_id` int(11) NOT NULL COMMENT '机器人类型ID',
  `device_id` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '设备id',
  `type` int(11) NULL DEFAULT NULL COMMENT '类型 1-搬运车上下到位开关 2-到位撞板开关',
  `inductive` int(11) NULL DEFAULT NULL COMMENT '感应',
  `not_inductive` int(11) NULL DEFAULT NULL COMMENT '未感应',
  `created_time` datetime NULL DEFAULT NULL COMMENT '创建时间',
  `modified_time` datetime NULL DEFAULT NULL COMMENT '修改时间',
  `created_by` bigint(20) NULL DEFAULT NULL COMMENT '创建人id',
  `modified_by` bigint(20) NULL DEFAULT NULL COMMENT '最后修改人id',
  PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8 COLLATE = utf8_general_ci ROW_FORMAT = COMPACT;

-- ----------------------------
-- Records of in_position_switch
-- ----------------------------

-- ----------------------------
-- Table structure for input_output_conf
-- ----------------------------
DROP TABLE IF EXISTS `input_output_conf`;
CREATE TABLE `input_output_conf`  (
  `id` int(11) NOT NULL AUTO_INCREMENT COMMENT '主键ID',
  `area_id` int(11) NOT NULL COMMENT '库房ID',
  `ip` varchar(32) CHARACTER SET utf8 COLLATE utf8_croatian_ci NOT NULL COMMENT 'IP',
  `port` int(8) NOT NULL COMMENT '端口',
  `enable` char(2) CHARACTER SET utf8 COLLATE utf8_croatian_ci NOT NULL DEFAULT 'Y' COMMENT '启用-Y 禁用-N 默认启用',
  `wifi` int(5) NOT NULL DEFAULT 100 COMMENT '信号状态 默认100',
  PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8 COLLATE = utf8_croatian_ci ROW_FORMAT = DYNAMIC;

-- ----------------------------
-- Records of input_output_conf
-- ----------------------------

-- ----------------------------
-- Table structure for input_output_conf_detail
-- ----------------------------
DROP TABLE IF EXISTS `input_output_conf_detail`;
CREATE TABLE `input_output_conf_detail`  (
  `id` int(11) NOT NULL AUTO_INCREMENT COMMENT '主键ID',
  `io_id` int(11) NOT NULL COMMENT 'IO配置ID',
  `point` varchar(32) CHARACTER SET utf8 COLLATE utf8_croatian_ci NOT NULL COMMENT '信号点',
  `type` int(2) NOT NULL COMMENT '类型 0-道路点 1-道路 2-货架 3-仓位',
  `state` int(2) NOT NULL COMMENT 'state 0-满 1-请求避让 2-锁',
  PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8 COLLATE = utf8_croatian_ci ROW_FORMAT = DYNAMIC;

-- ----------------------------
-- Records of input_output_conf_detail
-- ----------------------------

-- ----------------------------
-- Table structure for lift_node
-- ----------------------------
DROP TABLE IF EXISTS `lift_node`;
CREATE TABLE `lift_node`  (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `shelfBoxId` int(11) NOT NULL COMMENT '仓位id',
  `nodeType` int(11) NOT NULL COMMENT '仓位类型 1AGV 2人工 0不限',
  `nodeUsage` int(11) NOT NULL COMMENT '用途 1 入口  2 出口 0 不限（慎重使用）',
  `boxId` int(11) NULL DEFAULT NULL COMMENT '放置的托盘ID',
  `wmsId` int(11) NULL DEFAULT NULL COMMENT '当前托盘任务的wmsId',
  `xSize` int(11) NOT NULL COMMENT '传送带横向有多少个仓位',
  `status` int(11) NULL DEFAULT NULL COMMENT '当前托盘的任务状态10 放置缓存区 11 放置到电梯口 12 离开电梯口到缓存区 13 到达目的地8',
  `lockBoxId` int(11) NULL DEFAULT NULL COMMENT '锁定的托盘ID， 当前没有使用',
  `updateTime` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8 COLLATE = utf8_general_ci ROW_FORMAT = DYNAMIC;

-- ----------------------------
-- Records of lift_node
-- ----------------------------

-- ----------------------------
-- Table structure for lift_shelf_box
-- ----------------------------
DROP TABLE IF EXISTS `lift_shelf_box`;
CREATE TABLE `lift_shelf_box`  (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `shelfBoxId` int(11) NOT NULL COMMENT '货架的ID',
  `lockBoxId` int(11) NULL DEFAULT NULL COMMENT '锁定的托盘id， 当前暂未使用',
  `boxId` int(11) NULL DEFAULT NULL COMMENT '存放的托盘id',
  `elevatorIdStrs` varchar(100) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '可作为缓存仓位对应电梯的ids',
  `liftIdStrs` varchar(100) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '可作为缓存仓位对应提升机的ids',
  PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8 COLLATE = utf8_general_ci ROW_FORMAT = DYNAMIC;

-- ----------------------------
-- Records of lift_shelf_box
-- ----------------------------

-- ----------------------------
-- Table structure for link_bad_mat_order
-- ----------------------------
DROP TABLE IF EXISTS `link_bad_mat_order`;
CREATE TABLE `link_bad_mat_order`  (
  `materialId` bigint(20) NOT NULL COMMENT '货物ID',
  `badNumber` int(11) NOT NULL COMMENT '损坏数量',
  `remark` varchar(100) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '备注信息',
  `workerId` int(11) NOT NULL COMMENT '登记者ID',
  `time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '登记时间',
  `orderType` int(2) NULL DEFAULT NULL COMMENT '单据类型 1上架 ；2出库；3盘点；4收货 6 移库',
  `orderId` bigint(20) NULL DEFAULT NULL COMMENT '单据id'
) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_general_ci ROW_FORMAT = DYNAMIC;

-- ----------------------------
-- Records of link_bad_mat_order
-- ----------------------------

-- ----------------------------
-- Table structure for link_basket_purchase
-- ----------------------------
DROP TABLE IF EXISTS `link_basket_purchase`;
CREATE TABLE `link_basket_purchase`  (
  `basketId` int(11) NOT NULL COMMENT '发货篮篮位ID',
  `materialId` bigint(20) NOT NULL COMMENT '货物ID',
  `number` int(11) NOT NULL COMMENT '货物数量',
  `status` int(11) NOT NULL COMMENT '当前任务的状态',
  `reviewWorkerId` int(11) NOT NULL COMMENT '复核人员的ID',
  PRIMARY KEY (`basketId`, `materialId`) USING BTREE
) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_general_ci ROW_FORMAT = DYNAMIC;

-- ----------------------------
-- Records of link_basket_purchase
-- ----------------------------

-- ----------------------------
-- Table structure for link_box_shelfbox
-- ----------------------------
DROP TABLE IF EXISTS `link_box_shelfbox`;
CREATE TABLE `link_box_shelfbox`  (
  `id` bigint(20) NOT NULL AUTO_INCREMENT,
  `box_id` bigint(20) NOT NULL COMMENT '托盘Id',
  `shelf_box_id` bigint(20) NOT NULL COMMENT '货位ID',
  `status` int(11) NULL DEFAULT NULL COMMENT '当前状态0准备入库1在货位上2准备订单出库3准备rcs搬出库5货物在操作台\r\n\r\n移库\r\n70锁定  71patch  72rcs lock 73在工位',
  `distance` int(11) NULL DEFAULT NULL COMMENT '临时变量、操作台和货架的距离',
  `time` timestamp NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '最后更新时间',
  `relId` bigint(20) NULL DEFAULT NULL COMMENT '关联id  暂时只有移库id',
  `relType` varchar(10) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '关联类型  1 移库',
  `created_time` datetime NULL DEFAULT NULL COMMENT '创建时间',
  `modified_time` datetime NULL DEFAULT NULL COMMENT '修改时间',
  `created_by` bigint(20) NULL DEFAULT NULL COMMENT '创建人id',
  `modified_by` bigint(20) NULL DEFAULT NULL COMMENT '最后修改人id',
  PRIMARY KEY (`id`) USING BTREE,
  UNIQUE INDEX `uk_shelf_box_id`(`shelf_box_id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8 COLLATE = utf8_general_ci ROW_FORMAT = DYNAMIC;

-- ----------------------------
-- Records of link_box_shelfbox
-- ----------------------------

-- ----------------------------
-- Table structure for link_cross_qrcode
-- ----------------------------
DROP TABLE IF EXISTS `link_cross_qrcode`;
CREATE TABLE `link_cross_qrcode`  (
  `id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '道路id',
  `type` int(11) NULL DEFAULT NULL COMMENT '道路的类型 1-单向道 2-孤岛 3-进入工位 4-离开工位 5-双向 6-单向逆向道',
  `area_id` bigint(20) NULL DEFAULT NULL COMMENT '道路所属库房id',
  `from_qrcode_id` bigint(20) NOT NULL COMMENT '道路开始点',
  `to_qrcode_id` bigint(20) NOT NULL COMMENT '道路结束点',
  `degree` float(11, 4) NOT NULL COMMENT '道路的从开始点->结束点的道路角度',
  `car_degree_type` int(11) NULL DEFAULT 3 COMMENT '道路允许车体行走方向类型，1：正向、2：逆向、3：不限制',
  `car_degree` float(11, 4) NULL DEFAULT 999.0000 COMMENT '999 车体不限制方向， 其他为车体角度',
  `max_speed` float NULL DEFAULT 1.5 COMMENT '最大速度(m/s)',
  `max_height` float NULL DEFAULT 500000 COMMENT '最大通行高度，限高(mm)',
  `is_meet` varchar(1) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '是否允许会车 Y-可以 N-不可以',
  `init_speed` float NULL DEFAULT NULL COMMENT '最初设置的限速(m/s)',
  `init_height` float NULL DEFAULT NULL COMMENT '最初设置的限高(mm)',
  `from_safe` int(11) NULL DEFAULT NULL COMMENT '开始点侧安全的距离(mm)',
  `to_safe` int(11) NULL DEFAULT NULL COMMENT '结束点测安全的距离(mm)',
  `left_safe` int(11) NULL DEFAULT NULL COMMENT '道路左侧安全距离(mm)',
  `right_safe` int(11) NULL DEFAULT NULL COMMENT '道路右侧安全距离(mm)',
  `radius_arrival` int(5) NULL DEFAULT 120 COMMENT '一般到位半径',
  `oblique_laser` float NULL DEFAULT NULL COMMENT '斜射激光、安全激光距离(mm)\r\n0：斜射激光禁用，安全激光为0档最短距离\r\n1：斜射激光启用，安全激光为0档最短距离\r\n2：斜射激光启用，安全激光为1档距离\r\n3：斜射激光启用，安全激光为2档距离',
  `enable` varchar(1) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT 'Y' COMMENT '是否启用 Y-启用 N-不启用 ',
  `created_time` datetime NULL DEFAULT NULL COMMENT '创建时间',
  `modified_time` datetime NULL DEFAULT NULL COMMENT '修改时间',
  `created_by` bigint(20) NULL DEFAULT NULL COMMENT '创建人id',
  `modified_by` bigint(20) NULL DEFAULT NULL COMMENT '最后修改人id',
  PRIMARY KEY (`id`) USING BTREE,
  UNIQUE INDEX `uk_from_to`(`from_qrcode_id`, `to_qrcode_id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 1891680974528200706 CHARACTER SET = utf8 COLLATE = utf8_general_ci ROW_FORMAT = DYNAMIC;

-- ----------------------------
-- Records of link_cross_qrcode
-- ----------------------------
INSERT INTO `link_cross_qrcode` VALUES (1891419457442537474, NULL, 1, 1, 2, -1.2097, 3, 999.0000, 1.5, 500000, 'N', 1.5, 500000, 2300, 2300, 1775, 1775, 120, NULL, 'Y', '2025-02-17 17:28:34', '2025-02-17 17:28:34', NULL, NULL);
INSERT INTO `link_cross_qrcode` VALUES (1891419457455120386, NULL, 1, 2, 1, 178.7903, 3, 999.0000, 1.5, 500000, 'N', 1.5, 500000, 2300, 2300, 1775, 1775, 120, NULL, 'Y', '2025-02-17 17:28:34', '2025-02-17 17:28:34', NULL, NULL);
INSERT INTO `link_cross_qrcode` VALUES (1891419465956974593, NULL, 1, 2, 5, -0.0255, 3, 999.0000, 1.5, 500000, 'N', 1.5, 500000, 2300, 2300, 1775, 1775, 120, NULL, 'Y', '2025-02-17 17:28:36', '2025-02-17 17:28:36', NULL, NULL);
INSERT INTO `link_cross_qrcode` VALUES (1891419465969557506, NULL, 1, 5, 2, 179.9745, 3, 999.0000, 1.5, 500000, 'N', 1.5, 500000, 2300, 2300, 1775, 1775, 120, NULL, 'Y', '2025-02-17 17:28:36', '2025-02-17 17:28:36', NULL, NULL);
INSERT INTO `link_cross_qrcode` VALUES (1891419491701612546, NULL, 1, 3, 5, 90.0229, 3, 999.0000, 1.5, 500000, 'N', 1.5, 500000, 2300, 2300, 1775, 1775, 120, NULL, 'Y', '2025-02-17 17:28:42', '2025-02-17 17:28:42', NULL, NULL);
INSERT INTO `link_cross_qrcode` VALUES (1891419491705806849, NULL, 1, 5, 3, -89.9771, 3, 999.0000, 1.5, 500000, 'N', 1.5, 500000, 2300, 2300, 1775, 1775, 120, NULL, 'Y', '2025-02-17 17:28:42', '2025-02-17 17:28:42', NULL, NULL);
INSERT INTO `link_cross_qrcode` VALUES (1891419508764041218, NULL, 1, 3, 4, -0.3565, 3, 999.0000, 1.5, 500000, 'N', 1.5, 500000, 2300, 2300, 1775, 1775, 120, NULL, 'Y', '2025-02-17 17:28:46', '2025-02-17 17:28:46', NULL, NULL);
INSERT INTO `link_cross_qrcode` VALUES (1891419508768235521, NULL, 1, 4, 3, 179.6435, 3, 999.0000, 1.5, 500000, 'N', 1.5, 500000, 2300, 2300, 1775, 1775, 120, NULL, 'Y', '2025-02-17 17:28:46', '2025-02-17 17:28:46', NULL, NULL);
INSERT INTO `link_cross_qrcode` VALUES (1891431476124180481, NULL, 1, 22, 3, 89.9147, 3, 999.0000, 1.5, 500000, 'N', 1.5, 500000, 2300, 2300, 1775, 1775, 120, NULL, 'Y', '2025-02-17 18:16:20', '2025-02-17 18:16:20', NULL, NULL);
INSERT INTO `link_cross_qrcode` VALUES (1891431476136763393, NULL, 1, 3, 22, -90.0853, 3, 999.0000, 1.5, 500000, 'N', 1.5, 500000, 2300, 2300, 1775, 1775, 120, NULL, 'Y', '2025-02-17 18:16:20', '2025-02-17 18:16:20', NULL, NULL);
INSERT INTO `link_cross_qrcode` VALUES (1891431488283467778, NULL, 1, 22, 23, -179.0721, 3, 999.0000, 1.5, 500000, 'N', 1.5, 500000, 2300, 2300, 1775, 1775, 120, NULL, 'Y', '2025-02-17 18:16:23', '2025-02-17 18:16:23', NULL, NULL);
INSERT INTO `link_cross_qrcode` VALUES (1891431488300244993, NULL, 1, 23, 22, 0.9279, 3, 999.0000, 1.5, 500000, 'N', 1.5, 500000, 2300, 2300, 1775, 1775, 120, NULL, 'Y', '2025-02-17 18:16:23', '2025-02-17 18:16:23', NULL, NULL);
INSERT INTO `link_cross_qrcode` VALUES (1891432471713538049, NULL, 2, 50, 51, -0.2509, 3, 999.0000, 1.5, 500000, 'N', 1.5, 500000, 2300, 2300, 1775, 1775, 120, NULL, 'Y', '2025-02-17 18:20:17', '2025-02-17 18:20:17', NULL, NULL);
INSERT INTO `link_cross_qrcode` VALUES (1891432471713538050, NULL, 2, 51, 50, 179.7491, 3, 999.0000, 1.5, 500000, 'N', 1.5, 500000, 2300, 2300, 1775, 1775, 120, NULL, 'Y', '2025-02-17 18:20:17', '2025-02-17 18:20:17', NULL, NULL);
INSERT INTO `link_cross_qrcode` VALUES (1891432489476415489, NULL, 2, 51, 52, -0.3110, 3, 999.0000, 1.5, 500000, 'N', 1.5, 500000, 2300, 2300, 1775, 1775, 120, NULL, 'Y', '2025-02-17 18:20:21', '2025-02-17 18:20:21', NULL, NULL);
INSERT INTO `link_cross_qrcode` VALUES (1891432489488998402, NULL, 2, 52, 51, 179.6890, 3, 999.0000, 1.5, 500000, 'N', 1.5, 500000, 2300, 2300, 1775, 1775, 120, NULL, 'Y', '2025-02-17 18:20:21', '2025-02-17 18:20:21', NULL, NULL);
INSERT INTO `link_cross_qrcode` VALUES (1891432514755485698, NULL, 2, 52, 54, 87.3105, 3, 999.0000, 1.5, 500000, 'N', 1.5, 500000, 2300, 2300, 1775, 1775, 120, NULL, 'Y', '2025-02-17 18:20:27', '2025-02-17 18:20:27', NULL, NULL);
INSERT INTO `link_cross_qrcode` VALUES (1891432514763874305, NULL, 2, 54, 52, -92.6895, 3, 999.0000, 1.5, 500000, 'N', 1.5, 500000, 2300, 2300, 1775, 1775, 120, NULL, 'Y', '2025-02-17 18:20:27', '2025-02-17 18:20:27', NULL, NULL);
INSERT INTO `link_cross_qrcode` VALUES (1891432528118538242, NULL, 2, 54, 55, -0.7613, 3, 999.0000, 1.5, 500000, 'N', 1.5, 500000, 2300, 2300, 1775, 1775, 120, NULL, 'Y', '2025-02-17 18:20:30', '2025-02-17 18:20:30', NULL, NULL);
INSERT INTO `link_cross_qrcode` VALUES (1891432528126926850, NULL, 2, 55, 54, 179.2387, 3, 999.0000, 1.5, 500000, 'N', 1.5, 500000, 2300, 2300, 1775, 1775, 120, NULL, 'Y', '2025-02-17 18:20:30', '2025-02-17 18:20:30', NULL, NULL);
INSERT INTO `link_cross_qrcode` VALUES (1891432619134935041, NULL, 2, 52, 53, -86.7799, 3, 999.0000, 1.5, 500000, 'N', 1.5, 500000, 2300, 2300, 1775, 1775, 120, NULL, 'Y', '2025-02-17 18:20:52', '2025-02-17 18:20:52', NULL, NULL);
INSERT INTO `link_cross_qrcode` VALUES (1891432619143323649, NULL, 2, 53, 52, 93.2201, 3, 999.0000, 1.5, 500000, 'N', 1.5, 500000, 2300, 2300, 1775, 1775, 120, NULL, 'Y', '2025-02-17 18:20:52', '2025-02-17 18:20:52', NULL, NULL);
INSERT INTO `link_cross_qrcode` VALUES (1891432628463067138, NULL, 2, 53, 56, 0.0621, 3, 999.0000, 1.5, 500000, 'N', 1.5, 500000, 2300, 2300, 1775, 1775, 120, NULL, 'Y', '2025-02-17 18:20:54', '2025-02-17 18:20:54', NULL, NULL);
INSERT INTO `link_cross_qrcode` VALUES (1891432628467261441, NULL, 2, 56, 53, -179.9379, 3, 999.0000, 1.5, 500000, 'N', 1.5, 500000, 2300, 2300, 1775, 1775, 120, NULL, 'Y', '2025-02-17 18:20:54', '2025-02-17 18:20:54', NULL, NULL);
INSERT INTO `link_cross_qrcode` VALUES (1891680898368028673, NULL, 1, 3, 106, 173.8096, 3, 999.0000, 1.5, 500000, 'N', 1.5, 500000, 2300, 2300, 1775, 1775, 120, NULL, 'Y', '2025-02-18 10:47:27', '2025-02-18 10:47:27', NULL, NULL);
INSERT INTO `link_cross_qrcode` VALUES (1891680898372222977, NULL, 1, 106, 3, -6.1904, 3, 999.0000, 1.5, 500000, 'N', 1.5, 500000, 2300, 2300, 1775, 1775, 120, NULL, 'Y', '2025-02-18 10:47:27', '2025-02-18 10:47:27', NULL, NULL);
INSERT INTO `link_cross_qrcode` VALUES (1891680910535704577, NULL, 1, 106, 1, 90.8857, 3, 999.0000, 1.5, 500000, 'N', 1.5, 500000, 2300, 2300, 1775, 1775, 120, NULL, 'Y', '2025-02-18 10:47:29', '2025-02-18 10:47:29', NULL, NULL);
INSERT INTO `link_cross_qrcode` VALUES (1891680910544093186, NULL, 1, 1, 106, -89.1143, 3, 999.0000, 1.5, 500000, 'N', 1.5, 500000, 2300, 2300, 1775, 1775, 120, NULL, 'Y', '2025-02-18 10:47:29', '2025-02-18 10:47:29', NULL, NULL);
INSERT INTO `link_cross_qrcode` VALUES (1891680930462842881, NULL, 1, 106, 23, -83.7444, 3, 999.0000, 1.5, 500000, 'N', 1.5, 500000, 2300, 2300, 1775, 1775, 120, NULL, 'Y', '2025-02-18 10:47:34', '2025-02-18 10:47:34', NULL, NULL);
INSERT INTO `link_cross_qrcode` VALUES (1891680930471231490, NULL, 1, 23, 106, 96.2556, 3, 999.0000, 1.5, 500000, 'N', 1.5, 500000, 2300, 2300, 1775, 1775, 120, NULL, 'Y', '2025-02-18 10:47:34', '2025-02-18 10:47:34', NULL, NULL);
INSERT INTO `link_cross_qrcode` VALUES (1891680974519812097, NULL, 1, 5, 119, 0.3834, 3, 999.0000, 1.5, 500000, 'N', 1.5, 500000, 2300, 2300, 1775, 1775, 120, NULL, 'Y', '2025-02-18 10:47:45', '2025-02-18 10:47:45', NULL, NULL);
INSERT INTO `link_cross_qrcode` VALUES (1891680974528200705, NULL, 1, 119, 5, -179.6166, 3, 999.0000, 1.5, 500000, 'N', 1.5, 500000, 2300, 2300, 1775, 1775, 120, NULL, 'Y', '2025-02-18 10:47:45', '2025-02-18 10:47:45', NULL, NULL);

-- ----------------------------
-- Table structure for link_domain_robot
-- ----------------------------
DROP TABLE IF EXISTS `link_domain_robot`;
CREATE TABLE `link_domain_robot`  (
  `domain_id` bigint(22) NOT NULL COMMENT '区域id',
  `robot_id` int(11) NULL DEFAULT NULL COMMENT '机器人id',
  `use_type` int(3) NULL DEFAULT NULL COMMENT '使用类型：1. 优先使用， 2. 必须使用， 3. 禁止使用， 4. 应急备用',
  PRIMARY KEY (`domain_id`) USING BTREE
) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_general_ci ROW_FORMAT = DYNAMIC;

-- ----------------------------
-- Records of link_domain_robot
-- ----------------------------

-- ----------------------------
-- Table structure for link_domain_shelf
-- ----------------------------
DROP TABLE IF EXISTS `link_domain_shelf`;
CREATE TABLE `link_domain_shelf`  (
  `id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '领域货架关联id',
  `domain_id` bigint(20) NOT NULL COMMENT '领域ID',
  `shelf_id` bigint(20) NOT NULL COMMENT '货架ID',
  `created_time` datetime NULL DEFAULT NULL COMMENT '创建时间',
  `modified_time` datetime NULL DEFAULT NULL COMMENT '修改时间',
  `created_by` bigint(20) NULL DEFAULT NULL COMMENT '创建人id',
  `modified_by` bigint(20) NULL DEFAULT NULL COMMENT '最后修改人id',
  PRIMARY KEY (`id`) USING BTREE,
  UNIQUE INDEX `uk_domain_shelf`(`domain_id`, `shelf_id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8 COLLATE = utf8_general_ci ROW_FORMAT = DYNAMIC;

-- ----------------------------
-- Records of link_domain_shelf
-- ----------------------------

-- ----------------------------
-- Table structure for link_effective_shelf
-- ----------------------------
DROP TABLE IF EXISTS `link_effective_shelf`;
CREATE TABLE `link_effective_shelf`  (
  `day` date NOT NULL COMMENT '日期(天)',
  `all` int(11) NULL DEFAULT NULL COMMENT '总货架数量',
  `use` int(11) NULL DEFAULT NULL COMMENT '使用的货架数量',
  PRIMARY KEY (`day`) USING BTREE
) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_general_ci ROW_FORMAT = DYNAMIC;

-- ----------------------------
-- Records of link_effective_shelf
-- ----------------------------

-- ----------------------------
-- Table structure for link_effective_station
-- ----------------------------
DROP TABLE IF EXISTS `link_effective_station`;
CREATE TABLE `link_effective_station`  (
  `day` date NOT NULL COMMENT '日期（天）',
  `minute` int(11) NULL DEFAULT NULL COMMENT '使用的时间（分钟）',
  `stationId` int(11) NOT NULL COMMENT '工位ID',
  PRIMARY KEY (`stationId`, `day`) USING BTREE
) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_general_ci ROW_FORMAT = DYNAMIC;

-- ----------------------------
-- Records of link_effective_station
-- ----------------------------

-- ----------------------------
-- Table structure for link_effective_time
-- ----------------------------
DROP TABLE IF EXISTS `link_effective_time`;
CREATE TABLE `link_effective_time`  (
  `day` date NOT NULL COMMENT '日期（天）',
  `minute` int(11) NULL DEFAULT NULL COMMENT '工作的市场（分钟）',
  `workerId` int(11) NOT NULL COMMENT '员工的ID',
  PRIMARY KEY (`workerId`, `day`) USING BTREE
) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_general_ci ROW_FORMAT = DYNAMIC;

-- ----------------------------
-- Records of link_effective_time
-- ----------------------------

-- ----------------------------
-- Table structure for link_effective_worker
-- ----------------------------
DROP TABLE IF EXISTS `link_effective_worker`;
CREATE TABLE `link_effective_worker`  (
  `day` date NOT NULL COMMENT '日期（天）',
  `number` int(11) NULL DEFAULT NULL COMMENT '订单的数量',
  `type` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '订单的类型RECEIVENORMAL/RECEIVEBAD/PURCHASENORMAL/PURCHASEBAD/DELIVERYNORMAL/DELIVERYBAD/ CHECKNORMAL/CHECKBAD',
  `workerId` int(11) NOT NULL COMMENT '员工的ID',
  PRIMARY KEY (`workerId`, `type`, `day`) USING BTREE
) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_general_ci ROW_FORMAT = DYNAMIC;

-- ----------------------------
-- Records of link_effective_worker
-- ----------------------------

-- ----------------------------
-- Table structure for link_frozen_order
-- ----------------------------
DROP TABLE IF EXISTS `link_frozen_order`;
CREATE TABLE `link_frozen_order`  (
  `frozenId` bigint(20) NOT NULL DEFAULT 0 COMMENT '冻结记录id',
  `id` bigint(20) NOT NULL AUTO_INCREMENT,
  `orderType` int(2) NULL DEFAULT NULL COMMENT '单据类型',
  `orderId` bigint(20) NULL DEFAULT NULL COMMENT '单据id',
  PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8 COLLATE = utf8_general_ci COMMENT = '货物冻结记录与单据关联表' ROW_FORMAT = DYNAMIC;

-- ----------------------------
-- Records of link_frozen_order
-- ----------------------------

-- ----------------------------
-- Table structure for link_lora_button_order
-- ----------------------------
DROP TABLE IF EXISTS `link_lora_button_order`;
CREATE TABLE `link_lora_button_order`  (
  `id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT 'id',
  `lora_button_key_id` bigint(20) NOT NULL COMMENT '按键id',
  `order_id` int(11) NOT NULL COMMENT '任务ID',
  `created_time` datetime NULL DEFAULT NULL COMMENT '创建时间',
  `modified_time` datetime NULL DEFAULT NULL COMMENT '修改时间',
  `created_by` bigint(20) NULL DEFAULT NULL COMMENT '创建人id',
  `modified_by` bigint(20) NULL DEFAULT NULL COMMENT '最后修改人id',
  PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8 COLLATE = utf8_general_ci ROW_FORMAT = DYNAMIC;

-- ----------------------------
-- Records of link_lora_button_order
-- ----------------------------

-- ----------------------------
-- Table structure for link_move_rcs
-- ----------------------------
DROP TABLE IF EXISTS `link_move_rcs`;
CREATE TABLE `link_move_rcs`  (
  `id` int(11) NOT NULL AUTO_INCREMENT COMMENT '任务的id',
  `fromShelfBoxId` bigint(20) NOT NULL COMMENT '来源货位',
  `toShelfBoxId` bigint(20) NULL DEFAULT NULL COMMENT '目标货位',
  `boxId` bigint(20) NOT NULL COMMENT '托盘id',
  `status` int(11) NULL DEFAULT 0 COMMENT ' 0未开始   1未RCS  2已经生成RCS任务  3结束  4取消',
  `moveId` bigint(20) NULL DEFAULT NULL COMMENT '移库id',
  `type` tinyint(2) NULL DEFAULT NULL COMMENT '类型  0:放入优先存储区  1：从优先存储区取出',
  PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8 COLLATE = utf8_general_ci ROW_FORMAT = DYNAMIC;

-- ----------------------------
-- Records of link_move_rcs
-- ----------------------------

-- ----------------------------
-- Table structure for link_near_qrcode
-- ----------------------------
DROP TABLE IF EXISTS `link_near_qrcode`;
CREATE TABLE `link_near_qrcode`  (
  `qrcodeId1` int(11) NOT NULL,
  `qrcodeId2` int(11) NOT NULL
) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_general_ci ROW_FORMAT = DYNAMIC;

-- ----------------------------
-- Records of link_near_qrcode
-- ----------------------------

-- ----------------------------
-- Table structure for link_order_error_order
-- ----------------------------
DROP TABLE IF EXISTS `link_order_error_order`;
CREATE TABLE `link_order_error_order`  (
  `id` bigint(20) NOT NULL AUTO_INCREMENT,
  `orderType` int(2) NULL DEFAULT NULL COMMENT '单据类型',
  `orderId` bigint(20) NULL DEFAULT NULL COMMENT '单据id',
  `orderErrorId` bigint(20) NULL DEFAULT NULL COMMENT '关联order_error表',
  PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8 COLLATE = utf8_general_ci COMMENT = '错误和单据关联表' ROW_FORMAT = DYNAMIC;

-- ----------------------------
-- Records of link_order_error_order
-- ----------------------------

-- ----------------------------
-- Table structure for link_purchase_bad
-- ----------------------------
DROP TABLE IF EXISTS `link_purchase_bad`;
CREATE TABLE `link_purchase_bad`  (
  `materialId` bigint(20) NOT NULL COMMENT '货物ID',
  `purchaseId` bigint(20) NOT NULL COMMENT '入库订单ID',
  `badNumber` int(11) NOT NULL COMMENT '损坏数量',
  `remark` varchar(20) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '备注信息',
  `workerId` int(11) NOT NULL COMMENT '登记者ID',
  `time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '登记时间',
  `type` int(11) NULL DEFAULT 0 COMMENT '类型，1-收货， 2-入库'
) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_general_ci ROW_FORMAT = DYNAMIC;

-- ----------------------------
-- Records of link_purchase_bad
-- ----------------------------

-- ----------------------------
-- Table structure for link_purchase_box
-- ----------------------------
DROP TABLE IF EXISTS `link_purchase_box`;
CREATE TABLE `link_purchase_box`  (
  `purchaseId` bigint(20) NOT NULL COMMENT '入库订单ID',
  `boxId` int(11) NOT NULL COMMENT '托盘ID',
  `materialId` int(11) NOT NULL COMMENT '入库的货物ID',
  `number` int(11) NULL DEFAULT NULL COMMENT '货物的数量',
  `stationId` int(11) NOT NULL COMMENT '入库的工位ID',
  `status` int(11) NULL DEFAULT NULL COMMENT '状态 0-未派发 1-正在派发给机器人 3-完成派发给机器人 4-机器人搬运中 5-搬运到拣选货位中 6-无空闲托盘 7-系统错误',
  `doneNumber` int(11) NULL DEFAULT 0 COMMENT '已经完成的数量',
  PRIMARY KEY (`purchaseId`, `boxId`, `materialId`, `stationId`) USING BTREE
) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_general_ci ROW_FORMAT = DYNAMIC;

-- ----------------------------
-- Records of link_purchase_box
-- ----------------------------

-- ----------------------------
-- Table structure for link_purchase_material
-- ----------------------------
DROP TABLE IF EXISTS `link_purchase_material`;
CREATE TABLE `link_purchase_material`  (
  `materialId` bigint(20) NOT NULL COMMENT '货物Id',
  `purchaseId` bigint(20) NOT NULL COMMENT '入库Id',
  `purchaseTime` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '入库时间',
  `createTime` date NULL DEFAULT NULL COMMENT '生产日期',
  `number` int(11) NOT NULL COMMENT '入库订单数量',
  `receiveNumber` int(11) NULL DEFAULT 0 COMMENT '收货数量',
  `receiveBadNumber` int(11) NULL DEFAULT 0 COMMENT '收货的损坏数量',
  `purchaseNumber` int(11) NULL DEFAULT NULL COMMENT '入库数量',
  `purchaseBadNumber` int(11) NULL DEFAULT 0,
  `receiveStatus` int(11) NULL DEFAULT 0 COMMENT '收货状态，1--收货结束，2--收货用户取消 3--收货异常',
  `purchaseStatus` int(11) NULL DEFAULT 0 COMMENT '1--上架正常结束 2--上架超出  3--用户取消',
  `del` varchar(1) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT 'N' COMMENT 'Y --删除',
  `patchBlock` varchar(1) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT 'N' COMMENT 'Y不再入库，Ｎ入库',
  `prior` int(11) NULL DEFAULT 0 COMMENT '优先   0：否   1：是',
  `priorTime` timestamp NULL DEFAULT NULL COMMENT '优先时间 （倒序排列）',
  `openPurchase` int(2) NULL DEFAULT 0 COMMENT '是否开启上架（开启后才能上架） 0 未开启  1开启',
  PRIMARY KEY (`materialId`, `purchaseId`) USING BTREE,
  INDEX `lpm_purchaseId`(`purchaseId`) USING BTREE,
  INDEX `lpm_materialId`(`materialId`) USING BTREE,
  CONSTRAINT `link_purchase_material_ibfk_1` FOREIGN KEY (`materialId`) REFERENCES `material` (`id`) ON DELETE NO ACTION ON UPDATE NO ACTION
) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_general_ci ROW_FORMAT = DYNAMIC;

-- ----------------------------
-- Records of link_purchase_material
-- ----------------------------

-- ----------------------------
-- Table structure for link_purchase_rcs
-- ----------------------------
DROP TABLE IF EXISTS `link_purchase_rcs`;
CREATE TABLE `link_purchase_rcs`  (
  `id` int(11) NOT NULL AUTO_INCREMENT COMMENT '任务的WMS的ID',
  `boxId` bigint(20) NOT NULL COMMENT '托盘Id',
  `workerShelfBoxId` bigint(20) NOT NULL COMMENT '操作台货位Id',
  `shelfBoxId` bigint(20) NULL DEFAULT NULL COMMENT '货位Id',
  `boxTime` timestamp NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '提交任务时间',
  `status` int(11) NULL DEFAULT 1 COMMENT '状态 1-派发任务 2-搬运完成',
  `preBoxStatus` int(11) NULL DEFAULT NULL,
  PRIMARY KEY (`id`) USING BTREE,
  INDEX `lpr_wsbId`(`workerShelfBoxId`) USING BTREE,
  INDEX `lpr_sbId`(`shelfBoxId`) USING BTREE,
  INDEX `lpr_boxId`(`boxId`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8 COLLATE = utf8_general_ci ROW_FORMAT = DYNAMIC;

-- ----------------------------
-- Records of link_purchase_rcs
-- ----------------------------

-- ----------------------------
-- Table structure for link_purchase_rcs_order
-- ----------------------------
DROP TABLE IF EXISTS `link_purchase_rcs_order`;
CREATE TABLE `link_purchase_rcs_order`  (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `purchaseRcsId` bigint(20) NOT NULL COMMENT 'link_purchase_rcs的id',
  `orderId` bigint(20) NOT NULL COMMENT '订单id',
  `orderType` int(4) NULL DEFAULT NULL COMMENT '工序类型：1 上架 2：出库 3盘点   6移库',
  PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8 COLLATE = utf8_general_ci COMMENT = 'link_purchase_rcs与单据关联表  暂时只关联移库' ROW_FORMAT = DYNAMIC;

-- ----------------------------
-- Records of link_purchase_rcs_order
-- ----------------------------

-- ----------------------------
-- Table structure for link_qrcode_charge
-- ----------------------------
DROP TABLE IF EXISTS `link_qrcode_charge`;
CREATE TABLE `link_qrcode_charge`  (
  `qrcodeId` int(11) NOT NULL COMMENT '充电点ID',
  `robotConfId` int(11) NULL DEFAULT NULL COMMENT '机器人类型ID',
  `fromCrossId` int(11) NULL DEFAULT NULL COMMENT '进入充电的路的开始节点',
  `toCrossId` int(11) NULL DEFAULT NULL COMMENT '进入充电的路的开始节点',
  `awayFromQrcodeId` int(11) NULL DEFAULT NULL COMMENT '离开充电的路的开始节点',
  `awayToQrcodeId` int(11) NULL DEFAULT NULL COMMENT '离开充电桩的路的结束节点',
  `degree` int(11) NULL DEFAULT NULL COMMENT '充电时候车体角度',
  `enable` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT 'N' COMMENT '是否开启，Y-开启，N-不开启'
) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_general_ci ROW_FORMAT = DYNAMIC;

-- ----------------------------
-- Records of link_qrcode_charge
-- ----------------------------

-- ----------------------------
-- Table structure for link_qrcode_jump
-- ----------------------------
DROP TABLE IF EXISTS `link_qrcode_jump`;
CREATE TABLE `link_qrcode_jump`  (
  `fromQrcodeId` int(11) NOT NULL,
  `toQrcodeId` int(11) NOT NULL,
  `fromAreaId` int(11) NOT NULL,
  `toAreaId` int(11) NOT NULL,
  `fromDegree` int(11) NOT NULL,
  `toDegree` int(11) NOT NULL,
  `enable` varchar(20) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL
) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_general_ci ROW_FORMAT = DYNAMIC;

-- ----------------------------
-- Records of link_qrcode_jump
-- ----------------------------

-- ----------------------------
-- Table structure for link_rcs_shelfbox
-- ----------------------------
DROP TABLE IF EXISTS `link_rcs_shelfbox`;
CREATE TABLE `link_rcs_shelfbox`  (
  `fromRobotId` int(11) NOT NULL,
  `shelfBoxId` int(11) NOT NULL,
  `boxId` int(11) NOT NULL,
  `status` int(11) NOT NULL,
  `wmsTaskId` int(11) NOT NULL,
  `fromShelfBoxId` int(11) NOT NULL,
  `toShelfBoxId` int(11) NOT NULL
) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_general_ci ROW_FORMAT = DYNAMIC;

-- ----------------------------
-- Records of link_rcs_shelfbox
-- ----------------------------

-- ----------------------------
-- Table structure for link_replenish_box
-- ----------------------------
DROP TABLE IF EXISTS `link_replenish_box`;
CREATE TABLE `link_replenish_box`  (
  `boxId` bigint(20) NOT NULL COMMENT '托盘ID',
  `stationId` int(11) NOT NULL COMMENT '工位ID',
  `type` int(11) NOT NULL COMMENT '补货的类型 1-按容量补货 2-按货物补货',
  `materialId` int(11) NULL DEFAULT NULL COMMENT '货物ID',
  `time` timestamp NULL DEFAULT CURRENT_TIMESTAMP COMMENT '时间',
  `del` varchar(1) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT 'N' COMMENT '是否删除',
  INDEX `lrb_boxId`(`boxId`) USING BTREE
) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_general_ci ROW_FORMAT = DYNAMIC;

-- ----------------------------
-- Records of link_replenish_box
-- ----------------------------

-- ----------------------------
-- Table structure for link_robot_tag_robot
-- ----------------------------
DROP TABLE IF EXISTS `link_robot_tag_robot`;
CREATE TABLE `link_robot_tag_robot`  (
  `id` bigint(20) NOT NULL AUTO_INCREMENT,
  `robot_id` bigint(20) NULL DEFAULT NULL COMMENT '机器人id',
  `robot_tag_id` bigint(20) NULL DEFAULT NULL COMMENT '机器人tag的id',
  `created_time` datetime NULL DEFAULT NULL COMMENT '创建时间',
  `created_by` bigint(20) NULL DEFAULT NULL COMMENT '创建人id',
  `modified_time` datetime NULL DEFAULT NULL COMMENT '修改时间',
  `modified_by` bigint(20) NULL DEFAULT NULL COMMENT '最后修改人id',
  PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8 COLLATE = utf8_general_ci COMMENT = '机器人tag与机器人关联表' ROW_FORMAT = DYNAMIC;

-- ----------------------------
-- Records of link_robot_tag_robot
-- ----------------------------

-- ----------------------------
-- Table structure for link_role_process
-- ----------------------------
DROP TABLE IF EXISTS `link_role_process`;
CREATE TABLE `link_role_process`  (
  `role_id` bigint(20) NOT NULL COMMENT '角色ID',
  `process_id` bigint(20) NOT NULL COMMENT '流程ID'
) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_general_ci ROW_FORMAT = DYNAMIC;

-- ----------------------------
-- Records of link_role_process
-- ----------------------------

-- ----------------------------
-- Table structure for link_shelf_and_shelf_column_qrcode
-- ----------------------------
DROP TABLE IF EXISTS `link_shelf_and_shelf_column_qrcode`;
CREATE TABLE `link_shelf_and_shelf_column_qrcode`  (
  `id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT 'id',
  `shelf_id` bigint(20) NULL DEFAULT NULL COMMENT '使用立柱码的货架id',
  `shelf_column_qrcode_id` bigint(20) NULL DEFAULT NULL COMMENT '货架所使用的立柱码id',
  `column_id` int(11) NULL DEFAULT NULL COMMENT '立柱码id',
  `x` float NULL DEFAULT NULL COMMENT '立柱x坐标',
  `y` float NULL DEFAULT NULL COMMENT '立柱y坐标',
  `created_time` datetime NULL DEFAULT NULL COMMENT '创建时间',
  `modified_time` datetime NULL DEFAULT NULL COMMENT '修改时间',
  `created_by` bigint(20) NULL DEFAULT NULL COMMENT '创建人id',
  `modified_by` bigint(20) NULL DEFAULT NULL COMMENT '最后修改人id',
  PRIMARY KEY (`id`) USING BTREE,
  UNIQUE INDEX `uk_shelf_id_and_cloumn_qrcode_id`(`shelf_id`, `shelf_column_qrcode_id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8 COLLATE = utf8_general_ci COMMENT = '货架和货架立柱二维码关联表' ROW_FORMAT = DYNAMIC;

-- ----------------------------
-- Records of link_shelf_and_shelf_column_qrcode
-- ----------------------------

-- ----------------------------
-- Table structure for link_static_box
-- ----------------------------
DROP TABLE IF EXISTS `link_static_box`;
CREATE TABLE `link_static_box`  (
  `shelfBoxId` int(11) NOT NULL COMMENT '仓位ID',
  `boxId` int(11) NULL DEFAULT NULL COMMENT '托盘ID',
  PRIMARY KEY (`shelfBoxId`) USING BTREE
) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_general_ci ROW_FORMAT = DYNAMIC;

-- ----------------------------
-- Records of link_static_box
-- ----------------------------

-- ----------------------------
-- Table structure for link_statistic_count
-- ----------------------------
DROP TABLE IF EXISTS `link_statistic_count`;
CREATE TABLE `link_statistic_count`  (
  `day` date NOT NULL COMMENT '日期（天）',
  `materialCount` int(11) NULL DEFAULT 0 COMMENT '当前的货物总数',
  PRIMARY KEY (`day`) USING BTREE
) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_general_ci ROW_FORMAT = DYNAMIC;

-- ----------------------------
-- Records of link_statistic_count
-- ----------------------------

-- ----------------------------
-- Table structure for link_statistic_purchase
-- ----------------------------
DROP TABLE IF EXISTS `link_statistic_purchase`;
CREATE TABLE `link_statistic_purchase`  (
  `purchaseId` bigint(20) NOT NULL COMMENT '入库ID',
  `materialId` bigint(20) NOT NULL COMMENT '货物ID',
  `number` int(11) NOT NULL DEFAULT 0 COMMENT '货物的数量',
  `workerId` int(11) NOT NULL COMMENT '操作员的ID',
  `day` date NOT NULL COMMENT '日期（天）',
  PRIMARY KEY (`day`, `workerId`, `materialId`, `purchaseId`) USING BTREE
) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_general_ci ROW_FORMAT = DYNAMIC;

-- ----------------------------
-- Records of link_statistic_purchase
-- ----------------------------

-- ----------------------------
-- Table structure for link_storage_domain
-- ----------------------------
DROP TABLE IF EXISTS `link_storage_domain`;
CREATE TABLE `link_storage_domain`  (
  `domainId` int(11) NOT NULL COMMENT '区域ID',
  `storageId` int(11) NOT NULL COMMENT '存储特性ID（区域和存储特性关联）'
) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_general_ci ROW_FORMAT = DYNAMIC;

-- ----------------------------
-- Records of link_storage_domain
-- ----------------------------

-- ----------------------------
-- Table structure for link_storage_material
-- ----------------------------
DROP TABLE IF EXISTS `link_storage_material`;
CREATE TABLE `link_storage_material`  (
  `storageId` varchar(100) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '存储特性列表，由存储特性字典表相乘得到',
  `materialId` int(11) NOT NULL COMMENT '货物ID',
  PRIMARY KEY (`materialId`) USING BTREE
) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_general_ci ROW_FORMAT = DYNAMIC;

-- ----------------------------
-- Records of link_storage_material
-- ----------------------------

-- ----------------------------
-- Table structure for link_storage_shelf
-- ----------------------------
DROP TABLE IF EXISTS `link_storage_shelf`;
CREATE TABLE `link_storage_shelf`  (
  `storageId` varchar(100) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '存储特性列表，由存储特性字典表相乘得到',
  `shelfId` int(11) NOT NULL COMMENT '货架ID',
  PRIMARY KEY (`shelfId`) USING BTREE
) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_general_ci ROW_FORMAT = DYNAMIC;

-- ----------------------------
-- Records of link_storage_shelf
-- ----------------------------

-- ----------------------------
-- Table structure for link_wms_rcs
-- ----------------------------
DROP TABLE IF EXISTS `link_wms_rcs`;
CREATE TABLE `link_wms_rcs`  (
  `id` int(11) NOT NULL AUTO_INCREMENT COMMENT '任务ID',
  `wmsId` int(11) NOT NULL COMMENT 'WMS',
  `wmsType` int(11) NOT NULL COMMENT '0-pick+unpick  1 pick 2 unpick 3 measure box 4 measure+unpick',
  `status` int(11) NOT NULL COMMENT '状态 0-未派发 1-已派发 2-正在搬运 3-搬运完成 其他为异常\r\nTASK_STATUS_INIT: 0;\r\nTASK_STATUS_PATCH: 1;\r\nTASK_STATUS_RUNNING: 2;\r\nTASK_STATUS_DONE: 3;\r\nTASK_STATUS_FAIL: 5;\r\n\r\nTASK_FAIL_BEFORE: 8;\r\n\r\nTASK_STATUS_TIMEOUT: 10;\r\nTASK_STATUS_PICK_ENTER_TIMEOUT: 11;\r\nTASK_STATUS_PICK_NOTENTER_TIMEOUT: 12;\r\n\r\nTASK_STATUS_UNPICK_ENTER_TIMEOUT: 13;\r\nTASK_STATUS_UNPICK_NOTENTER_TIMEOUT: 14;\r\n\r\nTASK_STATUS_NOROBOT: 15;\r\n\r\nTASK_PICK_NOT_PATH: 20;\r\nTASK_UNPICK_NOT_PATH: 21;\r\nTASK_CHARGE_NOT_PATH: 26;\r\n\r\nTASK_PICK_ROBOT_ERROR: 22;\r\nTASK_UNPICK_ROBOT_ERROR: 23;\r\nTASK_CHARGE_ROBOT_ERROR: 26;\r\n\r\nTASK_PICK_WITH_BOX: 24;\r\nTASK_UNPICK_NOT_BOX: 25;\r\n\r\nTASK_CHARGE_SAME: 30;\r\nTASK_CHARGE_NO_QRCODE: 31;\r\nTASK_CHARGE_BOX: 32;\r\nTASK_CHARGE_QRCODE_LOCK: 33;\r\nTASK_CHARGE_LOCK_FAIL: 33; // 锁点失败\r\nTASK_CANCEL_NOT_EXIST: 41; // 任务不存在\r\nTASK_CANCEL_SUCCESS: 42; // 未进入辅道被取消\r\nTASK_CANCEL_IN_PICK: 43; // 进入了辅道\r\n\r\nTASK_WEIGHT_NOT_MATCH: 50; // 和OMS的重量不匹配\r\nTASK_WEIGHT_OUT_LIMIT: 51; // 超过叉车的限定的重量',
  `boxId` int(11) NOT NULL COMMENT '托盘ID',
  `boxHeight` int(11) NULL DEFAULT 0 COMMENT '托盘高度',
  `boxWeight` int(11) NULL DEFAULT 0 COMMENT '托盘重量',
  `fromShelfBoxId` int(11) NULL DEFAULT NULL COMMENT '搬运开始的仓位',
  `toShelfBoxId` int(11) NULL DEFAULT NULL COMMENT '搬运到达的仓位',
  `transship` varchar(1) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '是否接驳：Y-是，N-否',
  `fromShelfBoxInventory` int(11) NULL DEFAULT NULL COMMENT '出发仓位容器库存数',
  `toShelfBoxInventory` int(11) NULL DEFAULT NULL COMMENT '目标仓位容器库存数',
  `stackHeight` int(11) NULL DEFAULT NULL COMMENT '容器堆码高度',
  `stackWeight` int(11) NULL DEFAULT NULL COMMENT '容器堆码重量',
  `pickNumber` int(11) NULL DEFAULT NULL COMMENT '叉取容器数量',
  `specification` int(11) NULL DEFAULT NULL COMMENT '到位检测方式',
  `businessType` int(11) NULL DEFAULT NULL COMMENT '业务类型：1-入库、2-出库、3-移库',
  `wmsWeight` int(11) NULL DEFAULT -1 COMMENT '-1 未知，不限定。 其他为重量  Kg',
  `rcsWeight` int(11) NULL DEFAULT -1 COMMENT '-1 未知，不限定。 其他为重量  Kg',
  `robotTag` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '限制执行机器人需要满足的功能标签，如果是需要多个便签，使用”,”分割',
  `robotId` bigint(20) NULL DEFAULT NULL COMMENT '执行的机器人的ID',
  `createTime` datetime NULL DEFAULT NULL COMMENT '创建时间',
  `doneTime` datetime NULL DEFAULT NULL COMMENT '完成时间',
  `lastUpdateTime` timestamp NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '最后更新时间',
  `implement_time` datetime NULL DEFAULT NULL COMMENT '定时执行时间',
  `isPurchase` varchar(1) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT 'N' COMMENT '是否已经入库（暂时无用）',
  `fixStatus` int(2) NULL DEFAULT 0 COMMENT '修正状态  0 未修正    1已修正',
  `relType` int(2) NULL DEFAULT NULL COMMENT '0 出库  1入库',
  `batch_number` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '批次号',
  `targetApplyUrl` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '目标仓位申请地址',
  `notifyUrl` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '回调地址',
  `top` int(11) NULL DEFAULT NULL COMMENT '置顶排序',
  `task_no` int(11) NULL DEFAULT NULL COMMENT '任务编码（海康任务使用）',
  `priority` int(11) NULL DEFAULT 0 COMMENT '任务的优先级 0最小',
  `taskType` int(11) NULL DEFAULT NULL COMMENT '业务类型 1-货仓发料 2-生产回仓',
  `addPriorityTime` datetime NULL DEFAULT NULL COMMENT '提高优先级时间',
  `remark` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '备注',
  `photo_url` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '照片地址',
  `pause` int(11) NULL DEFAULT 0 COMMENT '是否暂停 0-否，1-是',
  PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 5 CHARACTER SET = utf8 COLLATE = utf8_general_ci ROW_FORMAT = DYNAMIC;

-- ----------------------------
-- Records of link_wms_rcs
-- ----------------------------
INSERT INTO `link_wms_rcs` VALUES (1, 0, 0, 3, 1, 0, 0, 3001, 14001, 'N', NULL, NULL, NULL, NULL, NULL, NULL, NULL, -1, -1, NULL, 101, '2025-02-19 15:02:55', '2025-02-19 15:05:34', '2025-02-19 15:05:34', NULL, 'N', 0, NULL, NULL, NULL, NULL, NULL, NULL, 0, NULL, NULL, NULL, NULL, 0);
INSERT INTO `link_wms_rcs` VALUES (2, 0, 0, 3, 1, 0, 0, 4001, 15001, 'N', NULL, NULL, NULL, NULL, NULL, NULL, NULL, -1, -1, NULL, 201, '2025-02-19 15:26:55', '2025-02-19 15:31:19', '2025-02-19 15:31:19', NULL, 'N', 0, NULL, NULL, NULL, NULL, NULL, NULL, 0, NULL, NULL, NULL, NULL, 0);
INSERT INTO `link_wms_rcs` VALUES (3, 0, 0, 3, 1, 0, 0, 4001, 15001, 'N', NULL, NULL, NULL, NULL, NULL, NULL, NULL, -1, -1, NULL, 201, '2025-02-19 15:33:44', '2025-02-19 15:36:07', '2025-02-19 15:36:07', NULL, 'N', 0, NULL, NULL, NULL, NULL, NULL, NULL, 0, NULL, NULL, NULL, NULL, 0);
INSERT INTO `link_wms_rcs` VALUES (4, 0, 0, 3, 1, 0, 0, 4001, 17001, 'N', NULL, NULL, NULL, NULL, NULL, NULL, NULL, -1, -1, NULL, 101, '2025-02-19 15:44:02', '2025-02-19 15:51:09', '2025-02-19 15:51:09', NULL, 'N', 0, NULL, NULL, NULL, NULL, NULL, NULL, 0, NULL, NULL, NULL, NULL, 0);

-- ----------------------------
-- Table structure for lora_button
-- ----------------------------
DROP TABLE IF EXISTS `lora_button`;
CREATE TABLE `lora_button`  (
  `id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '按钮id',
  `name` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '按钮名称',
  `type` int(11) NULL DEFAULT 1 COMMENT '按钮类型, 1: 刘键按钮',
  `device_id` varchar(128) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT 'lora模块的id或uuid',
  `device_eui` varchar(128) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '网关编号',
  `location` bigint(20) NULL DEFAULT NULL COMMENT '按钮部署的位置，qrcodeId',
  `enabled` tinyint(4) NOT NULL DEFAULT 1 COMMENT '是否启用，0：禁用；1：启用',
  `created_time` datetime NULL DEFAULT NULL COMMENT '创建时间',
  `modified_time` datetime NULL DEFAULT NULL COMMENT '修改时间',
  `created_by` bigint(20) NULL DEFAULT NULL COMMENT '创建人id',
  `modified_by` bigint(20) NULL DEFAULT NULL COMMENT '最后修改人id',
  PRIMARY KEY (`id`) USING BTREE,
  INDEX `idx_device_id`(`device_id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8 COLLATE = utf8_general_ci COMMENT = 'lora呼叫按钮' ROW_FORMAT = DYNAMIC;

-- ----------------------------
-- Records of lora_button
-- ----------------------------

-- ----------------------------
-- Table structure for lora_button_key
-- ----------------------------
DROP TABLE IF EXISTS `lora_button_key`;
CREATE TABLE `lora_button_key`  (
  `id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '按键id',
  `device_id` varchar(128) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT 'lora模块的id或uuid',
  `key_code` int(11) NULL DEFAULT NULL COMMENT '按键索引',
  `reference_type` int(11) NULL DEFAULT 1 COMMENT '引用类型：1，仓位；2，预设任务',
  `reference_id` bigint(20) NULL DEFAULT NULL COMMENT '引用对象id：如仓位id、预设任务id等',
  `created_time` datetime NULL DEFAULT NULL COMMENT '创建时间',
  `modified_time` datetime NULL DEFAULT NULL COMMENT '修改时间',
  `created_by` bigint(20) NULL DEFAULT NULL COMMENT '创建人id',
  `modified_by` bigint(20) NULL DEFAULT NULL COMMENT '最后修改人id',
  PRIMARY KEY (`id`) USING BTREE,
  INDEX `idx_device_id`(`device_id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8 COLLATE = utf8_general_ci COMMENT = 'lora呼叫按钮按键' ROW_FORMAT = DYNAMIC;

-- ----------------------------
-- Records of lora_button_key
-- ----------------------------

-- ----------------------------
-- Table structure for material
-- ----------------------------
DROP TABLE IF EXISTS `material`;
CREATE TABLE `material`  (
  `id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '货物Id',
  `sku` varchar(80) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '条形码',
  `length` float NULL DEFAULT NULL COMMENT '宽度',
  `name` varchar(20) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '名称',
  `unit` varchar(32) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL DEFAULT '件' COMMENT '单位',
  `width` float NULL DEFAULT NULL COMMENT '宽度',
  `height` float NULL DEFAULT NULL COMMENT '高度',
  `subSku` bigint(20) NULL DEFAULT NULL COMMENT '拆分sku',
  `subCount` int(11) NULL DEFAULT NULL COMMENT '拆分数量',
  `group` varchar(20) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '分类',
  `fadeDay` int(11) NULL DEFAULT NULL COMMENT '过期时间（天）',
  `status` int(11) NULL DEFAULT NULL COMMENT '状态1--启用  0--禁用',
  `weight` float NULL DEFAULT NULL,
  `rohs` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '批次号',
  `sense` varchar(1) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT 'N' COMMENT '生产日期的敏感， Y--是， N否',
  `moveFlag` tinyint(2) NULL DEFAULT 1 COMMENT '移库开关 0 关   1开',
  `priorLevel` bigint(11) NULL DEFAULT 0 COMMENT '货物优先级（移库时用到）值越大优先级越高',
  `priorRecoNum` int(11) NULL DEFAULT 0 COMMENT '优先区域推荐数量（计算周期内N天出库量）',
  `batchFlag` tinyint(1) NULL DEFAULT 0 COMMENT '批次管理   0 否；1 是',
  `serialFlag` tinyint(1) NULL DEFAULT NULL COMMENT '序列号管理   0 否；1 是',
  `volume` float(10, 0) NULL DEFAULT NULL COMMENT '体积',
  `createTime` datetime NULL DEFAULT NULL COMMENT '创建时间',
  `updater` varchar(20) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '更新人',
  `updateTime` datetime NULL DEFAULT NULL,
  PRIMARY KEY (`id`) USING BTREE,
  UNIQUE INDEX `sku`(`sku`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8 COLLATE = utf8_general_ci ROW_FORMAT = DYNAMIC;

-- ----------------------------
-- Records of material
-- ----------------------------

-- ----------------------------
-- Table structure for material_size
-- ----------------------------
DROP TABLE IF EXISTS `material_size`;
CREATE TABLE `material_size`  (
  `boxTypeId` int(11) NOT NULL COMMENT '托盘规格ID，参考表DIC_BOX_TYPE',
  `materialId` int(11) NOT NULL COMMENT '货物ID',
  `number` int(11) NOT NULL DEFAULT 0 COMMENT '满托盘能放置的数量',
  PRIMARY KEY (`boxTypeId`, `materialId`) USING BTREE,
  CONSTRAINT `ms_boxTypeId` FOREIGN KEY (`boxTypeId`) REFERENCES `dic_box_type` (`id`) ON DELETE RESTRICT ON UPDATE RESTRICT
) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_general_ci ROW_FORMAT = DYNAMIC;

-- ----------------------------
-- Records of material_size
-- ----------------------------

-- ----------------------------
-- Table structure for measure
-- ----------------------------
DROP TABLE IF EXISTS `measure`;
CREATE TABLE `measure`  (
  `id` int(11) NOT NULL AUTO_INCREMENT COMMENT '任务ID',
  `status` int(11) NOT NULL COMMENT '状态0-初始任务 1-开始派发 2-正在测量 3-测量完成 4-测量确认',
  `robotId` int(11) NOT NULL COMMENT '测量机器ID',
  `shelfId` int(11) NOT NULL COMMENT '测量的货架ID',
  `shelfIndex` int(11) NOT NULL COMMENT '测量的第x列货位',
  `heights` varchar(100) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '测量的横梁高度，格式为0,1250,3041,4258',
  PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8 COLLATE = utf8_general_ci ROW_FORMAT = DYNAMIC;

-- ----------------------------
-- Records of measure
-- ----------------------------

-- ----------------------------
-- Table structure for motor_movement
-- ----------------------------
DROP TABLE IF EXISTS `motor_movement`;
CREATE TABLE `motor_movement`  (
  `id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '主键id',
  `name` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '车轮名称',
  `conf_id` int(11) NOT NULL COMMENT '机器人类型ID',
  `device_id` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '车轮设备id',
  `speed_reducing_ratio` int(11) NULL DEFAULT NULL COMMENT '减速比r/min',
  `wheel_radius` int(11) NULL DEFAULT NULL COMMENT '轮半径mm',
  `y_index` int(11) NULL DEFAULT NULL COMMENT 'y轴mm',
  `x_index` int(11) NULL DEFAULT NULL COMMENT 'x轴mm',
  `wheel_distance` int(11) NULL DEFAULT NULL COMMENT '从动轮间距离mm',
  `brand` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '车轮品牌',
  `type` int(11) NULL DEFAULT NULL COMMENT '类型 1-主动轮,2-从动轮',
  `created_time` datetime NULL DEFAULT NULL COMMENT '创建时间',
  `modified_time` datetime NULL DEFAULT NULL COMMENT '修改时间',
  `created_by` bigint(20) NULL DEFAULT NULL COMMENT '创建人id',
  `modified_by` bigint(20) NULL DEFAULT NULL COMMENT '最后修改人id',
  PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8 COLLATE = utf8_general_ci ROW_FORMAT = COMPACT;

-- ----------------------------
-- Records of motor_movement
-- ----------------------------

-- ----------------------------
-- Table structure for move
-- ----------------------------
DROP TABLE IF EXISTS `move`;
CREATE TABLE `move`  (
  `id` bigint(20) NOT NULL AUTO_INCREMENT,
  `startTime` timestamp NULL DEFAULT CURRENT_TIMESTAMP COMMENT '开始时间',
  `status` int(11) NULL DEFAULT 0 COMMENT '0 未开始  2完成  3 停止  4取消   5正在进行',
  `finishTime` timestamp NULL DEFAULT NULL COMMENT '结束时间',
  `createrId` int(11) NULL DEFAULT 0 COMMENT '创建者，如果是员工， 那么是员工的id',
  `source` smallint(2) NULL DEFAULT NULL COMMENT '0 :系统   1人工',
  `stopTime` timestamp NULL DEFAULT NULL COMMENT '停止时间',
  `type` varchar(3) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '0 手动移库  1自动移库',
  `createTime` timestamp NULL DEFAULT NULL COMMENT '创建时间',
  `executorId` int(11) NULL DEFAULT NULL COMMENT '执行人',
  `stationId` bigint(20) NULL DEFAULT NULL COMMENT '工位',
  PRIMARY KEY (`id`) USING BTREE,
  INDEX `id`(`id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8 COLLATE = utf8_general_ci ROW_FORMAT = DYNAMIC;

-- ----------------------------
-- Records of move
-- ----------------------------

-- ----------------------------
-- Table structure for mqtt_receive_history
-- ----------------------------
DROP TABLE IF EXISTS `mqtt_receive_history`;
CREATE TABLE `mqtt_receive_history`  (
  `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT 'mqtt消息接受id',
  `client_id` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '设备id',
  `content` varchar(2550) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '发送内容',
  `type` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '类型 1-4GI/O模块，2-摄像头',
  `x1` int(11) NULL DEFAULT 0 COMMENT '输入点1',
  `x2` int(11) NULL DEFAULT 0 COMMENT '输入点2',
  `x3` int(11) NULL DEFAULT 0 COMMENT '输入点3',
  `x4` int(11) NULL DEFAULT 0 COMMENT '输入点4',
  `x5` int(11) NULL DEFAULT 0 COMMENT '输入点5',
  `x6` int(11) NULL DEFAULT 0 COMMENT '输入点6',
  `x7` int(11) NULL DEFAULT 0 COMMENT '输入点7',
  `x8` int(11) NULL DEFAULT 0 COMMENT '输入点8',
  `created_time` datetime NULL DEFAULT NULL COMMENT '创建时间',
  `modified_time` datetime NULL DEFAULT NULL COMMENT '修改时间',
  `created_by` bigint(20) NULL DEFAULT NULL COMMENT '创建人id',
  `modified_by` bigint(20) NULL DEFAULT NULL COMMENT '最后修改人id',
  PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8 COLLATE = utf8_general_ci ROW_FORMAT = DYNAMIC;

-- ----------------------------
-- Records of mqtt_receive_history
-- ----------------------------

-- ----------------------------
-- Table structure for mqtt_send_history
-- ----------------------------
DROP TABLE IF EXISTS `mqtt_send_history`;
CREATE TABLE `mqtt_send_history`  (
  `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT 'mqtt消息发送id',
  `client_id` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '设备id',
  `content` varchar(2550) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '发送内容',
  `topic` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '发送主题',
  `created_time` datetime NULL DEFAULT NULL COMMENT '创建时间',
  `modified_time` datetime NULL DEFAULT NULL COMMENT '修改时间',
  `created_by` bigint(20) NULL DEFAULT NULL COMMENT '创建人id',
  `modified_by` bigint(20) NULL DEFAULT NULL COMMENT '最后修改人id',
  PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8 COLLATE = utf8_general_ci ROW_FORMAT = DYNAMIC;

-- ----------------------------
-- Records of mqtt_send_history
-- ----------------------------

-- ----------------------------
-- Table structure for mvid_code_reader
-- ----------------------------
DROP TABLE IF EXISTS `mvid_code_reader`;
CREATE TABLE `mvid_code_reader`  (
  `id` bigint(20) NOT NULL AUTO_INCREMENT,
  `type` int(11) NOT NULL COMMENT '类型  1-发送方  2-接收方',
  `ip` varchar(20) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '扫码器的IP地址',
  `port` int(11) NOT NULL COMMENT '扫码器的 端口',
  `enabled` tinyint(4) NOT NULL DEFAULT 1 COMMENT '1--为启用，其他为不启用',
  `created_time` datetime NULL DEFAULT NULL COMMENT '创建时间',
  `modified_time` datetime NULL DEFAULT NULL COMMENT '修改时间',
  `created_by` bigint(20) NULL DEFAULT NULL COMMENT '创建人id',
  `modified_by` bigint(20) NULL DEFAULT NULL COMMENT '最后修改人id',
  PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8 COLLATE = utf8_general_ci ROW_FORMAT = DYNAMIC;

-- ----------------------------
-- Records of mvid_code_reader
-- ----------------------------

-- ----------------------------
-- Table structure for name_bean
-- ----------------------------
DROP TABLE IF EXISTS `name_bean`;
CREATE TABLE `name_bean`  (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `address` varchar(20) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL,
  `qq` varchar(20) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL,
  PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8 COLLATE = utf8_general_ci ROW_FORMAT = DYNAMIC;

-- ----------------------------
-- Records of name_bean
-- ----------------------------

-- ----------------------------
-- Table structure for navigation_radar
-- ----------------------------
DROP TABLE IF EXISTS `navigation_radar`;
CREATE TABLE `navigation_radar`  (
  `id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '主键id',
  `name` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '导航雷达名称',
  `conf_id` int(11) NOT NULL COMMENT '机器人类型ID',
  `device_id` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '导航雷达设备id',
  `x_index` int(11) NULL DEFAULT NULL COMMENT 'x轴mm',
  `y_index` int(11) NULL DEFAULT NULL COMMENT 'y轴mm',
  `z_index` int(11) NULL DEFAULT NULL COMMENT 'z轴mm',
  `degree` float(11, 4) NULL DEFAULT NULL COMMENT '导航雷达角度',
  `created_time` datetime NULL DEFAULT NULL COMMENT '创建时间',
  `modified_time` datetime NULL DEFAULT NULL COMMENT '修改时间',
  `created_by` bigint(20) NULL DEFAULT NULL COMMENT '创建人id',
  `modified_by` bigint(20) NULL DEFAULT NULL COMMENT '最后修改人id',
  PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8 COLLATE = utf8_general_ci ROW_FORMAT = COMPACT;

-- ----------------------------
-- Records of navigation_radar
-- ----------------------------

-- ----------------------------
-- Table structure for obstruction
-- ----------------------------
DROP TABLE IF EXISTS `obstruction`;
CREATE TABLE `obstruction`  (
  `id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '障碍物ID',
  `name` varchar(20) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '障碍物名称',
  `geometry` varchar(1000) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '障碍物的边界，格式为闭合的顶点，例如：3828,9345;3828,7345;1828,7345;1828,9345;3828,9345',
  `enable` varchar(1) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT 'Y' COMMENT '是否启用Y-启用 N-禁用',
  `area_id` int(11) NULL DEFAULT 1,
  `color` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '颜色',
  `created_time` datetime NULL DEFAULT NULL COMMENT '创建时间',
  `modified_time` datetime NULL DEFAULT NULL COMMENT '修改时间',
  `created_by` bigint(20) NULL DEFAULT NULL COMMENT '创建人id',
  `modified_by` bigint(20) NULL DEFAULT NULL COMMENT '最后修改人id',
  PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8 COLLATE = utf8_general_ci ROW_FORMAT = DYNAMIC;

-- ----------------------------
-- Records of obstruction
-- ----------------------------

-- ----------------------------
-- Table structure for order_error
-- ----------------------------
DROP TABLE IF EXISTS `order_error`;
CREATE TABLE `order_error`  (
  `type` int(4) NOT NULL DEFAULT 0 COMMENT '错误类型',
  `id` bigint(20) NOT NULL AUTO_INCREMENT,
  `wmsRcsId` bigint(20) NULL DEFAULT NULL COMMENT '关联link_wms_rcs',
  `tip` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '提示信息',
  `status` int(2) NULL DEFAULT 0 COMMENT '0:未解决  1:已解决',
  `solveEnable` int(1) NULL DEFAULT 1 COMMENT '0:不能解决  1：可以解决',
  `boxId` bigint(20) NULL DEFAULT NULL COMMENT '托盘id',
  `createTime` timestamp NULL DEFAULT NULL,
  `preBoxStatus` int(10) NULL DEFAULT NULL COMMENT '托盘之前的状态',
  `showEnable` int(2) NULL DEFAULT NULL COMMENT '是否弹框  0否    1是 ',
  PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8 COLLATE = utf8_general_ci COMMENT = '错误表' ROW_FORMAT = DYNAMIC;

-- ----------------------------
-- Records of order_error
-- ----------------------------

-- ----------------------------
-- Table structure for order_transship_status
-- ----------------------------
DROP TABLE IF EXISTS `order_transship_status`;
CREATE TABLE `order_transship_status`  (
  `id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '主键ID',
  `order_id` bigint(20) NOT NULL COMMENT '订单id',
  `process_id` bigint(20) NOT NULL COMMENT '路线流程id',
  `process_transship_id` bigint(20) NOT NULL COMMENT '接驳设置id',
  `shelf_box_id` bigint(20) NOT NULL COMMENT '接驳仓位id',
  `status` int(11) NULL DEFAULT 0 COMMENT '接驳任务状态',
  `created_time` datetime NULL DEFAULT NULL COMMENT '创建时间',
  `modified_time` datetime NULL DEFAULT NULL COMMENT '修改时间',
  `created_by` bigint(20) NULL DEFAULT NULL COMMENT '创建人id',
  `modified_by` bigint(20) NULL DEFAULT NULL COMMENT '最后修改人id',
  PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8 COLLATE = utf8_general_ci ROW_FORMAT = DYNAMIC;

-- ----------------------------
-- Records of order_transship_status
-- ----------------------------

-- ----------------------------
-- Table structure for panel_conf
-- ----------------------------
DROP TABLE IF EXISTS `panel_conf`;
CREATE TABLE `panel_conf`  (
  `name` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '仓库的名称',
  `x` int(4) NULL DEFAULT NULL COMMENT '作为原点的X',
  `y` int(4) NULL DEFAULT NULL COMMENT '作为原点的Y',
  `rate` float NULL DEFAULT NULL COMMENT '和原始地图的比例',
  PRIMARY KEY (`name`) USING BTREE
) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_general_ci ROW_FORMAT = DYNAMIC;

-- ----------------------------
-- Records of panel_conf
-- ----------------------------
INSERT INTO `panel_conf` VALUES ('zhizhenwuliu', 500, 920, 0.025);

-- ----------------------------
-- Table structure for pick_conf
-- ----------------------------
DROP TABLE IF EXISTS `pick_conf`;
CREATE TABLE `pick_conf`  (
  `id` int(11) NOT NULL AUTO_INCREMENT COMMENT '配置项ID',
  `conf_id` int(11) NOT NULL COMMENT '机器人类型ID',
  `name` varchar(20) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '机器人类型名称',
  `offset` int(11) NOT NULL COMMENT '辅道和货位中心的距离(mm)',
  `pick_back_offset` int(11) NULL DEFAULT NULL COMMENT '主道后退取卸货参数，主道偏移量单位mm',
  `away_offset` int(11) NULL DEFAULT NULL COMMENT '调头时候的和道路的距离(mm)',
  `overshot` int(11) NOT NULL DEFAULT 0 COMMENT '转弯时候车体和货位中心点垂直线的距离(mm)',
  `delta_left` int(11) NOT NULL DEFAULT 0 COMMENT '左转90度之后车体偏离开始点的距离(mm)',
  `delta_right` int(11) NOT NULL DEFAULT 0 COMMENT '右转90度之后车体偏离开始点的距离(mm)',
  `from_distance` int(11) NOT NULL DEFAULT 0 COMMENT '取货点到开始转弯的横向距离(mm)',
  `away_distance` int(11) NOT NULL DEFAULT 0 COMMENT '1号点到辅路点的横向距离(mm)',
  `shelf_length` int(11) NOT NULL DEFAULT 0 COMMENT '取卸货点距离仓位点的垂直距离(mm)，仓位中心点坐标 - pickOffset距离得到该车型的取卸货点坐标',
  `max_fork_height` int(11) NULL DEFAULT -1 COMMENT '最大的插齿高度(mm)',
  `max_fork_weight` int(11) NULL DEFAULT 99999 COMMENT '最大的负重，单位kg',
  `pick_fork_in_offset` int(11) NULL DEFAULT 30 COMMENT '取货进入时候的插齿下边缘距离横梁上边缘的高度(mm)',
  `pick_fork_out_offset` int(11) NULL DEFAULT 160 COMMENT '取货出来时候的插齿下边缘距离横梁上边缘的高度(mm)',
  `unpick_fork_in_offset` int(11) NULL DEFAULT 160 COMMENT '卸货进入时候的插齿下边缘距离横梁上边缘的高度(mm)',
  `pick_away_degree` int(11) NULL DEFAULT 3 COMMENT '取货时候叉齿的仰角',
  `unpick_fork_out_offset` int(11) NULL DEFAULT 30 COMMENT '卸货进入时候的插齿下边缘距离横梁上边缘的高度(mm)',
  `move_fork_offset` int(11) NULL DEFAULT 370 COMMENT '移动时候的插齿下边缘距离地面的高度(mm)',
  `pick_point_offset` int(11) NULL DEFAULT 300 COMMENT '取货点的圆圈允许误差值',
  `move_fork_width` int(11) NULL DEFAULT NULL COMMENT '插齿宽度',
  PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 1001001 CHARACTER SET = utf8 COLLATE = utf8_general_ci ROW_FORMAT = DYNAMIC;

-- ----------------------------
-- Records of pick_conf
-- ----------------------------
INSERT INTO `pick_conf` VALUES (1, 1, 'PG-CD20-MA-001', 1200, 600, 1200, 0, 0, 0, 4000, 3000, 0, 110, 2000, 30, 130, 130, 0, 30, 180, 300, 900);
INSERT INTO `pick_conf` VALUES (2, 2, 'PG-CD15-ZC-001', 1200, 570, 1200, 0, 0, 0, 4000, 3000, 0, 110, 1500, 30, 130, 130, 0, 30, 180, 300, 900);
INSERT INTO `pick_conf` VALUES (101, 101, 'PG-S14-MA-001', 1260, 600, 341, 0, 0, 0, 4000, 3000, 20, 1600, 1400, 30, 130, 130, 0, 30, 180, 300, 900);
INSERT INTO `pick_conf` VALUES (102, 102, 'PG-S14-MA-002', 1260, 600, 341, 0, 0, 0, 4000, 3000, 20, 1600, 1400, 30, 130, 130, 0, 30, 180, 300, 900);
INSERT INTO `pick_conf` VALUES (103, 103, 'PG-S14-EHA002T', 1260, 600, 341, 0, 0, 0, 4000, 3000, 20, 3000, 1400, 30, 130, 130, 0, 30, 180, 300, 900);
INSERT INTO `pick_conf` VALUES (201, 201, 'PG-L16-LD-001', 1200, 650, 500, 0, 0, 0, 4000, 3000, 0, 4500, 1600, 30, 160, 160, 0, 30, 120, 300, 900);
INSERT INTO `pick_conf` VALUES (202, 202, 'PG-CR15-MA-001', 1200, 900, 500, 0, 0, 0, 4000, 3000, 0, 4500, 1500, 30, 160, 160, 0, 30, 120, 300, 900);
INSERT INTO `pick_conf` VALUES (203, 203, 'PG-S15-ZC-001', 1200, 590, 500, 0, 0, 0, 4000, 3000, 0, 3000, 1500, 30, 160, 160, 0, 30, 120, 300, 900);
INSERT INTO `pick_conf` VALUES (204, 204, 'PG-CR16-ZSA001T', 1200, 500, 500, 0, 0, 0, 4000, 3000, 0, 1600, 1600, 30, 160, 160, 0, 30, 120, 300, 900);
INSERT INTO `pick_conf` VALUES (205, 205, 'PG-CR16-ZSA002T', 1200, 350, 500, 0, 0, 0, 4000, 3000, 0, 1600, 1600, 30, 160, 160, 0, 30, 120, 300, 900);
INSERT INTO `pick_conf` VALUES (206, 206, 'PG-CR16-ZHA003S', 1200, 525, 500, 0, 0, 0, 4000, 3000, 0, 3700, 1600, 30, 160, 160, 0, 30, 120, 300, 900);
INSERT INTO `pick_conf` VALUES (207, 207, 'PG-CR02-ZHA001T', 1200, 550, 500, 0, 0, 0, 4000, 3000, 0, 1660, 200, 30, 160, 160, 0, 30, 120, 300, 900);
INSERT INTO `pick_conf` VALUES (208, 208, 'PG-CR02-ZHA002T', 1200, 550, 500, 0, 0, 0, 4000, 3000, 0, 1660, 200, 30, 160, 160, 0, 30, 120, 300, 900);
INSERT INTO `pick_conf` VALUES (401, 401, 'PG-HQD20-EHA001T', 1830, 650, 1000, 0, 0, 0, 4000, 3000, 0, 7500, 2000, 30, 130, 160, 0, 30, 200, 300, 2000);
INSERT INTO `pick_conf` VALUES (402, 402, 'PG-HCQ16-EHA002T ', 1830, 500, 1000, 0, 0, 0, 4000, 3000, 0, 7500, 1600, 30, 130, 160, 0, 30, 200, 300, 2000);
INSERT INTO `pick_conf` VALUES (601, 601, 'PG-MCA16-EHA001T', 1200, 250, 500, 0, 0, 0, 4000, 3000, 0, 6500, 1600, 30, 160, 160, 0, 30, 370, 300, 900);
INSERT INTO `pick_conf` VALUES (10001, 10001, '杭叉叉车', 1100, 800, 650, 0, 0, 0, 4000, 3000, -180, 2700, 4000, 30, 160, 160, 0, 30, 200, 300, 900);
INSERT INTO `pick_conf` VALUES (10002, 10002, '宇峰叉车', 1275, NULL, 500, 0, 0, 0, 4000, 3000, 650, 6500, 99999, 30, 160, 160, 3, 30, 200, 300, 900);
INSERT INTO `pick_conf` VALUES (10003, 10003, '永恒力前移车ETV114-9020', 1260, 650, 450, 0, 0, 0, 4000, 3000, 700, 9020, 4000, 30, 160, 160, 1, 30, 350, 300, 900);
INSERT INTO `pick_conf` VALUES (10004, 10004, '定制堆高', 1275, NULL, 500, 0, 0, 0, 4000, 3000, 650, 3600, 99999, 30, 130, 130, 0, 30, 200, 300, 900);
INSERT INTO `pick_conf` VALUES (10005, 10005, '永恒力堆高ERC220', 1200, 800, 1200, 0, 0, 0, 4000, 3000, 0, 3800, 99999, 30, 130, 130, 0, 30, 180, 300, 900);
INSERT INTO `pick_conf` VALUES (10006, 10006, 'S14', 1260, 600, 341, 0, 0, 0, 4000, 3000, 20, 1300, 4000, 30, 130, 130, 0, 30, 180, 300, 900);
INSERT INTO `pick_conf` VALUES (10007, 10007, 'PG-CD', 900, 1000, 1000, 0, 0, 0, 4000, 3000, -350, 3500, 99999, 30, 130, 160, 0, 30, 200, 300, 900);
INSERT INTO `pick_conf` VALUES (10008, 10008, 'PG-CPD15R', 1830, 600, 1000, 0, 0, 0, 4000, 3000, 0, 3500, 4000, 30, 130, 160, 0, 30, 200, 300, 2000);
INSERT INTO `pick_conf` VALUES (10009, 10009, 'PG-OPL10S', 1600, 100, 100, 0, 0, 0, 4000, 3000, 0, 3500, 4000, 30, 130, 160, 0, 30, 200, 300, 600);
INSERT INTO `pick_conf` VALUES (100010, 100010, '如意小型平衡重CPD', 1200, 500, 1200, 0, 0, 0, 4000, 3000, 0, 3800, 4000, 30, 130, 130, 0, 30, 500, 300, 900);
INSERT INTO `pick_conf` VALUES (100011, 100011, '如意小型地牛CBD15', 1200, 600, 1200, 0, 0, 0, 4000, 3000, 0, 500, 4000, 30, 130, 130, 0, 30, 180, 300, 900);
INSERT INTO `pick_conf` VALUES (100012, 100012, 'PG-QDD20H', 1260, 600, 341, 0, 0, 0, 4000, 3000, 185, 1600, 4000, 30, 130, 130, 0, 30, 180, 300, 900);
INSERT INTO `pick_conf` VALUES (100013, 100013, '如意小型地牛CBD15-2号', 1200, 600, 1200, 0, 0, 0, 4000, 3000, 0, 3800, 4000, 30, 130, 130, 0, 30, 180, 300, 900);
INSERT INTO `pick_conf` VALUES (100014, 100014, '如意小型平衡重CPD-2号', 1200, 500, 1200, 0, 0, 0, 4000, 3000, 0, 3800, 4000, 30, 130, 130, 0, 30, 500, 300, 900);
INSERT INTO `pick_conf` VALUES (100015, 100015, 'PG-CR15', 1200, 600, 500, 0, 0, 0, 4000, 3000, 0, 3500, 1500, 30, 160, 160, 0, 30, 120, 300, 900);
INSERT INTO `pick_conf` VALUES (100016, 100016, 'PG-全向车', 1200, 600, 500, 0, 0, 0, 4000, 3000, 0, 5000, 2000, 30, 160, 160, 0, 30, 370, 300, 900);
INSERT INTO `pick_conf` VALUES (100017, 100017, 'PG-全向车加长', 1200, 600, 500, 0, 0, 0, 4000, 3000, 0, 6200, 2000, 30, 160, 160, 0, 30, 370, 300, 900);
INSERT INTO `pick_conf` VALUES (100018, 100018, 'PG-S14-1600', 1260, 600, 341, 0, 0, 0, 4000, 3000, 20, 1600, 1400, 30, 130, 130, 0, 30, 180, 300, 900);
INSERT INTO `pick_conf` VALUES (100019, 100019, 'PG-CQD16', 1830, 415, 1000, 0, 0, 0, 4000, 3000, 0, 7400, 1600, 30, 130, 160, 0, 30, 200, 300, 2000);
INSERT INTO `pick_conf` VALUES (1000100, 1000100, 'PG-CBD15', 1200, 600, 1200, 0, 0, 0, 4000, 3000, 0, 500, 4000, 30, 130, 130, 0, 30, 180, 300, 900);
INSERT INTO `pick_conf` VALUES (1000102, 1000102, 'PG-CBD20-MA', 1200, 600, 1200, 0, 0, 0, 4000, 3000, 0, 110, 2000, 30, 130, 130, 0, 30, 180, 300, 900);
INSERT INTO `pick_conf` VALUES (1000200, 1000200, 'PG-CDD15-3500', 1200, 600, 500, 0, 0, 0, 4000, 3000, 0, 3500, 1500, 30, 160, 160, 0, 30, 120, 300, 900);
INSERT INTO `pick_conf` VALUES (1000201, 1000201, 'PG-CDD15-5000', 1200, 600, 500, 0, 0, 0, 4000, 3000, 0, 5000, 1500, 30, 160, 160, 0, 30, 120, 300, 900);
INSERT INTO `pick_conf` VALUES (1000205, 1000205, 'PG-CDD20-MA', 1200, 675, 500, 0, 0, 0, 4000, 3000, 0, 3000, 2000, 30, 160, 160, 0, 30, 120, 300, 900);
INSERT INTO `pick_conf` VALUES (1000300, 1000300, 'PG-CPD15', 1200, 500, 1200, 0, 0, 0, 4000, 3000, 0, 3800, 4000, 30, 130, 130, 0, 30, 500, 300, 900);
INSERT INTO `pick_conf` VALUES (1000301, 1000301, 'PG-CP15-MA', 1200, 100, 1200, 0, 0, 0, 4000, 3000, 0, 3000, 1500, 30, 130, 130, 0, 30, 500, 300, 900);
INSERT INTO `pick_conf` VALUES (1000400, 1000400, 'PG-CQD15-MA', 1830, 700, 1000, 0, 0, 0, 4000, 3000, 0, 4500, 1500, 30, 130, 160, 0, 30, 200, 300, 2000);
INSERT INTO `pick_conf` VALUES (1000500, 1000500, 'PG-CSD20', 1200, 600, 500, 0, 0, 0, 4000, 3000, 0, 5000, 2000, 30, 160, 160, 0, 30, 370, 300, 900);
INSERT INTO `pick_conf` VALUES (1000501, 1000501, 'PG-CSD20-GW', 1200, 600, 500, 0, 0, 0, 4000, 3000, 0, 6200, 2000, 30, 160, 160, 0, 30, 320, 300, 900);
INSERT INTO `pick_conf` VALUES (1000600, 1000600, 'PG-S14-1600', 1260, 600, 341, 0, 0, 0, 4000, 3000, 20, 1600, 1400, 30, 130, 130, 0, 30, 180, 300, 900);
INSERT INTO `pick_conf` VALUES (1000601, 1000601, 'PG-S14-2000', 1260, 700, 341, 0, 0, 0, 4000, 3000, 20, 2000, 1400, 30, 130, 130, 0, 30, 180, 300, 900);
INSERT INTO `pick_conf` VALUES (1000700, 1000700, 'PG-CQD16', 1830, 415, 1000, 0, 0, 0, 4000, 3000, 0, 7400, 1600, 30, 130, 160, 0, 30, 200, 300, 2000);
INSERT INTO `pick_conf` VALUES (1000800, 1000800, 'PG-CQD15', 1260, 650, 450, 0, 0, 0, 4000, 3000, 700, 5000, 4000, 30, 160, 160, 1, 30, 350, 300, 900);
INSERT INTO `pick_conf` VALUES (1000900, 1000900, 'PG-CPD20-1600-CD', 1200, 100, 1200, 0, 0, 0, 4000, 3000, 0, 3800, 4000, 30, 130, 130, 0, 30, 500, 300, 900);
INSERT INTO `pick_conf` VALUES (1001000, 1001000, '三向叉车MA', 1200, 600, 500, 0, 0, 0, 4000, 3000, 0, 5000, 2000, 30, 160, 160, 0, 30, 370, 300, 900);

-- ----------------------------
-- Table structure for pilot_lamp
-- ----------------------------
DROP TABLE IF EXISTS `pilot_lamp`;
CREATE TABLE `pilot_lamp`  (
  `id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '主键id',
  `name` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '名称',
  `conf_id` int(11) NOT NULL COMMENT '机器人类型ID',
  `device_id` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '设备id',
  `type` int(11) NULL DEFAULT NULL COMMENT '类型 1-三色灯',
  `created_time` datetime NULL DEFAULT NULL COMMENT '创建时间',
  `modified_time` datetime NULL DEFAULT NULL COMMENT '修改时间',
  `created_by` bigint(20) NULL DEFAULT NULL COMMENT '创建人id',
  `modified_by` bigint(20) NULL DEFAULT NULL COMMENT '最后修改人id',
  PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8 COLLATE = utf8_general_ci ROW_FORMAT = COMPACT;

-- ----------------------------
-- Records of pilot_lamp
-- ----------------------------

-- ----------------------------
-- Table structure for plc_device
-- ----------------------------
DROP TABLE IF EXISTS `plc_device`;
CREATE TABLE `plc_device`  (
  `id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT 'id',
  `code` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '设备编号',
  `type` int(11) NULL DEFAULT NULL COMMENT '设备类型，1-自动门',
  `name` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '设备名称',
  `ip` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '设备IP地址',
  `port` int(6) NULL DEFAULT NULL COMMENT '设备端口号',
  `protocol` int(11) NULL DEFAULT NULL COMMENT '通讯协议， null或1-modbus-rtu-over-tcp, 2-modbus-tcp',
  `enable` varchar(2) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT 'Y' COMMENT '启用-Y 禁用-N 默认启用',
  `created_time` datetime NULL DEFAULT NULL COMMENT '创建时间',
  `modified_time` datetime NULL DEFAULT NULL COMMENT '修改时间',
  `created_by` bigint(20) NULL DEFAULT NULL COMMENT '创建人id',
  `modified_by` bigint(20) NULL DEFAULT NULL COMMENT '最后修改人id',
  PRIMARY KEY (`id`) USING BTREE,
  UNIQUE INDEX `uk_code`(`code`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8 COLLATE = utf8_general_ci COMMENT = 'PLC设备信息表' ROW_FORMAT = DYNAMIC;

-- ----------------------------
-- Records of plc_device
-- ----------------------------

-- ----------------------------
-- Table structure for plc_device_control_point
-- ----------------------------
DROP TABLE IF EXISTS `plc_device_control_point`;
CREATE TABLE `plc_device_control_point`  (
  `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT '控制点id',
  `plc_device_id` bigint(20) NOT NULL COMMENT 'PLC设备id',
  `slave_id` int(11) NULL DEFAULT 1 COMMENT 'PLC设备从机id',
  `name` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '控制点名称',
  `type` int(11) NULL DEFAULT NULL COMMENT '控制类型，1-输入，2-输出',
  `offset` int(11) NULL DEFAULT NULL COMMENT '控制点读或写数据位置',
  `location` bigint(20) NULL DEFAULT NULL COMMENT '控制点所在位置',
  `operation_type` int(11) NULL DEFAULT NULL COMMENT '控制点操作类型，1-开门，2-关门，3-读开到位，4-读关到位',
  `signal_type` int(11) NULL DEFAULT NULL COMMENT '信号类型，null或1-脉冲信号，2-连续信号',
  `enable` varchar(200) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT 'Y' COMMENT '启用-Y 禁用-N 默认启用',
  `created_time` datetime NULL DEFAULT NULL COMMENT '创建时间',
  `modified_time` datetime NULL DEFAULT NULL COMMENT '修改时间',
  `created_by` bigint(20) NULL DEFAULT NULL COMMENT '创建人id',
  `modified_by` bigint(20) NULL DEFAULT NULL COMMENT '最后修改人id',
  PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8 COLLATE = utf8_general_ci COMMENT = 'PLC设备控制点配置表' ROW_FORMAT = DYNAMIC;

-- ----------------------------
-- Records of plc_device_control_point
-- ----------------------------

-- ----------------------------
-- Table structure for plc_virtual_device
-- ----------------------------
DROP TABLE IF EXISTS `plc_virtual_device`;
CREATE TABLE `plc_virtual_device`  (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `qrcodeId` int(11) NOT NULL COMMENT '所在位置ID',
  `qrcodeType` tinyint(4) NOT NULL COMMENT '所在位置类型 1：主节点 2：道路取卸货点',
  `deviceId` int(11) NOT NULL COMMENT '设备id',
  `deviceAddrType` tinyint(4) NOT NULL COMMENT '设备内地址类型 1：线圈 2：离散输入寄存器 3:保持寄存器 4：输入寄存器',
  `deviceStartAddr` smallint(11) NOT NULL COMMENT '设备内起始地址',
  `deviceAddrUnitCount` smallint(11) NULL DEFAULT NULL COMMENT '设备内地址单元数量',
  `ip` varchar(20) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '设备对应的IP地址',
  `port` int(11) NOT NULL COMMENT '设备对应的端口',
  `deviceType` tinyint(4) NOT NULL COMMENT '设备类型 1：投影灯 2：货架灯 3：交通灯 4：呼叫按钮 5: 按钮指示灯',
  `enable` tinyint(4) NOT NULL COMMENT '1--为启用，其他为不启用',
  PRIMARY KEY (`id`) USING BTREE,
  UNIQUE INDEX `virtualDeviceUnique`(`ip`, `port`, `deviceId`, `deviceAddrType`, `deviceStartAddr`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8 COLLATE = utf8_general_ci COMMENT = 'PLC虚拟设备表' ROW_FORMAT = DYNAMIC;

-- ----------------------------
-- Records of plc_virtual_device
-- ----------------------------

-- ----------------------------
-- Table structure for plc_virtual_device_operate
-- ----------------------------
DROP TABLE IF EXISTS `plc_virtual_device_operate`;
CREATE TABLE `plc_virtual_device_operate`  (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `virtualDeviceId` int(11) NOT NULL COMMENT '虚拟设备id',
  `actionEvent` tinyint(4) NOT NULL COMMENT '事件 1：按钮按下 2：按钮松开 ',
  `action` tinyint(4) NOT NULL COMMENT '动作 1：呼叫空车 2: 点亮按钮指示灯 3：熄灭按钮指示灯 4: 执行搬运任务 5:设置仓位状态',
  `toQrcodeId` int(11) NULL DEFAULT NULL COMMENT '呼叫空车到达位置ID，如果为空，则使用设备所在位置ID',
  `fromShelfBoxId` bigint(20) NULL DEFAULT NULL COMMENT '搬运开始仓位ID',
  `toShelfBoxId` bigint(20) NULL DEFAULT NULL COMMENT '搬运终点仓位ID，或是设置状态的目标仓位',
  PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8 COLLATE = utf8_general_ci COMMENT = 'PLC虚拟设备动作表' ROW_FORMAT = DYNAMIC;

-- ----------------------------
-- Records of plc_virtual_device_operate
-- ----------------------------

-- ----------------------------
-- Table structure for process
-- ----------------------------
DROP TABLE IF EXISTS `process`;
CREATE TABLE `process`  (
  `id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '主键ID',
  `name` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '流程名称',
  `type` int(11) NULL DEFAULT NULL COMMENT '路线流程策略类型：1-普通推荐、2-异常推荐、3-接驳',
  `from_domain_id` bigint(20) NOT NULL COMMENT '源领域ID',
  `to_domain_id` bigint(20) NOT NULL COMMENT '目标领域ID',
  `remark` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '标记',
  `is_default` tinyint(255) NULL DEFAULT 0 COMMENT '是否为默认线路，只能有一个默认',
  `created_time` datetime NULL DEFAULT NULL COMMENT '创建时间',
  `modified_time` datetime NULL DEFAULT NULL COMMENT '修改时间',
  `created_by` bigint(20) NULL DEFAULT NULL COMMENT '创建人id',
  `modified_by` bigint(20) NULL DEFAULT NULL COMMENT '最后修改人id',
  PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8 COLLATE = utf8_general_ci ROW_FORMAT = DYNAMIC;

-- ----------------------------
-- Records of process
-- ----------------------------

-- ----------------------------
-- Table structure for process_transship
-- ----------------------------
DROP TABLE IF EXISTS `process_transship`;
CREATE TABLE `process_transship`  (
  `id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '主键ID',
  `process_id` bigint(20) NOT NULL COMMENT '路线流程id',
  `domain_id` bigint(20) NOT NULL COMMENT '接驳领域id',
  `trigger_strategy` int(11) NULL DEFAULT 1 COMMENT '接驳任务生成策略，1-上组所有任务完成，2-上组最后一条任务执行中',
  `created_time` datetime NULL DEFAULT NULL COMMENT '创建时间',
  `modified_time` datetime NULL DEFAULT NULL COMMENT '修改时间',
  `created_by` bigint(20) NULL DEFAULT NULL COMMENT '创建人id',
  `modified_by` bigint(20) NULL DEFAULT NULL COMMENT '最后修改人id',
  PRIMARY KEY (`id`) USING BTREE,
  UNIQUE INDEX `uq_process_domain`(`process_id`, `domain_id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8 COLLATE = utf8_general_ci ROW_FORMAT = DYNAMIC;

-- ----------------------------
-- Records of process_transship
-- ----------------------------

-- ----------------------------
-- Table structure for project_info
-- ----------------------------
DROP TABLE IF EXISTS `project_info`;
CREATE TABLE `project_info`  (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `name` varchar(128) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '项目名称',
  `host` varchar(128) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL DEFAULT '' COMMENT '访问地址，如：http://localhost:8080',
  `is_import` int(11) NOT NULL DEFAULT 0 COMMENT '是否导入的项目，1：是，0：否',
  `basic_auth_username` varchar(128) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL,
  `basic_auth_password` varchar(128) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL,
  PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8 COLLATE = utf8_general_ci COMMENT = '项目信息' ROW_FORMAT = DYNAMIC;

-- ----------------------------
-- Records of project_info
-- ----------------------------

-- ----------------------------
-- Table structure for project_light
-- ----------------------------
DROP TABLE IF EXISTS `project_light`;
CREATE TABLE `project_light`  (
  `id` bigint(20) NOT NULL AUTO_INCREMENT,
  `cross_qrcode_id` int(11) NOT NULL COMMENT '十字路口的ID',
  `ip` varchar(20) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '投影灯的IP地址',
  `port` int(11) NOT NULL COMMENT '投影灯的 端口',
  `enabled` tinyint(4) NOT NULL DEFAULT 1 COMMENT '1--为启用，其他为不启用',
  `created_time` datetime NULL DEFAULT NULL COMMENT '创建时间',
  `modified_time` datetime NULL DEFAULT NULL COMMENT '修改时间',
  `created_by` bigint(20) NULL DEFAULT NULL COMMENT '创建人id',
  `modified_by` bigint(20) NULL DEFAULT NULL COMMENT '最后修改人id',
  PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8 COLLATE = utf8_general_ci ROW_FORMAT = DYNAMIC;

-- ----------------------------
-- Records of project_light
-- ----------------------------

-- ----------------------------
-- Table structure for purcache
-- ----------------------------
DROP TABLE IF EXISTS `purcache`;
CREATE TABLE `purcache`  (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `purId` int(11) NULL DEFAULT NULL,
  `boxId` int(11) NULL DEFAULT NULL,
  `data` text CHARACTER SET latin1 COLLATE latin1_swedish_ci NULL,
  `state` int(2) NULL DEFAULT 0 COMMENT '0 绑定，1上架',
  `machine` int(2) NULL DEFAULT NULL COMMENT '传输机位置',
  `shelfId` int(11) NULL DEFAULT NULL COMMENT '仓位ID',
  PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = latin1 COLLATE = latin1_swedish_ci ROW_FORMAT = DYNAMIC;

-- ----------------------------
-- Records of purcache
-- ----------------------------

-- ----------------------------
-- Table structure for purchase
-- ----------------------------
DROP TABLE IF EXISTS `purchase`;
CREATE TABLE `purchase`  (
  `id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '入库id',
  `time` timestamp NULL DEFAULT CURRENT_TIMESTAMP COMMENT '入库时间',
  `status` int(11) NULL DEFAULT 0 COMMENT '状态 1-正常完成 2-手动取消',
  `finishTime` datetime NULL DEFAULT NULL ON UPDATE CURRENT_TIMESTAMP COMMENT '完成时间',
  `from` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT 'wms  ftp',
  `createrId` int(11) NULL DEFAULT 0 COMMENT '创建者，如果是员工， 那么是员工的id',
  `stationId` int(11) NULL DEFAULT NULL COMMENT '工位ID',
  `patch` int(11) NULL DEFAULT 0 COMMENT '分配的状态， 0未分配 1--已经分配 2--已经完成',
  `basketId` int(11) NULL DEFAULT NULL COMMENT '如果是来自复核多余，那么是发货篮ID',
  `customer` varchar(100) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL,
  PRIMARY KEY (`id`) USING BTREE,
  INDEX `id`(`id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8 COLLATE = utf8_general_ci ROW_FORMAT = DYNAMIC;

-- ----------------------------
-- Records of purchase
-- ----------------------------

-- ----------------------------
-- Table structure for rcs_charge
-- ----------------------------
DROP TABLE IF EXISTS `rcs_charge`;
CREATE TABLE `rcs_charge`  (
  `qrcode_id` int(11) NOT NULL COMMENT '充电桩qrcode的id',
  `type` int(11) NULL DEFAULT NULL COMMENT '充电桩类型  1-感应式  2-调度式',
  `ip` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL,
  `port` int(11) NOT NULL,
  `enable` varchar(1) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL,
  PRIMARY KEY (`qrcode_id`) USING BTREE
) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_general_ci ROW_FORMAT = DYNAMIC;

-- ----------------------------
-- Records of rcs_charge
-- ----------------------------

-- ----------------------------
-- Table structure for rcs_charge_task
-- ----------------------------
DROP TABLE IF EXISTS `rcs_charge_task`;
CREATE TABLE `rcs_charge_task`  (
  `id` int(11) NOT NULL AUTO_INCREMENT COMMENT 'id',
  `taskId` int(30) NOT NULL COMMENT '任务id',
  `robotId` int(30) NOT NULL COMMENT '机器人id',
  `chargeQrcodeId` int(11) NULL DEFAULT NULL COMMENT '充电点id',
  `startEnergy` int(4) NULL DEFAULT 0 COMMENT '开始电量',
  `endEnergy` int(4) NULL DEFAULT 0 COMMENT '结束电量',
  `updateTime` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '更新时间',
  `createTime` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
  `action` tinyint(4) NOT NULL DEFAULT 0 COMMENT '动作类型;0 初始化,1 前往,2 等待充电,3 充电,4 等待结束充电 ,5 结束',
  `status` tinyint(4) NOT NULL DEFAULT 0 COMMENT '状态',
  `remark` varchar(30) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '错误描述',
  PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 7 CHARACTER SET = utf8 COLLATE = utf8_general_ci COMMENT = '充电记录表' ROW_FORMAT = DYNAMIC;

-- ----------------------------
-- Records of rcs_charge_task
-- ----------------------------
INSERT INTO `rcs_charge_task` VALUES (1, 9, 201, NULL, 100, NULL, '2025-02-18 10:46:30', '2025-02-18 10:45:35', 0, 2, '已完成');
INSERT INTO `rcs_charge_task` VALUES (2, 3, 201, NULL, 100, NULL, '2025-02-19 15:03:05', '2025-02-19 15:02:35', 0, 2, '已完成');
INSERT INTO `rcs_charge_task` VALUES (3, 10, 201, NULL, 100, NULL, '2025-02-19 15:05:21', '2025-02-19 15:04:53', 0, 2, '已完成');
INSERT INTO `rcs_charge_task` VALUES (4, 17, 201, NULL, 100, NULL, '2025-02-19 15:28:10', '2025-02-19 15:27:37', 0, 2, '已完成');
INSERT INTO `rcs_charge_task` VALUES (5, 28, 201, NULL, 100, NULL, '2025-02-19 15:39:13', '2025-02-19 15:38:44', 0, 2, '已完成');
INSERT INTO `rcs_charge_task` VALUES (6, 37, 201, NULL, 100, NULL, '2025-02-19 15:45:49', '2025-02-19 15:45:21', 0, 2, '已完成');

-- ----------------------------
-- Table structure for rcs_custom_task
-- ----------------------------
DROP TABLE IF EXISTS `rcs_custom_task`;
CREATE TABLE `rcs_custom_task`  (
  `id` int(11) NOT NULL AUTO_INCREMENT COMMENT 'id',
  `denseWmsId` int(11) NULL DEFAULT NULL COMMENT '密集库任务id',
  `denseTargetId` int(11) NOT NULL COMMENT '密集库目标仓位',
  `denseSourceId` int(11) NOT NULL COMMENT '密集库开始仓位',
  `denseRobotId` int(4) NULL DEFAULT NULL COMMENT '密集库机器人id',
  `normalWmsId` int(11) NULL DEFAULT NULL COMMENT '普通任务id',
  `normalTargetId` int(11) NOT NULL COMMENT '普通任务目标仓位',
  `normalSourceId` int(11) NOT NULL COMMENT '普通任务开始仓位',
  `normalRobotId` int(4) NULL DEFAULT NULL COMMENT '普通任务机器人id',
  `stationWmsId` int(11) NULL DEFAULT NULL COMMENT '工位任务id',
  `stationTargetId` int(11) NOT NULL COMMENT '工位任务目标仓位',
  `stationSourceId` int(11) NOT NULL COMMENT '工位任务开始仓位',
  `stationRobotId` int(4) NULL DEFAULT NULL COMMENT '工位任务机器人id',
  `updateTime` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '更新时间',
  `createTime` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
  `enable` tinyint(3) NULL DEFAULT 0 COMMENT '0:禁用,1:启用',
  PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8 COLLATE = utf8_general_ci COMMENT = '定制任务表' ROW_FORMAT = DYNAMIC;

-- ----------------------------
-- Records of rcs_custom_task
-- ----------------------------

-- ----------------------------
-- Table structure for rcs_energy_history
-- ----------------------------
DROP TABLE IF EXISTS `rcs_energy_history`;
CREATE TABLE `rcs_energy_history`  (
  `id` bigint(20) NOT NULL AUTO_INCREMENT,
  `robot_id` int(11) NOT NULL COMMENT '机器人id',
  `energy` int(11) NOT NULL COMMENT '电池电量',
  `created_time` timestamp NULL DEFAULT NULL COMMENT '创建时间',
  `modified_time` timestamp NULL DEFAULT NULL COMMENT '修改时间',
  PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '机器人电量记录' ROW_FORMAT = DYNAMIC;

-- ----------------------------
-- Records of rcs_energy_history
-- ----------------------------

-- ----------------------------
-- Table structure for rcs_path_pass_forbidden
-- ----------------------------
DROP TABLE IF EXISTS `rcs_path_pass_forbidden`;
CREATE TABLE `rcs_path_pass_forbidden`  (
  `id` bigint(20) NOT NULL AUTO_INCREMENT,
  `path_id` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '禁行道路id',
  `conf_id` int(11) NULL DEFAULT NULL COMMENT '禁行车型，NULL则禁行所有类型',
  `robot_id` int(11) NULL DEFAULT NULL COMMENT '禁行车辆，不为NULL则只禁行该id的车辆',
  `start_time` time NULL DEFAULT NULL COMMENT '禁行时段开始',
  `end_time` time NULL DEFAULT NULL COMMENT '禁行时段结束',
  `created_time` datetime NULL DEFAULT NULL COMMENT '创建时间',
  `modified_time` datetime NULL DEFAULT NULL COMMENT '修改时间',
  `created_by` bigint(20) NULL DEFAULT NULL COMMENT '创建人id',
  `modified_by` bigint(20) NULL DEFAULT NULL COMMENT '最后修改人id',
  PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8 COLLATE = utf8_general_ci ROW_FORMAT = DYNAMIC;

-- ----------------------------
-- Records of rcs_path_pass_forbidden
-- ----------------------------

-- ----------------------------
-- Table structure for rcs_qrcode_charge
-- ----------------------------
DROP TABLE IF EXISTS `rcs_qrcode_charge`;
CREATE TABLE `rcs_qrcode_charge`  (
  `id` bigint(20) NOT NULL AUTO_INCREMENT,
  `qrcode_id` bigint(20) NULL DEFAULT NULL COMMENT '绑定充电桩的qrcode_id',
  `robot_conf_id` int(11) NULL DEFAULT NULL COMMENT '绑定充电桩的设备类型id',
  `from_cross_id` int(11) NULL DEFAULT NULL COMMENT '充电道路起点id',
  `to_cross_id` int(11) NULL DEFAULT NULL COMMENT '充电道路终点id',
  `degree` float(11, 4) NULL DEFAULT NULL COMMENT '充电角度',
  `enable` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT 'N' COMMENT '是否开启，默认不开启',
  `forbid_cross_id` int(11) NULL DEFAULT NULL COMMENT '禁止从某个节点开始充电',
  `task_id` int(30) NULL DEFAULT NULL COMMENT '任务id',
  `robot_id` int(10) NULL DEFAULT NULL COMMENT '占用机器人id',
  `status` tinyint(3) NOT NULL DEFAULT 0 COMMENT '节点占用状态；0：空闲 1：预锁 2：充电中',
  `created_time` datetime NULL DEFAULT NULL COMMENT '创建时间',
  `modified_time` datetime NULL DEFAULT NULL COMMENT '修改时间',
  `created_by` bigint(20) NULL DEFAULT NULL COMMENT '创建人id',
  `modified_by` bigint(20) NULL DEFAULT NULL COMMENT '最后修改人id',
  PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 1891440298641317890 CHARACTER SET = utf8 COLLATE = utf8_general_ci ROW_FORMAT = DYNAMIC;

-- ----------------------------
-- Records of rcs_qrcode_charge
-- ----------------------------
INSERT INTO `rcs_qrcode_charge` VALUES (1891440298641317889, 105, 102, 4, 3, 90.0000, 'Y', NULL, NULL, NULL, 0, '2025-02-17 18:51:23', '2025-02-19 14:01:32', NULL, NULL);

-- ----------------------------
-- Table structure for rcs_qrcode_cross
-- ----------------------------
DROP TABLE IF EXISTS `rcs_qrcode_cross`;
CREATE TABLE `rcs_qrcode_cross`  (
  `id` int(11) NOT NULL AUTO_INCREMENT COMMENT '节点ID',
  `show_mark` int(11) NOT NULL COMMENT '当前地图中显示的标记数字',
  `type` int(11) NOT NULL COMMENT '节点的类型，固定为1',
  `x` int(11) NOT NULL COMMENT '节点的X坐标',
  `y` int(11) NOT NULL COMMENT '节点的Y坐标',
  `init_x` int(11) NULL DEFAULT NULL COMMENT '节点初始化的X坐标',
  `init_y` int(11) NULL DEFAULT NULL COMMENT '节点初始化的Y坐标',
  `level` int(11) NULL DEFAULT 1 COMMENT '等级，1级最高',
  `braking` int(11) NOT NULL DEFAULT 0 COMMENT '制动距离',
  `oblique_laser` float NULL DEFAULT NULL COMMENT '斜射激光、安全激光距离(mm)\r\n0:斜射激光禁用，安全激光为0档最短距离\r\n1:斜射激光启用，安全激光为0档最短距离\r\n2:斜射激光启用，安全激光为1档距离\r\n3:斜射激光启用，安全激光为2档距离',
  `station_id` bigint(20) NULL DEFAULT NULL COMMENT '工位ID',
  `area_id` int(11) NULL DEFAULT 1 COMMENT '区域ID， 主要用于加入叉车时候自动更新叉车的区域ID',
  `is_human_enter` varchar(1) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT 'N' COMMENT 'Y,人进入节点，N人不允许进入',
  `is_human_leave` varchar(1) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT 'N' COMMENT 'Y 可以离开 N不能离开',
  `interaction_type` int(11) NULL DEFAULT NULL COMMENT '交互类型：0或null-无交互，1-锁定和释放通知，2-锁定暂停并通知和释放通知',
  `enable` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT 'Y' COMMENT '是否启用，默认启用，目前仅对充电桩类型有效',
  `created_time` datetime NULL DEFAULT NULL COMMENT '创建时间',
  `modified_time` datetime NULL DEFAULT NULL COMMENT '修改时间',
  `created_by` bigint(20) NULL DEFAULT NULL COMMENT '创建人id',
  `modified_by` bigint(20) NULL DEFAULT NULL COMMENT '最后修改人id',
  PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 120 CHARACTER SET = utf8 COLLATE = utf8_general_ci ROW_FORMAT = DYNAMIC;

-- ----------------------------
-- Records of rcs_qrcode_cross
-- ----------------------------
INSERT INTO `rcs_qrcode_cross` VALUES (1, 1, 1, 0, 0, NULL, NULL, 1, 0, NULL, NULL, 1, 'N', 'N', NULL, 'Y', '2025-02-17 17:28:02', '2025-02-17 17:28:02', NULL, NULL);
INSERT INTO `rcs_qrcode_cross` VALUES (2, 2, 1, 7151, -151, NULL, NULL, 1, 0, NULL, NULL, 1, 'N', 'N', NULL, 'Y', '2025-02-17 17:28:11', '2025-02-17 17:28:11', NULL, NULL);
INSERT INTO `rcs_qrcode_cross` VALUES (3, 3, 1, 16135, -10145, NULL, NULL, 1, 0, NULL, NULL, 1, 'N', 'N', NULL, 'Y', '2025-02-17 17:28:19', '2025-02-17 17:28:19', NULL, NULL);
INSERT INTO `rcs_qrcode_cross` VALUES (4, 4, 1, 35099, -10263, NULL, NULL, 1, 0, NULL, NULL, 1, 'N', 'N', NULL, 'Y', '2025-02-17 17:28:25', '2025-02-17 17:28:25', NULL, NULL);
INSERT INTO `rcs_qrcode_cross` VALUES (5, 5, 1, 16131, -155, NULL, NULL, 1, 0, NULL, NULL, 1, 'N', 'N', NULL, 'Y', '2025-02-17 17:28:30', '2025-02-17 17:28:30', NULL, NULL);
INSERT INTO `rcs_qrcode_cross` VALUES (22, 6, 1, 16122, -18879, NULL, NULL, 1, 0, NULL, NULL, 1, 'N', 'N', NULL, 'Y', '2025-02-17 18:16:11', '2025-02-17 18:16:11', NULL, NULL);
INSERT INTO `rcs_qrcode_cross` VALUES (23, 7, 1, 1304, -19119, NULL, NULL, 1, 0, NULL, NULL, 1, 'N', 'N', NULL, 'Y', '2025-02-17 18:16:16', '2025-02-17 18:16:16', NULL, NULL);
INSERT INTO `rcs_qrcode_cross` VALUES (50, 8, 1, 0, 0, NULL, NULL, 1, 0, NULL, NULL, 2, 'N', 'N', NULL, 'Y', '2025-02-17 18:19:02', '2025-02-17 18:19:02', NULL, NULL);
INSERT INTO `rcs_qrcode_cross` VALUES (51, 9, 1, 20093, -88, NULL, NULL, 1, 0, NULL, NULL, 2, 'N', 'N', NULL, 'Y', '2025-02-17 18:19:09', '2025-02-17 18:19:09', NULL, NULL);
INSERT INTO `rcs_qrcode_cross` VALUES (52, 10, 1, 45150, -224, NULL, NULL, 1, 0, NULL, NULL, 2, 'N', 'N', NULL, 'Y', '2025-02-17 18:19:16', '2025-02-17 18:19:16', NULL, NULL);
INSERT INTO `rcs_qrcode_cross` VALUES (53, 11, 1, 46276, -20238, NULL, NULL, 1, 0, NULL, NULL, 2, 'N', 'N', NULL, 'Y', '2025-02-17 18:19:21', '2025-02-17 18:19:21', NULL, NULL);
INSERT INTO `rcs_qrcode_cross` VALUES (54, 12, 1, 45971, 17253, NULL, NULL, 1, 0, NULL, NULL, 2, 'N', 'N', NULL, 'Y', '2025-02-17 18:19:29', '2025-02-17 18:19:29', NULL, NULL);
INSERT INTO `rcs_qrcode_cross` VALUES (55, 13, 1, 67796, 16963, NULL, NULL, 1, 0, NULL, NULL, 2, 'N', 'N', NULL, 'Y', '2025-02-17 18:19:36', '2025-02-17 18:19:36', NULL, NULL);
INSERT INTO `rcs_qrcode_cross` VALUES (56, 14, 1, 68423, -20214, NULL, NULL, 1, 0, NULL, NULL, 2, 'N', 'N', NULL, 'Y', '2025-02-17 18:19:40', '2025-02-17 18:19:40', NULL, NULL);
INSERT INTO `rcs_qrcode_cross` VALUES (105, 15, 8, 30900, -5700, NULL, NULL, 1, 0, NULL, NULL, 1, 'N', 'N', NULL, 'Y', '2025-02-17 18:48:57', '2025-02-17 18:48:57', NULL, NULL);
INSERT INTO `rcs_qrcode_cross` VALUES (106, 16, 1, 130, -8409, NULL, NULL, 1, 0, NULL, NULL, 1, 'N', 'N', NULL, 'Y', '2025-02-18 10:47:24', '2025-02-18 10:47:24', NULL, NULL);
INSERT INTO `rcs_qrcode_cross` VALUES (119, 17, 1, 23603, -105, NULL, NULL, 1, 0, NULL, NULL, 1, 'N', 'N', NULL, 'Y', '2025-02-18 10:47:42', '2025-02-18 10:47:42', NULL, NULL);

-- ----------------------------
-- Table structure for rcs_qrcode_custom_charge
-- ----------------------------
DROP TABLE IF EXISTS `rcs_qrcode_custom_charge`;
CREATE TABLE `rcs_qrcode_custom_charge`  (
  `id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT 'id',
  `robot_id` bigint(20) NOT NULL COMMENT '机器人id',
  `qrcode_id` bigint(20) NOT NULL COMMENT 'id',
  `x` int(11) NOT NULL COMMENT 'x轴坐标',
  `y` int(11) NOT NULL COMMENT 'y轴坐标',
  `degree` float(11, 4) NOT NULL COMMENT '角度',
  `created_time` datetime NULL DEFAULT NULL COMMENT '创建时间',
  `modified_time` datetime NULL DEFAULT NULL COMMENT '修改时间',
  `created_by` bigint(20) NULL DEFAULT NULL COMMENT '创建人id',
  `modified_by` bigint(20) NULL DEFAULT NULL COMMENT '最后修改人id',
  PRIMARY KEY (`id`) USING BTREE,
  UNIQUE INDEX `key_qrcode_robot`(`qrcode_id`, `robot_id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8 COLLATE = utf8_general_ci COMMENT = '机器人充电桩位置修正表' ROW_FORMAT = DYNAMIC;

-- ----------------------------
-- Records of rcs_qrcode_custom_charge
-- ----------------------------

-- ----------------------------
-- Table structure for rcs_qrcode_shelf
-- ----------------------------
DROP TABLE IF EXISTS `rcs_qrcode_shelf`;
CREATE TABLE `rcs_qrcode_shelf`  (
  `id` int(11) NOT NULL AUTO_INCREMENT COMMENT '节点ID',
  `show_mark` int(11) NOT NULL COMMENT '当前地图中显示的标记数字',
  `type` int(11) NOT NULL COMMENT '节点类型，固定为2',
  `x` int(11) NOT NULL COMMENT '节点的X坐标',
  `y` int(11) NOT NULL COMMENT '节点的Y坐标',
  `init_x` int(11) NOT NULL COMMENT '节点初始化的X坐标',
  `init_y` int(11) NOT NULL COMMENT '节点初始化的Y坐标',
  `from_cross_qrcode_id` int(11) NOT NULL COMMENT '所属道路的开始节点ID',
  `to_cross_qrcode_id` int(11) NOT NULL COMMENT '所属道路的结束节点ID',
  `box_width` int(11) NULL DEFAULT NULL COMMENT '托盘进叉宽度',
  `bind_side` int(11) NULL DEFAULT 1 COMMENT '绑定的货架面：1-正面，2-侧面',
  `down_shelf_id` int(11) NULL DEFAULT NULL COMMENT '节点右边的货架码',
  `down_shelf_x_index` int(11) NULL DEFAULT NULL COMMENT '节点右边的货架的第x列',
  `down_degree` float(11, 4) NULL DEFAULT NULL COMMENT '节点右边，前往取卸货时行进的角度',
  `up_shelf_id` int(11) NULL DEFAULT NULL COMMENT '节点左边的货架码',
  `up_shelf_x_index` int(11) NULL DEFAULT NULL COMMENT '节点左边的货架的第x列',
  `up_degree` float(11, 4) NULL DEFAULT NULL COMMENT '节点左边，前往取卸货时行进角度',
  `braking` int(11) NOT NULL DEFAULT 30 COMMENT '制动距离',
  `ignore_box_safe_check` tinyint(255) NULL DEFAULT NULL COMMENT '是否忽略托盘安全检测',
  `station_id` bigint(20) NULL DEFAULT NULL COMMENT '工位ID',
  `created_time` datetime NULL DEFAULT NULL COMMENT '创建时间',
  `modified_time` datetime NULL DEFAULT NULL COMMENT '修改时间',
  `created_by` bigint(20) NULL DEFAULT NULL COMMENT '创建人id',
  `modified_by` bigint(20) NULL DEFAULT NULL COMMENT '最后修改人id',
  PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 104 CHARACTER SET = utf8 COLLATE = utf8_general_ci ROW_FORMAT = DYNAMIC;

-- ----------------------------
-- Records of rcs_qrcode_shelf
-- ----------------------------
INSERT INTO `rcs_qrcode_shelf` VALUES (32, 1, 2, 3390, -71, 3390, -71, 1, 2, NULL, 1, NULL, 0, NULL, 1, 1, 90.0000, 30, 0, NULL, '2025-02-17 18:16:42', '2025-02-17 18:16:42', NULL, NULL);
INSERT INTO `rcs_qrcode_shelf` VALUES (34, 2, 2, 4915, -19060, 4915, -19060, 22, 23, NULL, 1, NULL, 0, NULL, 2, 1, -90.0000, 30, 0, NULL, '2025-02-17 18:17:45', '2025-02-17 18:17:45', NULL, NULL);
INSERT INTO `rcs_qrcode_shelf` VALUES (36, 3, 2, 11514, -18953, 11514, -18953, 22, 23, NULL, 1, NULL, 0, NULL, 3, 1, -90.0000, 30, 0, NULL, '2025-02-17 18:17:50', '2025-02-17 18:17:50', NULL, NULL);
INSERT INTO `rcs_qrcode_shelf` VALUES (38, 4, 2, 32952, -10249, 32952, -10249, 3, 4, NULL, 1, 4, 1, -90.0000, NULL, 0, NULL, 30, 0, NULL, '2025-02-17 18:17:54', '2025-02-17 18:17:54', NULL, NULL);
INSERT INTO `rcs_qrcode_shelf` VALUES (40, 5, 2, 29088, -10225, 29088, -10225, 3, 4, NULL, 1, 5, 1, -90.0000, NULL, 0, NULL, 30, 0, NULL, '2025-02-17 18:18:00', '2025-02-17 18:18:00', NULL, NULL);
INSERT INTO `rcs_qrcode_shelf` VALUES (42, 6, 2, 24457, -10196, 24457, -10196, 3, 4, NULL, 1, 6, 1, -90.0000, NULL, 0, NULL, 30, 0, NULL, '2025-02-17 18:18:03', '2025-02-17 18:18:03', NULL, NULL);
INSERT INTO `rcs_qrcode_shelf` VALUES (44, 7, 2, 20738, -10173, 20738, -10173, 3, 4, NULL, 1, 7, 1, -90.0000, NULL, 0, NULL, 30, 0, NULL, '2025-02-17 18:18:06', '2025-02-17 18:18:06', NULL, NULL);
INSERT INTO `rcs_qrcode_shelf` VALUES (46, 8, 2, 16128, -14344, 16128, -14344, 22, 3, NULL, 1, NULL, 0, NULL, 8, 1, 180.0000, 30, 0, NULL, '2025-02-17 18:18:14', '2025-02-17 18:18:14', NULL, NULL);
INSERT INTO `rcs_qrcode_shelf` VALUES (48, 9, 2, 16132, -4937, 16132, -4937, 3, 5, NULL, 1, NULL, 0, NULL, 9, 1, 180.0000, 30, 0, NULL, '2025-02-17 18:18:19', '2025-02-17 18:18:19', NULL, NULL);
INSERT INTO `rcs_qrcode_shelf` VALUES (81, 10, 2, 59387, 17074, 59387, 17074, 54, 55, NULL, 1, NULL, 0, NULL, 10, 1, 90.0000, 30, 0, NULL, '2025-02-17 18:21:46', '2025-02-17 18:21:46', NULL, NULL);
INSERT INTO `rcs_qrcode_shelf` VALUES (83, 11, 2, 62852, -20220, 62852, -20220, 53, 56, NULL, 1, 11, 1, -90.0000, NULL, 0, NULL, 30, 0, NULL, '2025-02-17 18:47:11', '2025-02-17 18:47:11', NULL, NULL);
INSERT INTO `rcs_qrcode_shelf` VALUES (85, 12, 2, 58696, -20224, 58696, -20224, 53, 56, NULL, 1, 12, 1, -90.0000, NULL, 0, NULL, 30, 0, NULL, '2025-02-17 18:47:16', '2025-02-17 18:47:16', NULL, NULL);
INSERT INTO `rcs_qrcode_shelf` VALUES (87, 13, 2, 52500, -20231, 52500, -20231, 53, 56, NULL, 1, 13, 1, -90.0000, NULL, 0, NULL, 30, 0, NULL, '2025-02-17 18:47:19', '2025-02-17 18:47:19', NULL, NULL);
INSERT INTO `rcs_qrcode_shelf` VALUES (89, 14, 2, 4578, -20, 4578, -20, 50, 51, NULL, 1, 14, 1, -90.0000, NULL, 0, NULL, 30, 0, NULL, '2025-02-17 18:47:24', '2025-02-17 18:47:24', NULL, NULL);
INSERT INTO `rcs_qrcode_shelf` VALUES (91, 15, 2, 11637, -50, 11637, -50, 50, 51, NULL, 1, 15, 1, -90.0000, NULL, 0, NULL, 30, 0, NULL, '2025-02-17 18:47:27', '2025-02-17 18:47:27', NULL, NULL);
INSERT INTO `rcs_qrcode_shelf` VALUES (93, 16, 2, 20500, -90, 20500, -90, 51, 52, NULL, 1, 16, 1, -90.0000, NULL, 0, NULL, 30, 0, NULL, '2025-02-17 18:47:31', '2025-02-17 18:47:31', NULL, NULL);
INSERT INTO `rcs_qrcode_shelf` VALUES (95, 17, 2, 27362, -127, 27362, -127, 51, 52, NULL, 1, 17, 1, -90.0000, NULL, 0, NULL, 30, 0, NULL, '2025-02-17 18:47:34', '2025-02-17 18:47:34', NULL, NULL);
INSERT INTO `rcs_qrcode_shelf` VALUES (97, 18, 2, 45386, 4800, 45386, 4800, 52, 54, NULL, 1, NULL, 0, NULL, 18, 1, 177.9927, 30, 0, NULL, '2025-02-17 18:48:09', '2025-02-17 18:48:09', NULL, NULL);
INSERT INTO `rcs_qrcode_shelf` VALUES (99, 19, 2, 45692, 11323, 45692, 11323, 52, 54, NULL, 1, NULL, 0, NULL, 19, 1, 177.9948, 30, 0, NULL, '2025-02-17 18:48:14', '2025-02-17 18:48:14', NULL, NULL);
INSERT INTO `rcs_qrcode_shelf` VALUES (101, 20, 2, 45962, -14664, 45962, -14664, 52, 53, NULL, 1, 20, 1, -176.9955, NULL, 0, NULL, 30, 0, NULL, '2025-02-17 18:48:31', '2025-02-17 18:48:31', NULL, NULL);
INSERT INTO `rcs_qrcode_shelf` VALUES (103, 21, 2, 45579, -7863, 45579, -7863, 52, 53, NULL, 1, 21, 1, -176.9927, NULL, 0, NULL, 30, 0, NULL, '2025-02-17 18:48:35', '2025-02-17 18:48:35', NULL, NULL);

-- ----------------------------
-- Table structure for rcs_qrcode_shelf_path
-- ----------------------------
DROP TABLE IF EXISTS `rcs_qrcode_shelf_path`;
CREATE TABLE `rcs_qrcode_shelf_path`  (
  `id` int(11) NOT NULL AUTO_INCREMENT COMMENT '节点ID',
  `type` int(11) NOT NULL COMMENT '节点类型，固定为2',
  `x` int(11) NOT NULL COMMENT '节点的X坐标',
  `y` int(11) NOT NULL COMMENT '节点的Y坐标',
  `initX` int(11) NULL DEFAULT NULL COMMENT '节点初始化的X坐标',
  `initY` int(11) NULL DEFAULT NULL COMMENT '节点初始化的Y坐标',
  `upShelfId` int(11) NULL DEFAULT NULL COMMENT '节点左边的货架码',
  `upShelfXIndex` int(11) NULL DEFAULT NULL COMMENT '节点左边的货架的第x列',
  `upDegree` float(11, 4) NULL DEFAULT NULL COMMENT '节点左边的取卸货车体角度',
  `downShelfId` int(11) NULL DEFAULT NULL COMMENT '节点右边的货架码',
  `downShelfXIndex` int(11) NULL DEFAULT NULL COMMENT '节点右边的货架的第x列',
  `downDegree` float(11, 4) NULL DEFAULT NULL COMMENT '节点右边的取卸货车体角度',
  `fromCrossQrcodeId` int(11) NOT NULL COMMENT '所属道路的开始节点ID',
  `toCrossQrcodeId` int(11) NOT NULL COMMENT '所属道路的结束节点ID',
  `stationId` int(11) NULL DEFAULT NULL COMMENT '如果属于工位，工位ID',
  PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8 COLLATE = utf8_general_ci ROW_FORMAT = DYNAMIC;

-- ----------------------------
-- Records of rcs_qrcode_shelf_path
-- ----------------------------

-- ----------------------------
-- Table structure for rcs_robot_charge_full_history
-- ----------------------------
DROP TABLE IF EXISTS `rcs_robot_charge_full_history`;
CREATE TABLE `rcs_robot_charge_full_history`  (
  `id` int(11) NOT NULL AUTO_INCREMENT COMMENT 'id',
  `robotId` int(11) NOT NULL COMMENT 'robotId',
  `updateTime` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '更新时间',
  PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8 COLLATE = utf8_general_ci COMMENT = '满电记录' ROW_FORMAT = DYNAMIC;

-- ----------------------------
-- Records of rcs_robot_charge_full_history
-- ----------------------------

-- ----------------------------
-- Table structure for rcs_robot_history
-- ----------------------------
DROP TABLE IF EXISTS `rcs_robot_history`;
CREATE TABLE `rcs_robot_history`  (
  `id` int(11) NOT NULL AUTO_INCREMENT COMMENT 'id',
  `robotId` int(11) NOT NULL COMMENT 'robotId',
  `qrcodeId` int(11) NULL DEFAULT NULL COMMENT '坐标id',
  `x` int(11) NULL DEFAULT 0 COMMENT '节点的x坐标',
  `y` int(11) NULL DEFAULT 0 COMMENT '节点的y坐标',
  `degree` float(11, 4) NULL DEFAULT 0.0000 COMMENT '角度',
  `action` varchar(20) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '' COMMENT '动作',
  `remark` text CHARACTER SET utf8 COLLATE utf8_general_ci NULL COMMENT '备注',
  `createTime` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
  PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 2 CHARACTER SET = utf8 COLLATE = utf8_general_ci COMMENT = '充电状态记录表' ROW_FORMAT = DYNAMIC;

-- ----------------------------
-- Records of rcs_robot_history
-- ----------------------------
INSERT INTO `rcs_robot_history` VALUES (1, 201, 81, 59387, 17074, 179.2387, 'resume', 'robotRunning', '2025-02-19 14:01:35');

-- ----------------------------
-- Table structure for rcs_rotation_qrcode
-- ----------------------------
DROP TABLE IF EXISTS `rcs_rotation_qrcode`;
CREATE TABLE `rcs_rotation_qrcode`  (
  `id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '节点的ID',
  `type` int(11) NULL DEFAULT 4 COMMENT '类型，固定为4',
  `x` int(11) NULL DEFAULT NULL COMMENT '节点的x坐标',
  `y` int(11) NULL DEFAULT NULL COMMENT '节点的y坐标',
  `father_qrcode` int(11) NOT NULL COMMENT '主干道节点的ID',
  `path_id` varchar(20) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '所属的道路ID',
  `from_qrcode_id` int(11) NULL DEFAULT NULL COMMENT '所属道路的开始节点ID',
  `to_qrcode_id` int(11) NULL DEFAULT NULL COMMENT '当前节点ID',
  `path_degree` float(11, 4) NULL DEFAULT NULL COMMENT '从主干道节点到当前节点的角度',
  `distance` int(11) NOT NULL COMMENT '距离主干道节点的距离(mm)',
  `created_time` datetime NULL DEFAULT NULL COMMENT '创建时间',
  `modified_time` datetime NULL DEFAULT NULL COMMENT '修改时间',
  `created_by` bigint(20) NULL DEFAULT NULL COMMENT '创建人id',
  `modified_by` bigint(20) NULL DEFAULT NULL COMMENT '最后修改人id',
  PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 124 CHARACTER SET = utf8 COLLATE = utf8_general_ci ROW_FORMAT = DYNAMIC;

-- ----------------------------
-- Records of rcs_rotation_qrcode
-- ----------------------------
INSERT INTO `rcs_rotation_qrcode` VALUES (7, 4, 1000, -21, 1, '1->2', 1, 2, -1.2097, 1000, '2025-02-17 17:28:34', '2025-02-17 17:28:34', NULL, NULL);
INSERT INTO `rcs_rotation_qrcode` VALUES (9, 4, 6151, -130, 2, '2->1', 2, 1, 178.7903, 1000, '2025-02-17 17:28:34', '2025-02-17 17:28:34', NULL, NULL);
INSERT INTO `rcs_rotation_qrcode` VALUES (11, 4, 8151, -151, 2, '2->5', 2, 5, -0.0255, 1000, '2025-02-17 17:28:36', '2025-02-17 17:28:36', NULL, NULL);
INSERT INTO `rcs_rotation_qrcode` VALUES (13, 4, 15131, -155, 5, '5->2', 5, 2, 179.9745, 1000, '2025-02-17 17:28:36', '2025-02-17 17:28:36', NULL, NULL);
INSERT INTO `rcs_rotation_qrcode` VALUES (15, 4, 16135, -9145, 3, '3->5', 3, 5, 90.0229, 1000, '2025-02-17 17:28:42', '2025-02-17 17:28:42', NULL, NULL);
INSERT INTO `rcs_rotation_qrcode` VALUES (17, 4, 16131, -1155, 5, '5->3', 5, 3, -89.9771, 1000, '2025-02-17 17:28:42', '2025-02-17 17:28:42', NULL, NULL);
INSERT INTO `rcs_rotation_qrcode` VALUES (19, 4, 17135, -10151, 3, '3->4', 3, 4, -0.3565, 1000, '2025-02-17 17:28:46', '2025-02-17 17:28:46', NULL, NULL);
INSERT INTO `rcs_rotation_qrcode` VALUES (21, 4, 34099, -10257, 4, '4->3', 4, 3, 179.6435, 1000, '2025-02-17 17:28:46', '2025-02-17 17:28:46', NULL, NULL);
INSERT INTO `rcs_rotation_qrcode` VALUES (25, 4, 16123, -17879, 22, '22->3', 22, 3, 89.9147, 1000, '2025-02-17 18:16:20', '2025-02-17 18:16:20', NULL, NULL);
INSERT INTO `rcs_rotation_qrcode` VALUES (27, 4, 16134, -11145, 3, '3->22', 3, 22, -90.0853, 1000, '2025-02-17 18:16:20', '2025-02-17 18:16:20', NULL, NULL);
INSERT INTO `rcs_rotation_qrcode` VALUES (29, 4, 15122, -18895, 22, '22->23', 22, 23, -179.0721, 1000, '2025-02-17 18:16:23', '2025-02-17 18:16:23', NULL, NULL);
INSERT INTO `rcs_rotation_qrcode` VALUES (31, 4, 2304, -19103, 23, '23->22', 23, 22, 0.9279, 1000, '2025-02-17 18:16:23', '2025-02-17 18:16:23', NULL, NULL);
INSERT INTO `rcs_rotation_qrcode` VALUES (58, 4, 1000, -4, 50, '50->51', 50, 51, -0.2509, 1000, '2025-02-17 18:20:17', '2025-02-17 18:20:17', NULL, NULL);
INSERT INTO `rcs_rotation_qrcode` VALUES (60, 4, 19093, -84, 51, '51->50', 51, 50, 179.7491, 1000, '2025-02-17 18:20:17', '2025-02-17 18:20:17', NULL, NULL);
INSERT INTO `rcs_rotation_qrcode` VALUES (62, 4, 21093, -93, 51, '51->52', 51, 52, -0.3110, 1000, '2025-02-17 18:20:21', '2025-02-17 18:20:21', NULL, NULL);
INSERT INTO `rcs_rotation_qrcode` VALUES (64, 4, 44150, -219, 52, '52->51', 52, 51, 179.6890, 1000, '2025-02-17 18:20:21', '2025-02-17 18:20:21', NULL, NULL);
INSERT INTO `rcs_rotation_qrcode` VALUES (66, 4, 45197, 775, 52, '52->54', 52, 54, 87.3105, 1000, '2025-02-17 18:20:27', '2025-02-17 18:20:27', NULL, NULL);
INSERT INTO `rcs_rotation_qrcode` VALUES (68, 4, 45924, 16254, 54, '54->52', 54, 52, -92.6895, 1000, '2025-02-17 18:20:27', '2025-02-17 18:20:27', NULL, NULL);
INSERT INTO `rcs_rotation_qrcode` VALUES (70, 4, 46971, 17240, 54, '54->55', 54, 55, -0.7613, 1000, '2025-02-17 18:20:30', '2025-02-17 18:20:30', NULL, NULL);
INSERT INTO `rcs_rotation_qrcode` VALUES (72, 4, 66796, 16976, 55, '55->54', 55, 54, 179.2387, 1000, '2025-02-17 18:20:31', '2025-02-17 18:20:31', NULL, NULL);
INSERT INTO `rcs_rotation_qrcode` VALUES (74, 4, 45206, -1222, 52, '52->53', 52, 53, -86.7799, 1000, '2025-02-17 18:20:52', '2025-02-17 18:20:52', NULL, NULL);
INSERT INTO `rcs_rotation_qrcode` VALUES (76, 4, 46220, -19240, 53, '53->52', 53, 52, 93.2201, 1000, '2025-02-17 18:20:52', '2025-02-17 18:20:52', NULL, NULL);
INSERT INTO `rcs_rotation_qrcode` VALUES (78, 4, 47276, -20237, 53, '53->56', 53, 56, 0.0621, 1000, '2025-02-17 18:20:54', '2025-02-17 18:20:54', NULL, NULL);
INSERT INTO `rcs_rotation_qrcode` VALUES (80, 4, 67423, -20215, 56, '56->53', 56, 53, -179.9379, 1000, '2025-02-17 18:20:54', '2025-02-17 18:20:54', NULL, NULL);
INSERT INTO `rcs_rotation_qrcode` VALUES (108, 4, 15141, -10037, 3, '3->106', 3, 106, 173.8096, 1000, '2025-02-18 10:47:27', '2025-02-18 10:47:27', NULL, NULL);
INSERT INTO `rcs_rotation_qrcode` VALUES (110, 4, 1124, -8517, 106, '106->3', 106, 3, -6.1904, 1000, '2025-02-18 10:47:27', '2025-02-18 10:47:27', NULL, NULL);
INSERT INTO `rcs_rotation_qrcode` VALUES (112, 4, 115, -7409, 106, '106->1', 106, 1, 90.8857, 1000, '2025-02-18 10:47:29', '2025-02-18 10:47:29', NULL, NULL);
INSERT INTO `rcs_rotation_qrcode` VALUES (114, 4, 15, -1000, 1, '1->106', 1, 106, -89.1143, 1000, '2025-02-18 10:47:29', '2025-02-18 10:47:29', NULL, NULL);
INSERT INTO `rcs_rotation_qrcode` VALUES (116, 4, 239, -9403, 106, '106->23', 106, 23, -83.7444, 1000, '2025-02-18 10:47:34', '2025-02-18 10:47:34', NULL, NULL);
INSERT INTO `rcs_rotation_qrcode` VALUES (118, 4, 1195, -18125, 23, '23->106', 23, 106, 96.2556, 1000, '2025-02-18 10:47:34', '2025-02-18 10:47:34', NULL, NULL);
INSERT INTO `rcs_rotation_qrcode` VALUES (121, 4, 17131, -148, 5, '5->119', 5, 119, 0.3834, 1000, '2025-02-18 10:47:45', '2025-02-18 10:47:45', NULL, NULL);
INSERT INTO `rcs_rotation_qrcode` VALUES (123, 4, 22603, -112, 119, '119->5', 119, 5, -179.6166, 1000, '2025-02-18 10:47:45', '2025-02-18 10:47:45', NULL, NULL);

-- ----------------------------
-- Table structure for rcs_rotation_shelf_qrcode
-- ----------------------------
DROP TABLE IF EXISTS `rcs_rotation_shelf_qrcode`;
CREATE TABLE `rcs_rotation_shelf_qrcode`  (
  `id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '节点的ID',
  `type` int(11) NULL DEFAULT 4 COMMENT '类型，固定为5',
  `x` int(11) NULL DEFAULT NULL COMMENT '节点X坐标',
  `y` int(11) NULL DEFAULT NULL COMMENT '节点Y坐标',
  `init_x` int(11) NULL DEFAULT NULL COMMENT '节点初始化的x坐标',
  `init_y` int(11) NULL DEFAULT NULL COMMENT '节点初始化的Y坐标',
  `shelf_id` int(11) NULL DEFAULT NULL COMMENT '货架的ID',
  `shelf_index` int(11) NULL DEFAULT NULL COMMENT '货架的第x列',
  `shelf_row` int(11) NULL DEFAULT 1 COMMENT '货架的第y排',
  `father_qrcode` int(11) NOT NULL COMMENT '取卸货道路节点的ID,参考rcs_qrcode_shelf',
  `path_id` varchar(20) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '所属的道路ID',
  `from_qrcode_id` int(11) NULL DEFAULT NULL COMMENT '取卸货的道路节点',
  `to_qrcode_id` int(11) NULL DEFAULT NULL COMMENT '当前节点',
  `path_degree` float(11, 4) NULL DEFAULT NULL COMMENT '取卸货时候的车体角度',
  `distance` int(11) NOT NULL COMMENT '距离取卸货道路节点道路的距离',
  `created_time` datetime NULL DEFAULT NULL COMMENT '创建时间',
  `modified_time` datetime NULL DEFAULT NULL COMMENT '修改时间',
  `created_by` bigint(20) NULL DEFAULT NULL COMMENT '创建人id',
  `modified_by` bigint(20) NULL DEFAULT NULL COMMENT '最后修改人id',
  PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 105 CHARACTER SET = utf8 COLLATE = utf8_general_ci ROW_FORMAT = DYNAMIC;

-- ----------------------------
-- Records of rcs_rotation_shelf_qrcode
-- ----------------------------
INSERT INTO `rcs_rotation_shelf_qrcode` VALUES (33, 5, 3390, 1347, 3390, 1347, 1, 1, 1, 32, '1->2', 32, 33, 90.0000, 1000, '2025-02-17 18:16:42', '2025-02-17 18:16:42', NULL, NULL);
INSERT INTO `rcs_rotation_shelf_qrcode` VALUES (35, 5, 4915, -21110, 4915, -21110, 2, 1, 1, 34, '22->23', 34, 35, -90.0000, 1000, '2025-02-17 18:17:45', '2025-02-17 18:17:45', NULL, NULL);
INSERT INTO `rcs_rotation_shelf_qrcode` VALUES (37, 5, 11514, -20636, 11514, -20636, 3, 1, 1, 36, '22->23', 36, 37, -90.0000, 1000, '2025-02-17 18:17:50', '2025-02-17 18:17:50', NULL, NULL);
INSERT INTO `rcs_rotation_shelf_qrcode` VALUES (39, 5, 32952, -11812, 32952, -11812, 4, 1, 1, 38, '3->4', 38, 39, -90.0000, 1000, '2025-02-17 18:17:54', '2025-02-17 18:17:54', NULL, NULL);
INSERT INTO `rcs_rotation_shelf_qrcode` VALUES (41, 5, 29088, -11776, 29088, -11776, 5, 1, 1, 40, '3->4', 40, 41, -90.0000, 1000, '2025-02-17 18:18:00', '2025-02-17 18:18:00', NULL, NULL);
INSERT INTO `rcs_rotation_shelf_qrcode` VALUES (43, 5, 24457, -11776, 24457, -11776, 6, 1, 1, 42, '3->4', 42, 43, -90.0000, 1000, '2025-02-17 18:18:03', '2025-02-17 18:18:03', NULL, NULL);
INSERT INTO `rcs_rotation_shelf_qrcode` VALUES (45, 5, 20738, -11740, 20738, -11740, 7, 1, 1, 44, '3->4', 44, 45, -90.0000, 1000, '2025-02-17 18:18:06', '2025-02-17 18:18:06', NULL, NULL);
INSERT INTO `rcs_rotation_shelf_qrcode` VALUES (47, 5, 13426, -14344, 13426, -14344, 8, 1, 1, 46, '22->3', 46, 47, 180.0000, 1000, '2025-02-17 18:18:14', '2025-02-17 18:18:14', NULL, NULL);
INSERT INTO `rcs_rotation_shelf_qrcode` VALUES (49, 5, 13754, -4937, 13754, -4937, 9, 1, 1, 48, '3->5', 48, 49, 180.0000, 1000, '2025-02-17 18:18:19', '2025-02-17 18:18:19', NULL, NULL);
INSERT INTO `rcs_rotation_shelf_qrcode` VALUES (82, 5, 59387, 20215, 59387, 20215, 10, 1, 1, 81, '54->55', 81, 82, 90.0000, 1000, '2025-02-17 18:21:46', '2025-02-17 18:21:46', NULL, NULL);
INSERT INTO `rcs_rotation_shelf_qrcode` VALUES (84, 5, 62852, -22525, 62852, -22525, 11, 1, 1, 83, '53->56', 83, 84, -90.0000, 1000, '2025-02-17 18:47:11', '2025-02-17 18:47:11', NULL, NULL);
INSERT INTO `rcs_rotation_shelf_qrcode` VALUES (86, 5, 58696, -22329, 58696, -22329, 12, 1, 1, 85, '53->56', 85, 86, -90.0000, 1000, '2025-02-17 18:47:16', '2025-02-17 18:47:16', NULL, NULL);
INSERT INTO `rcs_rotation_shelf_qrcode` VALUES (88, 5, 52500, -22094, 52500, -22094, 13, 1, 1, 87, '53->56', 87, 88, -90.0000, 1000, '2025-02-17 18:47:19', '2025-02-17 18:47:19', NULL, NULL);
INSERT INTO `rcs_rotation_shelf_qrcode` VALUES (90, 5, 4578, -1701, 4578, -1701, 14, 1, 1, 89, '50->51', 89, 90, -90.0000, 1000, '2025-02-17 18:47:24', '2025-02-17 18:47:24', NULL, NULL);
INSERT INTO `rcs_rotation_shelf_qrcode` VALUES (92, 5, 11637, -2094, 11637, -2094, 15, 1, 1, 91, '50->51', 91, 92, -90.0000, 1000, '2025-02-17 18:47:27', '2025-02-17 18:47:27', NULL, NULL);
INSERT INTO `rcs_rotation_shelf_qrcode` VALUES (94, 5, 20500, -1976, 20500, -1976, 16, 1, 1, 93, '51->52', 93, 94, -90.0000, 1000, '2025-02-17 18:47:31', '2025-02-17 18:47:31', NULL, NULL);
INSERT INTO `rcs_rotation_shelf_qrcode` VALUES (96, 5, 27362, -2721, 27362, -2721, 17, 1, 1, 95, '51->52', 95, 96, -90.0000, 1000, '2025-02-17 18:47:34', '2025-02-17 18:47:34', NULL, NULL);
INSERT INTO `rcs_rotation_shelf_qrcode` VALUES (98, 5, 42733, 4893, 42733, 4893, 18, 1, 1, 97, '52->54', 97, 98, 177.9927, 1000, '2025-02-17 18:48:09', '2025-02-17 18:48:09', NULL, NULL);
INSERT INTO `rcs_rotation_shelf_qrcode` VALUES (100, 5, 42778, 11425, 42778, 11425, 19, 1, 1, 99, '52->54', 99, 100, 177.9948, 1000, '2025-02-17 18:48:14', '2025-02-17 18:48:14', NULL, NULL);
INSERT INTO `rcs_rotation_shelf_qrcode` VALUES (102, 5, 42598, -14841, 42598, -14841, 20, 1, 1, 101, '52->53', 101, 102, -176.9955, 1000, '2025-02-17 18:48:31', '2025-02-17 18:48:31', NULL, NULL);
INSERT INTO `rcs_rotation_shelf_qrcode` VALUES (104, 5, 42238, -8039, 42238, -8039, 21, 1, 1, 103, '52->53', 103, 104, -176.9927, 1000, '2025-02-17 18:48:35', '2025-02-17 18:48:35', NULL, NULL);

-- ----------------------------
-- Table structure for rcs_task
-- ----------------------------
DROP TABLE IF EXISTS `rcs_task`;
CREATE TABLE `rcs_task`  (
  `id` int(11) NOT NULL AUTO_INCREMENT COMMENT '任务ID',
  `groupId` int(11) NOT NULL COMMENT '所属分组，同一组的将会一起派发',
  `robotTag` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '限制执行机器人需要满足的功能标签，如果是需要多个便签，使用”,”分割',
  `robotId` bigint(20) NULL DEFAULT NULL COMMENT '执行的机器人ID',
  `target_id` bigint(20) NOT NULL COMMENT '目标id，可以是仓位、道路节点id等',
  `targetShelfBoxInventory` int(11) NULL DEFAULT NULL COMMENT '目标仓位容器库存数',
  `stackHeight` int(11) NULL DEFAULT NULL COMMENT '容器堆码高度',
  `specification` int(11) NULL DEFAULT NULL COMMENT '到位检测方式',
  `stackWeight` int(11) NULL DEFAULT NULL COMMENT '容器堆码重量',
  `pickNumber` int(11) NULL DEFAULT NULL COMMENT '叉取容器数量',
  `status` int(11) NOT NULL COMMENT '状态0-未开始 1-派发 2-正在执行 3-搬运成功 其他为异常',
  `wmsId` int(11) NOT NULL COMMENT 'WMS任务的ID',
  `rcsType` int(11) NOT NULL COMMENT 'RCS任务的类型 1-取托盘 2-卸托盘',
  `businessType` int(11) NULL DEFAULT NULL COMMENT '业务类型：1-入库，2-出库，3-移库，透传给车载',
  `cooperationType` int(11) NULL DEFAULT NULL COMMENT '与外设其他车等协作类型',
  `priority` int(11) NULL DEFAULT NULL COMMENT '任务的优先级1-10，1最高',
  `height` int(11) NOT NULL COMMENT '机器人的第几层，叉车只有1层，从0开始计数',
  `boxId` int(11) NULL DEFAULT NULL COMMENT '托盘的ID',
  `release` varchar(1) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT 'N',
  `startTime` datetime NULL DEFAULT NULL COMMENT '任务开始时间',
  `endTime` datetime NULL DEFAULT NULL COMMENT '任务完成时间',
  `createdTime` timestamp NULL DEFAULT CURRENT_TIMESTAMP COMMENT '任务创建时间',
  `updateTime` timestamp NULL DEFAULT NULL ON UPDATE CURRENT_TIMESTAMP COMMENT '任务最后更新时间',
  `failRobots` varchar(1000) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '失败的机器人列表，重试时候忽略这些机器人，格式为1,2',
  `top` int(11) NULL DEFAULT NULL COMMENT '置顶排序',
  `pause` int(11) NULL DEFAULT 0 COMMENT '是否暂停 0-否，1-是',
  PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 42 CHARACTER SET = utf8 COLLATE = utf8_general_ci ROW_FORMAT = DYNAMIC;

-- ----------------------------
-- Records of rcs_task
-- ----------------------------
INSERT INTO `rcs_task` VALUES (1, 1, NULL, 201, 10001, NULL, NULL, NULL, NULL, NULL, 3, 0, 1, NULL, 26, 0, 0, 0, 'N', '2025-02-19 15:01:59', '2025-02-19 15:02:27', '2025-02-19 15:01:55', '2025-02-19 15:02:27', NULL, NULL, 0);
INSERT INTO `rcs_task` VALUES (2, 1, NULL, 201, 1001, NULL, NULL, NULL, NULL, NULL, 3, 0, 2, NULL, 27, 0, 0, 0, 'N', '2025-02-19 15:02:29', '2025-02-19 15:02:33', '2025-02-19 15:01:55', '2025-02-19 15:02:33', NULL, NULL, 0);
INSERT INTO `rcs_task` VALUES (3, 1, NULL, 201, 105, NULL, NULL, NULL, NULL, NULL, 3, 0, 9, NULL, 0, 0, 0, 0, 'N', '2025-02-19 15:02:37', '2025-02-19 15:03:05', '2025-02-19 15:01:55', '2025-02-19 15:03:05', NULL, NULL, 0);
INSERT INTO `rcs_task` VALUES (4, 3, NULL, 201, 1001, NULL, NULL, NULL, NULL, NULL, 3, 0, 1, NULL, 26, 0, 0, 0, 'N', '2025-02-19 15:03:07', '2025-02-19 15:03:45', '2025-02-19 15:03:05', '2025-02-19 15:03:45', NULL, NULL, 0);
INSERT INTO `rcs_task` VALUES (5, 3, NULL, 201, 10001, NULL, NULL, NULL, NULL, NULL, 3, 0, 2, NULL, 27, 0, 0, 0, 'N', '2025-02-19 15:03:47', '2025-02-19 15:03:51', '2025-02-19 15:03:06', '2025-02-19 15:03:51', NULL, NULL, 0);
INSERT INTO `rcs_task` VALUES (6, 4, NULL, 101, 3001, NULL, NULL, NULL, NULL, NULL, 3, 1, 1, NULL, 21, 0, 0, 1, 'N', '2025-02-19 15:03:51', '2025-02-19 15:04:09', '2025-02-19 15:03:49', '2025-02-19 15:04:09', NULL, NULL, 0);
INSERT INTO `rcs_task` VALUES (7, 4, NULL, 101, 1001, NULL, NULL, NULL, NULL, NULL, 3, 1, 2, NULL, 21, 0, 0, 1, 'N', '2025-02-19 15:04:09', '2025-02-19 15:05:17', '2025-02-19 15:03:49', '2025-02-19 15:05:17', NULL, NULL, 0);
INSERT INTO `rcs_task` VALUES (8, 5, NULL, 201, 10001, NULL, NULL, NULL, NULL, NULL, 3, 0, 1, NULL, 26, 0, 0, 0, 'N', '2025-02-19 15:04:11', '2025-02-19 15:04:41', '2025-02-19 15:04:08', '2025-02-19 15:04:41', NULL, NULL, 0);
INSERT INTO `rcs_task` VALUES (9, 5, NULL, 201, 1001, NULL, NULL, NULL, NULL, NULL, 3, 0, 2, NULL, 27, 0, 0, 0, 'N', '2025-02-19 15:04:13', '2025-02-19 15:04:45', '2025-02-19 15:04:08', '2025-02-19 15:04:45', NULL, NULL, 0);
INSERT INTO `rcs_task` VALUES (10, 5, NULL, 201, 105, NULL, NULL, NULL, NULL, NULL, 3, 0, 9, NULL, 0, 0, 0, 0, 'N', '2025-02-19 15:04:55', '2025-02-19 15:05:21', '2025-02-19 15:04:08', '2025-02-19 15:05:21', NULL, NULL, 0);
INSERT INTO `rcs_task` VALUES (11, 4, NULL, NULL, 10001, NULL, NULL, NULL, NULL, NULL, 15, 1, 1, NULL, 23, 0, 0, 1, 'N', NULL, '2025-02-19 15:05:17', '2025-02-19 15:05:17', '2025-02-19 15:05:17', NULL, NULL, 0);
INSERT INTO `rcs_task` VALUES (12, 4, NULL, NULL, 14001, NULL, NULL, NULL, NULL, NULL, 15, 1, 2, NULL, 23, 0, 0, 1, 'N', NULL, '2025-02-19 15:05:17', '2025-02-19 15:05:17', '2025-02-19 15:05:17', NULL, NULL, 0);
INSERT INTO `rcs_task` VALUES (13, 7, NULL, 201, 1001, NULL, NULL, NULL, NULL, NULL, 3, 0, 1, NULL, 26, 0, 0, 0, 'N', '2025-02-19 15:05:23', '2025-02-19 15:06:13', '2025-02-19 15:05:21', '2025-02-19 15:06:13', NULL, NULL, 0);
INSERT INTO `rcs_task` VALUES (14, 7, NULL, 201, 10001, NULL, NULL, NULL, NULL, NULL, 3, 0, 2, NULL, 27, 0, 0, 0, 'N', '2025-02-19 15:06:13', '2025-02-19 15:06:17', '2025-02-19 15:05:21', '2025-02-19 15:06:17', NULL, NULL, 0);
INSERT INTO `rcs_task` VALUES (15, 8, NULL, 201, 10001, NULL, NULL, NULL, NULL, NULL, 3, 0, 1, NULL, 26, 0, 0, 0, 'N', '2025-02-19 15:26:55', '2025-02-19 15:27:31', '2025-02-19 15:26:52', '2025-02-19 15:27:31', NULL, NULL, 0);
INSERT INTO `rcs_task` VALUES (16, 8, NULL, 201, 1001, NULL, NULL, NULL, NULL, NULL, 3, 0, 2, NULL, 27, 0, 0, 0, 'N', '2025-02-19 15:27:31', '2025-02-19 15:27:35', '2025-02-19 15:26:52', '2025-02-19 15:27:35', NULL, NULL, 0);
INSERT INTO `rcs_task` VALUES (17, 8, NULL, 201, 105, NULL, NULL, NULL, NULL, NULL, 3, 0, 9, NULL, 0, 0, 0, 0, 'N', '2025-02-19 15:27:39', '2025-02-19 15:28:10', '2025-02-19 15:26:52', '2025-02-19 15:28:10', NULL, NULL, 0);
INSERT INTO `rcs_task` VALUES (18, 10, NULL, 201, 1001, NULL, NULL, NULL, NULL, NULL, 3, 0, 1, NULL, 26, 0, 0, 0, 'N', '2025-02-19 15:28:13', '2025-02-19 15:28:49', '2025-02-19 15:28:11', '2025-02-19 15:28:49', NULL, NULL, 0);
INSERT INTO `rcs_task` VALUES (19, 10, NULL, 201, 10001, NULL, NULL, NULL, NULL, NULL, 3, 0, 2, NULL, 27, 0, 0, 0, 'N', '2025-02-19 15:28:51', '2025-02-19 15:28:55', '2025-02-19 15:28:11', '2025-02-19 15:28:55', NULL, NULL, 0);
INSERT INTO `rcs_task` VALUES (20, 11, NULL, 101, 4001, NULL, NULL, NULL, NULL, NULL, 3, 2, 1, NULL, 21, 0, 0, 1, 'N', '2025-02-19 15:28:55', '2025-02-19 15:29:15', '2025-02-19 15:28:53', '2025-02-19 15:29:15', NULL, NULL, 0);
INSERT INTO `rcs_task` VALUES (21, 11, NULL, 101, 1001, NULL, NULL, NULL, NULL, NULL, 3, 2, 2, NULL, 21, 0, 0, 1, 'N', '2025-02-19 15:29:15', '2025-02-19 15:30:01', '2025-02-19 15:28:53', '2025-02-19 15:30:01', NULL, NULL, 0);
INSERT INTO `rcs_task` VALUES (22, 11, NULL, 201, 10001, NULL, NULL, NULL, NULL, NULL, 3, 2, 1, NULL, 23, 0, 0, 1, 'N', '2025-02-19 15:30:05', '2025-02-19 15:30:33', '2025-02-19 15:30:01', '2025-02-19 15:30:33', NULL, NULL, 0);
INSERT INTO `rcs_task` VALUES (23, 11, NULL, 201, 15001, NULL, NULL, NULL, NULL, NULL, 3, 2, 2, NULL, 23, 0, 0, 1, 'N', '2025-02-19 15:30:05', '2025-02-19 15:31:15', '2025-02-19 15:30:01', '2025-02-19 15:31:15', NULL, NULL, 0);
INSERT INTO `rcs_task` VALUES (24, 12, NULL, 101, 4001, NULL, NULL, NULL, NULL, NULL, 3, 3, 1, NULL, 21, 0, 0, 1, 'N', '2025-02-19 15:33:47', '2025-02-19 15:34:07', '2025-02-19 15:33:45', '2025-02-19 15:34:07', NULL, NULL, 0);
INSERT INTO `rcs_task` VALUES (25, 12, NULL, 101, 1001, NULL, NULL, NULL, NULL, NULL, 3, 3, 2, NULL, 21, 0, 0, 1, 'N', '2025-02-19 15:33:49', '2025-02-19 15:34:43', '2025-02-19 15:33:45', '2025-02-19 15:34:43', NULL, NULL, 0);
INSERT INTO `rcs_task` VALUES (26, 13, NULL, 201, 10001, NULL, NULL, NULL, NULL, NULL, 3, 0, 1, NULL, 26, 0, 0, 0, 'N', '2025-02-19 15:37:57', '2025-02-19 15:38:31', '2025-02-19 15:34:22', '2025-02-19 15:38:31', NULL, NULL, 0);
INSERT INTO `rcs_task` VALUES (27, 13, NULL, 201, 1001, NULL, NULL, NULL, NULL, NULL, 3, 0, 2, NULL, 27, 0, 0, 0, 'N', '2025-02-19 15:38:31', '2025-02-19 15:38:35', '2025-02-19 15:34:22', '2025-02-19 15:38:35', NULL, NULL, 0);
INSERT INTO `rcs_task` VALUES (28, 13, NULL, 201, 105, NULL, NULL, NULL, NULL, NULL, 3, 0, 9, NULL, 0, 0, 0, 0, 'N', '2025-02-19 15:38:45', '2025-02-19 15:39:13', '2025-02-19 15:34:22', '2025-02-19 15:39:13', NULL, NULL, 0);
INSERT INTO `rcs_task` VALUES (29, 12, NULL, 201, 10001, NULL, NULL, NULL, NULL, NULL, 3, 3, 1, NULL, 23, 0, 0, 1, 'N', '2025-02-19 15:34:45', '2025-02-19 15:35:21', '2025-02-19 15:34:43', '2025-02-19 15:35:21', NULL, NULL, 0);
INSERT INTO `rcs_task` VALUES (30, 12, NULL, 201, 15001, NULL, NULL, NULL, NULL, NULL, 3, 3, 2, NULL, 23, 0, 0, 1, 'N', '2025-02-19 15:35:21', '2025-02-19 15:36:03', '2025-02-19 15:34:43', '2025-02-19 15:36:03', NULL, NULL, 0);
INSERT INTO `rcs_task` VALUES (31, 15, NULL, 201, 1001, NULL, NULL, NULL, NULL, NULL, 3, 0, 1, NULL, 26, 0, 0, 0, 'N', '2025-02-19 15:39:15', '2025-02-19 15:39:55', '2025-02-19 15:39:13', '2025-02-19 15:39:55', NULL, NULL, 0);
INSERT INTO `rcs_task` VALUES (32, 15, NULL, 201, 10001, NULL, NULL, NULL, NULL, NULL, 3, 0, 2, NULL, 27, 0, 0, 0, 'N', '2025-02-19 15:39:15', '2025-02-19 15:39:59', '2025-02-19 15:39:14', '2025-02-19 15:39:59', NULL, NULL, 0);
INSERT INTO `rcs_task` VALUES (33, 16, NULL, 101, 4001, NULL, NULL, NULL, NULL, NULL, 3, 4, 1, NULL, 21, 0, 0, 1, 'N', '2025-02-19 15:44:05', '2025-02-19 15:44:25', '2025-02-19 15:44:03', '2025-02-19 15:44:25', NULL, NULL, 0);
INSERT INTO `rcs_task` VALUES (34, 16, NULL, 101, 1001, NULL, NULL, NULL, NULL, NULL, 3, 4, 2, NULL, 21, 0, 0, 1, 'N', '2025-02-19 15:44:07', '2025-02-19 15:45:41', '2025-02-19 15:44:03', '2025-02-19 15:45:41', NULL, NULL, 0);
INSERT INTO `rcs_task` VALUES (35, 17, NULL, 201, 10001, NULL, NULL, NULL, NULL, NULL, 3, 0, 1, NULL, 26, 0, 0, 0, 'N', '2025-02-19 15:44:17', '2025-02-19 15:44:49', '2025-02-19 15:44:13', '2025-02-19 15:44:49', NULL, NULL, 0);
INSERT INTO `rcs_task` VALUES (36, 17, NULL, 201, 1001, NULL, NULL, NULL, NULL, NULL, 3, 0, 2, NULL, 27, 0, 0, 0, 'N', '2025-02-19 15:44:51', '2025-02-19 15:44:55', '2025-02-19 15:44:13', '2025-02-19 15:44:55', NULL, NULL, 0);
INSERT INTO `rcs_task` VALUES (37, 17, NULL, 201, 105, NULL, NULL, NULL, NULL, NULL, 3, 0, 9, NULL, 0, 0, 0, 0, 'N', '2025-02-19 15:45:23', '2025-02-19 15:45:49', '2025-02-19 15:44:13', '2025-02-19 15:45:49', NULL, NULL, 0);
INSERT INTO `rcs_task` VALUES (38, 16, NULL, NULL, 10001, NULL, NULL, NULL, NULL, NULL, 15, 4, 1, NULL, 23, 0, 0, 1, 'N', NULL, '2025-02-19 15:45:42', '2025-02-19 15:45:41', '2025-02-19 15:45:42', NULL, NULL, 0);
INSERT INTO `rcs_task` VALUES (39, 16, NULL, NULL, 17001, NULL, NULL, NULL, NULL, NULL, 15, 4, 2, NULL, 23, 0, 0, 1, 'N', NULL, '2025-02-19 15:45:42', '2025-02-19 15:45:41', '2025-02-19 15:45:42', NULL, NULL, 0);
INSERT INTO `rcs_task` VALUES (40, 19, NULL, 201, 1001, NULL, NULL, NULL, NULL, NULL, 3, 0, 1, NULL, 26, 0, 0, 0, 'N', '2025-02-19 15:45:51', '2025-02-19 15:51:23', '2025-02-19 15:45:49', '2025-02-19 15:51:23', NULL, NULL, 0);
INSERT INTO `rcs_task` VALUES (41, 19, NULL, 201, 10001, NULL, NULL, NULL, NULL, NULL, 3, 0, 2, NULL, 27, 0, 0, 0, 'N', '2025-02-19 15:51:23', '2025-02-19 15:51:25', '2025-02-19 15:45:50', '2025-02-19 15:51:25', NULL, NULL, 0);

-- ----------------------------
-- Table structure for rcs_task_group
-- ----------------------------
DROP TABLE IF EXISTS `rcs_task_group`;
CREATE TABLE `rcs_task_group`  (
  `id` int(11) NOT NULL AUTO_INCREMENT COMMENT '组ID',
  `createTime` timestamp NULL DEFAULT NULL ON UPDATE CURRENT_TIMESTAMP COMMENT '组创建时间',
  `wmsType` int(11) NULL DEFAULT NULL,
  `stationId` int(11) NULL DEFAULT NULL,
  PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 20 CHARACTER SET = utf8 COLLATE = utf8_general_ci ROW_FORMAT = DYNAMIC;

-- ----------------------------
-- Records of rcs_task_group
-- ----------------------------
INSERT INTO `rcs_task_group` VALUES (1, '2025-02-19 15:01:55', NULL, NULL);
INSERT INTO `rcs_task_group` VALUES (2, '2025-02-19 15:01:55', NULL, NULL);
INSERT INTO `rcs_task_group` VALUES (3, '2025-02-19 15:03:05', NULL, NULL);
INSERT INTO `rcs_task_group` VALUES (4, '2025-02-19 15:03:49', NULL, NULL);
INSERT INTO `rcs_task_group` VALUES (5, '2025-02-19 15:04:08', NULL, NULL);
INSERT INTO `rcs_task_group` VALUES (6, '2025-02-19 15:04:08', NULL, NULL);
INSERT INTO `rcs_task_group` VALUES (7, '2025-02-19 15:05:21', NULL, NULL);
INSERT INTO `rcs_task_group` VALUES (8, '2025-02-19 15:26:52', NULL, NULL);
INSERT INTO `rcs_task_group` VALUES (9, '2025-02-19 15:26:52', NULL, NULL);
INSERT INTO `rcs_task_group` VALUES (10, '2025-02-19 15:28:11', NULL, NULL);
INSERT INTO `rcs_task_group` VALUES (11, '2025-02-19 15:28:53', NULL, NULL);
INSERT INTO `rcs_task_group` VALUES (12, '2025-02-19 15:33:45', NULL, NULL);
INSERT INTO `rcs_task_group` VALUES (13, '2025-02-19 15:34:22', NULL, NULL);
INSERT INTO `rcs_task_group` VALUES (14, '2025-02-19 15:34:22', NULL, NULL);
INSERT INTO `rcs_task_group` VALUES (15, '2025-02-19 15:39:13', NULL, NULL);
INSERT INTO `rcs_task_group` VALUES (16, '2025-02-19 15:44:03', NULL, NULL);
INSERT INTO `rcs_task_group` VALUES (17, '2025-02-19 15:44:13', NULL, NULL);
INSERT INTO `rcs_task_group` VALUES (18, '2025-02-19 15:44:13', NULL, NULL);
INSERT INTO `rcs_task_group` VALUES (19, '2025-02-19 15:45:49', NULL, NULL);

-- ----------------------------
-- Table structure for rcs_trace_history
-- ----------------------------
DROP TABLE IF EXISTS `rcs_trace_history`;
CREATE TABLE `rcs_trace_history`  (
  `id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT 'id',
  `task_id` int(20) NOT NULL DEFAULT 0 COMMENT '任务id',
  `robot_id` int(11) NOT NULL DEFAULT 0 COMMENT '机器人id',
  `area_id` int(11) NOT NULL DEFAULT 0 COMMENT '区域id',
  `status` tinyint(4) NOT NULL DEFAULT 0 COMMENT '状态 0:已申请,未完成 1:已完成',
  `x0` int(11) NULL DEFAULT 0 COMMENT 'x0',
  `y0` int(11) NULL DEFAULT 0 COMMENT 'y0',
  `x` int(11) NULL DEFAULT 0 COMMENT 'x',
  `y` int(11) NULL DEFAULT 0 COMMENT 'y',
  `degree` float NULL DEFAULT 0 COMMENT 'degree',
  `speed` float NULL DEFAULT 0 COMMENT '速度',
  `fork_height` int(11) NULL DEFAULT NULL COMMENT '叉尺高度',
  `fork_degree` int(11) NULL DEFAULT NULL COMMENT '叉齿相对车体的角度',
  `start_qrcode_id` int(11) NULL DEFAULT 0 COMMENT '开始节点id',
  `end_qrcode_id` int(11) NULL DEFAULT 0 COMMENT '结束节点',
  `action_type` int(11) NULL DEFAULT NULL COMMENT '操作类型/点位',
  `action_name` varchar(30) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '0' COMMENT '动作',
  `action_time` int(11) NULL DEFAULT 0 COMMENT '动作耗时,单位:秒',
  `create_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
  `update_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '更新时间',
  `mock_detail` text CHARACTER SET utf8 COLLATE utf8_general_ci NULL COMMENT '动作json字符串',
  PRIMARY KEY (`id`) USING BTREE,
  INDEX `index_task_id`(`task_id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8 COLLATE = utf8_general_ci COMMENT = 'rcs历史轨迹表' ROW_FORMAT = DYNAMIC;

-- ----------------------------
-- Records of rcs_trace_history
-- ----------------------------

-- ----------------------------
-- Table structure for receipt
-- ----------------------------
DROP TABLE IF EXISTS `receipt`;
CREATE TABLE `receipt`  (
  `id` int(11) NOT NULL AUTO_INCREMENT COMMENT '收货单ID【主键】',
  `receiptCode` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '收货单号',
  `customerOrderCode` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '客户订单编号',
  `supplierCode` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '供应商编码',
  `unloadCompany` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '卸货公司名称',
  `state` char(2) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '0' COMMENT '状态（0：创建；1：收获中；2：完成；3：取消；4：异常）',
  `type` char(10) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '单据类型（0：wms;1：ftp）',
  `createTime` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
  `completionTime` timestamp NULL DEFAULT NULL COMMENT '完成时间',
  `createId` int(11) NULL DEFAULT NULL COMMENT '创建人',
  `remark` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '备注',
  PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8 COLLATE = utf8_general_ci ROW_FORMAT = DYNAMIC;

-- ----------------------------
-- Records of receipt
-- ----------------------------

-- ----------------------------
-- Table structure for receipt_detail
-- ----------------------------
DROP TABLE IF EXISTS `receipt_detail`;
CREATE TABLE `receipt_detail`  (
  `id` int(11) NOT NULL AUTO_INCREMENT COMMENT '收货详情【主键】',
  `receiptId` int(11) NULL DEFAULT NULL COMMENT '收货单ID',
  `materialId` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '货物ID ',
  `number` int(11) NULL DEFAULT 0 COMMENT '订单数量',
  `receiptNumber` int(11) NULL DEFAULT 0 COMMENT '收货数量',
  `badNumber` int(11) NULL DEFAULT 0 COMMENT '不合格数量',
  `process` char(2) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '0' COMMENT '进度(0：未开始；1：进行中；2已完成)',
  `state` char(2) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '状态（0：正常；1：异常）',
  `row` int(11) NULL DEFAULT NULL COMMENT '行号序列',
  `areaId` int(11) NULL DEFAULT NULL COMMENT '库房ID',
  `operatorId` int(11) NULL DEFAULT NULL COMMENT '操作人',
  PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8 COLLATE = utf8_general_ci ROW_FORMAT = DYNAMIC;

-- ----------------------------
-- Records of receipt_detail
-- ----------------------------

-- ----------------------------
-- Table structure for receipt_worker
-- ----------------------------
DROP TABLE IF EXISTS `receipt_worker`;
CREATE TABLE `receipt_worker`  (
  `receiptId` int(11) NULL DEFAULT NULL COMMENT '收货单ID',
  `materialId` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '货物ID ',
  `receiptNumber` int(11) NULL DEFAULT 0 COMMENT '合格数量',
  `workerId` int(11) NOT NULL COMMENT '收货人员id',
  `badNumber` int(11) NULL DEFAULT 0 COMMENT '不合格数量',
  UNIQUE INDEX `rmw_index`(`receiptId`, `materialId`, `workerId`) USING BTREE
) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_general_ci COMMENT = '收货和收货人员关联表' ROW_FORMAT = DYNAMIC;

-- ----------------------------
-- Records of receipt_worker
-- ----------------------------

-- ----------------------------
-- Table structure for report
-- ----------------------------
DROP TABLE IF EXISTS `report`;
CREATE TABLE `report`  (
  `id` int(11) NOT NULL AUTO_INCREMENT COMMENT '报表ID',
  `warehouseName` varchar(20) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '仓库名称',
  `start` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '开始时间',
  `end` timestamp NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '结束时间',
  `time` int(11) NULL DEFAULT 0 COMMENT '花费总时间(s)',
  `robotNumber` int(11) NULL DEFAULT NULL COMMENT '机器人总数',
  `orderNumber` int(11) NULL DEFAULT NULL COMMENT '订单的总数',
  `shelfInnerNumber` int(11) NULL DEFAULT NULL COMMENT '内部货架数量',
  `shelfInnerEnableNumber` int(11) NULL DEFAULT NULL COMMENT '内部货架启用数量',
  `shelfStationNumber` int(11) NULL DEFAULT NULL COMMENT '工位货架数量',
  `shelfStationEnableNumber` int(11) NULL DEFAULT NULL COMMENT '工位货架启用数量',
  `shelfNumber` int(11) NULL DEFAULT NULL COMMENT '货架的总数量',
  `shelfAbleNumber` int(11) NULL DEFAULT NULL COMMENT '货架的启用总数量',
  `chargeAbleNumber` int(11) NULL DEFAULT NULL COMMENT '充电桩启用数量',
  `status` int(11) NULL DEFAULT NULL COMMENT '状态',
  PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8 COLLATE = utf8_general_ci ROW_FORMAT = DYNAMIC;

-- ----------------------------
-- Records of report
-- ----------------------------

-- ----------------------------
-- Table structure for report_agv
-- ----------------------------
DROP TABLE IF EXISTS `report_agv`;
CREATE TABLE `report_agv`  (
  `robotId` int(11) NOT NULL COMMENT '机器人ID',
  `reportId` int(11) NOT NULL COMMENT '报表ID',
  `robotConfName` varchar(20) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '机器人类型名称',
  `robotForkHeight` int(11) NOT NULL COMMENT '机器人可取卸的最大高度(mm)',
  `robotForkWeight` int(11) NOT NULL COMMENT '机器人最大的负重量(kg)',
  `pick` int(11) NOT NULL COMMENT '取卸货秒数（s）',
  `charge` int(11) NOT NULL COMMENT '充电秒数（s）',
  `away` int(11) NOT NULL COMMENT '避让秒数(s)',
  `free` int(11) NOT NULL COMMENT '空闲秒数(s)',
  `total` int(11) NOT NULL COMMENT '总共的秒数（s）',
  `rate` float NOT NULL COMMENT '工作效率(充电+取卸货/总数)',
  `distance` float NULL DEFAULT NULL
) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_general_ci ROW_FORMAT = DYNAMIC;

-- ----------------------------
-- Records of report_agv
-- ----------------------------

-- ----------------------------
-- Table structure for report_path
-- ----------------------------
DROP TABLE IF EXISTS `report_path`;
CREATE TABLE `report_path`  (
  `pathId` varchar(20) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '道路ID',
  `reportId` int(11) NOT NULL COMMENT '报表ID',
  `passTimes` int(11) NOT NULL COMMENT '正向经过的次数',
  `revertTimes` int(11) NOT NULL COMMENT '逆向经过的次数',
  `totalTimes` int(11) NOT NULL COMMENT '总共经过的次数',
  `rateTimes` float NOT NULL COMMENT '1分钟经过的次数',
  `waitTimes` int(11) NULL DEFAULT NULL COMMENT '避让的次数'
) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_general_ci ROW_FORMAT = DYNAMIC;

-- ----------------------------
-- Records of report_path
-- ----------------------------

-- ----------------------------
-- Table structure for report_station
-- ----------------------------
DROP TABLE IF EXISTS `report_station`;
CREATE TABLE `report_station`  (
  `reportId` int(11) NOT NULL COMMENT '报表ID',
  `stationId` int(11) NOT NULL COMMENT '工位ID',
  `deliveryNumber` int(11) NOT NULL COMMENT '出库托盘数量',
  `purchaseNumber` int(11) NOT NULL COMMENT '入库托盘数量',
  `orderNumber` int(11) NOT NULL COMMENT '总订单数量',
  `rateNumber` float NOT NULL COMMENT '每分钟处理的托盘数量'
) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_general_ci ROW_FORMAT = DYNAMIC;

-- ----------------------------
-- Records of report_station
-- ----------------------------

-- ----------------------------
-- Table structure for report_view_effective
-- ----------------------------
DROP TABLE IF EXISTS `report_view_effective`;
CREATE TABLE `report_view_effective`  (
  `robotId` int(11) NOT NULL,
  `day` int(11) NOT NULL,
  `status` int(11) NOT NULL,
  `count` int(11) NOT NULL,
  `createTime` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP
) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_general_ci ROW_FORMAT = DYNAMIC;

-- ----------------------------
-- Records of report_view_effective
-- ----------------------------
INSERT INTO `report_view_effective` VALUES (1, 48, 5, 21, '2025-02-17 17:40:57');
INSERT INTO `report_view_effective` VALUES (2, 48, 5, 21, '2025-02-17 17:40:57');
INSERT INTO `report_view_effective` VALUES (3, 48, 5, 21, '2025-02-17 17:40:57');
INSERT INTO `report_view_effective` VALUES (4, 48, 5, 21, '2025-02-17 17:40:57');
INSERT INTO `report_view_effective` VALUES (202, 48, 5, 21, '2025-02-17 17:40:57');
INSERT INTO `report_view_effective` VALUES (101, 48, 5, 303, '2025-02-17 23:59:46');
INSERT INTO `report_view_effective` VALUES (201, 48, 5, 301, '2025-02-17 23:59:46');
INSERT INTO `report_view_effective` VALUES (101, 48, 3, 1, '2025-02-17 19:01:13');
INSERT INTO `report_view_effective` VALUES (201, 48, 4, 2, '2025-02-17 19:03:14');
INSERT INTO `report_view_effective` VALUES (101, 49, 5, 642, '2025-02-18 10:42:59');
INSERT INTO `report_view_effective` VALUES (201, 49, 5, 643, '2025-02-18 10:44:00');
INSERT INTO `report_view_effective` VALUES (101, 49, 4, 788, '2025-02-18 23:59:47');
INSERT INTO `report_view_effective` VALUES (101, 49, 3, 6, '2025-02-18 11:12:03');
INSERT INTO `report_view_effective` VALUES (201, 49, 4, 20, '2025-02-18 11:09:03');
INSERT INTO `report_view_effective` VALUES (101, 49, 2, 2, '2025-02-18 10:48:00');
INSERT INTO `report_view_effective` VALUES (201, 49, 1, 1, '2025-02-18 10:47:00');
INSERT INTO `report_view_effective` VALUES (201, 49, 2, 2, '2025-02-18 10:50:01');
INSERT INTO `report_view_effective` VALUES (201, 49, 3, 2, '2025-02-18 11:07:03');
INSERT INTO `report_view_effective` VALUES (101, 50, 4, 942, '2025-02-19 16:02:41');
INSERT INTO `report_view_effective` VALUES (201, 50, 4, 726, '2025-02-19 16:02:41');
INSERT INTO `report_view_effective` VALUES (101, 50, 3, 8, '2025-02-19 15:44:38');
INSERT INTO `report_view_effective` VALUES (101, 50, 2, 4, '2025-02-19 15:46:38');
INSERT INTO `report_view_effective` VALUES (201, 50, 3, 5, '2025-02-19 15:35:37');
INSERT INTO `report_view_effective` VALUES (102, 50, 5, 2, '2025-02-19 14:06:26');
INSERT INTO `report_view_effective` VALUES (202, 50, 5, 2, '2025-02-19 14:06:26');
INSERT INTO `report_view_effective` VALUES (201, 50, 5, 56, '2025-02-19 15:40:38');
INSERT INTO `report_view_effective` VALUES (201, 50, 1, 4, '2025-02-19 15:39:38');
INSERT INTO `report_view_effective` VALUES (101, 50, 5, 2, '2025-02-19 15:30:36');

-- ----------------------------
-- Table structure for report_view_path
-- ----------------------------
DROP TABLE IF EXISTS `report_view_path`;
CREATE TABLE `report_view_path`  (
  `fromId` int(11) NOT NULL,
  `toId` int(11) NOT NULL,
  `robotId` int(11) NOT NULL,
  `times` int(11) NOT NULL,
  `createTime` date NOT NULL,
  PRIMARY KEY (`fromId`, `toId`, `robotId`, `createTime`) USING BTREE
) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_general_ci ROW_FORMAT = DYNAMIC;

-- ----------------------------
-- Records of report_view_path
-- ----------------------------
INSERT INTO `report_view_path` VALUES (1, 2, 101, 1, '2025-02-17');
INSERT INTO `report_view_path` VALUES (1, 2, 101, 6, '2025-02-18');
INSERT INTO `report_view_path` VALUES (1, 2, 101, 13, '2025-02-19');
INSERT INTO `report_view_path` VALUES (1, 2, 201, 3, '2025-02-18');
INSERT INTO `report_view_path` VALUES (1, 2, 201, 10, '2025-02-19');
INSERT INTO `report_view_path` VALUES (1, 106, 101, 1, '2025-02-18');
INSERT INTO `report_view_path` VALUES (1, 106, 101, 6, '2025-02-19');
INSERT INTO `report_view_path` VALUES (1, 106, 201, 3, '2025-02-19');
INSERT INTO `report_view_path` VALUES (2, 5, 101, 1, '2025-02-17');
INSERT INTO `report_view_path` VALUES (2, 5, 101, 5, '2025-02-18');
INSERT INTO `report_view_path` VALUES (2, 5, 101, 8, '2025-02-19');
INSERT INTO `report_view_path` VALUES (2, 5, 201, 4, '2025-02-18');
INSERT INTO `report_view_path` VALUES (2, 5, 201, 7, '2025-02-19');
INSERT INTO `report_view_path` VALUES (3, 4, 101, 2, '2025-02-18');
INSERT INTO `report_view_path` VALUES (3, 4, 101, 6, '2025-02-19');
INSERT INTO `report_view_path` VALUES (3, 4, 201, 1, '2025-02-18');
INSERT INTO `report_view_path` VALUES (3, 4, 201, 5, '2025-02-19');
INSERT INTO `report_view_path` VALUES (3, 5, 101, 1, '2025-02-17');
INSERT INTO `report_view_path` VALUES (3, 5, 101, 4, '2025-02-18');
INSERT INTO `report_view_path` VALUES (3, 5, 101, 7, '2025-02-19');
INSERT INTO `report_view_path` VALUES (3, 5, 201, 2, '2025-02-18');
INSERT INTO `report_view_path` VALUES (3, 5, 201, 7, '2025-02-19');
INSERT INTO `report_view_path` VALUES (3, 22, 101, 2, '2025-02-17');
INSERT INTO `report_view_path` VALUES (3, 22, 101, 5, '2025-02-18');
INSERT INTO `report_view_path` VALUES (3, 22, 101, 9, '2025-02-19');
INSERT INTO `report_view_path` VALUES (3, 106, 201, 3, '2025-02-19');
INSERT INTO `report_view_path` VALUES (5, 119, 201, 2, '2025-02-18');
INSERT INTO `report_view_path` VALUES (22, 23, 101, 1, '2025-02-17');
INSERT INTO `report_view_path` VALUES (22, 23, 101, 2, '2025-02-18');
INSERT INTO `report_view_path` VALUES (22, 23, 101, 7, '2025-02-19');
INSERT INTO `report_view_path` VALUES (23, 106, 101, 1, '2025-02-18');
INSERT INTO `report_view_path` VALUES (23, 106, 101, 6, '2025-02-19');
INSERT INTO `report_view_path` VALUES (50, 51, 201, 1, '2025-02-17');
INSERT INTO `report_view_path` VALUES (50, 51, 201, 1, '2025-02-18');
INSERT INTO `report_view_path` VALUES (50, 51, 201, 3, '2025-02-19');
INSERT INTO `report_view_path` VALUES (51, 52, 201, 1, '2025-02-17');
INSERT INTO `report_view_path` VALUES (51, 52, 201, 3, '2025-02-18');
INSERT INTO `report_view_path` VALUES (51, 52, 201, 5, '2025-02-19');
INSERT INTO `report_view_path` VALUES (52, 53, 201, 1, '2025-02-17');
INSERT INTO `report_view_path` VALUES (52, 53, 201, 8, '2025-02-19');
INSERT INTO `report_view_path` VALUES (52, 54, 201, 2, '2025-02-17');
INSERT INTO `report_view_path` VALUES (52, 54, 201, 3, '2025-02-18');
INSERT INTO `report_view_path` VALUES (52, 54, 201, 17, '2025-02-19');
INSERT INTO `report_view_path` VALUES (53, 56, 201, 1, '2025-02-17');
INSERT INTO `report_view_path` VALUES (54, 55, 201, 1, '2025-02-17');
INSERT INTO `report_view_path` VALUES (54, 55, 201, 3, '2025-02-18');
INSERT INTO `report_view_path` VALUES (54, 55, 201, 15, '2025-02-19');

-- ----------------------------
-- Table structure for rgv
-- ----------------------------
DROP TABLE IF EXISTS `rgv`;
CREATE TABLE `rgv`  (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `shelfId` int(11) NOT NULL,
  `zIndex` int(11) NOT NULL,
  `yIndex` int(11) NOT NULL,
  `xIndex` int(11) NOT NULL,
  `robotId` int(11) NULL DEFAULT NULL,
  `valid` smallint(11) NULL DEFAULT 1,
  PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8 COLLATE = utf8_general_ci ROW_FORMAT = DYNAMIC;

-- ----------------------------
-- Records of rgv
-- ----------------------------

-- ----------------------------
-- Table structure for rgv_task
-- ----------------------------
DROP TABLE IF EXISTS `rgv_task`;
CREATE TABLE `rgv_task`  (
  `id` int(11) NOT NULL AUTO_INCREMENT COMMENT 'id',
  `wmsId` int(11) NOT NULL COMMENT '点位id',
  `rgvId` int(11) NOT NULL COMMENT '类型 1:搬运rgv任务 2:rgv取 3:rgv卸 4:充电',
  `type` tinyint(3) NOT NULL COMMENT '类型 1:搬运rgv任务 2:rgv取 3:rgv卸 4:充电',
  `taskStatus` tinyint(3) NULL DEFAULT 0 COMMENT '任务状态 0:init 1:task 2：check 3:success 4:timeout 5:error',
  `robotId` int(8) NULL DEFAULT NULL COMMENT '任务对应的机器人id',
  `remark` varchar(30) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '备注',
  `targetId` varchar(30) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '目标货架id',
  `sourceId` varchar(30) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '来源货架id',
  `update_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '更新时间',
  `create_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
  PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8 COLLATE = utf8_general_ci COMMENT = 'rgv任务表' ROW_FORMAT = DYNAMIC;

-- ----------------------------
-- Records of rgv_task
-- ----------------------------

-- ----------------------------
-- Table structure for road_robot_safe_distance
-- ----------------------------
DROP TABLE IF EXISTS `road_robot_safe_distance`;
CREATE TABLE `road_robot_safe_distance`  (
  `id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT 'id',
  `area_id` bigint(20) NULL DEFAULT NULL COMMENT '所属库房id',
  `road_id` bigint(20) NULL DEFAULT NULL COMMENT '道路id，本系统中为link_cross_qrcode的id',
  `head_safe` int(11) NULL DEFAULT NULL COMMENT '机器人前边的安全距离',
  `left_safe` int(11) NULL DEFAULT NULL COMMENT '机器人左边的安全距离',
  `right_safe` int(11) NULL DEFAULT NULL COMMENT '机器人右边的安全距离',
  `tail_safe` int(11) NULL DEFAULT NULL COMMENT '机器人后边的安全距离',
  `created_time` datetime NULL DEFAULT NULL COMMENT '创建时间',
  `modified_time` datetime NULL DEFAULT NULL COMMENT '修改时间',
  `created_by` bigint(20) NULL DEFAULT NULL COMMENT '创建人id',
  `modified_by` bigint(20) NULL DEFAULT NULL COMMENT '最后修改人id',
  PRIMARY KEY (`id`) USING BTREE,
  UNIQUE INDEX `uk_road_id`(`road_id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8 COLLATE = utf8_general_ci ROW_FORMAT = DYNAMIC;

-- ----------------------------
-- Records of road_robot_safe_distance
-- ----------------------------

-- ----------------------------
-- Table structure for robot
-- ----------------------------
DROP TABLE IF EXISTS `robot`;
CREATE TABLE `robot`  (
  `id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '机器人ID',
  `robot_type` int(11) NOT NULL COMMENT '机器人类型',
  `conf_id` int(11) NOT NULL COMMENT '机器人类型ID',
  `robot_tags` varchar(500) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '机器人能胜任的功能标签，多个时用英文逗号分割',
  `action_mode` int(11) NULL DEFAULT NULL COMMENT '机器人动作模式，1-客户端真机模式，2-服务器仿真模式',
  `default_qrcode_id` int(11) NULL DEFAULT NULL COMMENT '默认休息位',
  `enable` varchar(20) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '是否启用',
  `boxes` varchar(500) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '机器人上面的托盘情况，格式为\'0-托盘号,1-托盘号\',第一个代表第几层，从0开始',
  `heights` varchar(20) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL,
  `area_id` int(11) NULL DEFAULT 1 COMMENT '区域ID， 区域一样的ID才可以取对应的货架，如果不同，则不可取',
  `x` int(11) NULL DEFAULT NULL COMMENT '当前机器人所在的x坐标',
  `y` int(11) NULL DEFAULT NULL COMMENT '当前机器人所在的y坐标',
  `degree` float(11, 4) NULL DEFAULT NULL COMMENT '当前机器人车体角度',
  `speed` float NULL DEFAULT NULL COMMENT '当前机器人的速度(m/s)',
  `from_qrcode_id` int(11) NULL DEFAULT NULL COMMENT '当前机器人所在道路的开始点',
  `to_qrcode_id` int(11) NULL DEFAULT NULL COMMENT '当前机器人所在道路的结束点',
  `created_time` datetime NULL DEFAULT NULL COMMENT '创建时间',
  `modified_time` datetime NULL DEFAULT NULL COMMENT '修改时间',
  `created_by` bigint(20) NULL DEFAULT NULL COMMENT '创建人id',
  `modified_by` bigint(20) NULL DEFAULT NULL COMMENT '最后修改人id',
  PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 203 CHARACTER SET = utf8 COLLATE = utf8_general_ci ROW_FORMAT = DYNAMIC;

-- ----------------------------
-- Records of robot
-- ----------------------------
INSERT INTO `robot` VALUES (101, 2, 102, '', NULL, NULL, 'Y', '', NULL, 1, 16122, -18879, 89.9147, 0, 22, 22, '2025-02-17 17:26:20', '2025-02-17 17:26:20', NULL, NULL);
INSERT INTO `robot` VALUES (102, 2, 102, '', NULL, NULL, 'N', NULL, NULL, 1, NULL, NULL, 96.2556, NULL, 23, 23, '2025-02-17 17:26:31', '2025-02-17 17:26:31', NULL, NULL);
INSERT INTO `robot` VALUES (201, 2, 102, NULL, NULL, NULL, 'Y', '', NULL, 2, 46276, -20238, 93.2201, 0, 53, 53, '2025-02-17 17:26:39', '2025-02-17 17:27:09', NULL, NULL);
INSERT INTO `robot` VALUES (202, 2, 102, '', NULL, NULL, 'N', NULL, NULL, 2, NULL, NULL, -0.2509, NULL, 50, 50, '2025-02-17 17:26:49', '2025-02-17 17:26:49', NULL, NULL);

-- ----------------------------
-- Table structure for robot_action_info
-- ----------------------------
DROP TABLE IF EXISTS `robot_action_info`;
CREATE TABLE `robot_action_info`  (
  `robot_id` bigint(20) NOT NULL COMMENT '机器人ID',
  `area_id` bigint(20) NULL DEFAULT NULL COMMENT '机器人所在库房id',
  `location_x` int(11) NOT NULL COMMENT '机器人位置x坐标',
  `location_y` int(11) NOT NULL COMMENT '机器人位置y坐标',
  `location_theta` int(11) NOT NULL COMMENT '角度',
  `v` float NULL DEFAULT NULL COMMENT '速度(m/s)',
  `w` float NULL DEFAULT NULL COMMENT '机器人角速度',
  `energy` int(11) NULL DEFAULT NULL COMMENT '当前电量',
  `ap_id` varchar(20) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT 'wifi的AP名称',
  `rssi` float NULL DEFAULT NULL COMMENT 'WIFI强度',
  `task_id` bigint(20) NULL DEFAULT NULL COMMENT '动作ID，为0代表无任务',
  `press` float NULL DEFAULT NULL COMMENT '压力传感器',
  `temp_inside` float NULL DEFAULT NULL COMMENT '板载温度传感器',
  `temp_outside` float NULL DEFAULT NULL COMMENT '外部温度传感器',
  `walking_motor` varchar(20) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '行走电机状态',
  `steering_motor` varchar(20) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '转向电机状态',
  `left_safe_laser` int(11) NULL DEFAULT NULL COMMENT '左安全激光（区域编号）',
  `right_safe_laser` int(11) NULL DEFAULT NULL COMMENT '右安全激光（区域编号）',
  `walking_motor_encoder` int(11) NULL DEFAULT NULL COMMENT '行走电机编码器',
  `steering_motor_encoder` int(11) NULL DEFAULT NULL COMMENT '转向电机编码器',
  `fork_encoder` int(11) NULL DEFAULT NULL COMMENT '货叉升降编码器修正',
  `fork_tilt_sensor_str` varchar(64) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '货叉倾斜传感器',
  `mounting_tilt_sensor_str` varchar(64) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '门架倾斜传感器',
  `controller_tilt_sensor_str` varchar(64) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '控制板倾斜传感器',
  `update_time` timestamp NULL DEFAULT NULL ON UPDATE CURRENT_TIMESTAMP COMMENT '更新时间',
  `height` int(11) NULL DEFAULT 0 COMMENT '当前插齿高度（mm）',
  `fork_degree` int(11) NULL DEFAULT 0 COMMENT '当前叉齿角度',
  `action` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '当前的动作名称， ahead/rotationleft/rotationright',
  `task` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '当前的任务名称， pick/unpick/...',
  PRIMARY KEY (`robot_id`) USING BTREE
) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_general_ci ROW_FORMAT = DYNAMIC;

-- ----------------------------
-- Records of robot_action_info
-- ----------------------------
INSERT INTO `robot_action_info` VALUES (1, 2, 21700, 9000, 0, 0, NULL, 100, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, 0, 'wait', NULL);
INSERT INTO `robot_action_info` VALUES (2, 5, 148, 3951, -921452, 0, NULL, 100, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, 0, 'wait', NULL);
INSERT INTO `robot_action_info` VALUES (3, 2, 12000, 5000, 0, 0, NULL, 100, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, 0, 'wait', NULL);
INSERT INTO `robot_action_info` VALUES (4, 2, 2000, -5000, 0, 0, NULL, 100, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, 0, 'wait', NULL);
INSERT INTO `robot_action_info` VALUES (101, 1, 16122, -18879, 899147, 0, NULL, 100, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, '2025-02-19 15:47:29', 0, 0, 'move', NULL);
INSERT INTO `robot_action_info` VALUES (102, 1, 1304, -19119, 962556, 0, NULL, 100, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, 0, 'wait', NULL);
INSERT INTO `robot_action_info` VALUES (201, 2, 46276, -20238, 932201, 0, NULL, 100, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, '2025-02-19 15:52:46', 0, 0, 'move', NULL);
INSERT INTO `robot_action_info` VALUES (202, 2, 0, 0, -2509, 0, NULL, 100, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, '2025-02-19 14:04:56', 0, 0, 'wait', NULL);

-- ----------------------------
-- Table structure for robot_action_log
-- ----------------------------
DROP TABLE IF EXISTS `robot_action_log`;
CREATE TABLE `robot_action_log`  (
  `id` bigint(20) NOT NULL AUTO_INCREMENT,
  `roboto_id` int(11) NOT NULL COMMENT '机器人ID',
  `error_code` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '错误码',
  `manual_mode_flag` int(11) NULL DEFAULT NULL COMMENT '手自动模式',
  `position_initialized` tinyint(1) NULL DEFAULT NULL COMMENT '位置是否初始化',
  `slam_map_code` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '当前机器人所在的地图编号',
  `location_x` int(11) NULL DEFAULT NULL COMMENT '当前机器人所在的x坐标',
  `location_y` int(11) NULL DEFAULT NULL COMMENT '当前机器人所在的y坐标',
  `location_theta` int(11) NULL DEFAULT NULL COMMENT '当前机器人车体角度',
  `localization_score` float NULL DEFAULT NULL COMMENT '当前机器人定位的可信度',
  `v` float NULL DEFAULT NULL COMMENT '当前机器人的速度(m/s)',
  `height` int(11) NULL DEFAULT NULL COMMENT '插齿高度',
  `fork_degree` int(11) NULL DEFAULT NULL COMMENT '叉齿角度',
  `energy` int(11) NULL DEFAULT NULL,
  `task_id` bigint(20) NULL DEFAULT NULL,
  `task_finish` int(11) NULL DEFAULT NULL,
  `start_time` bigint(20) NULL DEFAULT NULL COMMENT '任务开始时间',
  `end_time` bigint(20) NULL DEFAULT NULL COMMENT '任务介绍时间',
  `box_height` int(11) NULL DEFAULT NULL,
  `box_weight` int(11) NULL DEFAULT NULL,
  `box_width` int(11) NULL DEFAULT NULL COMMENT '托盘进叉宽度',
  `created_time` datetime NULL DEFAULT NULL COMMENT '创建时间',
  `created_by` bigint(20) NULL DEFAULT NULL COMMENT '创建人id',
  `modified_time` datetime NULL DEFAULT NULL COMMENT '修改时间',
  `modified_by` bigint(20) NULL DEFAULT NULL COMMENT '最后修改人id',
  PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8 COLLATE = utf8_general_ci ROW_FORMAT = DYNAMIC;

-- ----------------------------
-- Records of robot_action_log
-- ----------------------------

-- ----------------------------
-- Table structure for robot_back
-- ----------------------------
DROP TABLE IF EXISTS `robot_back`;
CREATE TABLE `robot_back`  (
  `robotId` int(11) NOT NULL,
  `qrcodeId` int(11) NOT NULL,
  `degree` float(11, 4) NOT NULL
) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_general_ci ROW_FORMAT = DYNAMIC;

-- ----------------------------
-- Records of robot_back
-- ----------------------------

-- ----------------------------
-- Table structure for robot_base_info
-- ----------------------------
DROP TABLE IF EXISTS `robot_base_info`;
CREATE TABLE `robot_base_info`  (
  `robot_id` int(11) NOT NULL COMMENT '机器人ID',
  `robot_type` varchar(20) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '机器人类型',
  `c_card_id` int(11) NOT NULL COMMENT '机器人板卡版本',
  `c_controller_version` varchar(20) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '机器人控制板卡版本',
  `p_card_id` int(11) NOT NULL COMMENT '机器人软件版本',
  `p_controller_version` varchar(20) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '机器人软件控制版本',
  `map_version` varchar(20) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '地图版本',
  `update_time` timestamp NULL DEFAULT NULL ON UPDATE CURRENT_TIMESTAMP COMMENT '更新时间',
  PRIMARY KEY (`robot_id`) USING BTREE
) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_general_ci ROW_FORMAT = DYNAMIC;

-- ----------------------------
-- Records of robot_base_info
-- ----------------------------

-- ----------------------------
-- Table structure for robot_conf_limit
-- ----------------------------
DROP TABLE IF EXISTS `robot_conf_limit`;
CREATE TABLE `robot_conf_limit`  (
  `maxSpeed` float NOT NULL,
  `maxA` float NOT NULL,
  `maxRotationSpeed` float NOT NULL
) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_general_ci ROW_FORMAT = DYNAMIC;

-- ----------------------------
-- Records of robot_conf_limit
-- ----------------------------
INSERT INTO `robot_conf_limit` VALUES (3, 1, 0.5);

-- ----------------------------
-- Table structure for robot_engineer_info
-- ----------------------------
DROP TABLE IF EXISTS `robot_engineer_info`;
CREATE TABLE `robot_engineer_info`  (
  `robotId` int(11) NOT NULL COMMENT '机器人ID',
  `pic` varchar(100) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '机器人图片',
  `type` int(11) NOT NULL COMMENT '机器人类别1-AGV 2-叉车',
  `confId` int(11) NOT NULL COMMENT '机器人类型ID',
  `repairDay` int(11) NOT NULL COMMENT '修理的时间周期（天）',
  `repairTime` datetime NOT NULL COMMENT '上次修理日期',
  `repairMan` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '修理人',
  `configTime` datetime NOT NULL COMMENT '配置时间日期',
  `version` varchar(20) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '机器人当前的系统版本',
  PRIMARY KEY (`robotId`) USING BTREE
) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_general_ci ROW_FORMAT = DYNAMIC;

-- ----------------------------
-- Records of robot_engineer_info
-- ----------------------------

-- ----------------------------
-- Table structure for robot_error
-- ----------------------------
DROP TABLE IF EXISTS `robot_error`;
CREATE TABLE `robot_error`  (
  `id` bigint(20) NOT NULL AUTO_INCREMENT,
  `error_code` varchar(11) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '机器人错误编码',
  `type` tinyint(4) NULL DEFAULT 1 COMMENT '1--叉车，2--升降梯，3--电梯，4--红绿灯',
  `task_id` int(11) NULL DEFAULT NULL COMMENT '当前任务的RCS ID',
  `robot_id` bigint(20) NULL DEFAULT NULL COMMENT '机器人ID',
  `device_name` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '设备名',
  `x` int(11) NULL DEFAULT NULL COMMENT '机器人x坐标',
  `y` int(11) NULL DEFAULT NULL COMMENT '机器人y坐标',
  `need_alarm` varchar(1) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT 'Y' COMMENT '是否需要报警',
  `status` int(11) NOT NULL COMMENT '状态， 0-未处理初始，1-已处理',
  `mail` varchar(1) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT 'N' COMMENT '是否已经发送邮件， Y已经发送， N未发送',
  `created_time` datetime NULL DEFAULT NULL COMMENT '创建时间',
  `modified_time` datetime NULL DEFAULT NULL COMMENT '修改时间',
  `created_by` bigint(20) NULL DEFAULT NULL COMMENT '创建人id',
  `modified_by` bigint(20) NULL DEFAULT NULL COMMENT '最后修改人id',
  PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 1892118345694560259 CHARACTER SET = utf8 COLLATE = utf8_general_ci ROW_FORMAT = DYNAMIC;

-- ----------------------------
-- Records of robot_error
-- ----------------------------
INSERT INTO `robot_error` VALUES (1891423922459504642, '50000', 3, 0, 1891419255604244481, '测试电梯', NULL, NULL, 'Y', 1, 'N', '2025-02-17 17:46:19', '2025-02-19 16:02:59', NULL, NULL);
INSERT INTO `robot_error` VALUES (1891685022891397122, '55000-010', 1, 0, 201, NULL, 59387, 17074, 'N', 1, 'N', '2025-02-18 11:03:50', '2025-02-19 14:01:20', NULL, NULL);
INSERT INTO `robot_error` VALUES (1891686172843724801, '55000-010', 1, 3, 101, NULL, 2790, -58, 'N', 1, 'N', '2025-02-18 11:08:24', '2025-02-18 11:08:24', NULL, NULL);
INSERT INTO `robot_error` VALUES (1892091390408507394, '10027', 1, 21, NULL, NULL, NULL, NULL, 'Y', 2, 'N', '2025-02-19 13:58:35', '2025-02-19 13:59:03', NULL, NULL);
INSERT INTO `robot_error` VALUES (1892091946917150722, '10027', 1, 28, NULL, NULL, NULL, NULL, 'Y', 2, 'N', '2025-02-19 14:00:48', '2025-02-19 14:00:58', NULL, NULL);
INSERT INTO `robot_error` VALUES (1892108176822616066, '10027', 1, 11, NULL, NULL, NULL, NULL, 'Y', 2, 'N', '2025-02-19 15:05:18', '2025-02-19 15:05:23', NULL, NULL);
INSERT INTO `robot_error` VALUES (1892116246831284226, '55000-010', 1, 3, 201, NULL, 19093, -84, 'N', 1, 'N', '2025-02-19 15:37:22', '2025-02-19 15:37:22', NULL, NULL);
INSERT INTO `robot_error` VALUES (1892118345694560258, '10027', 1, 38, NULL, NULL, NULL, NULL, 'Y', 2, 'N', '2025-02-19 15:45:42', '2025-02-19 15:46:04', NULL, NULL);

-- ----------------------------
-- Table structure for robot_error_mapping
-- ----------------------------
DROP TABLE IF EXISTS `robot_error_mapping`;
CREATE TABLE `robot_error_mapping`  (
  `id` bigint(20) NOT NULL AUTO_INCREMENT,
  `error_code` varchar(10) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '错误码',
  `response_code` varchar(10) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '响应给机器人的错误码',
  `error_source` int(2) NULL DEFAULT 2 COMMENT '错误来源：1-调度系统, 2-机器人',
  `info` varchar(200) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '错误码信息',
  `description` varchar(1000) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '错误码详细描述',
  `type` int(2) NULL DEFAULT NULL COMMENT '类型：0-错误 1-警告',
  `block_task` varchar(1) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT 'Y' COMMENT '是否阻塞任务',
  `block_robot` varchar(1) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT 'Y' COMMENT '是否阻塞机器人',
  `free_robot` varchar(1) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT 'N' COMMENT '是否空闲机器人',
  `reset_robot` varchar(1) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT 'N' COMMENT '是否发送恢复机器人清除错误命令',
  `need_alarm` varchar(1) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT 'Y' COMMENT '是否报警',
  `created_time` datetime NULL DEFAULT NULL COMMENT '创建时间',
  `modified_time` datetime NULL DEFAULT NULL COMMENT '修改时间',
  `created_by` bigint(20) NULL DEFAULT NULL COMMENT '创建人id',
  `modified_by` bigint(20) NULL DEFAULT NULL COMMENT '最后修改人id',
  PRIMARY KEY (`id`) USING BTREE,
  UNIQUE INDEX `uk_error_code`(`error_code`) USING BTREE COMMENT '错误码唯一性索引'
) ENGINE = InnoDB AUTO_INCREMENT = 1890304430246776834 CHARACTER SET = utf8 COLLATE = utf8_general_ci ROW_FORMAT = DYNAMIC;

-- ----------------------------
-- Records of robot_error_mapping
-- ----------------------------
INSERT INTO `robot_error_mapping` VALUES (1, '265', '265', 2, '货架位置托盘空缺', '停机报错代码', NULL, 'N', 'N', 'N', 'N', 'Y', NULL, '2021-08-26 14:22:12', NULL, NULL);
INSERT INTO `robot_error_mapping` VALUES (2, '50000', '50000', 2, '设备通讯失败', '长时间未收到上报数据，或设备无法ping通。请检查设备通讯连接，等待通讯恢复。', 1, 'N', 'N', 'N', 'N', 'Y', NULL, '2023-05-16 14:24:59', NULL, NULL);
INSERT INTO `robot_error_mapping` VALUES (3, '545', '545', 2, '插齿红外触发', '在取卸货等过程中触发红外报警，请切换到手动，移除障碍物后，再切换回自动，恢复任务执行。', 1, 'Y', 'Y', 'N', 'N', 'Y', NULL, '2023-05-16 14:27:31', NULL, NULL);
INSERT INTO `robot_error_mapping` VALUES (4, '55000-010', '6001', 2, '手动设置车辆异常清除任务', '手动设置车辆异常后，请将车辆拉回起始点，并执行禁用启用，车辆的当前任务将被清空。', 1, 'Y', 'Y', 'N', 'N', 'N', NULL, '2023-06-16 13:47:39', NULL, NULL);
INSERT INTO `robot_error_mapping` VALUES (5, '55000-020', '55000-020', 2, '充电异常，请检查电池及充电设备', '自动充电失败，请检查充电桩是否正常，尝试人工为电池充电，检查电池是否损坏。', 0, 'Y', 'Y', 'N', 'N', 'Y', NULL, '2022-09-19 11:57:08', NULL, NULL);
INSERT INTO `robot_error_mapping` VALUES (6, '55001', '55001', 2, '打滑', '切换成手动，拖离打滑区域，再切换回自动模式。', 1, 'N', 'N', 'N', 'N', 'Y', NULL, '2022-07-19 13:59:54', NULL, NULL);
INSERT INTO `robot_error_mapping` VALUES (7, '55002', '55002', 2, '安全激光驱动故障', '安全激光驱动故障', 1, 'N', 'N', 'N', 'N', 'Y', NULL, '2022-04-20 15:40:15', NULL, NULL);
INSERT INTO `robot_error_mapping` VALUES (8, '55020', '51000-010', 2, '电池电量极低', '', 1, 'Y', 'Y', 'N', 'N', 'Y', NULL, '2022-07-19 13:59:54', NULL, NULL);
INSERT INTO `robot_error_mapping` VALUES (9, '55030', '51000-030', 2, '电池电量低于充电阈值', '网络，接口板通讯，配置R2000等初始化检测项目 超时', 1, 'Y', 'Y', 'N', 'N', 'Y', NULL, '2022-07-19 13:59:54', NULL, NULL);
INSERT INTO `robot_error_mapping` VALUES (10, '55040', '51000-040', 2, '保护区遭闯入', '', 0, 'N', 'N', 'N', 'N', 'Y', NULL, '2022-07-19 14:00:17', NULL, NULL);
INSERT INTO `robot_error_mapping` VALUES (11, '55041', '51000-041', 2, '保护区遭闯入', '安全系统给出信号给接口板，接口板直接降速到0.8以下，同时上报主控板，主控板降速至0.8m/s', 0, 'N', 'N', 'N', 'N', 'Y', NULL, '2022-07-19 14:00:17', NULL, NULL);
INSERT INTO `robot_error_mapping` VALUES (12, '55042', '51000-042', 2, '第一警告区闯入', '安全系统给出信号给接口板，接口板直接降速到0.3以下，同时上报主控板，主控板降速至0.3m/s', 0, 'N', 'N', 'N', 'N', 'Y', NULL, '2022-07-19 14:00:17', NULL, NULL);
INSERT INTO `robot_error_mapping` VALUES (13, '55050', '51000-050', 2, '第二警告区闯入', '如安全系统报错，会切断车辆主电源。接口板会收到报错，主控采取停机报错代码', 1, 'Y', 'Y', 'N', 'N', 'Y', NULL, '2022-07-19 13:59:54', NULL, NULL);
INSERT INTO `robot_error_mapping` VALUES (14, '55060', '51000-060', 2, '压力传感器连接丢失', '', 0, 'N', 'N', 'N', 'N', 'Y', NULL, '2022-07-19 14:00:17', NULL, NULL);
INSERT INTO `robot_error_mapping` VALUES (15, '55061', '51000-061', 2, '压力传感器连接丢失', '波动超过X%(30%). 停机报错。', 1, 'Y', 'Y', 'N', 'N', 'Y', NULL, '2022-07-19 13:59:54', NULL, NULL);
INSERT INTO `robot_error_mapping` VALUES (16, '55062', '51000-062', 2, '压力传感器读数超过量程', '', 1, 'Y', 'Y', 'N', 'N', 'Y', NULL, '2022-07-19 13:59:54', NULL, NULL);
INSERT INTO `robot_error_mapping` VALUES (17, '55063', '55063-1', 2, '托盘高度测量超出限制', '请拖到车辆到地图节点上禁用和启用车辆进行恢复。', 0, 'Y', 'Y', 'N', 'N', 'Y', NULL, '2023-02-10 11:32:51', NULL, NULL);
INSERT INTO `robot_error_mapping` VALUES (18, '55064', '55064-1', 2, '重量测量传感器丢失', '请拖到车辆到地图节点上禁用和启用车辆进行恢复。', 0, 'Y', 'Y', 'N', 'N', 'Y', NULL, '2023-02-10 11:37:11', NULL, NULL);
INSERT INTO `robot_error_mapping` VALUES (19, '55070', '51000-070', 2, '拉线传感器连接丢失', '', 1, 'Y', 'Y', 'N', 'N', 'Y', NULL, '2022-07-19 13:59:54', NULL, NULL);
INSERT INTO `robot_error_mapping` VALUES (20, '55071', '51000-071', 2, '拉线传感器连接丢失', '取卸货过程中，停机报错。非取卸货任务继续非取卸货任务。', 1, 'Y', 'Y', 'N', 'N', 'Y', NULL, '2022-07-19 13:59:54', NULL, NULL);
INSERT INTO `robot_error_mapping` VALUES (21, '55072', '51000-072', 2, '拉线传感器读数超过限值  高度超限', '', 1, 'Y', 'Y', 'N', 'N', 'Y', NULL, '2022-07-19 13:59:54', NULL, NULL);
INSERT INTO `robot_error_mapping` VALUES (22, '55073', '51000-073', 2, '高度超时检测', '', 1, 'Y', 'Y', 'N', 'N', 'Y', NULL, '2022-07-19 13:59:54', NULL, NULL);
INSERT INTO `robot_error_mapping` VALUES (23, '55074', '51000-074', 2, '高度重复读数三次 ', '', 1, 'Y', 'Y', 'N', 'N', 'Y', NULL, '2022-07-19 13:59:54', NULL, NULL);
INSERT INTO `robot_error_mapping` VALUES (24, '55075', '55075', 2, '反馈的高度比目标高度差超过可容忍误差值 ', '', 1, 'Y', 'Y', 'N', 'N', 'Y', NULL, '2022-07-19 13:59:54', NULL, NULL);
INSERT INTO `robot_error_mapping` VALUES (25, '55076', '55076', 2, '任务下发高度超过车体叉齿最大举升范围 ', '', 1, 'Y', 'Y', 'N', 'N', 'Y', NULL, '2022-07-19 13:59:54', NULL, NULL);
INSERT INTO `robot_error_mapping` VALUES (26, '55078', '55078', 2, '相机未识别到托盘', '请禁用车辆，并从最近的启动节点重新启用。', 0, 'Y', 'Y', 'N', 'N', 'Y', NULL, '2023-06-01 17:09:46', NULL, NULL);
INSERT INTO `robot_error_mapping` VALUES (27, '55080', '51000-080', 2, '与主控通讯超时', '', 1, 'Y', 'Y', 'N', 'N', 'Y', NULL, '2022-07-19 13:59:54', NULL, NULL);
INSERT INTO `robot_error_mapping` VALUES (28, '55090', '51000-090', 2, '主动轮编码器读数异常', '', 1, 'Y', 'Y', 'N', 'N', 'Y', NULL, '2022-07-19 13:59:54', NULL, NULL);
INSERT INTO `robot_error_mapping` VALUES (29, '55091', '51000-091', 2, ' 转向轮编码器读数异常', '', 1, 'Y', 'Y', 'N', 'N', 'Y', NULL, '2022-07-19 13:59:54', NULL, NULL);
INSERT INTO `robot_error_mapping` VALUES (30, '55100', '51000-100', 2, '转向轮编码器读数异常', 'R2000计算值与溶合值偏差过大，停机报错(超限先做，其它异常再讨论。R2000计算值与溶合值偏差过大。)', 1, 'Y', 'Y', 'N', 'N', 'Y', NULL, '2022-07-19 13:59:54', NULL, NULL);
INSERT INTO `robot_error_mapping` VALUES (31, '55110', '51000-110', 2, '定位信息丢失', '到启动点重新启动，建议在容易定位丢失的地方，增加反光板，检查假反光板，另外设置多点启动点', 1, 'Y', 'Y', 'N', 'N', 'Y', NULL, '2022-07-19 13:59:54', NULL, NULL);
INSERT INTO `robot_error_mapping` VALUES (32, '55111', '51000-111', 2, '导航雷达和主控连接丢失', '导航雷达自身故障，停机报错代码', 1, 'Y', 'Y', 'N', 'N', 'Y', NULL, '2022-07-19 13:59:54', NULL, NULL);
INSERT INTO `robot_error_mapping` VALUES (33, '55120', '51000-120', 2, '导航雷达状态异常', '取卸货中高度高于5米停机报错。非取卸货任务继续非取卸货任务。主控无法检测到车身的倾斜传感器', 1, 'Y', 'Y', 'N', 'N', 'Y', NULL, '2022-07-19 13:59:54', NULL, NULL);
INSERT INTO `robot_error_mapping` VALUES (34, '55121', '51000-121', 2, '车身倾斜传感器和主控连接丢失', '取卸货中停机报错。非取卸货任务继续非取卸货任务。主控无法检测到门架的倾斜传感器', 1, 'Y', 'Y', 'N', 'N', 'Y', NULL, '2022-07-19 13:59:54', NULL, NULL);
INSERT INTO `robot_error_mapping` VALUES (35, '55122', '51000-122', 2, '叉齿倾斜无法调整到小于预定的值', '', 1, 'Y', 'Y', 'N', 'N', 'Y', NULL, '2022-07-19 13:59:54', NULL, NULL);
INSERT INTO `robot_error_mapping` VALUES (36, '55130', '51000-130', 2, 'AC控制器和接口板连接丢失', '', 1, 'Y', 'Y', 'N', 'N', 'Y', NULL, '2022-07-19 13:59:54', NULL, NULL);
INSERT INTO `robot_error_mapping` VALUES (37, '55200', '51000-200', 2, 'AC控制器和接口板连接丢失', '停机报错代码（V*0.1*1.5)', 1, 'Y', 'Y', 'N', 'N', 'Y', NULL, '2022-07-19 13:59:54', NULL, NULL);
INSERT INTO `robot_error_mapping` VALUES (38, '55201', '51000-201', 2, '坐标位置超差', '模式匹配方法：扫描到的反光板数量小于4个，停机报错代码', 1, 'Y', 'Y', 'N', 'N', 'Y', NULL, '2022-07-19 13:59:54', NULL, NULL);
INSERT INTO `robot_error_mapping` VALUES (39, '55202', '51000-202', 2, '当前位置反光板数量小于3', '停机报错代码(记录情形）', 1, 'Y', 'Y', 'N', 'N', 'Y', NULL, '2022-07-19 13:59:54', NULL, NULL);
INSERT INTO `robot_error_mapping` VALUES (40, '55203', '51000-203', 2, '当前位置反光板数量小于4', '停机报错代码', 1, 'Y', 'Y', 'N', 'N', 'Y', NULL, '2022-07-19 13:59:54', NULL, NULL);
INSERT INTO `robot_error_mapping` VALUES (41, '55204', '51000-204', 2, ' 车辆位于工作区外 ', '', 1, 'Y', 'Y', 'N', 'N', 'Y', NULL, '2022-07-19 13:59:54', NULL, NULL);
INSERT INTO `robot_error_mapping` VALUES (42, '55205', '51000-205', 2, '车辆位置超差', '根据任务状态。车辆实际到达的位置与系统指定的位置之间的偏差超过偏差限值，速度公差曲线。', 1, 'Y', 'Y', 'N', 'N', 'Y', NULL, '2022-07-19 13:59:54', NULL, NULL);
INSERT INTO `robot_error_mapping` VALUES (43, '55206', '55206', 2, '转过了', '转过了', 1, 'Y', 'Y', 'N', 'N', 'Y', NULL, '2022-07-19 13:59:54', NULL, NULL);
INSERT INTO `robot_error_mapping` VALUES (44, '55300', '51000-300', 2, '转过了', '硬件损坏导致无法通讯，停机报错代码', 1, 'Y', 'Y', 'N', 'N', 'Y', NULL, '2022-07-19 13:59:54', NULL, NULL);
INSERT INTO `robot_error_mapping` VALUES (45, '55301', '51000-301', 2, '车载无线模块故障导致无法和上位机通讯', '软件通讯链路导致无法通讯，停机报错代码', 1, 'Y', 'Y', 'N', 'N', 'Y', NULL, '2022-07-19 13:59:54', NULL, NULL);
INSERT INTO `robot_error_mapping` VALUES (46, '55302', '51000-302', 2, 'WIFI信号不稳定导致无法和上位机通讯 ', '', 0, 'N', 'N', 'N', 'N', 'Y', NULL, '2022-07-19 14:00:17', NULL, NULL);
INSERT INTO `robot_error_mapping` VALUES (47, '55303', '51000-303', 2, 'WIFI信号不稳定导致无法和上位机通讯', '', 0, 'N', 'N', 'N', 'N', 'Y', NULL, '2022-07-19 14:00:17', NULL, NULL);
INSERT INTO `robot_error_mapping` VALUES (48, '55304', '51000-304', 2, 'WIFI信号低于灵敏度导致无法和上位机通讯', '插齿升降和调平指令执行异常（超时或无法执行到位），停机报错代码', 1, 'Y', 'Y', 'N', 'N', 'Y', NULL, '2022-07-19 13:59:54', NULL, NULL);
INSERT INTO `robot_error_mapping` VALUES (49, '55305', '51000-305', 2, '外设控制器（接口板）异常-升降指令执行异常', '采用主控板CAN口进行停机，报错代码', 1, 'Y', 'Y', 'N', 'N', 'Y', NULL, '2022-07-19 13:59:54', NULL, NULL);
INSERT INTO `robot_error_mapping` VALUES (50, '55306', '51000-306', 2, '外设控制器（接口板）异常-停止指令执行异常', '停机报错代码', 1, 'Y', 'Y', 'N', 'N', 'Y', NULL, '2022-07-19 13:59:54', NULL, NULL);
INSERT INTO `robot_error_mapping` VALUES (51, '55307', '51000-307', 2, '外设控制器（接口板）异常-叉齿平移指令执行异常', '采用主控板CAN口进行停机，停机报错代码', 1, 'Y', 'Y', 'N', 'N', 'Y', NULL, '2022-07-19 13:59:54', NULL, NULL);
INSERT INTO `robot_error_mapping` VALUES (52, '55330', '51000-330', 2, '货物掉落', '', 1, 'Y', 'Y', 'N', 'N', 'Y', NULL, '2022-07-19 13:59:54', NULL, NULL);
INSERT INTO `robot_error_mapping` VALUES (53, '55350', '51000-350', 2, '目标点附近震荡', '', 1, 'Y', 'Y', 'N', 'N', 'Y', NULL, '2022-07-19 13:59:54', NULL, NULL);
INSERT INTO `robot_error_mapping` VALUES (54, '55351', '51000-351', 2, '目标点附近震荡', '根据任务状态。叉取货阈值+/- A度。(行驶途中可以B度)', 1, 'Y', 'Y', 'N', 'N', 'Y', NULL, '2022-07-19 13:59:54', NULL, NULL);
INSERT INTO `robot_error_mapping` VALUES (55, '55352', '51000-352', 2, '车辆实际运行速度低于设定的最低限值 ', '', 0, 'N', 'N', 'N', 'N', 'Y', NULL, '2022-07-19 14:00:17', NULL, NULL);
INSERT INTO `robot_error_mapping` VALUES (56, '55353', '51000-353', 2, '车辆速度超过上限 ', '', 1, 'Y', 'Y', 'N', 'N', 'Y', NULL, '2022-07-19 13:59:54', NULL, NULL);
INSERT INTO `robot_error_mapping` VALUES (57, '55380', '51000-380', 2, '紧急开关被按下 ', '上报错误。实时再次检测紧急开关。（安全PLC上报紧急开关，保护区，警告区状态）', 0, 'N', 'N', 'N', 'N', 'Y', NULL, '2022-07-19 14:00:17', NULL, NULL);
INSERT INTO `robot_error_mapping` VALUES (58, '55381', '51000-381', 2, '紧急开关被按下', '等待2秒后，继续当前任务。', 0, 'N', 'N', 'N', 'N', 'Y', NULL, '2022-07-19 14:00:17', NULL, NULL);
INSERT INTO `robot_error_mapping` VALUES (59, '55382', '55382', 2, '触边', '触边', 0, 'N', 'N', 'N', 'N', 'Y', NULL, '2024-08-16 14:07:16', NULL, NULL);
INSERT INTO `robot_error_mapping` VALUES (60, '55383', '55383', 2, '反馈的角度连续为同一个值报错', '反馈的角度连续为同一个值报错', 0, 'N', 'N', 'N', 'N', 'Y', NULL, '2024-08-16 14:07:39', NULL, NULL);
INSERT INTO `robot_error_mapping` VALUES (61, '55385', '55385', 2, '电机状态异常', '电机状态异常', 1, 'Y', 'Y', 'N', 'N', 'Y', NULL, '2022-07-19 13:59:54', NULL, NULL);
INSERT INTO `robot_error_mapping` VALUES (62, '55390', '51000-390', 2, '反馈的角度连续为同一个值', '开机自检时上报接口板和主控板的版本。', 1, 'Y', 'Y', 'N', 'N', 'Y', NULL, '2022-07-19 13:59:54', NULL, NULL);
INSERT INTO `robot_error_mapping` VALUES (63, '55555', '55555', 2, '错误恢复初始值,从其他线程传递给错误线程,不作为获取最终参考', '错误恢复初始值,从其他线程传递给错误线程,不作为获取最终参考', 1, 'N', 'N', 'N', 'N', 'Y', NULL, '2022-07-19 13:59:54', NULL, NULL);
INSERT INTO `robot_error_mapping` VALUES (64, '55600', '55600', 2, '车体报错, 行走控制器故障', '车体报错, 行走控制器故障', 1, 'Y', 'Y', 'N', 'N', 'Y', NULL, '2022-07-19 13:59:54', NULL, NULL);
INSERT INTO `robot_error_mapping` VALUES (1701122289568362497, '10020', '10020', 1, '路线规划失败，无安全可行进的道路', '请检查路径参数是否合适，调整路径、车体相关参数达到可行走的效果。', 0, 'N', 'N', 'N', 'N', 'Y', '2023-09-11 14:35:34', NULL, NULL, NULL);
INSERT INTO `robot_error_mapping` VALUES (1701122478156853250, '10022', '10022', 1, '调度任务暂未执行，因当前不满足执行条件', '请确认仓位状态是否满足执行条件，如果不一致，通过占用/清空操作修正仓位状态。', 1, 'N', 'N', 'N', 'N', 'Y', '2023-09-11 14:36:19', NULL, NULL, NULL);
INSERT INTO `robot_error_mapping` VALUES (1701123710229458945, '10070', '10070', 1, '充电任务下发失败，无空闲可用充电桩', '请检查充电桩是否都被占用或者未被正常释放，未正常释放的充电桩，可在监控中点击充电桩，点击释放按钮进行释放。', 1, 'N', 'N', 'N', 'N', 'Y', '2023-09-11 14:41:13', NULL, NULL, NULL);
INSERT INTO `robot_error_mapping` VALUES (1701123851208404993, '10071', '10071', 1, '充电任务下发失败，AGV有托盘', '请求确认AGV上是否有托盘，请移除托盘后，点击工具条中的清空托盘，之后可正常充电。', 1, 'N', 'N', 'N', 'N', 'Y', '2023-09-11 14:41:46', NULL, NULL, NULL);
INSERT INTO `robot_error_mapping` VALUES (1701123953792692226, '10072', '10072', 1, '充电任务下发失败，锁定充电桩失败', '请检查充电桩是否都被占用或者未被正常释放，未正常释放的充电桩，可在监控中点击充电桩，点击释放按钮进行释放。', 1, 'N', 'N', 'N', 'N', 'Y', '2023-09-11 14:42:11', NULL, NULL, NULL);
INSERT INTO `robot_error_mapping` VALUES (1702248047403876354, '56039', '56039', 2, '终点角度与目标角度误差过大，无法执行', '一般为调度规划的程序问题，需要联系开发人员修正程序。', 0, 'Y', 'Y', 'N', 'N', 'Y', '2023-09-14 17:08:55', '2023-09-14 17:08:55', NULL, NULL);
INSERT INTO `robot_error_mapping` VALUES (1710523492401618945, '10023', '10023', 1, '卸货点叉车高度不够', '修改表pick_conf字段maxForkHeight为叉车实际取货最高高度数据，然后重新禁用启用车辆。如果实际高度都不够请联系项目经理', 1, 'N', 'N', 'N', 'N', 'Y', '2023-10-07 13:12:35', '2023-10-07 13:12:35', NULL, NULL);
INSERT INTO `robot_error_mapping` VALUES (1710523812020166658, '10024', '10024', 1, '卸货点叉车承重不够', '修改表pick_conf字段maxForkWeight为叉车实际最大承重，然后重新禁用启用车辆。如果实际承重不够请联系项目经理', 1, 'N', 'N', 'N', 'N', 'Y', '2023-10-07 13:13:51', '2023-10-07 13:13:51', NULL, NULL);
INSERT INTO `robot_error_mapping` VALUES (1710525747318169602, '10073', '10073', 1, '当前AGV已有15天未充满，强制充满中', '无需特殊处理，等待AGV充满', 1, 'N', 'N', 'N', 'N', 'Y', '2023-10-07 13:21:33', '2023-10-07 13:21:33', NULL, NULL);
INSERT INTO `robot_error_mapping` VALUES (1714481542347948034, '10025', '10025', 1, '执行取货任务时，叉车上有托盘', '放弃任务自行恢复，无需操作。', 1, 'N', 'N', 'N', 'N', 'Y', '2023-10-18 11:20:28', '2023-10-18 11:20:28', NULL, NULL);
INSERT INTO `robot_error_mapping` VALUES (1714482609903173634, '10026', '10026', 1, '执行卸货任务时，叉车上无托盘', '放弃任务自行恢复，无需操作。', 1, 'N', 'N', 'N', 'N', 'Y', '2023-10-18 11:24:42', '2023-10-18 11:24:42', NULL, NULL);
INSERT INTO `robot_error_mapping` VALUES (1714482609903173635, '10030', '10030', 1, '盘点拍照未完成，相机通讯失败', '请检查相机通讯连接，等待通讯恢复', 1, 'N', 'N', 'N', 'N', 'Y', '2024-03-28 11:24:42', '2024-03-28 11:24:42', NULL, NULL);
INSERT INTO `robot_error_mapping` VALUES (1714482609903173636, '57006', '57006', 2, '安全激光掉线', '请检查安全激光', 0, 'Y', 'Y', 'N', 'N', 'Y', '2024-03-28 11:24:42', '2024-03-28 11:24:42', NULL, NULL);
INSERT INTO `robot_error_mapping` VALUES (1714482609903173637, '59001', '59001', 2, '扫码失败', '扫码失败', 0, 'N', 'N', 'N', 'N', 'Y', '2024-08-16 13:42:32', '2024-08-16 13:42:32', NULL, NULL);
INSERT INTO `robot_error_mapping` VALUES (1714482609903173638, '58001', '58001', 2, '托盘掉落', '托盘掉落', 0, 'N', 'N', 'N', 'N', 'Y', '2024-08-16 13:42:56', '2024-08-16 13:42:56', NULL, NULL);
INSERT INTO `robot_error_mapping` VALUES (1714482609903173639, '57012', '57012', 2, 'camera模块ping不通', 'camera模块ping不通', 0, 'N', 'N', 'N', 'N', 'Y', '2024-08-16 13:43:26', '2024-08-16 13:43:26', NULL, NULL);
INSERT INTO `robot_error_mapping` VALUES (1714482609903173640, '57011', '57011', 2, 'io模块ping不通', 'io模块ping不通', 0, 'N', 'N', 'N', 'N', 'Y', '2024-08-16 13:43:54', '2024-08-16 13:43:54', NULL, NULL);
INSERT INTO `robot_error_mapping` VALUES (1714482609903173641, '57010', '57010', 2, '网口网关ping不通', '网口网关ping不通', 0, 'N', 'N', 'N', 'N', 'Y', '2024-08-16 13:44:22', '2024-08-16 13:44:22', NULL, NULL);
INSERT INTO `robot_error_mapping` VALUES (1714482609903173642, '57009', '57009', 2, '定位数据超时', '定位数据超时', 0, 'N', 'N', 'N', 'N', 'Y', '2024-08-16 13:44:57', '2024-08-16 13:44:57', NULL, NULL);
INSERT INTO `robot_error_mapping` VALUES (1714482609903173643, '57008', '57008', 2, 'imu数据超时', 'imu数据超时', 0, 'N', 'N', 'N', 'N', 'Y', '2024-08-16 13:45:21', '2024-08-16 13:45:21', NULL, NULL);
INSERT INTO `robot_error_mapping` VALUES (1714482609903173644, '57007', '57007', 2, '安全激光NO_OUTPUT_ERROR', '安全激光NO_OUTPUT_ERROR', 0, 'N', 'N', 'N', 'N', 'Y', '2024-08-16 13:45:48', '2024-08-16 13:45:48', NULL, NULL);
INSERT INTO `robot_error_mapping` VALUES (1714482609903173645, '57005', '57005', 2, '安全激光TEMPERATURE_HIGH_ERROR', '安全激光TEMPERATURE_HIGH_ERROR', 0, 'N', 'N', 'N', 'N', 'Y', '2024-08-16 13:47:01', '2024-08-16 13:47:01', NULL, NULL);
INSERT INTO `robot_error_mapping` VALUES (1714482609903173646, '57004', '57004', 2, '安全激光MOTOR_STALL_ERROR', '安全激光MOTOR_STALL_ERROR', 0, 'N', 'N', 'N', 'N', 'Y', '2024-08-16 13:47:24', '2024-08-16 13:47:24', NULL, NULL);
INSERT INTO `robot_error_mapping` VALUES (1714482609903173647, '57003', '57003', 2, '安全激光LOW_POWER_ERROR', '安全激光LOW_POWER_ERROR', 0, 'N', 'N', 'N', 'N', 'Y', '2024-08-16 13:47:46', '2024-08-16 13:47:46', NULL, NULL);
INSERT INTO `robot_error_mapping` VALUES (1714482609903173648, '57002', '57002', 2, '车体倾斜错误', '车体倾斜错误', 0, 'N', 'N', 'N', 'N', 'Y', '2024-08-16 13:48:09', '2024-08-16 13:48:09', NULL, NULL);
INSERT INTO `robot_error_mapping` VALUES (1714482609903173649, '57001', '57001', 2, '安全激光错误', '安全激光错误', 0, 'N', 'N', 'N', 'N', 'Y', '2024-08-16 13:48:34', '2024-08-16 13:48:34', NULL, NULL);
INSERT INTO `robot_error_mapping` VALUES (1714482609903173650, '56038', '56038', 2, '接触器 3黏连', '接触器 3黏连', 0, 'N', 'N', 'N', 'N', 'Y', '2024-08-16 13:49:06', '2024-08-16 13:49:06', NULL, NULL);
INSERT INTO `robot_error_mapping` VALUES (1714482609903173651, '56037', '56037', 2, '接触器 3黏连', '接触器 3黏连', 0, 'N', 'N', 'N', 'N', 'Y', '2024-08-16 13:49:28', '2024-08-16 13:49:28', NULL, NULL);
INSERT INTO `robot_error_mapping` VALUES (1714482609903173652, '56036', '56036', 2, '接触器 2黏连', '接触器 2黏连', 0, 'N', 'N', 'N', 'N', 'Y', '2024-08-16 13:49:50', '2024-08-16 13:49:50', NULL, NULL);
INSERT INTO `robot_error_mapping` VALUES (1714482609903173653, '56035', '56035', 2, '接触器 1 黏连', '接触器 1 黏连', 0, 'N', 'N', 'N', 'N', 'Y', '2024-08-16 13:50:17', '2024-08-16 13:50:17', NULL, NULL);
INSERT INTO `robot_error_mapping` VALUES (1714482609903173654, '56034', '56034', 2, '内部通讯故障', '内部通讯故障', 0, 'N', 'N', 'N', 'N', 'Y', '2024-08-16 13:50:40', '2024-08-16 13:50:40', NULL, NULL);
INSERT INTO `robot_error_mapping` VALUES (1714482609903173655, '56033', '56033', 2, '外部通讯故障', '外部通讯故障', 0, 'N', 'N', 'N', 'N', 'Y', '2024-08-16 13:51:00', '2024-08-16 13:51:00', NULL, NULL);
INSERT INTO `robot_error_mapping` VALUES (1714482609903173656, '56032', '56032', 2, '高压互锁故障', '高压互锁故障', 0, 'N', 'N', 'N', 'N', 'Y', '2024-08-16 13:51:20', '2024-08-16 13:51:20', NULL, NULL);
INSERT INTO `robot_error_mapping` VALUES (1714482609903173657, '56031', '56031', 2, '绝缘过低', '绝缘过低', 0, 'N', 'N', 'N', 'N', 'Y', '2024-08-16 13:51:41', '2024-08-16 13:51:41', NULL, NULL);
INSERT INTO `robot_error_mapping` VALUES (1714482609903173658, '56030', '56030', 2, 'soc过低', 'soc过低', 0, 'N', 'N', 'N', 'N', 'Y', '2024-08-16 13:52:00', '2024-08-16 13:52:00', NULL, NULL);
INSERT INTO `robot_error_mapping` VALUES (1714482609903173659, '56029', '56029', 2, '温差过大', '温差过大', 0, 'N', 'N', 'N', 'N', 'Y', '2024-08-16 13:52:22', '2024-08-16 13:52:22', NULL, NULL);
INSERT INTO `robot_error_mapping` VALUES (1714482609903173660, '56028', '56028', 2, '温度过低', '温度过低', 0, 'N', 'N', 'N', 'N', 'Y', '2024-08-16 13:52:47', '2024-08-16 13:52:47', NULL, NULL);
INSERT INTO `robot_error_mapping` VALUES (1714482609903173661, '56027', '56027', 2, '温度过高', '温度过高', 0, 'N', 'N', 'N', 'N', 'Y', '2024-08-16 13:53:11', '2024-08-16 13:53:11', NULL, NULL);
INSERT INTO `robot_error_mapping` VALUES (1714482609903173662, '56026', '56026', 2, '充电过流', '充电过流', 0, 'N', 'N', 'N', 'N', 'Y', '2024-08-16 13:53:31', '2024-08-16 13:53:31', NULL, NULL);
INSERT INTO `robot_error_mapping` VALUES (1714482609903173663, '56025', '56025', 2, '放电过流', '放电过流', 0, 'N', 'N', 'N', 'N', 'Y', '2024-08-16 13:53:52', '2024-08-16 13:53:52', NULL, NULL);
INSERT INTO `robot_error_mapping` VALUES (1714482609903173664, '56024', '56024', 2, '单体压差大', '单体压差大', 0, 'N', 'N', 'N', 'N', 'Y', '2024-08-16 13:54:10', '2024-08-16 13:54:10', NULL, NULL);
INSERT INTO `robot_error_mapping` VALUES (1714482609903173665, '56023', '56023', 2, '总电压欠压', '总电压欠压', 0, 'N', 'N', 'N', 'N', 'Y', '2024-08-16 13:54:27', '2024-08-16 13:54:27', NULL, NULL);
INSERT INTO `robot_error_mapping` VALUES (1714482609903173666, '56022', '56022', 2, '总电压过压', '总电压过压', 0, 'N', 'N', 'N', 'N', 'Y', '2024-08-16 13:54:54', '2024-08-16 13:54:54', NULL, NULL);
INSERT INTO `robot_error_mapping` VALUES (1714482609903173667, '56021', '56021', 2, '单体欠压', '单体欠压', 0, 'N', 'N', 'N', 'N', 'Y', '2024-08-16 13:55:16', '2024-08-16 13:55:16', NULL, NULL);
INSERT INTO `robot_error_mapping` VALUES (1714482609903173668, '56020', '56020', 2, '单体过压', '单体过压', 0, 'N', 'N', 'N', 'N', 'Y', '2024-08-16 13:55:36', '2024-08-16 13:55:36', NULL, NULL);
INSERT INTO `robot_error_mapping` VALUES (1714482609903173669, '56019', '56019', 2, '充电座温度传感器故障', '充电座温度传感器故障', 0, 'N', 'N', 'N', 'N', 'Y', '2024-08-16 13:55:56', '2024-08-16 13:55:56', NULL, NULL);
INSERT INTO `robot_error_mapping` VALUES (1714482609903173670, '56018', '56018', 2, '充电座温度过高故障', '充电座温度过高故障', 0, 'N', 'N', 'N', 'N', 'Y', '2024-08-16 13:56:14', '2024-08-16 13:56:14', NULL, NULL);
INSERT INTO `robot_error_mapping` VALUES (1714482609903173671, '56017', '56017', 2, '放电继电器故障', '放电继电器故障', 0, 'N', 'N', 'N', 'N', 'Y', '2024-08-16 13:56:32', '2024-08-16 13:56:32', NULL, NULL);
INSERT INTO `robot_error_mapping` VALUES (1714482609903173672, '56016', '56016', 2, '总压过高故障', '总压过高故障', 0, 'N', 'N', 'N', 'N', 'Y', '2024-08-16 13:57:08', '2024-08-16 13:57:08', NULL, NULL);
INSERT INTO `robot_error_mapping` VALUES (1714482609903173673, '56015', '56015', 2, '总压过低故障', '总压过低故障', 0, 'N', 'N', 'N', 'N', 'Y', '2024-08-16 13:57:33', '2024-08-16 13:57:33', NULL, NULL);
INSERT INTO `robot_error_mapping` VALUES (1714482609903173674, '56014', '56014', 2, '单体温度传感器故障', '单体温度传感器故障', 0, 'N', 'N', 'N', 'N', 'Y', '2024-08-16 13:57:53', '2024-08-16 13:57:53', NULL, NULL);
INSERT INTO `robot_error_mapping` VALUES (1714482609903173675, '56013', '56013', 2, '模块失联故障', '模块失联故障', 0, 'N', 'N', 'N', 'N', 'Y', '2024-08-16 13:58:13', '2024-08-16 13:58:13', NULL, NULL);
INSERT INTO `robot_error_mapping` VALUES (1714482609903173676, '56012', '56012', 2, '放电电流过大故障', '放电电流过大故障', 0, 'N', 'N', 'N', 'N', 'Y', '2024-08-16 13:58:34', '2024-08-16 13:58:34', NULL, NULL);
INSERT INTO `robot_error_mapping` VALUES (1714482609903173677, '56011', '56011', 2, '回馈电流过大故障', '回馈电流过大故障', 0, 'N', 'N', 'N', 'N', 'Y', '2024-08-16 13:58:52', '2024-08-16 13:58:52', NULL, NULL);
INSERT INTO `robot_error_mapping` VALUES (1714482609903173678, '56010', '56010', 2, '快充电流过大故障', '快充电流过大故障', 0, 'N', 'N', 'N', 'N', 'Y', '2024-08-16 13:59:09', '2024-08-16 13:59:09', NULL, NULL);
INSERT INTO `robot_error_mapping` VALUES (1714482609903173679, '56009', '56009', 2, 'soc过低故障', 'soc过低故障', 0, 'N', 'N', 'N', 'N', 'Y', '2024-08-16 14:00:01', '2024-08-16 14:00:01', NULL, NULL);
INSERT INTO `robot_error_mapping` VALUES (1714482609903173680, '56008', '56008', 2, '单体温度差故障', '单体温度差故障', 0, 'N', 'N', 'N', 'N', 'Y', '2024-08-16 14:00:19', '2024-08-16 14:00:19', NULL, NULL);
INSERT INTO `robot_error_mapping` VALUES (1714482609903173681, '56007', '56007', 2, '单体压差故障', '单体压差故障', 0, 'N', 'N', 'N', 'N', 'Y', '2024-08-16 14:00:40', '2024-08-16 14:00:40', NULL, NULL);
INSERT INTO `robot_error_mapping` VALUES (1714482609903173682, '56006', '56006', 2, '单体电压过高故障', '单体电压过高故障', 0, 'N', 'N', 'N', 'N', 'Y', '2024-08-16 14:00:56', '2024-08-16 14:00:56', NULL, NULL);
INSERT INTO `robot_error_mapping` VALUES (1714482609903173683, '56005', '56005', 2, '单体电压过低故障', '单体电压过低故障', 0, 'N', 'N', 'N', 'N', 'Y', '2024-08-16 14:01:12', '2024-08-16 14:01:12', NULL, NULL);
INSERT INTO `robot_error_mapping` VALUES (1714482609903173684, '56004', '56004', 2, '单体电池放电温度高故障', '单体电池放电温度高故障', 0, 'N', 'N', 'N', 'N', 'Y', '2024-08-16 14:01:29', '2024-08-16 14:01:29', NULL, NULL);
INSERT INTO `robot_error_mapping` VALUES (1714482609903173685, '56003', '56003', 2, '单体电池放电温度低故障', '单体电池放电温度低故障', 0, 'N', 'N', 'N', 'N', 'Y', '2024-08-16 14:01:46', '2024-08-16 14:01:46', NULL, NULL);
INSERT INTO `robot_error_mapping` VALUES (1714482609903173686, '56002', '56002', 2, '单体电池充电温度高故障', '单体电池充电温度高故障', 0, 'N', 'N', 'N', 'N', 'Y', '2024-08-16 14:02:04', '2024-08-16 14:02:04', NULL, NULL);
INSERT INTO `robot_error_mapping` VALUES (1714482609903173687, '56001', '56001', 2, '单体电池充电温度低故障', '单体电池充电温度低故障', 0, 'N', 'N', 'N', 'N', 'Y', '2024-08-16 14:02:23', '2024-08-16 14:02:23', NULL, NULL);
INSERT INTO `robot_error_mapping` VALUES (1714482609903173688, '55754', '55754', 2, '插齿升降错误', '插齿升降错误', 0, 'N', 'N', 'N', 'N', 'Y', '2024-08-16 14:02:42', '2024-08-16 14:02:42', NULL, NULL);
INSERT INTO `robot_error_mapping` VALUES (1714482609903173689, '55386', '55386', 2, '下发的电机宽度超过范围', '下发的电机宽度超过范围', 0, 'N', 'N', 'N', 'N', 'Y', '2024-08-16 14:03:44', '2024-08-16 14:03:44', NULL, NULL);
INSERT INTO `robot_error_mapping` VALUES (1714482609903173690, '55384', '55384', 2, '电机返回值错误', '电机返回值错误', 0, 'N', 'N', 'N', 'N', 'Y', '2024-08-16 14:04:09', '2024-08-16 14:04:09', NULL, NULL);
INSERT INTO `robot_error_mapping` VALUES (1714482609903173691, '55207', '55207', 2, '下路径不合法', '下路径不合法', 0, 'N', 'N', 'N', 'N', 'Y', '2024-08-16 14:09:49', '2024-08-16 14:09:49', NULL, NULL);
INSERT INTO `robot_error_mapping` VALUES (1714482609903173692, '55079', '55079', 2, '托盘摆放角度过大', '托盘摆放角度过大', 0, 'N', 'N', 'N', 'N', 'Y', '2024-08-16 14:13:39', '2024-08-16 14:13:39', NULL, NULL);
INSERT INTO `robot_error_mapping` VALUES (1825456509236043777, '60001', '52', 2, '卸货前，货物在叉车上位姿不对', '机器人将载托盘等待上游系统发送搬到其他目标仓位。', 0, 'Y', 'N', 'Y', 'Y', 'Y', '2024-08-19 16:55:22', '2024-08-19 16:57:57', NULL, NULL);
INSERT INTO `robot_error_mapping` VALUES (1825456840216961025, '60002', '53', 2, '卸货后的容器位姿不符合要求', '系统自动生成到异常区的任务并指派机器人执行。', 0, 'Y', 'N', 'Y', 'Y', 'Y', '2024-08-19 16:56:41', '2024-09-04 10:34:34', NULL, NULL);
INSERT INTO `robot_error_mapping` VALUES (1828695667153657858, '10040', '10040', 1, '匹配不到合适的异常推荐路线策略或仓位', '请人工将任务目标仓位的货物拉倒异常区。并设置异常推荐路线策略或检查在异常库区仓位是否已满。', 0, 'N', 'N', 'N', 'N', 'Y', '2024-08-28 15:26:37', '2025-02-14 15:34:04', NULL, NULL);
INSERT INTO `robot_error_mapping` VALUES (1831162664915927042, '60003', '60003', 2, '托盘识别超范围', '托盘识别超范围', 0, 'Y', 'Y', 'N', 'N', 'Y', '2024-09-04 10:49:35', '2024-09-04 10:49:35', NULL, NULL);
INSERT INTO `robot_error_mapping` VALUES (1831162811976613889, '60004', '60004', 2, '托盘识别无法识别', '托盘识别无法识别', 0, 'Y', 'Y', 'N', 'N', 'Y', '2024-09-04 10:50:10', '2024-09-04 10:52:27', NULL, NULL);
INSERT INTO `robot_error_mapping` VALUES (1831163185244504065, '60005', '60005', 2, '反光膜识别超范围', '反光膜识别超范围', 0, 'Y', 'N', 'Y', 'Y', 'Y', '2024-09-04 10:51:39', '2024-09-04 10:51:39', NULL, NULL);
INSERT INTO `robot_error_mapping` VALUES (1831163314642976769, '60006', '60006', 2, '反光膜识别无法识别', '反光膜识别无法识别', 0, 'Y', 'N', 'Y', 'Y', 'Y', '2024-09-04 10:52:10', '2024-09-04 10:53:50', NULL, NULL);
INSERT INTO `robot_error_mapping` VALUES (1890304430246776833, '10027', '10027', 1, '无可用机器人', '无可用机器人执行该任务，请检查机器人是否被禁用、电量过低或正在执行充电任务。', 0, 'N', 'N', 'N', 'N', 'Y', '2025-02-14 15:37:51', '2025-02-14 17:04:11', NULL, NULL);

-- ----------------------------
-- Table structure for robot_host
-- ----------------------------
DROP TABLE IF EXISTS `robot_host`;
CREATE TABLE `robot_host`  (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `ip` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL,
  `port` int(11) NOT NULL,
  PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 202 CHARACTER SET = utf8 COLLATE = utf8_general_ci ROW_FORMAT = DYNAMIC;

-- ----------------------------
-- Records of robot_host
-- ----------------------------
INSERT INTO `robot_host` VALUES (201, '10.168.1.168', 19001);

-- ----------------------------
-- Table structure for robot_move_log
-- ----------------------------
DROP TABLE IF EXISTS `robot_move_log`;
CREATE TABLE `robot_move_log`  (
  `taskId` int(11) NOT NULL,
  `robotId` int(11) NOT NULL,
  `qrocde` int(255) NOT NULL,
  `createTime` datetime NULL DEFAULT NULL,
  `taskStatus` tinyint(8) NOT NULL DEFAULT 0 COMMENT '0下发 1成功 2失败',
  `batchNumber` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '外部id',
  `finishTime` datetime NULL DEFAULT NULL,
  PRIMARY KEY (`taskId`) USING BTREE,
  UNIQUE INDEX `idx_batchNumber`(`batchNumber`) USING BTREE
) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci ROW_FORMAT = DYNAMIC;

-- ----------------------------
-- Records of robot_move_log
-- ----------------------------

-- ----------------------------
-- Table structure for robot_pick_qrcode
-- ----------------------------
DROP TABLE IF EXISTS `robot_pick_qrcode`;
CREATE TABLE `robot_pick_qrcode`  (
  `conf_id` int(11) NOT NULL COMMENT '机器人类型',
  `rotation_shelf_qrcode_id` int(11) NOT NULL COMMENT '取卸货点ID',
  `x` int(11) NOT NULL COMMENT '修订后的机器人取卸货点X坐标',
  `y` int(11) NOT NULL COMMENT '修订后的机器人取卸货点Y坐标',
  `shelf_qrcode_x` int(11) NOT NULL COMMENT '修订后的道路取卸货点X坐标',
  `shelf_qrcode_y` int(11) NOT NULL COMMENT '修订后的道路取卸货点Y坐标',
  PRIMARY KEY (`conf_id`, `rotation_shelf_qrcode_id`) USING BTREE
) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_general_ci ROW_FORMAT = DYNAMIC;

-- ----------------------------
-- Records of robot_pick_qrcode
-- ----------------------------

-- ----------------------------
-- Table structure for robot_speed_a
-- ----------------------------
DROP TABLE IF EXISTS `robot_speed_a`;
CREATE TABLE `robot_speed_a`  (
  `robotConfId` int(11) NOT NULL,
  `accelerate` float NOT NULL,
  `slowdown` float NOT NULL,
  `backAccelerate` float NOT NULL,
  `backSlowdown` float NOT NULL,
  PRIMARY KEY (`robotConfId`) USING BTREE
) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_general_ci ROW_FORMAT = DYNAMIC;

-- ----------------------------
-- Records of robot_speed_a
-- ----------------------------

-- ----------------------------
-- Table structure for robot_start_rest_position
-- ----------------------------
DROP TABLE IF EXISTS `robot_start_rest_position`;
CREATE TABLE `robot_start_rest_position`  (
  `id` int(11) NOT NULL AUTO_INCREMENT COMMENT 'id',
  `qrcode_id` int(11) NOT NULL COMMENT '点位id',
  `degree` float(8, 4) NULL DEFAULT NULL COMMENT '执行的机器人ID',
  `robot_id` int(8) NULL DEFAULT NULL COMMENT '机器人id',
  `conf_ids` varchar(60) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '机器人类型,forklift_conf.id',
  `task_id` int(30) NULL DEFAULT NULL COMMENT '任务id',
  `occupy_by_robot_id` int(11) NULL DEFAULT NULL COMMENT '占用节点的机器人id',
  `type` tinyint(4) NULL DEFAULT NULL COMMENT '类型:1起始位,2休息位',
  `status` tinyint(4) NOT NULL DEFAULT 0 COMMENT '状态,默认0空闲,1预锁,2占用 ',
  `status_change_start_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '状态开始时间',
  `update_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '更新时间',
  `create_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
  `area_id` int(11) NOT NULL COMMENT '库房ID',
  PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 3 CHARACTER SET = utf8 COLLATE = utf8_general_ci COMMENT = '机器人起始位休息位表' ROW_FORMAT = DYNAMIC;

-- ----------------------------
-- Records of robot_start_rest_position
-- ----------------------------
INSERT INTO `robot_start_rest_position` VALUES (1, 22, 89.9147, 101, '102', 56822817, 101, 2, 2, '2025-02-19 15:47:29', '2025-02-19 15:47:29', '2025-02-18 10:48:30', 1);
INSERT INTO `robot_start_rest_position` VALUES (2, 53, 93.2201, 201, '102', 57134065, 201, 2, 2, '2025-02-19 15:52:47', '2025-02-19 15:52:47', '2025-02-18 10:48:42', 2);

-- ----------------------------
-- Table structure for robot_tag
-- ----------------------------
DROP TABLE IF EXISTS `robot_tag`;
CREATE TABLE `robot_tag`  (
  `id` bigint(20) NOT NULL AUTO_INCREMENT,
  `tag` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '标签',
  `created_time` datetime NULL DEFAULT NULL COMMENT '创建时间',
  `created_by` bigint(20) NULL DEFAULT NULL COMMENT '创建人id',
  `modified_time` datetime NULL DEFAULT NULL COMMENT '修改时间',
  `modified_by` bigint(20) NULL DEFAULT NULL COMMENT '最后修改人id',
  PRIMARY KEY (`id`) USING BTREE,
  UNIQUE INDEX `uq_tag`(`tag`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8 COLLATE = utf8_general_ci COMMENT = '机器人tag定义表' ROW_FORMAT = DYNAMIC;

-- ----------------------------
-- Records of robot_tag
-- ----------------------------

-- ----------------------------
-- Table structure for rotation_speed
-- ----------------------------
DROP TABLE IF EXISTS `rotation_speed`;
CREATE TABLE `rotation_speed`  (
  `robotConf` int(11) NOT NULL,
  `fromDegree` float NOT NULL,
  `toDegree` float NOT NULL,
  `type` int(1) NOT NULL DEFAULT 1 COMMENT '类型，1为前进，2为后退',
  `speed` float(11, 4) NULL DEFAULT NULL,
  PRIMARY KEY (`robotConf`, `fromDegree`, `toDegree`, `type`) USING BTREE
) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_general_ci ROW_FORMAT = DYNAMIC;

-- ----------------------------
-- Records of rotation_speed
-- ----------------------------

-- ----------------------------
-- Table structure for safe_laser
-- ----------------------------
DROP TABLE IF EXISTS `safe_laser`;
CREATE TABLE `safe_laser`  (
  `id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '主键id',
  `name` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '安全激光名称',
  `conf_id` int(11) NOT NULL COMMENT '机器人类型ID',
  `device_id` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '安全激光设备id',
  `ip` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '安全激光设备id',
  `x_index` int(11) NULL DEFAULT NULL COMMENT 'x轴mm',
  `y_index` int(11) NULL DEFAULT NULL COMMENT 'y轴mm',
  `degree` float(11, 4) NULL DEFAULT NULL COMMENT '安全激光角度',
  `created_time` datetime NULL DEFAULT NULL COMMENT '创建时间',
  `modified_time` datetime NULL DEFAULT NULL COMMENT '修改时间',
  `created_by` bigint(20) NULL DEFAULT NULL COMMENT '创建人id',
  `modified_by` bigint(20) NULL DEFAULT NULL COMMENT '最后修改人id',
  PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8 COLLATE = utf8_general_ci ROW_FORMAT = COMPACT;

-- ----------------------------
-- Records of safe_laser
-- ----------------------------

-- ----------------------------
-- Table structure for save_task
-- ----------------------------
DROP TABLE IF EXISTS `save_task`;
CREATE TABLE `save_task`  (
  `id` int(11) NOT NULL AUTO_INCREMENT COMMENT '主键ID',
  `saveCode` varchar(30) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '波次编码',
  `domainId` int(11) NOT NULL COMMENT '区域ID',
  `type` int(2) NULL DEFAULT NULL COMMENT '类型（0：整件；1：单品；2：多品）',
  `status` int(2) NULL DEFAULT 0 COMMENT '状态  0未领取   1已领取   ',
  `secondPick` int(2) NULL DEFAULT 0 COMMENT '是否需要二次分拣   0不需要   1需要',
  `pickContainerId` int(11) NULL DEFAULT NULL COMMENT '分拣容器',
  `secondPickContainerId` int(11) NULL DEFAULT NULL COMMENT '二次分拣容器',
  PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8 COLLATE = utf8_general_ci ROW_FORMAT = DYNAMIC;

-- ----------------------------
-- Records of save_task
-- ----------------------------

-- ----------------------------
-- Table structure for save_task_detail
-- ----------------------------
DROP TABLE IF EXISTS `save_task_detail`;
CREATE TABLE `save_task_detail`  (
  `id` int(11) NOT NULL COMMENT '主键ID',
  `save_id` int(11) NULL DEFAULT NULL COMMENT '波次任务ID',
  `materialId` int(11) NULL DEFAULT NULL COMMENT '获取ID',
  `shelfBoxId` int(11) NULL DEFAULT NULL COMMENT '仓位ID',
  `number` int(11) NULL DEFAULT NULL COMMENT '数量',
  PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_general_ci ROW_FORMAT = DYNAMIC;

-- ----------------------------
-- Records of save_task_detail
-- ----------------------------

-- ----------------------------
-- Table structure for schema_info
-- ----------------------------
DROP TABLE IF EXISTS `schema_info`;
CREATE TABLE `schema_info`  (
  `version` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '数据库schema的版本号'
) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_general_ci ROW_FORMAT = DYNAMIC;

-- ----------------------------
-- Records of schema_info
-- ----------------------------
INSERT INTO `schema_info` VALUES ('2.7.24');

-- ----------------------------
-- Table structure for sdc_device
-- ----------------------------
DROP TABLE IF EXISTS `sdc_device`;
CREATE TABLE `sdc_device`  (
  `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT 'id',
  `code` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '设备编号',
  `name` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '设备名称',
  `remark` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '备注',
  `enable` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '是否启用',
  `created_time` datetime NULL DEFAULT NULL COMMENT '创建时间',
  `modified_time` datetime NULL DEFAULT NULL COMMENT '修改时间',
  `created_by` bigint(20) NULL DEFAULT NULL COMMENT '创建人id',
  `modified_by` bigint(20) NULL DEFAULT NULL COMMENT '最后修改人id',
  PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8 COLLATE = utf8_general_ci ROW_FORMAT = DYNAMIC;

-- ----------------------------
-- Records of sdc_device
-- ----------------------------

-- ----------------------------
-- Table structure for sdc_device_control_point
-- ----------------------------
DROP TABLE IF EXISTS `sdc_device_control_point`;
CREATE TABLE `sdc_device_control_point`  (
  `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT 'id',
  `sdc_device_id` bigint(20) NOT NULL COMMENT 'SDC设备id',
  `shelf_box_qrcode` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '仓位qrcode',
  `offset` int(11) NULL DEFAULT 1 COMMENT '位置顺序',
  `enable` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '是否启用',
  `created_time` datetime NULL DEFAULT NULL COMMENT '创建时间',
  `modified_time` datetime NULL DEFAULT NULL COMMENT '修改时间',
  `created_by` bigint(20) NULL DEFAULT NULL COMMENT '创建人id',
  `modified_by` bigint(20) NULL DEFAULT NULL COMMENT '最后修改人id',
  PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8 COLLATE = utf8_general_ci ROW_FORMAT = DYNAMIC;

-- ----------------------------
-- Records of sdc_device_control_point
-- ----------------------------

-- ----------------------------
-- Table structure for sftp_file
-- ----------------------------
DROP TABLE IF EXISTS `sftp_file`;
CREATE TABLE `sftp_file`  (
  `id` int(255) NOT NULL AUTO_INCREMENT COMMENT 'ID',
  `name` varchar(20) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '文件的名称',
  `findTime` date NOT NULL COMMENT '扫描的时间',
  `doneTime` timestamp NULL DEFAULT NULL COMMENT '完成导入的时间',
  `status` int(11) NOT NULL COMMENT '当前状态1-扫描 2-开始导入 3-导入成功 4-导入失败',
  `remark` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL,
  `type` int(11) NULL DEFAULT NULL COMMENT '类型， 1-入库 2-出库',
  `validNumber` int(11) NULL DEFAULT 0 COMMENT '成功的订单数量',
  `invalidNumber` int(11) NULL DEFAULT 0 COMMENT '失败的订单数量',
  `ignore` varchar(1) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT 'N' COMMENT '管理员处理操作，Y-忽略错误， N-未处理',
  `modifyTime` int(11) NULL DEFAULT NULL COMMENT '最后更新时间',
  PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8 COLLATE = utf8_general_ci ROW_FORMAT = DYNAMIC;

-- ----------------------------
-- Records of sftp_file
-- ----------------------------

-- ----------------------------
-- Table structure for shelf
-- ----------------------------
DROP TABLE IF EXISTS `shelf`;
CREATE TABLE `shelf`  (
  `id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '货架Id',
  `area_id` int(11) NULL DEFAULT 1 COMMENT '区域ID， 同样区域的放置相同ID， 不同的代表互相不通',
  `dic_id` bigint(20) NULL DEFAULT 1 COMMENT '货架类型id',
  `length` int(11) NULL DEFAULT NULL COMMENT '货架横向长度，单位mm',
  `width` int(11) NULL DEFAULT NULL COMMENT '货架宽度，单位mm',
  `height` int(11) NULL DEFAULT NULL COMMENT '货架高度，单位mm',
  `x_size` int(11) NOT NULL COMMENT 'x方向可放托盘数',
  `y_size` int(11) NULL DEFAULT 1 COMMENT 'y方向可放托盘数',
  `z_size` int(11) NOT NULL COMMENT '层高数',
  `xs` varchar(700) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '数组，x的横向距离，单位是mm。 示例 1,2,3,4',
  `ys` varchar(700) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '数组，y的距离，单位是mm。 示例 1,2,3,4',
  `zs` varchar(700) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '数组，z离地距离，单位是mm。 示例 1,2,3,4',
  `x` int(11) NOT NULL COMMENT '货架位置x',
  `y` int(11) NOT NULL COMMENT '货架位置y',
  `degree` float(11, 4) NULL DEFAULT 0.0000 COMMENT '货架角度',
  `qrcode` varchar(20) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '货架的二维码标识',
  `label` varchar(5) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '标签',
  `status` int(11) NULL DEFAULT 1 COMMENT '内部仓位的状态，1-全部启用，2-部分启用 3-全部禁用',
  `station_id` bigint(20) NULL DEFAULT NULL COMMENT '工位ID',
  `prior` tinyint(2) NULL DEFAULT 0 COMMENT '是否是优先货架（距离中转货位较近）0否  1是',
  `sort` int(11) NULL DEFAULT NULL COMMENT '排序',
  `created_time` datetime NULL DEFAULT NULL COMMENT '创建时间',
  `modified_time` datetime NULL DEFAULT NULL COMMENT '修改时间',
  `created_by` bigint(20) NULL DEFAULT NULL COMMENT '创建人id',
  `modified_by` bigint(20) NULL DEFAULT NULL COMMENT '最后修改人id',
  PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 22 CHARACTER SET = utf8 COLLATE = utf8_general_ci ROW_FORMAT = DYNAMIC;

-- ----------------------------
-- Records of shelf
-- ----------------------------
INSERT INTO `shelf` VALUES (1, 1, 2, 1200, 1000, 1000, 1, 1, 1, '600', '500', '100', 3390, 2347, 0.0000, '1-001', NULL, 1, NULL, 0, 1, '2025-02-17 18:16:42', '2025-02-17 18:16:42', NULL, NULL);
INSERT INTO `shelf` VALUES (2, 1, 1, 1200, 1000, 1000, 1, 1, 1, '600', '500', '100', 4915, -22110, 0.0000, '1-002', NULL, 1, NULL, 0, 2, '2025-02-17 18:17:45', '2025-02-17 18:17:45', NULL, NULL);
INSERT INTO `shelf` VALUES (3, 1, 1, 1200, 1000, 1000, 1, 1, 1, '600', '500', '100', 11514, -21636, 0.0000, '1-003', NULL, 1, NULL, 0, 3, '2025-02-17 18:17:50', '2025-02-17 18:17:50', NULL, NULL);
INSERT INTO `shelf` VALUES (4, 1, 1, 1200, 1000, 1000, 1, 1, 1, '600', '500', '100', 32952, -12812, 0.0000, '1-004', NULL, 1, NULL, 0, 4, '2025-02-17 18:17:54', '2025-02-17 18:17:54', NULL, NULL);
INSERT INTO `shelf` VALUES (5, 1, 1, 1200, 1000, 1000, 1, 1, 1, '600', '500', '100', 29088, -12776, 0.0000, '1-005', NULL, 1, NULL, 0, 5, '2025-02-17 18:18:00', '2025-02-17 18:18:00', NULL, NULL);
INSERT INTO `shelf` VALUES (6, 1, 1, 1200, 1000, 1000, 1, 1, 1, '600', '500', '100', 24457, -12776, 0.0000, '1-006', NULL, 1, NULL, 0, 6, '2025-02-17 18:18:03', '2025-02-17 18:18:03', NULL, NULL);
INSERT INTO `shelf` VALUES (7, 1, 1, 1200, 1000, 1000, 1, 1, 1, '600', '500', '100', 20738, -12740, 0.0000, '1-007', NULL, 1, NULL, 0, 7, '2025-02-17 18:18:06', '2025-02-17 18:18:06', NULL, NULL);
INSERT INTO `shelf` VALUES (8, 1, 1, 1200, 1000, 1000, 1, 1, 1, '600', '500', '100', 12426, -14344, 90.0000, '1-008', NULL, 1, NULL, 0, 8, '2025-02-17 18:18:14', '2025-02-17 18:18:14', NULL, NULL);
INSERT INTO `shelf` VALUES (9, 1, 1, 1200, 1000, 1000, 1, 1, 1, '600', '500', '100', 12754, -4937, 90.0000, '1-009', NULL, 1, NULL, 0, 9, '2025-02-17 18:18:19', '2025-02-17 18:18:19', NULL, NULL);
INSERT INTO `shelf` VALUES (10, 2, 2, 1200, 1000, 1000, 1, 1, 1, '600', '500', '100', 59387, 21215, 0.0000, '2-010', NULL, 1, NULL, 0, 10, '2025-02-17 18:21:46', '2025-02-17 18:21:46', NULL, NULL);
INSERT INTO `shelf` VALUES (11, 2, 1, 1200, 1000, 1000, 1, 1, 1, '600', '500', '100', 62852, -23525, 0.0000, '2-011', NULL, 1, NULL, 0, 11, '2025-02-17 18:47:11', '2025-02-17 18:47:11', NULL, NULL);
INSERT INTO `shelf` VALUES (12, 2, 1, 1200, 1000, 1000, 1, 1, 1, '600', '500', '100', 58696, -23329, 0.0000, '2-012', NULL, 1, NULL, 0, 12, '2025-02-17 18:47:16', '2025-02-17 18:47:16', NULL, NULL);
INSERT INTO `shelf` VALUES (13, 2, 1, 1200, 1000, 1000, 1, 1, 1, '600', '500', '100', 52500, -23094, 0.0000, '2-013', NULL, 1, NULL, 0, 13, '2025-02-17 18:47:19', '2025-02-17 18:47:19', NULL, NULL);
INSERT INTO `shelf` VALUES (14, 2, 1, 1200, 1000, 1000, 1, 1, 1, '600', '500', '100', 4578, -2701, 0.0000, '2-014', NULL, 1, NULL, 0, 14, '2025-02-17 18:47:24', '2025-02-17 18:47:24', NULL, NULL);
INSERT INTO `shelf` VALUES (15, 2, 1, 1200, 1000, 1000, 1, 1, 1, '600', '500', '100', 11637, -3094, 0.0000, '2-015', NULL, 1, NULL, 0, 15, '2025-02-17 18:47:27', '2025-02-17 18:47:27', NULL, NULL);
INSERT INTO `shelf` VALUES (16, 2, 1, 1200, 1000, 1000, 1, 1, 1, '600', '500', '100', 20500, -2976, 0.0000, '2-016', NULL, 1, NULL, 0, 16, '2025-02-17 18:47:31', '2025-02-17 18:47:31', NULL, NULL);
INSERT INTO `shelf` VALUES (17, 2, 1, 1200, 1000, 1000, 1, 1, 1, '600', '500', '100', 27362, -3721, 0.0000, '2-017', NULL, 1, NULL, 0, 17, '2025-02-17 18:47:34', '2025-02-17 18:47:34', NULL, NULL);
INSERT INTO `shelf` VALUES (18, 2, 1, 1200, 1000, 1000, 1, 1, 1, '600', '500', '100', 41734, 4928, 88.0000, '2-018', NULL, 1, NULL, 0, 18, '2025-02-17 18:48:09', '2025-02-17 18:48:09', NULL, NULL);
INSERT INTO `shelf` VALUES (19, 2, 1, 1200, 1000, 1000, 1, 1, 1, '600', '500', '100', 41779, 11460, 88.0000, '2-019', NULL, 1, NULL, 0, 19, '2025-02-17 18:48:14', '2025-02-17 18:48:14', NULL, NULL);
INSERT INTO `shelf` VALUES (20, 2, 1, 1200, 1000, 1000, 1, 1, 1, '600', '500', '100', 41599, -14893, 93.0000, '2-020', NULL, 1, NULL, 0, 20, '2025-02-17 18:48:31', '2025-02-17 18:48:31', NULL, NULL);
INSERT INTO `shelf` VALUES (21, 2, 1, 1200, 1000, 1000, 1, 1, 1, '600', '500', '100', 41239, -8091, 93.0000, '2-021', NULL, 1, NULL, 0, 21, '2025-02-17 18:48:35', '2025-02-17 18:48:35', NULL, NULL);

-- ----------------------------
-- Table structure for shelf_box
-- ----------------------------
DROP TABLE IF EXISTS `shelf_box`;
CREATE TABLE `shelf_box`  (
  `id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '货位Id',
  `area_id` int(11) NULL DEFAULT 1 COMMENT '和shelf一样的区域id',
  `shelf_id` bigint(20) NOT NULL COMMENT '货架Id',
  `dic_id` bigint(20) NOT NULL DEFAULT 1 COMMENT '货架的类型的id',
  `x_index` int(11) NOT NULL COMMENT 'x方向第x个（相对中转货位平面横轴）',
  `y_index` int(11) NOT NULL COMMENT 'y方向第x个（相对中转货位平面竖轴）',
  `z_index` int(11) NOT NULL COMMENT 'z方向第x个（相对中转货位立体竖轴）',
  `x_offset` int(11) NOT NULL COMMENT 'x方向第xcm偏移量(mm)',
  `y_offset` int(11) NOT NULL COMMENT 'y方向第xcm偏移量(mm)',
  `z_offset` int(11) NOT NULL COMMENT 'z方向第xcm偏移量(mm)',
  `default_z_offset` int(11) NULL DEFAULT NULL COMMENT '初始化的高度(mm)',
  `x_wirehouse` int(11) NOT NULL COMMENT '最近二维码的x',
  `y_wirehouse` int(11) NOT NULL COMMENT '最新二维码的y',
  `station_id` bigint(20) NULL DEFAULT NULL COMMENT '工位ID',
  `qrcode` varchar(20) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '仓位标识',
  `index` int(11) NULL DEFAULT NULL COMMENT '货架的第几个仓位',
  `box_type` int(11) NULL DEFAULT 1 COMMENT '允许的货箱规则',
  `enable` varchar(1) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT 'Y' COMMENT 'Y-启用， N-禁用',
  `length` float(20, 0) NULL DEFAULT NULL COMMENT '长',
  `width` float(20, 0) NULL DEFAULT NULL COMMENT '宽',
  `height` float(20, 0) NULL DEFAULT NULL COMMENT '高',
  `limit_weight` float(20, 0) NULL DEFAULT NULL COMMENT '限重 kg',
  `bind_sku` bigint(20) NULL DEFAULT NULL COMMENT '绑定sku',
  `type` tinyint(4) NULL DEFAULT 1 COMMENT '1-代表wms可以使用货位，2代表rcs接驳货位 3升降机缓存区货位 4升降机货位',
  `material_id` bigint(20) NULL DEFAULT NULL COMMENT '绑定sku',
  `fork_adjust` int(5) NULL DEFAULT 150 COMMENT '取卸挑高',
  `name` varchar(16) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '名称',
  `position_type` int(11) NULL DEFAULT NULL COMMENT '仓位类型 1-PAD导铁  圆形图标 2-托盘库位  方形',
  `enable_clamp` int(11) NULL DEFAULT 1 COMMENT '是否抱夹，1：否、2：是',
  `stack` int(11) NULL DEFAULT 1 COMMENT '是否堆叠，1：否、2：是',
  `state_manage` varchar(1) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '是否强制管理仓位状态，Y-调度需管理，N-随系统设置',
  `container_specification` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '容器规格',
  `business_type` int(11) NULL DEFAULT NULL COMMENT '业务类型，定义了机器人到仓位时的操作模板（如识别仓位高度、精准定位等，透传给机器人，由机器人确定使用方式）',
  `created_time` datetime NULL DEFAULT NULL COMMENT '创建时间',
  `modified_time` datetime NULL DEFAULT NULL COMMENT '修改时间',
  `created_by` bigint(20) NULL DEFAULT NULL COMMENT '创建人id',
  `modified_by` bigint(20) NULL DEFAULT NULL COMMENT '最后修改人id',
  PRIMARY KEY (`id`) USING BTREE,
  UNIQUE INDEX `idKey`(`id`) USING BTREE,
  INDEX `sb_shelfId`(`shelf_id`) USING BTREE,
  INDEX `sb_dicId`(`dic_id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 21002 CHARACTER SET = utf8 COLLATE = utf8_general_ci ROW_FORMAT = DYNAMIC;

-- ----------------------------
-- Records of shelf_box
-- ----------------------------
INSERT INTO `shelf_box` VALUES (1001, 1, 1, 2, 1, 1, 1, 600, 500, 100, 100, 3390, 2347, NULL, '1-001-01-1-1', 1, 1, 'Y', 1100, 1000, 100, NULL, NULL, 5, NULL, 150, NULL, NULL, 1, 1, NULL, NULL, NULL, '2025-02-17 18:16:42', '2025-02-17 18:16:42', NULL, NULL);
INSERT INTO `shelf_box` VALUES (2001, 1, 2, 1, 1, 1, 1, 600, 500, 100, 100, 4915, -22110, NULL, '1-002-01-1-1', 1, 1, 'Y', 1100, 1000, 100, NULL, NULL, 1, NULL, 150, NULL, NULL, 1, 1, NULL, NULL, NULL, '2025-02-17 18:17:45', '2025-02-17 18:17:45', NULL, NULL);
INSERT INTO `shelf_box` VALUES (3001, 1, 3, 1, 1, 1, 1, 600, 500, 100, 100, 11514, -21636, NULL, '1-003-01-1-1', 1, 1, 'Y', 1100, 1000, 100, NULL, NULL, 1, NULL, 150, NULL, NULL, 1, 1, NULL, NULL, NULL, '2025-02-17 18:17:50', '2025-02-17 18:17:50', NULL, NULL);
INSERT INTO `shelf_box` VALUES (4001, 1, 4, 1, 1, 1, 1, 600, 500, 100, 100, 32952, -12812, NULL, '1-004-01-1-1', 1, 1, 'Y', 1100, 1000, 100, NULL, NULL, 1, NULL, 150, NULL, NULL, 1, 1, NULL, NULL, NULL, '2025-02-17 18:17:54', '2025-02-17 18:17:54', NULL, NULL);
INSERT INTO `shelf_box` VALUES (5001, 1, 5, 1, 1, 1, 1, 600, 500, 100, 100, 29088, -12776, NULL, '1-005-01-1-1', 1, 1, 'Y', 1100, 1000, 100, NULL, NULL, 1, NULL, 150, NULL, NULL, 1, 1, NULL, NULL, NULL, '2025-02-17 18:18:00', '2025-02-17 18:18:00', NULL, NULL);
INSERT INTO `shelf_box` VALUES (6001, 1, 6, 1, 1, 1, 1, 600, 500, 100, 100, 24457, -12776, NULL, '1-006-01-1-1', 1, 1, 'Y', 1100, 1000, 100, NULL, NULL, 1, NULL, 150, NULL, NULL, 1, 1, NULL, NULL, NULL, '2025-02-17 18:18:03', '2025-02-17 18:18:03', NULL, NULL);
INSERT INTO `shelf_box` VALUES (7001, 1, 7, 1, 1, 1, 1, 600, 500, 100, 100, 20738, -12740, NULL, '1-007-01-1-1', 1, 1, 'Y', 1100, 1000, 100, NULL, NULL, 1, NULL, 150, NULL, NULL, 1, 1, NULL, NULL, NULL, '2025-02-17 18:18:06', '2025-02-17 18:18:06', NULL, NULL);
INSERT INTO `shelf_box` VALUES (8001, 1, 8, 1, 1, 1, 1, 600, 500, 100, 100, 12426, -14344, NULL, '1-008-01-1-1', 1, 1, 'Y', 1100, 1000, 100, NULL, NULL, 1, NULL, 150, NULL, NULL, 1, 1, NULL, NULL, NULL, '2025-02-17 18:18:14', '2025-02-17 18:18:14', NULL, NULL);
INSERT INTO `shelf_box` VALUES (9001, 1, 9, 1, 1, 1, 1, 600, 500, 100, 100, 12754, -4937, NULL, '1-009-01-1-1', 1, 1, 'Y', 1100, 1000, 100, NULL, NULL, 1, NULL, 150, NULL, NULL, 1, 1, NULL, NULL, NULL, '2025-02-17 18:18:19', '2025-02-17 18:18:19', NULL, NULL);
INSERT INTO `shelf_box` VALUES (10001, 2, 10, 2, 1, 1, 1, 600, 500, 100, 100, 59387, 21215, NULL, '2-010-01-1-1', 1, 1, 'Y', 1100, 1000, 100, NULL, NULL, 5, NULL, 150, NULL, NULL, 1, 1, NULL, NULL, NULL, '2025-02-17 18:21:46', '2025-02-17 18:21:46', NULL, NULL);
INSERT INTO `shelf_box` VALUES (11001, 2, 11, 1, 1, 1, 1, 600, 500, 100, 100, 62852, -23525, NULL, '2-011-01-1-1', 1, 1, 'Y', 1100, 1000, 100, NULL, NULL, 1, NULL, 150, NULL, NULL, 1, 1, NULL, NULL, NULL, '2025-02-17 18:47:11', '2025-02-17 18:47:11', NULL, NULL);
INSERT INTO `shelf_box` VALUES (12001, 2, 12, 1, 1, 1, 1, 600, 500, 100, 100, 58696, -23329, NULL, '2-012-01-1-1', 1, 1, 'Y', 1100, 1000, 100, NULL, NULL, 1, NULL, 150, NULL, NULL, 1, 1, NULL, NULL, NULL, '2025-02-17 18:47:16', '2025-02-17 18:47:16', NULL, NULL);
INSERT INTO `shelf_box` VALUES (13001, 2, 13, 1, 1, 1, 1, 600, 500, 100, 100, 52500, -23094, NULL, '2-013-01-1-1', 1, 1, 'Y', 1100, 1000, 100, NULL, NULL, 1, NULL, 150, NULL, NULL, 1, 1, NULL, NULL, NULL, '2025-02-17 18:47:19', '2025-02-17 18:47:19', NULL, NULL);
INSERT INTO `shelf_box` VALUES (14001, 2, 14, 1, 1, 1, 1, 600, 500, 100, 100, 4578, -2701, NULL, '2-014-01-1-1', 1, 1, 'Y', 1100, 1000, 100, NULL, NULL, 1, NULL, 150, NULL, NULL, 1, 1, NULL, NULL, NULL, '2025-02-17 18:47:24', '2025-02-17 18:47:24', NULL, NULL);
INSERT INTO `shelf_box` VALUES (15001, 2, 15, 1, 1, 1, 1, 600, 500, 100, 100, 11637, -3094, NULL, '2-015-01-1-1', 1, 1, 'Y', 1100, 1000, 100, NULL, NULL, 1, NULL, 150, NULL, NULL, 1, 1, NULL, NULL, NULL, '2025-02-17 18:47:27', '2025-02-17 18:47:27', NULL, NULL);
INSERT INTO `shelf_box` VALUES (16001, 2, 16, 1, 1, 1, 1, 600, 500, 100, 100, 20500, -2976, NULL, '2-016-01-1-1', 1, 1, 'Y', 1100, 1000, 100, NULL, NULL, 1, NULL, 150, NULL, NULL, 1, 1, NULL, NULL, NULL, '2025-02-17 18:47:31', '2025-02-17 18:47:31', NULL, NULL);
INSERT INTO `shelf_box` VALUES (17001, 2, 17, 1, 1, 1, 1, 600, 500, 100, 100, 27362, -3721, NULL, '2-017-01-1-1', 1, 1, 'Y', 1100, 1000, 100, NULL, NULL, 1, NULL, 150, NULL, NULL, 1, 1, NULL, NULL, NULL, '2025-02-17 18:47:34', '2025-02-17 18:47:34', NULL, NULL);
INSERT INTO `shelf_box` VALUES (18001, 2, 18, 1, 1, 1, 1, 600, 500, 100, 100, 41734, 4928, NULL, '2-018-01-1-1', 1, 1, 'Y', 1100, 1000, 100, NULL, NULL, 1, NULL, 150, NULL, NULL, 1, 1, NULL, NULL, NULL, '2025-02-17 18:48:09', '2025-02-17 18:48:09', NULL, NULL);
INSERT INTO `shelf_box` VALUES (19001, 2, 19, 1, 1, 1, 1, 600, 500, 100, 100, 41779, 11460, NULL, '2-019-01-1-1', 1, 1, 'Y', 1100, 1000, 100, NULL, NULL, 1, NULL, 150, NULL, NULL, 1, 1, NULL, NULL, NULL, '2025-02-17 18:48:14', '2025-02-17 18:48:14', NULL, NULL);
INSERT INTO `shelf_box` VALUES (20001, 2, 20, 1, 1, 1, 1, 600, 500, 100, 100, 41599, -14893, NULL, '2-020-01-1-1', 1, 1, 'Y', 1100, 1000, 100, NULL, NULL, 1, NULL, 150, NULL, NULL, 1, 1, NULL, NULL, NULL, '2025-02-17 18:48:31', '2025-02-17 18:48:31', NULL, NULL);
INSERT INTO `shelf_box` VALUES (21001, 2, 21, 1, 1, 1, 1, 600, 500, 100, 100, 41239, -8091, NULL, '2-021-01-1-1', 1, 1, 'Y', 1100, 1000, 100, NULL, NULL, 1, NULL, 150, NULL, NULL, 1, 1, NULL, NULL, NULL, '2025-02-17 18:48:35', '2025-02-17 18:48:35', NULL, NULL);

-- ----------------------------
-- Table structure for shelf_column_qrcode
-- ----------------------------
DROP TABLE IF EXISTS `shelf_column_qrcode`;
CREATE TABLE `shelf_column_qrcode`  (
  `id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT 'id',
  `area_id` int(11) NULL DEFAULT NULL COMMENT '库房id',
  `column_id` int(11) NULL DEFAULT NULL COMMENT '立柱码id',
  `x` float NULL DEFAULT NULL COMMENT '立柱x坐标',
  `y` float NULL DEFAULT NULL COMMENT '立柱y坐标',
  `degree` float NULL DEFAULT NULL COMMENT '立柱码角度',
  `qx` float NULL DEFAULT NULL COMMENT '立柱码四元数',
  `qy` float NULL DEFAULT NULL COMMENT '立柱码四元数',
  `qz` float NULL DEFAULT NULL COMMENT '立柱码四元数',
  `qw` float NULL DEFAULT NULL COMMENT '立柱码四元数',
  `qrcode` int(11) NULL DEFAULT NULL COMMENT '立柱码内容',
  `qrcode_type` int(11) NULL DEFAULT 1 COMMENT '二维码类型（1-立柱码、2-地堆码、3-道路码）',
  `created_time` datetime NULL DEFAULT NULL COMMENT '创建时间',
  `modified_time` datetime NULL DEFAULT NULL COMMENT '修改时间',
  `created_by` bigint(20) NULL DEFAULT NULL COMMENT '创建人id',
  `modified_by` bigint(20) NULL DEFAULT NULL COMMENT '最后修改人id',
  PRIMARY KEY (`id`) USING BTREE,
  UNIQUE INDEX `uqk_x_y`(`x`, `y`) USING BTREE COMMENT '坐标唯一性约束'
) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8 COLLATE = utf8_general_ci COMMENT = '货架立柱二维码' ROW_FORMAT = DYNAMIC;

-- ----------------------------
-- Records of shelf_column_qrcode
-- ----------------------------

-- ----------------------------
-- Table structure for shelf_light
-- ----------------------------
DROP TABLE IF EXISTS `shelf_light`;
CREATE TABLE `shelf_light`  (
  `ip` varchar(20) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '三色灯的ip地址',
  `port` int(11) NOT NULL COMMENT '三色灯的端口',
  `shelfId` int(11) NOT NULL COMMENT '绑定的货架的ID',
  `enable` tinyint(4) NULL DEFAULT NULL COMMENT '1 为启动，其他为不启动'
) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_general_ci ROW_FORMAT = DYNAMIC;

-- ----------------------------
-- Records of shelf_light
-- ----------------------------

-- ----------------------------
-- Table structure for shelf_task_process
-- ----------------------------
DROP TABLE IF EXISTS `shelf_task_process`;
CREATE TABLE `shelf_task_process`  (
  `fromShelfType` tinyint(4) NULL DEFAULT NULL COMMENT '开始的货位的类型',
  `toShelfType` tinyint(4) NULL DEFAULT NULL COMMENT '结束的货位的类型'
) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_general_ci ROW_FORMAT = DYNAMIC;

-- ----------------------------
-- Records of shelf_task_process
-- ----------------------------

-- ----------------------------
-- Table structure for shelf_template_level
-- ----------------------------
DROP TABLE IF EXISTS `shelf_template_level`;
CREATE TABLE `shelf_template_level`  (
  `id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT 'id',
  `shelf_template_id` bigint(20) NULL DEFAULT NULL COMMENT '货架模板id',
  `level` int(11) NULL DEFAULT NULL COMMENT '货架层号',
  `pick_height` int(11) NULL DEFAULT NULL COMMENT '该层取卸货高度',
  `created_time` datetime NULL DEFAULT NULL COMMENT '创建时间',
  `modified_time` datetime NULL DEFAULT NULL COMMENT '修改时间',
  `created_by` bigint(20) NULL DEFAULT NULL COMMENT '创建人id',
  `modified_by` bigint(20) NULL DEFAULT NULL COMMENT '最后修改人id',
  PRIMARY KEY (`id`) USING BTREE,
  UNIQUE INDEX `uk_shelf_template_id_level`(`shelf_template_id`, `level`) USING BTREE COMMENT '货架、层唯一性约束'
) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8 COLLATE = utf8_general_ci COMMENT = '货架模板层属性' ROW_FORMAT = DYNAMIC;

-- ----------------------------
-- Records of shelf_template_level
-- ----------------------------

-- ----------------------------
-- Table structure for social_userconnection
-- ----------------------------
DROP TABLE IF EXISTS `social_userconnection`;
CREATE TABLE `social_userconnection`  (
  `userId` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL,
  `providerId` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL,
  `providerUserId` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL,
  `rank` int(11) NOT NULL,
  `displayName` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL,
  `profileUrl` varchar(512) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL,
  `imageUrl` varchar(512) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL,
  `accessToken` varchar(512) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL,
  `secret` varchar(512) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL,
  `refreshToken` varchar(512) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL,
  `expireTime` bigint(20) NULL DEFAULT NULL,
  `create_time` timestamp NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
  `tenant_id` int(11) NULL DEFAULT NULL COMMENT '租户id',
  PRIMARY KEY (`userId`, `providerId`, `providerUserId`) USING BTREE,
  UNIQUE INDEX `UserConnectionRank`(`userId`, `providerId`, `rank`) USING BTREE
) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_general_ci COMMENT = '社交登录表' ROW_FORMAT = DYNAMIC;

-- ----------------------------
-- Records of social_userconnection
-- ----------------------------

-- ----------------------------
-- Table structure for station
-- ----------------------------
DROP TABLE IF EXISTS `station`;
CREATE TABLE `station`  (
  `id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '工位ID',
  `type` int(11) NULL DEFAULT NULL COMMENT '类型1-分拣 2-复核打包',
  `name` varchar(20) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '工位的名称',
  `qrcode` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '1' COMMENT '工位的二维码标识',
  `enable` varchar(1) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT 'Y' COMMENT 'Y-启用， N-禁用',
  `x` int(11) NULL DEFAULT NULL COMMENT '工位坐标X',
  `y` int(11) NULL DEFAULT NULL COMMENT '工位坐标Y',
  `area_id` int(11) NULL DEFAULT NULL,
  `robot_count` int(11) NULL DEFAULT 3 COMMENT '机器人数量',
  `created_time` datetime NULL DEFAULT NULL COMMENT '创建时间',
  `modified_time` datetime NULL DEFAULT NULL COMMENT '修改时间',
  `created_by` bigint(20) NULL DEFAULT NULL COMMENT '创建人id',
  `modified_by` bigint(20) NULL DEFAULT NULL COMMENT '最后修改人id',
  PRIMARY KEY (`id`) USING BTREE,
  UNIQUE INDEX `idIndex`(`id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8 COLLATE = utf8_general_ci ROW_FORMAT = DYNAMIC;

-- ----------------------------
-- Records of station
-- ----------------------------

-- ----------------------------
-- Table structure for statistic_day
-- ----------------------------
DROP TABLE IF EXISTS `statistic_day`;
CREATE TABLE `statistic_day`  (
  `day` date NOT NULL COMMENT '日期',
  `type` int(11) NOT NULL COMMENT '类型，1-容量 2-入库 3-出库 4-盘点',
  `statistic` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '统计信息，JSON字符串',
  PRIMARY KEY (`day`, `type`) USING BTREE
) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_general_ci ROW_FORMAT = DYNAMIC;

-- ----------------------------
-- Records of statistic_day
-- ----------------------------

-- ----------------------------
-- Table structure for stock_record
-- ----------------------------
DROP TABLE IF EXISTS `stock_record`;
CREATE TABLE `stock_record`  (
  `id` int(11) NOT NULL AUTO_INCREMENT COMMENT '主键ID',
  `materialId` int(11) NULL DEFAULT NULL COMMENT '货物ID',
  `type` int(2) NULL DEFAULT NULL COMMENT '类型（0收货/1上架/2移库/3调整/1拣选/5分拣/6复核）',
  `startShelfBoxId` int(11) NULL DEFAULT NULL COMMENT '起始位置',
  `startType` int(11) NULL DEFAULT NULL COMMENT '起始类型（0仓位/1容器）',
  `targetShelfBoxId` int(11) NULL DEFAULT NULL COMMENT '目标位置',
  `targetType` int(11) NULL DEFAULT NULL COMMENT '目标类型（0仓位/1容器）',
  `proNumber` int(11) NULL DEFAULT NULL COMMENT '原数量',
  `number` int(11) NULL DEFAULT NULL COMMENT '数量',
  `billCode` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '单据编码',
  `recordTime` datetime NULL DEFAULT CURRENT_TIMESTAMP COMMENT '记录时间',
  `workerId` int(11) NULL DEFAULT NULL COMMENT '操作人',
  `proStatus` int(2) NULL DEFAULT NULL COMMENT '原状态（0：合格 1 不合格）',
  `status` int(2) NULL DEFAULT NULL COMMENT '状态（0：合格 1 不合格）',
  `proPreDate` datetime NULL DEFAULT NULL COMMENT '原生产日期',
  `preDate` datetime NULL DEFAULT NULL COMMENT '生产日期',
  PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8 COLLATE = utf8_general_ci ROW_FORMAT = DYNAMIC;

-- ----------------------------
-- Records of stock_record
-- ----------------------------

-- ----------------------------
-- Table structure for sub_move
-- ----------------------------
DROP TABLE IF EXISTS `sub_move`;
CREATE TABLE `sub_move`  (
  `id` bigint(20) NOT NULL AUTO_INCREMENT,
  `materialId` bigint(20) NULL DEFAULT NULL COMMENT '货物id',
  `sourceShelfBoxId` bigint(20) NULL DEFAULT NULL COMMENT '原仓位',
  `number` int(11) NULL DEFAULT NULL COMMENT '数量',
  `sourceBoxId` bigint(20) NULL DEFAULT NULL COMMENT '原托盘',
  `targetShelfBoxId` bigint(20) NULL DEFAULT NULL COMMENT '目标仓位',
  `targetBoxId` bigint(20) NULL DEFAULT NULL COMMENT '目标托盘',
  `moveId` bigint(20) NULL DEFAULT NULL COMMENT '移库id',
  `doneNumber` int(11) NULL DEFAULT 0 COMMENT '已完成数量',
  `status` int(3) NULL DEFAULT 0 COMMENT '状态  0未开始  1进行  2货物转移完毕  3完成  4停止   5取消',
  `receiveTime` timestamp NULL DEFAULT NULL COMMENT '入库时间 移库货物对应的入库时间',
  PRIMARY KEY (`id`) USING BTREE,
  INDEX `id`(`id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8 COLLATE = utf8_general_ci ROW_FORMAT = DYNAMIC;

-- ----------------------------
-- Records of sub_move
-- ----------------------------

-- ----------------------------
-- Table structure for swagger_info
-- ----------------------------
DROP TABLE IF EXISTS `swagger_info`;
CREATE TABLE `swagger_info`  (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `project_id` int(11) NOT NULL DEFAULT 0 COMMENT 'project_info.id',
  `name` varchar(64) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL DEFAULT '' COMMENT '分组名称',
  `url` varchar(128) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL DEFAULT '' COMMENT '文档地址',
  `doc_content` longtext CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '文档内容',
  PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8 COLLATE = utf8_general_ci COMMENT = 'swagger信息' ROW_FORMAT = DYNAMIC;

-- ----------------------------
-- Records of swagger_info
-- ----------------------------

-- ----------------------------
-- Table structure for sys_api_update
-- ----------------------------
DROP TABLE IF EXISTS `sys_api_update`;
CREATE TABLE `sys_api_update`  (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `update_time` varchar(255) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL,
  PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 6 CHARACTER SET = utf8 COLLATE = utf8_bin ROW_FORMAT = DYNAMIC;

-- ----------------------------
-- Records of sys_api_update
-- ----------------------------
INSERT INTO `sys_api_update` VALUES (4, '1739952178060');
INSERT INTO `sys_api_update` VALUES (5, '1739952178060');

-- ----------------------------
-- Table structure for sys_dept
-- ----------------------------
DROP TABLE IF EXISTS `sys_dept`;
CREATE TABLE `sys_dept`  (
  `dept_id` int(20) NOT NULL AUTO_INCREMENT COMMENT '部门主键ID',
  `name` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NULL DEFAULT NULL COMMENT '部门名称',
  `sort` int(11) NULL DEFAULT NULL COMMENT '排序',
  `create_time` timestamp NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
  `update_time` timestamp NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '修改时间',
  `del_flag` char(1) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NULL DEFAULT '0' COMMENT '是否删除  -1：已删除  0：正常',
  `parent_id` int(11) NULL DEFAULT NULL COMMENT '上级部门',
  `tenant_id` int(11) NULL DEFAULT NULL COMMENT '租户id',
  PRIMARY KEY (`dept_id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_bin COMMENT = '部门管理' ROW_FORMAT = DYNAMIC;

-- ----------------------------
-- Records of sys_dept
-- ----------------------------

-- ----------------------------
-- Table structure for sys_dict
-- ----------------------------
DROP TABLE IF EXISTS `sys_dict`;
CREATE TABLE `sys_dict`  (
  `id` int(64) NOT NULL AUTO_INCREMENT COMMENT '编号',
  `dict_name` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '名称',
  `dict_code` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '字典编码',
  `description` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '描述',
  `sort` int(4) NULL DEFAULT NULL COMMENT '排序（升序）',
  `create_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
  `update_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '更新时间',
  `remark` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '备注信息',
  `del_flag` char(1) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '0' COMMENT '删除标记',
  `tenant_id` int(11) NULL DEFAULT NULL COMMENT '租户Id',
  PRIMARY KEY (`id`) USING BTREE,
  INDEX `sys_dict_del_flag`(`del_flag`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 3 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '字典表' ROW_FORMAT = DYNAMIC;

-- ----------------------------
-- Records of sys_dict
-- ----------------------------
INSERT INTO `sys_dict` VALUES (1, '用户状态', 'lock_flag', '用户是否正常还是锁定', NULL, '2019-12-16 13:35:43', '2019-12-17 21:24:29', NULL, '0', 1);
INSERT INTO `sys_dict` VALUES (2, '菜单类型', 'menu_type', '菜单类型 （类型   0：目录   1：菜单   2：按钮）', NULL, '2019-12-16 13:42:46', '2019-12-17 21:24:29', NULL, '0', 1);

-- ----------------------------
-- Table structure for sys_dict_item
-- ----------------------------
DROP TABLE IF EXISTS `sys_dict_item`;
CREATE TABLE `sys_dict_item`  (
  `id` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL,
  `dict_id` varchar(20) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '字典id',
  `item_text` varchar(100) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '字典项文本',
  `item_value` varchar(100) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '字典项值',
  `description` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '描述',
  `status` int(11) NULL DEFAULT NULL COMMENT '状态（1启用 0不启用）',
  `create_time` timestamp NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
  `update_time` timestamp NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '更新时间',
  PRIMARY KEY (`id`) USING BTREE,
  INDEX `index_table_dict_id`(`dict_id`) USING BTREE,
  INDEX `index_table_dict_status`(`status`) USING BTREE
) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '字典详情表' ROW_FORMAT = DYNAMIC;

-- ----------------------------
-- Records of sys_dict_item
-- ----------------------------
INSERT INTO `sys_dict_item` VALUES ('0c8f86876bfc7c59a5236010fdcaa07e', '2', '目录', '1', '', NULL, '2019-12-16 13:57:39', '2019-12-16 13:57:39');
INSERT INTO `sys_dict_item` VALUES ('3fe7ad23294384de45197f3379b8d658', '1', '锁定', '1', '0-正常，1-锁定', NULL, '2019-12-16 13:39:56', '2019-12-16 13:39:56');
INSERT INTO `sys_dict_item` VALUES ('5ace75b3caf31b86efa50430954d624f', '2', '按钮', '3', '', NULL, '2019-12-16 13:57:55', '2019-12-16 13:57:55');
INSERT INTO `sys_dict_item` VALUES ('6ea98d652a06220c99b9468ead68e6f9', '2', '菜单', '1', '', NULL, '2019-12-16 13:57:48', '2019-12-16 13:57:48');
INSERT INTO `sys_dict_item` VALUES ('f27a639dee243eef860f453c2ab8547e', '1', '正常', '0', '0-正常，1-锁定', NULL, '2019-12-16 13:39:45', '2019-12-16 13:39:45');

-- ----------------------------
-- Table structure for sys_link_resource_organization
-- ----------------------------
DROP TABLE IF EXISTS `sys_link_resource_organization`;
CREATE TABLE `sys_link_resource_organization`  (
  `resource_id` bigint(20) NOT NULL COMMENT '资源ID',
  `organization_id` bigint(20) NOT NULL COMMENT '组织ID'
) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_general_ci ROW_FORMAT = DYNAMIC;

-- ----------------------------
-- Records of sys_link_resource_organization
-- ----------------------------

-- ----------------------------
-- Table structure for sys_link_role_organization
-- ----------------------------
DROP TABLE IF EXISTS `sys_link_role_organization`;
CREATE TABLE `sys_link_role_organization`  (
  `organization_id` bigint(20) NOT NULL COMMENT '组织ID',
  `role_id` bigint(20) NOT NULL COMMENT '角色ID'
) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_general_ci ROW_FORMAT = DYNAMIC;

-- ----------------------------
-- Records of sys_link_role_organization
-- ----------------------------

-- ----------------------------
-- Table structure for sys_link_role_resource
-- ----------------------------
DROP TABLE IF EXISTS `sys_link_role_resource`;
CREATE TABLE `sys_link_role_resource`  (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `resource_id` int(11) NULL DEFAULT NULL,
  `role_id` int(11) NULL DEFAULT NULL,
  PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 1201 CHARACTER SET = utf8 COLLATE = utf8_bin ROW_FORMAT = DYNAMIC;

-- ----------------------------
-- Records of sys_link_role_resource
-- ----------------------------
INSERT INTO `sys_link_role_resource` VALUES (1176, 167, 1);
INSERT INTO `sys_link_role_resource` VALUES (1177, 168, 1);
INSERT INTO `sys_link_role_resource` VALUES (1178, 169, 1);
INSERT INTO `sys_link_role_resource` VALUES (1179, 170, 1);
INSERT INTO `sys_link_role_resource` VALUES (1180, 172, 1);
INSERT INTO `sys_link_role_resource` VALUES (1181, 173, 1);
INSERT INTO `sys_link_role_resource` VALUES (1182, 174, 1);
INSERT INTO `sys_link_role_resource` VALUES (1183, 175, 1);
INSERT INTO `sys_link_role_resource` VALUES (1184, 176, 1);
INSERT INTO `sys_link_role_resource` VALUES (1185, 177, 1);
INSERT INTO `sys_link_role_resource` VALUES (1186, 178, 1);
INSERT INTO `sys_link_role_resource` VALUES (1187, 179, 1);
INSERT INTO `sys_link_role_resource` VALUES (1188, 180, 1);
INSERT INTO `sys_link_role_resource` VALUES (1189, 182, 1);
INSERT INTO `sys_link_role_resource` VALUES (1190, 183, 1);
INSERT INTO `sys_link_role_resource` VALUES (1191, 184, 1);
INSERT INTO `sys_link_role_resource` VALUES (1192, 185, 1);
INSERT INTO `sys_link_role_resource` VALUES (1193, 187, 1);
INSERT INTO `sys_link_role_resource` VALUES (1194, 188, 1);
INSERT INTO `sys_link_role_resource` VALUES (1195, 189, 1);
INSERT INTO `sys_link_role_resource` VALUES (1196, 190, 1);
INSERT INTO `sys_link_role_resource` VALUES (1197, 191, 1);
INSERT INTO `sys_link_role_resource` VALUES (1198, 192, 1);
INSERT INTO `sys_link_role_resource` VALUES (1199, 193, 1);
INSERT INTO `sys_link_role_resource` VALUES (1200, 194, 1);

-- ----------------------------
-- Table structure for sys_link_user_role
-- ----------------------------
DROP TABLE IF EXISTS `sys_link_user_role`;
CREATE TABLE `sys_link_user_role`  (
  `user_id` bigint(20) NOT NULL COMMENT '用户ID',
  `role_id` bigint(20) NOT NULL COMMENT '角色ID'
) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_general_ci ROW_FORMAT = DYNAMIC;

-- ----------------------------
-- Records of sys_link_user_role
-- ----------------------------
INSERT INTO `sys_link_user_role` VALUES (10001, 1);

-- ----------------------------
-- Table structure for sys_log
-- ----------------------------
DROP TABLE IF EXISTS `sys_log`;
CREATE TABLE `sys_log`  (
  `id` int(18) NOT NULL AUTO_INCREMENT COMMENT '主键',
  `ip` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NULL DEFAULT NULL COMMENT '操作IP',
  `type` int(3) NULL DEFAULT NULL COMMENT '操作类型 1 操作记录2异常记录',
  `user_name` varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NULL DEFAULT NULL COMMENT '操作人',
  `description` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NULL DEFAULT NULL COMMENT '操作描述',
  `action_method` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NULL DEFAULT NULL COMMENT '请求方法',
  `action_url` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NULL DEFAULT NULL,
  `params` varchar(1000) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NULL DEFAULT NULL COMMENT '请求参数',
  `browser` varchar(500) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NULL DEFAULT NULL COMMENT '浏览器',
  `class_path` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NULL DEFAULT NULL COMMENT '类路径',
  `request_method` varchar(10) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NULL DEFAULT NULL COMMENT '请求方法',
  `start_time` timestamp NULL DEFAULT NULL COMMENT '开始时间',
  `finish_time` timestamp NULL DEFAULT NULL COMMENT '完成时间',
  `consuming_time` bigint(11) NULL DEFAULT NULL COMMENT '消耗时间',
  `ex_desc` varchar(1000) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NULL DEFAULT NULL COMMENT '异常详情信息',
  `ex_detail` text CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NULL COMMENT '异常描述',
  `tenant_id` int(11) NULL DEFAULT NULL COMMENT '租户id',
  `location` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NULL DEFAULT NULL COMMENT '操作地点',
  `os` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NULL DEFAULT NULL COMMENT '操作系统',
  PRIMARY KEY (`id`) USING BTREE,
  INDEX `index_type`(`type`) USING BTREE COMMENT '日志类型'
) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_bin COMMENT = '系统日志' ROW_FORMAT = DYNAMIC;

-- ----------------------------
-- Records of sys_log
-- ----------------------------

-- ----------------------------
-- Table structure for sys_menu
-- ----------------------------
DROP TABLE IF EXISTS `sys_menu`;
CREATE TABLE `sys_menu`  (
  `menu_id` int(11) NOT NULL AUTO_INCREMENT COMMENT '菜单ID',
  `name` varchar(32) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NOT NULL COMMENT '菜单名称',
  `perms` varchar(32) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NULL DEFAULT NULL COMMENT '菜单权限标识',
  `path` varchar(128) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NULL DEFAULT NULL COMMENT '前端跳转URL',
  `component` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NULL DEFAULT NULL COMMENT '菜单组件',
  `parent_id` int(11) NULL DEFAULT NULL COMMENT '父菜单ID',
  `icon` varchar(32) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NULL DEFAULT NULL COMMENT '图标',
  `sort` int(11) NULL DEFAULT 1 COMMENT '排序',
  `type` char(1) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NULL DEFAULT NULL COMMENT '菜单类型 （类型   0：目录   1：菜单   2：按钮）',
  `create_time` timestamp NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
  `update_time` timestamp NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '更新时间',
  `del_flag` char(1) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NULL DEFAULT '0' COMMENT '逻辑删除标记(0--正常 1--删除)',
  `is_frame` tinyint(1) NULL DEFAULT NULL COMMENT '是否为外链',
  PRIMARY KEY (`menu_id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 73 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_bin COMMENT = '菜单权限表' ROW_FORMAT = DYNAMIC;

-- ----------------------------
-- Records of sys_menu
-- ----------------------------
INSERT INTO `sys_menu` VALUES (1, '权限管理', '', 'admin', '', 0, 'authority', 0, '0', '2019-04-21 22:45:08', '2019-05-05 20:20:31', '0', 1);
INSERT INTO `sys_menu` VALUES (2, '用户管理', '', 'user', 'admin/user', 1, 'user', 1, '1', '2019-04-21 22:49:22', '2019-05-12 19:02:34', '0', 1);
INSERT INTO `sys_menu` VALUES (3, '部门管理', '', 'dept', 'admin/dept', 1, 'dept', 2, '1', '2019-04-21 22:52:11', '2019-05-12 21:25:14', '0', 1);
INSERT INTO `sys_menu` VALUES (5, '用户新增', 'sys:user:add', '', NULL, 2, '', 0, '2', '2019-04-22 13:09:11', '2019-06-08 11:21:07', '0', 1);
INSERT INTO `sys_menu` VALUES (6, '系统管理', '', 'sys', '', 0, 'sys', 1, '0', '2019-04-22 23:48:02', '2019-05-06 22:44:51', '0', 1);
INSERT INTO `sys_menu` VALUES (7, '操作日志', '', 'log', 'sys/log', 6, 'log', 1, '1', '2019-04-22 23:59:40', '2019-09-23 15:58:22', '0', 1);
INSERT INTO `sys_menu` VALUES (11, '部门新增', 'sys:dept:add', '', NULL, 3, '', 0, '2', '2019-04-25 11:09:50', '2019-06-08 13:13:45', '0', 1);
INSERT INTO `sys_menu` VALUES (13, '角色管理', '', 'role', 'admin/role', 1, 'peoples', 1, '1', '2019-04-29 21:08:28', '2019-05-05 20:20:53', '0', 1);
INSERT INTO `sys_menu` VALUES (14, '用户修改', 'sys:user:update', '', NULL, 2, '', 0, '2', '2019-04-30 23:43:31', '2019-06-08 11:22:23', '0', 1);
INSERT INTO `sys_menu` VALUES (15, '角色新增', 'sys:role:add', '', NULL, 13, '', 0, '2', '2019-05-01 08:49:21', '2019-06-09 16:39:48', '0', 1);
INSERT INTO `sys_menu` VALUES (16, '菜单管理', '', 'menu', 'admin/menu', 1, 'menu', 3, '1', '2019-05-03 15:26:58', '2019-05-05 20:20:56', '0', 1);
INSERT INTO `sys_menu` VALUES (27, '日志删除', 'sys:log:delete', '', '', 7, '', 0, '2', '2019-05-06 22:47:47', '2019-06-08 13:15:05', '0', 1);
INSERT INTO `sys_menu` VALUES (28, '菜单增加', 'sys:menu:add', '', '', 16, '', 0, '2', '2019-05-08 16:09:43', '2019-06-08 13:14:02', '0', 1);
INSERT INTO `sys_menu` VALUES (29, '菜单修改', 'sys:menu:update', '', '', 16, '', 0, '2', '2019-05-08 16:10:06', '2019-06-08 13:14:05', '0', 1);
INSERT INTO `sys_menu` VALUES (30, '部门修改', 'sys:dept:update', '', '', 3, '', 0, '2', '2019-05-08 23:49:54', '2019-06-08 13:13:49', '0', 1);
INSERT INTO `sys_menu` VALUES (31, '部门删除', 'sys:dept:delete', '', '', 3, '', 0, '2', '2019-05-08 23:53:41', '2019-06-08 13:13:52', '0', 1);
INSERT INTO `sys_menu` VALUES (33, '用户查看', 'sys:user:view', '', '', 2, '', 0, '2', '2019-05-12 18:59:46', '2019-06-08 11:23:01', '0', 1);
INSERT INTO `sys_menu` VALUES (34, '角色修改', 'sys:role:update', '', '', 13, '', 0, '2', '2019-05-12 19:05:03', '2019-06-08 13:13:29', '0', 1);
INSERT INTO `sys_menu` VALUES (35, '用户删除', 'sys:user:delete', '', '', 2, '', 0, '2', '2019-05-12 19:08:13', '2019-06-08 11:23:07', '0', 1);
INSERT INTO `sys_menu` VALUES (36, '菜单删除', 'sys:menu:delete', '', '', 16, '', 0, '2', '2019-05-12 19:10:02', '2019-06-08 13:14:09', '0', 1);
INSERT INTO `sys_menu` VALUES (37, '角色删除', 'sys:role:delete', '', '', 13, '', 0, '2', '2019-05-12 19:11:14', '2019-06-08 13:13:34', '0', 1);
INSERT INTO `sys_menu` VALUES (38, '角色查看', 'sys:role:view', '', '', 13, '', 0, '2', '2019-05-12 19:11:37', '2019-06-08 13:13:37', '0', 1);
INSERT INTO `sys_menu` VALUES (43, '数据字典', '', 'dict', 'sys/dict', 6, 'tag', 0, '1', '2019-05-16 18:17:32', '2019-12-16 15:30:37', '0', 1);
INSERT INTO `sys_menu` VALUES (44, '部门查看', 'sys:dept:view', '', '', 3, '', 0, '2', '2019-06-07 20:50:31', '2019-06-08 13:13:55', '0', 1);
INSERT INTO `sys_menu` VALUES (45, '字典查看', 'sys:dipt:view', '', '', 43, '', 0, '2', '2019-06-07 20:55:42', '2019-06-08 13:14:56', '0', 1);
INSERT INTO `sys_menu` VALUES (46, '菜单查看', 'sys:menu:view', '', '', 16, '', 0, '2', '2019-06-08 13:14:32', NULL, '0', 1);
INSERT INTO `sys_menu` VALUES (47, '修改密码', 'sys:user:updatePass', '', '', 2, '', 0, '2', '2019-06-15 09:43:20', '2019-06-15 09:43:20', '0', 1);
INSERT INTO `sys_menu` VALUES (48, '修改邮箱', 'sys:user:updateEmail', '', '', 2, '', 0, '2', '2019-06-15 09:43:58', '2019-06-15 09:43:58', '0', 1);
INSERT INTO `sys_menu` VALUES (51, '社交账号管理', '', 'social', 'admin/social', 1, 'peoples', 6, '1', '2019-07-19 13:22:44', '2019-07-19 13:24:45', '0', 1);
INSERT INTO `sys_menu` VALUES (52, '解绑账号', 'sys:social:untied', '', '', 51, '', 0, '2', '2019-07-22 13:06:53', '2019-07-22 13:06:53', '0', 1);
INSERT INTO `sys_menu` VALUES (53, '代码生成', '', '/codegen', 'sys/codegen', 6, 'clipboard', 0, '1', '2019-07-25 12:55:37', '2019-08-02 14:52:04', '0', 1);
INSERT INTO `sys_menu` VALUES (54, '社交查看', 'sys:social:view', '', '', 51, '', 0, '2', '2019-08-03 16:16:46', '2019-08-03 16:16:46', '0', 1);
INSERT INTO `sys_menu` VALUES (55, '代码生成', 'sys:codegen:codegen', '', '', 53, '', 0, '2', '2019-08-10 00:08:20', '2019-08-10 00:08:20', '0', 1);
INSERT INTO `sys_menu` VALUES (56, '租户管理', '', 'tenant', 'admin/tenant', 1, 'guide', 5, '1', '2019-08-10 10:52:26', '2019-08-10 10:54:11', '0', 1);
INSERT INTO `sys_menu` VALUES (57, '流程管理', '', 'activiti', '', 0, 'documentation', 2, '0', '2019-10-08 11:03:22', '2019-10-08 11:03:22', '0', 1);
INSERT INTO `sys_menu` VALUES (58, '模型管理', '', 'model', 'activiti/model', 57, 'chart', 0, '1', '2019-10-08 11:06:51', '2019-10-08 11:06:51', '0', 1);
INSERT INTO `sys_menu` VALUES (59, '流程部署', '', 'processDeployment', 'activiti/processDeployment', 57, 'blog', 0, '1', '2019-10-08 13:48:20', '2019-10-08 13:49:02', '0', 1);
INSERT INTO `sys_menu` VALUES (61, '我的流程', '', 'process', '', 0, 'excel', 0, '0', '2019-10-11 10:39:00', '2019-10-11 10:39:00', '0', 1);
INSERT INTO `sys_menu` VALUES (62, '发起流程', '', 'processList', 'process/processList', 61, 'documentation', 0, '1', '2019-10-11 10:49:11', '2019-10-11 10:49:11', '0', 1);
INSERT INTO `sys_menu` VALUES (63, '待签任务', '', 'pendingTask', 'process/pendingTask', 61, 'excel', 0, '1', '2019-10-11 10:54:12', '2019-10-11 10:54:12', '0', 1);
INSERT INTO `sys_menu` VALUES (64, '待办任务', '', 'upcomingTask', 'process/upcomingTask', 61, 'eye-open', 0, '1', '2019-10-11 10:55:46', '2019-10-11 10:55:46', '0', 1);
INSERT INTO `sys_menu` VALUES (65, '已发任务', '', 'deliveredTask', 'process/deliveredTask', 61, 'drag', 0, '1', '2019-10-11 10:57:15', '2019-10-11 10:57:15', '0', 1);
INSERT INTO `sys_menu` VALUES (66, '已完任务', '', 'completedTask', 'process/completedTask', 61, 'clipboard', 0, '1', '2019-10-11 10:58:38', '2019-10-11 10:59:19', '0', 1);
INSERT INTO `sys_menu` VALUES (67, '查看日志', 'sys:log:view', '', '', 7, '', 0, '2', '2019-12-10 16:49:05', '2019-12-10 16:49:05', '0', 1);
INSERT INTO `sys_menu` VALUES (68, '添加字典', 'sys:dict:add', '', '', 43, '', 0, '2', '2019-12-15 21:16:09', '2019-12-15 21:16:09', '0', 1);
INSERT INTO `sys_menu` VALUES (69, '添加字典详情', 'sys:dictItem:add', '', '', 43, '', 0, '2', '2019-12-15 22:08:01', '2019-12-15 22:08:01', '0', 1);
INSERT INTO `sys_menu` VALUES (70, '更新字典详情', 'sys:dictItem:edit', '', '', 43, '', 0, '2', '2019-12-16 12:19:53', '2019-12-16 12:19:53', '0', 1);
INSERT INTO `sys_menu` VALUES (71, '更新字典', 'sys:dict:edit', '', '', 43, '', 0, '2', '2019-12-16 13:44:01', '2019-12-16 13:44:01', '0', 1);
INSERT INTO `sys_menu` VALUES (72, '添加租户', 'sys:tenant:add', '', '', 56, '', 0, '2', '2019-12-17 21:29:52', '2019-12-17 21:29:52', '0', 1);

-- ----------------------------
-- Table structure for sys_organization
-- ----------------------------
DROP TABLE IF EXISTS `sys_organization`;
CREATE TABLE `sys_organization`  (
  `id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '主键ID',
  `name` varchar(100) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '组织名称',
  `priority` int(11) NOT NULL COMMENT '当前父级下的显示顺序 优先级',
  `parent_id` bigint(20) NOT NULL DEFAULT 0 COMMENT '父级ID',
  `parent_ids` varchar(100) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '父级ID列表',
  `available` tinyint(1) NOT NULL DEFAULT 1 COMMENT '可用- 是：1（默认） 否：0',
  PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8 COLLATE = utf8_general_ci ROW_FORMAT = DYNAMIC;

-- ----------------------------
-- Records of sys_organization
-- ----------------------------

-- ----------------------------
-- Table structure for sys_position_match
-- ----------------------------
DROP TABLE IF EXISTS `sys_position_match`;
CREATE TABLE `sys_position_match`  (
  `from_no` bigint(20) NOT NULL COMMENT '出货仓位',
  `to_no` bigint(20) NOT NULL COMMENT '入货仓位'
) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_general_ci ROW_FORMAT = DYNAMIC;

-- ----------------------------
-- Records of sys_position_match
-- ----------------------------

-- ----------------------------
-- Table structure for sys_resource
-- ----------------------------
DROP TABLE IF EXISTS `sys_resource`;
CREATE TABLE `sys_resource`  (
  `id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '主键ID',
  `name` varchar(100) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '资源名称',
  `type` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '资源类型- 系统：system 菜单：menu 按钮：button ',
  `priority` int(11) NULL DEFAULT NULL COMMENT '显示顺序',
  `parent_id` bigint(20) NULL DEFAULT NULL COMMENT '父级ID',
  `parent_ids` varchar(100) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '父级ID列表',
  `url` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '地址',
  `permission` varchar(100) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '权限字符串',
  `available` tinyint(1) NULL DEFAULT 1 COMMENT '可用- 是：1（默认） 否：0',
  `ico` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '图标名称',
  PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 195 CHARACTER SET = utf8 COLLATE = utf8_general_ci ROW_FORMAT = DYNAMIC;

-- ----------------------------
-- Records of sys_resource
-- ----------------------------
INSERT INTO `sys_resource` VALUES (167, '任务', 'menu', 0, 0, NULL, NULL, '/engineer/task', 1, NULL);
INSERT INTO `sys_resource` VALUES (168, '批量新增', 'menu', 2, 167, NULL, NULL, '/engineer/task/batchAdd', 1, NULL);
INSERT INTO `sys_resource` VALUES (169, '新增', 'menu', 0, 167, NULL, NULL, '/engineer/task/add', 1, NULL);
INSERT INTO `sys_resource` VALUES (170, '地图', 'menu', 0, 0, NULL, NULL, '/engineer/mainIndex', 1, NULL);
INSERT INTO `sys_resource` VALUES (172, '后台', 'menu', 0, 0, NULL, NULL, '/engineer/editing', 1, NULL);
INSERT INTO `sys_resource` VALUES (173, '项目配置', 'menu', 0, 172, NULL, NULL, '/engineer/editing/projectConfig', 1, NULL);
INSERT INTO `sys_resource` VALUES (174, '设备类型', 'menu', 0, 172, NULL, NULL, '/engineer/editing/deviceType', 1, NULL);
INSERT INTO `sys_resource` VALUES (175, '任务列表', 'menu', 0, 172, NULL, NULL, '/engineer/editing/taskList', 1, NULL);
INSERT INTO `sys_resource` VALUES (176, '地图信息', 'menu', 0, 172, NULL, NULL, '/engineer/editing/mapInfo', 1, NULL);
INSERT INTO `sys_resource` VALUES (177, '设备管理', 'menu', 0, 172, NULL, NULL, '/engineer/editing/deviceManage', 1, NULL);
INSERT INTO `sys_resource` VALUES (178, '系统设置', 'menu', 0, 172, NULL, NULL, '/engineer/editing/systemSetting', 1, NULL);
INSERT INTO `sys_resource` VALUES (179, '资源配置', 'menu', 0, 173, NULL, NULL, '/engineer/editing/projectConfig/menu', 0, NULL);
INSERT INTO `sys_resource` VALUES (180, '角色配置', 'menu', 0, 173, NULL, NULL, '/engineer/editing/projectConfig/role', 0, NULL);
INSERT INTO `sys_resource` VALUES (182, '启用', 'operation', 3, 169, NULL, NULL, '/engineer/task/add/enable', 1, NULL);
INSERT INTO `sys_resource` VALUES (183, '禁用', 'operation', 2, 169, NULL, NULL, '/engineer/task/add/disable', 1, NULL);
INSERT INTO `sys_resource` VALUES (184, '占用', 'operation', 1, 169, NULL, NULL, '/engineer/task/add/occupy', 1, NULL);
INSERT INTO `sys_resource` VALUES (185, '释放', 'operation', 0, 169, NULL, NULL, '/engineer/task/add/release', 1, NULL);
INSERT INTO `sys_resource` VALUES (187, '监控', 'menu', 0, 0, NULL, NULL, '/engineer/monitor', 1, NULL);
INSERT INTO `sys_resource` VALUES (188, '订单列表', 'menu', 0, 175, NULL, NULL, '/tasklist/orderlist', 1, NULL);
INSERT INTO `sys_resource` VALUES (189, '任务列表', 'menu', 0, 175, NULL, NULL, '/tasklist/tasklist', 1, NULL);
INSERT INTO `sys_resource` VALUES (190, '集成配置', 'menu', 0, 175, NULL, NULL, '/tasklist/config', 1, NULL);
INSERT INTO `sys_resource` VALUES (191, '异常列表', 'menu', 0, 175, NULL, NULL, '/tasklist/errorlist', 1, NULL);
INSERT INTO `sys_resource` VALUES (192, '取消订单', 'operation', 0, 188, NULL, NULL, '/tasklist/orderlist/orderCancel', 1, NULL);
INSERT INTO `sys_resource` VALUES (193, '取消订单', 'operation', 0, 187, NULL, NULL, '/monitor/orderCancel', 1, NULL);
INSERT INTO `sys_resource` VALUES (194, '添加任务', 'operation', 0, 169, NULL, NULL, '/engineer/task/add/addTask', 1, NULL);

-- ----------------------------
-- Table structure for sys_role
-- ----------------------------
DROP TABLE IF EXISTS `sys_role`;
CREATE TABLE `sys_role`  (
  `id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '主键ID',
  `role` varchar(100) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '角色名称',
  `description` varchar(500) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL,
  `available` tinyint(1) NOT NULL DEFAULT 1 COMMENT '可用- 是：1（默认） 否：0',
  PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 2 CHARACTER SET = utf8 COLLATE = utf8_general_ci ROW_FORMAT = DYNAMIC;

-- ----------------------------
-- Records of sys_role
-- ----------------------------
INSERT INTO `sys_role` VALUES (1, '管理员', '超级管理员', 1);

-- ----------------------------
-- Table structure for sys_role_dept
-- ----------------------------
DROP TABLE IF EXISTS `sys_role_dept`;
CREATE TABLE `sys_role_dept`  (
  `id` int(20) NOT NULL AUTO_INCREMENT COMMENT '部门主键ID',
  `role_id` int(20) NULL DEFAULT NULL COMMENT '角色ID',
  `dept_id` int(20) NULL DEFAULT NULL COMMENT '部门ID',
  PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_bin COMMENT = '角色与部门对应关系' ROW_FORMAT = DYNAMIC;

-- ----------------------------
-- Records of sys_role_dept
-- ----------------------------

-- ----------------------------
-- Table structure for sys_role_menu
-- ----------------------------
DROP TABLE IF EXISTS `sys_role_menu`;
CREATE TABLE `sys_role_menu`  (
  `id` int(11) NOT NULL AUTO_INCREMENT COMMENT '主键ID',
  `role_id` int(11) NOT NULL COMMENT '角色ID',
  `menu_id` int(11) NOT NULL COMMENT '菜单ID',
  PRIMARY KEY (`id`) USING BTREE,
  INDEX `index_role_id`(`role_id`) USING BTREE COMMENT '角色Id',
  INDEX `index_menu_id`(`menu_id`) USING BTREE COMMENT '菜单Id'
) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_bin COMMENT = '角色菜单表' ROW_FORMAT = DYNAMIC;

-- ----------------------------
-- Records of sys_role_menu
-- ----------------------------

-- ----------------------------
-- Table structure for sys_shelf_box
-- ----------------------------
DROP TABLE IF EXISTS `sys_shelf_box`;
CREATE TABLE `sys_shelf_box`  (
  `id` int(22) NOT NULL AUTO_INCREMENT,
  `dis_id` int(11) NOT NULL COMMENT '对应调度系统的仓位ID',
  `dis_box_no` varchar(255) CHARACTER SET utf8 COLLATE utf8_unicode_ci NULL DEFAULT NULL COMMENT '调度的仓位编码',
  `area` int(11) NOT NULL COMMENT '区域位置',
  `father_id` int(11) NULL DEFAULT NULL COMMENT '父类仓位(该位置出库前需出父类仓位的货）',
  `is_used` int(11) NOT NULL DEFAULT 0 COMMENT '是否占用 0：未占用  1:占用 2：进行中',
  `type` int(11) NOT NULL COMMENT '仓位类型 1:入库类  2:出库类',
  `tenant_id` int(11) NULL DEFAULT 1 COMMENT '租户',
  PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8 COLLATE = utf8_unicode_ci COMMENT = '仓位表' ROW_FORMAT = DYNAMIC;

-- ----------------------------
-- Records of sys_shelf_box
-- ----------------------------

-- ----------------------------
-- Table structure for sys_task
-- ----------------------------
DROP TABLE IF EXISTS `sys_task`;
CREATE TABLE `sys_task`  (
  `id` int(22) NOT NULL AUTO_INCREMENT,
  `from_sb_id` int(11) NOT NULL COMMENT '出发仓位',
  `to_sb_id` int(11) NULL DEFAULT NULL COMMENT '目标仓位',
  `status` int(1) NOT NULL DEFAULT 1 COMMENT '1:未开始 2:已通知调度执行中 3:执行完成',
  `task_no` varchar(255) CHARACTER SET utf8 COLLATE utf8_unicode_ci NULL DEFAULT NULL COMMENT '任务编号',
  `times` int(11) NOT NULL DEFAULT 0 COMMENT '触发次数 【触发多少次就发起任务】',
  `create_time` datetime NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
  `tenant_id` int(11) NULL DEFAULT 1 COMMENT '租户',
  PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8 COLLATE = utf8_unicode_ci COMMENT = '任务表' ROW_FORMAT = DYNAMIC;

-- ----------------------------
-- Records of sys_task
-- ----------------------------

-- ----------------------------
-- Table structure for sys_user
-- ----------------------------
DROP TABLE IF EXISTS `sys_user`;
CREATE TABLE `sys_user`  (
  `id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '主键ID',
  `account` varchar(100) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '账户',
  `password` varchar(100) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '密码 MD5加密',
  `token` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '登录钥匙',
  `name` varchar(100) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '用户名',
  `phone` varchar(32) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '电话',
  `updater` bigint(20) NULL DEFAULT NULL COMMENT '修改人',
  `update_time` timestamp NULL DEFAULT NULL COMMENT '修改时间',
  `login_time` timestamp NULL DEFAULT NULL COMMENT '登录时间',
  `locked` tinyint(1) NOT NULL DEFAULT 0 COMMENT '锁定-  是：1  否：0（默认）',
  `create_time` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 10002 CHARACTER SET = utf8 COLLATE = utf8_general_ci ROW_FORMAT = DYNAMIC;

-- ----------------------------
-- Records of sys_user
-- ----------------------------
INSERT INTO `sys_user` VALUES (10001, 'zcnest888', '659c7992e268962384eb17fafe88364', '2354ab24-ecc5-4f5c-9ab4-23e1c3832080', 'boss', '13612345291', NULL, NULL, '2025-02-19 08:59:57', 0, '0000-00-00 00:00:00');

-- ----------------------------
-- Table structure for sys_web_setting
-- ----------------------------
DROP TABLE IF EXISTS `sys_web_setting`;
CREATE TABLE `sys_web_setting`  (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `logo` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL,
  `theme` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL,
  `background_image` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL,
  `copyright` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL,
  PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8 COLLATE = utf8_general_ci ROW_FORMAT = DYNAMIC;

-- ----------------------------
-- Records of sys_web_setting
-- ----------------------------

-- ----------------------------
-- Table structure for task
-- ----------------------------
DROP TABLE IF EXISTS `task`;
CREATE TABLE `task`  (
  `id` int(11) NOT NULL,
  `wmsType` int(11) NULL DEFAULT NULL COMMENT '1：入库 2：出库  3:盘点 4：移库',
  `status` int(11) NULL DEFAULT 1 COMMENT '托盘状态 1:进行中 2:送达',
  `shelfId` int(11) NULL DEFAULT NULL,
  `boxId` int(11) NULL DEFAULT NULL,
  PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB CHARACTER SET = latin1 COLLATE = latin1_swedish_ci ROW_FORMAT = DYNAMIC;

-- ----------------------------
-- Records of task
-- ----------------------------

-- ----------------------------
-- Table structure for traffic_host
-- ----------------------------
DROP TABLE IF EXISTS `traffic_host`;
CREATE TABLE `traffic_host`  (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `lightIp` varchar(20) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '控制器的ip',
  `lightPort` int(11) NOT NULL COMMENT '控制器的端口',
  `number` int(11) NULL DEFAULT NULL,
  `qrcodeId` int(11) NOT NULL COMMENT '道路的节点id',
  `humanId` int(11) NULL DEFAULT NULL COMMENT '进入的人的id',
  `sound` int(11) NULL DEFAULT NULL COMMENT '第x秒开始进行蜂鸣',
  `count` int(11) NOT NULL COMMENT '总共绿灯x秒',
  `lightYellow` int(11) NULL DEFAULT NULL COMMENT '第x秒时候时候亮黄灯',
  `enable` varchar(1) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL,
  PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8 COLLATE = utf8_general_ci ROW_FORMAT = DYNAMIC;

-- ----------------------------
-- Records of traffic_host
-- ----------------------------

-- ----------------------------
-- Table structure for user
-- ----------------------------
DROP TABLE IF EXISTS `user`;
CREATE TABLE `user`  (
  `name` varchar(20) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL,
  `roles` varchar(20) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL,
  `nickName` varchar(20) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL,
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `passwd` varchar(100) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL,
  `token` varchar(100) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL,
  `lastLoginTime` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `vipStartTime` datetime NULL DEFAULT NULL,
  `vipEndTime` datetime NULL DEFAULT NULL,
  `del` varchar(1) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT 'N',
  `createTime` datetime NULL DEFAULT NULL,
  PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8 COLLATE = utf8_general_ci ROW_FORMAT = DYNAMIC;

-- ----------------------------
-- Records of user
-- ----------------------------

-- ----------------------------
-- Table structure for vertex_forbidden_robot
-- ----------------------------
DROP TABLE IF EXISTS `vertex_forbidden_robot`;
CREATE TABLE `vertex_forbidden_robot`  (
  `id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT 'id',
  `vertex_id` int(20) NULL DEFAULT NULL COMMENT '节点id，本系统中为道路节点的qrcodeId',
  `robot_id` int(11) NULL DEFAULT NULL COMMENT '机器人id',
  `created_time` datetime NULL DEFAULT NULL COMMENT '创建时间',
  `modified_time` datetime NULL DEFAULT NULL COMMENT '修改时间',
  `created_by` bigint(20) NULL DEFAULT NULL COMMENT '创建人id',
  `modified_by` bigint(20) NULL DEFAULT NULL COMMENT '最后修改人id',
  PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8 COLLATE = utf8_general_ci ROW_FORMAT = DYNAMIC;

-- ----------------------------
-- Records of vertex_forbidden_robot
-- ----------------------------

-- ----------------------------
-- Table structure for vertex_forbidden_robot_type
-- ----------------------------
DROP TABLE IF EXISTS `vertex_forbidden_robot_type`;
CREATE TABLE `vertex_forbidden_robot_type`  (
  `id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT 'id',
  `vertex_id` int(20) NULL DEFAULT NULL COMMENT '节点id，本系统中为道路节点的qrcodeId',
  `robot_type` int(11) NULL DEFAULT NULL COMMENT '机器人类型，forklift_conf的id',
  `created_time` datetime NULL DEFAULT NULL COMMENT '创建时间',
  `modified_time` datetime NULL DEFAULT NULL COMMENT '修改时间',
  `created_by` bigint(20) NULL DEFAULT NULL COMMENT '创建人id',
  `modified_by` bigint(20) NULL DEFAULT NULL COMMENT '最后修改人id',
  PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8 COLLATE = utf8_general_ci COMMENT = '节点禁止的机器人类型' ROW_FORMAT = DYNAMIC;

-- ----------------------------
-- Records of vertex_forbidden_robot_type
-- ----------------------------

-- ----------------------------
-- Table structure for vertex_rotation_robot_type
-- ----------------------------
DROP TABLE IF EXISTS `vertex_rotation_robot_type`;
CREATE TABLE `vertex_rotation_robot_type`  (
  `id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT 'id',
  `vertex_id` int(20) NULL DEFAULT NULL COMMENT '节点id，本系统中道路节点、货架道路节点的qrcodeId',
  `robot_type` int(11) NULL DEFAULT NULL COMMENT '机器人类型，forklift_conf的id',
  `rotatable` varchar(20) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '是否可旋转，Y-可（道路节点默认），N-不可（货架节点默认）',
  `created_time` datetime NULL DEFAULT NULL COMMENT '创建时间',
  `modified_time` datetime NULL DEFAULT NULL COMMENT '修改时间',
  `created_by` bigint(20) NULL DEFAULT NULL COMMENT '创建人id',
  `modified_by` bigint(20) NULL DEFAULT NULL COMMENT '最后修改人id',
  PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8 COLLATE = utf8_general_ci COMMENT = '机器人旋转点设置' ROW_FORMAT = DYNAMIC;

-- ----------------------------
-- Records of vertex_rotation_robot_type
-- ----------------------------

-- ----------------------------
-- Table structure for vertex_rotation_setting
-- ----------------------------
DROP TABLE IF EXISTS `vertex_rotation_setting`;
CREATE TABLE `vertex_rotation_setting`  (
  `id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT 'id',
  `vertex_id` int(20) NULL DEFAULT NULL COMMENT '节点id，本系统中道路节点、货架道路节点的qrcodeId',
  `fork_height` int(11) NULL DEFAULT NULL COMMENT '在该点旋转时插齿的高度',
  `created_time` datetime NULL DEFAULT NULL COMMENT '创建时间',
  `modified_time` datetime NULL DEFAULT NULL COMMENT '修改时间',
  `created_by` bigint(20) NULL DEFAULT NULL COMMENT '创建人id',
  `modified_by` bigint(20) NULL DEFAULT NULL COMMENT '最后修改人id',
  PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8 COLLATE = utf8_general_ci COMMENT = '机器人旋转设置' ROW_FORMAT = DYNAMIC;

-- ----------------------------
-- Records of vertex_rotation_setting
-- ----------------------------

-- ----------------------------
-- Table structure for w_buy
-- ----------------------------
DROP TABLE IF EXISTS `w_buy`;
CREATE TABLE `w_buy`  (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `name` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL,
  `type` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL,
  `title` varchar(1000) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL,
  `from` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL,
  `content` text CHARACTER SET utf8 COLLATE utf8_general_ci NULL,
  `notImgContent` text CHARACTER SET utf8 COLLATE utf8_general_ci NULL,
  `originalContent` text CHARACTER SET utf8 COLLATE utf8_general_ci NULL,
  `region` varchar(1000) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '中国' COMMENT '区域',
  `matchs` varchar(1000) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '匹配上的字符串',
  `time` datetime NULL DEFAULT NULL,
  `status` int(11) NULL DEFAULT NULL,
  `del` varchar(1) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT 'N' COMMENT 'Y--被删除 N--未删除',
  PRIMARY KEY (`id`) USING BTREE,
  INDEX `w_from`(`type`, `from`, `status`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8 COLLATE = utf8_general_ci ROW_FORMAT = DYNAMIC;

-- ----------------------------
-- Records of w_buy
-- ----------------------------

-- ----------------------------
-- Table structure for warehouse_area
-- ----------------------------
DROP TABLE IF EXISTS `warehouse_area`;
CREATE TABLE `warehouse_area`  (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `name` varchar(20) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '仓库名称',
  `type` int(2) NULL DEFAULT 1 COMMENT '类型 0-人工仓 1-智能仓 默认为1',
  `radius_arrival` int(5) NULL DEFAULT 120 COMMENT '一般到位半径 默认值120mm',
  `fork_adjust` int(5) NULL DEFAULT 150 COMMENT '取卸挑高 默认值150mm',
  `road_wide` int(11) NULL DEFAULT 1775 COMMENT '路宽 默认值1775mm',
  `road_endpoint_safe_distance` int(11) NULL DEFAULT 2300 COMMENT '道路端点路宽 默认值2300mm',
  `rotation_distance` int(11) NULL DEFAULT 1000 COMMENT '转弯半径 默认值1000mm',
  `slam_map_code` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '车载导航地图的编号',
  `offset_x` int(11) NULL DEFAULT 0 COMMENT 'panel2d开始原点的X',
  `offset_y` int(11) NULL DEFAULT 0 COMMENT 'panel2d开始原点的Y',
  `panel_x_size` int(11) NULL DEFAULT 100 COMMENT 'panel2d的x长度',
  `panel_y_size` int(11) NULL DEFAULT 100 COMMENT 'panel2d的Y长度',
  `panel_rate` float NULL DEFAULT 0.01 COMMENT 'panel2d的缩放比例',
  `created_time` datetime NULL DEFAULT NULL COMMENT '创建时间',
  `modified_time` datetime NULL DEFAULT NULL COMMENT '修改时间',
  `created_by` bigint(20) NULL DEFAULT NULL COMMENT '创建人id',
  `modified_by` bigint(20) NULL DEFAULT NULL COMMENT '最后修改人id',
  PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 3 CHARACTER SET = utf8 COLLATE = utf8_general_ci ROW_FORMAT = DYNAMIC;

-- ----------------------------
-- Records of warehouse_area
-- ----------------------------
INSERT INTO `warehouse_area` VALUES (1, '测试地图一层', 1, 120, 150, 1775, 2300, 1000, '1', 0, 0, 100, 100, 0.01, '2025-02-17 17:23:58', '2025-02-17 17:23:58', NULL, NULL);
INSERT INTO `warehouse_area` VALUES (2, '测试地图二层', 1, 120, 150, 1775, 2300, 1000, '2', 0, 0, 100, 100, 0.01, '2025-02-17 17:24:15', '2025-02-17 17:24:15', NULL, NULL);

-- ----------------------------
-- Table structure for warehouse_map
-- ----------------------------
DROP TABLE IF EXISTS `warehouse_map`;
CREATE TABLE `warehouse_map`  (
  `id` int(11) NOT NULL AUTO_INCREMENT COMMENT '地图的ID',
  `name` varchar(20) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '仓库名称',
  `type` varchar(20) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '仓库类型',
  `area` int(11) NULL DEFAULT NULL COMMENT '仓库面积',
  `offset_x` int(11) NULL DEFAULT NULL COMMENT '地图的原点X',
  `offset_y` int(11) NULL DEFAULT NULL COMMENT '地图的原点Y',
  `address` varchar(20) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '仓库地址',
  `file` varchar(100) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '地图的EXCEL文件名称',
  `pic` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '仓库的CAD图片地址',
  `worker_id` int(11) NOT NULL COMMENT '上传的员工ID',
  `created_time` datetime NULL DEFAULT NULL COMMENT '创建时间',
  `modified_time` datetime NULL DEFAULT NULL COMMENT '修改时间',
  `created_by` bigint(20) NULL DEFAULT NULL COMMENT '创建人id',
  `modified_by` bigint(20) NULL DEFAULT NULL COMMENT '最后修改人id',
  PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8 COLLATE = utf8_general_ci ROW_FORMAT = DYNAMIC;

-- ----------------------------
-- Records of warehouse_map
-- ----------------------------

-- ----------------------------
-- Table structure for wms_task
-- ----------------------------
DROP TABLE IF EXISTS `wms_task`;
CREATE TABLE `wms_task`  (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `wmsNo` varchar(9999) CHARACTER SET latin1 COLLATE latin1_swedish_ci NOT NULL COMMENT '编号',
  `taskType` int(11) NOT NULL COMMENT '1:入库 2出库 3盘点 4移库',
  `taskStatus` int(11) NOT NULL COMMENT '1:下发通知执行中  2：执行完成 ',
  `taskData` varchar(9999) CHARACTER SET latin1 COLLATE latin1_swedish_ci NOT NULL COMMENT '消息体内容',
  `shelfBoxId` int(11) NOT NULL COMMENT '仓位',
  `boxId` int(11) NULL DEFAULT NULL COMMENT '托盘',
  `machine` int(11) NOT NULL,
  `taskNo` varchar(200) CHARACTER SET latin1 COLLATE latin1_swedish_ci NULL DEFAULT NULL COMMENT '对应任务编号',
  PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = latin1 COLLATE = latin1_swedish_ci ROW_FORMAT = DYNAMIC;

-- ----------------------------
-- Records of wms_task
-- ----------------------------

-- ----------------------------
-- Table structure for worker
-- ----------------------------
DROP TABLE IF EXISTS `worker`;
CREATE TABLE `worker`  (
  `id` int(11) NOT NULL AUTO_INCREMENT COMMENT '用户ID',
  `name` varchar(20) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '用户登录名',
  `roles` varchar(11) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '员工角色',
  `nickName` varchar(20) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '员工名字',
  `passwd` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '员工密码 MD5',
  `token` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '登录钥匙',
  `qrcode` varchar(20) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '1' COMMENT '员工二维码标识',
  `matPurLimit` int(11) NULL DEFAULT 10 COMMENT '货物上架模式临界值，超过推荐货物上架模式',
  `lastLoginTime` datetime NULL DEFAULT NULL ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`id`) USING BTREE,
  UNIQUE INDEX `idKey`(`id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 60009 CHARACTER SET = utf8 COLLATE = utf8_general_ci ROW_FORMAT = DYNAMIC;

-- ----------------------------
-- Records of worker
-- ----------------------------
INSERT INTO `worker` VALUES (60000, 'omsuser', '1,2,3,4', '操作员0', '24c9e15e52afc47c225b757e7bee1f9d', '92da1b2b-7b44-4965-8f0b-f37e2cff2365', 'WO0060000', 10, '2020-11-18 14:24:47');
INSERT INTO `worker` VALUES (60001, 'wmsuser', '1,2,3,4', '操作员1', '24c9e15e52afc47c225b757e7bee1f9d', '0b69983f-5194-414d-bae1-32d7aeb04104', 'WO0060001', 10, '2021-01-06 09:13:31');
INSERT INTO `worker` VALUES (60002, 'wcsuser', '1,2,3,4', '操作员2', '24c9e15e52afc47c225b757e7bee1f9d', 'f0e524fd-3e6a-4f61-a3c5-2e1ffb8ecd75', 'WO0060002', 10, '2020-12-30 09:15:10');
INSERT INTO `worker` VALUES (60003, 'user3', '1,2,3,4', '操作员3', '24c9e15e52afc47c225b757e7bee1f9d', '56e5f76c-cb72-4e0e-bcfd-0fa3ed13787f', 'WO0060003', 10, '2020-10-22 13:28:15');
INSERT INTO `worker` VALUES (60004, 'user4', '1,2,3,4', '管理员4', '24c9e15e52afc47c225b757e7bee1f9d', 'ca2e9547-cf0e-4642-a9d5-037445dd5997', 'WO0060004', 10, '2021-04-07 08:46:29');
INSERT INTO `worker` VALUES (60005, 'user5', '1,2,3,4', '工程系统管理员1', '24c9e15e52afc47c225b757e7bee1f9d', '385710b8-62bf-4c6d-ae26-e78c4c4ad23d', 'WO0060005', 10, '2021-07-20 00:06:37');
INSERT INTO `worker` VALUES (60006, 'user6', '3,4', '机器管理', '24c9e15e52afc47c225b757e7bee1f9d', 'd832dcf6-03e4-4646-aa15-0ee4c67e74a4', 'WO0060006', 10, '2020-06-09 09:10:38');
INSERT INTO `worker` VALUES (60007, 'user7', '1,2,3,4', '工程系统管理员2', '24c9e15e52afc47c225b757e7bee1f9d', 'c2aca455-571c-4d5c-b632-1c2b1890b80c', 'WO0060007', 10, '2021-08-26 14:26:14');
INSERT INTO `worker` VALUES (60008, 'jiang', '1,2,3,4', '姜粉龙', '24c9e15e52afc47c225b757e7bee1f9d', '3af53b48-d280-42ee-a54e-f778585689c0', 'WO0060008', 10, '2019-12-04 14:01:55');

-- ----------------------------
-- Procedure structure for rcs_rotation_qrcode
-- ----------------------------
DROP PROCEDURE IF EXISTS `rcs_rotation_qrcode`;
delimiter ;;
CREATE DEFINER=`root`@`%` PROCEDURE `rcs_rotation_qrcode`()
BEGIN
DECLARE i INT;  # 申明变量
SET i = 10001;  # 变量赋值
WHILE i<10221 DO # 结束循环的条件: 当i大于5时跳出while循环
UPDATE rcs_rotation_qrcode SET rcs_rotation_qrcode.id = i ;  # 往test表添加数据
SET i = i+1;    # 循环一次,i加1
END WHILE;  # 结束while循环
SELECT * FROM rcs_rotation_qrcode; # 查看test表数据
END
;;
delimiter ;

-- ----------------------------
-- Procedure structure for test
-- ----------------------------
DROP PROCEDURE IF EXISTS `test`;
delimiter ;;
CREATE DEFINER=`root`@`%` PROCEDURE `test`()
begin
declare i int;
set i=1;
while i<28 do
insert into link_exShelf_inShelf values(i,19);
set i=i+1;
end while;
end
;;
delimiter ;

-- ----------------------------
-- Event structure for event_clean_rcs_energy_history
-- ----------------------------
DROP EVENT IF EXISTS `event_clean_rcs_energy_history`;
delimiter ;;
CREATE EVENT `event_clean_rcs_energy_history`
ON SCHEDULE
EVERY '1' DAY STARTS '2022-07-05 15:00:00'
COMMENT '每天删除7天前的电量历史数据'
DO DELETE
   FROM
       rcs_energy_history
   WHERE
              DATE( created_time ) <= DATE(
	DATE_SUB( NOW(), INTERVAL 7 DAY ))
;;
delimiter ;

-- ----------------------------
-- Event structure for event_clean_rcs_trace_history
-- ----------------------------
DROP EVENT IF EXISTS `event_clean_rcs_trace_history`;
delimiter ;;
CREATE EVENT `event_clean_rcs_trace_history`
ON SCHEDULE
EVERY '1' DAY STARTS '2022-07-05 14:00:00'
COMMENT '每天删除7天前的历史数据'
DO delete from rcs_trace_history where DATE(create_time) <= DATE(DATE_SUB(NOW(),INTERVAL 7 DAY))
;;
delimiter ;

-- ----------------------------
-- Event structure for event_clean_robot_action_log
-- ----------------------------
DROP EVENT IF EXISTS `event_clean_robot_action_log`;
delimiter ;;
CREATE EVENT `event_clean_robot_action_log`
ON SCHEDULE
EVERY '1' DAY STARTS '2023-09-27 14:00:00'
COMMENT '每小时删除72小时前的历史数据'
DO delete from robot_action_log where DATE(created_time) <= DATE(DATE_SUB(NOW(),INTERVAL 30 DAY))
;;
delimiter ;

SET FOREIGN_KEY_CHECKS = 1;
