diff --git a/scripts/sql/MySQL-sparchetype_20200326.sql b/scripts/sql/MySQL-sparchetype_20200702.sql similarity index 95% rename from scripts/sql/MySQL-sparchetype_20200326.sql rename to scripts/sql/MySQL-sparchetype_20200702.sql index c21bc65..298c776 100644 --- a/scripts/sql/MySQL-sparchetype_20200326.sql +++ b/scripts/sql/MySQL-sparchetype_20200702.sql @@ -480,3 +480,27 @@ INSERT INTO `sp_work_shop` VALUES ('1336875254022176', 'DC-车间1', '电池组 INSERT INTO `sp_work_shop` VALUES ('1336875591663648', 'DC-JS01', '加酸车间', '2020-03-14 11:32:38', 'admin', '2020-03-14 11:32:38', 'admin'); SET FOREIGN_KEY_CHECKS = 1; + + +-- ---------------------------- +-- Table structure for sp_order +-- ---------------------------- +DROP TABLE IF EXISTS `sp_order`; +CREATE TABLE `sp_order` ( + `id` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL COMMENT '主键id', + `order_code` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '工单编号', + `order_description` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '工单描述', + `qty` int(255) NULL DEFAULT NULL COMMENT '工单数量', + `order_type` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '订单类型 P 量产 A验证 F返工 ', + `flow_id` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '流程ID', + `materiel` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT '物料编码', + `materiel_desc` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT '物料描述', + `plan_start_time` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '计划开始时间', + `plan_end_time` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT '0' COMMENT '计划结束时间', + `statue` tinyint(255) NULL DEFAULT NULL COMMENT '1,创建 2 进行中,3订单结束,4订单终结', + `create_time` datetime(0) NOT NULL COMMENT '创建时间', + `create_username` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL COMMENT '创建人', + `update_time` datetime(0) NOT NULL COMMENT '最后更新时间', + `update_username` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL COMMENT '最后更新人', + PRIMARY KEY (`id`) USING BTREE +) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_general_ci ROW_FORMAT = Dynamic;