|
|
DROP TABLE IF EXISTS `stack_code`;
|
|
|
CREATE TABLE `stack_code` (
|
|
|
`id` int NOT NULL,
|
|
|
`code` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL,
|
|
|
`orderIdFk` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL,
|
|
|
PRIMARY KEY (`id`) USING BTREE
|
|
|
) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_0900_ai_ci ROW_FORMAT = Dynamic;
|
|
|
|
|
|
SET FOREIGN_KEY_CHECKS = 1;
|
|
|
|
|
|
|
|
|
|
|
|
SET NAMES utf8mb4;
|
|
|
SET FOREIGN_KEY_CHECKS = 0;
|
|
|
|
|
|
-- ----------------------------
|
|
|
-- Table structure for stack_order
|
|
|
-- ----------------------------
|
|
|
DROP TABLE IF EXISTS `stack_order`;
|
|
|
CREATE TABLE `stack_order` (
|
|
|
`id` int NOT NULL,
|
|
|
`orderId` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL,
|
|
|
`name` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL,
|
|
|
`exportStatus` tinyint NULL DEFAULT NULL,
|
|
|
`status` tinyint NULL DEFAULT NULL,
|
|
|
`createTime` datetime(0) NULL DEFAULT NULL,
|
|
|
`updateTime` datetime(0) NULL DEFAULT NULL,
|
|
|
`customerId` varchar(128) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL,
|
|
|
PRIMARY KEY (`id`) USING BTREE
|
|
|
) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_0900_ai_ci ROW_FORMAT = Dynamic;
|
|
|
|
|
|
SET FOREIGN_KEY_CHECKS = 1;
|
|
|
|
|
|
|
|
|
DROP TABLE IF EXISTS `stock_rules`;
|
|
|
CREATE TABLE `stock_rules` (
|
|
|
`id` int NOT NULL AUTO_INCREMENT COMMENT 'id',
|
|
|
`name` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT '建垛规则名称',
|
|
|
`customerId` bigint NULL DEFAULT NULL COMMENT '客户ID',
|
|
|
`prefix` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT '前缀',
|
|
|
`startNum` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT '起始数',
|
|
|
`step` int NULL DEFAULT NULL COMMENT '步进数',
|
|
|
`serialNum` int NULL DEFAULT NULL COMMENT '顺序号',
|
|
|
`status` tinyint(1) NULL DEFAULT NULL COMMENT '启用状态:0:禁用,1:启用',
|
|
|
`createTime` datetime NULL DEFAULT NULL COMMENT '创建时间',
|
|
|
`updateTime` datetime NULL DEFAULT NULL COMMENT '更新时间',
|
|
|
`remark` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT '备注',
|
|
|
PRIMARY KEY (`id`) USING BTREE
|
|
|
) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_0900_ai_ci COMMENT = '建垛规则表' ROW_FORMAT = Dynamic;
|
|
|
|
|
|
SET FOREIGN_KEY_CHECKS = 1;
|