From c27c191fb4c3d4d79e2111b6dcb4e7f44200d4da Mon Sep 17 00:00:00 2001 From: lxw Date: Thu, 6 Jun 2024 11:44:03 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BA=BA=E5=B7=A5=E6=93=8D=E4=BD=9C=E8=A1=A8?= =?UTF-8?q?=20sql?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- WebStarter/db/lxw0527.sql | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/WebStarter/db/lxw0527.sql b/WebStarter/db/lxw0527.sql index f9bd6e3..e78a966 100644 --- a/WebStarter/db/lxw0527.sql +++ b/WebStarter/db/lxw0527.sql @@ -4,3 +4,23 @@ alter table bin_info add column cache_bin_flag int(1) DEFAULT 0 COMMENT "0: ALTER TABLE equip_info ADD auto_charge INT DEFAULT 0 COMMENT "0-手动;1-自动充电" ; -- 添加换电类型 ALTER TABLE swap_order ADD swap_way INT DEFAULT 0 COMMENT "换电类型:;1自动换电;2手动换电" ; + + +SET FOREIGN_KEY_CHECKS=0; + +-- ---------------------------- +-- Table structure for manual_operation_record +-- ---------------------------- +DROP TABLE IF EXISTS `manual_operation_record`; +CREATE TABLE `manual_operation_record` ( + `id` int NOT NULL AUTO_INCREMENT COMMENT 'id', + `swap_order_sn` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci DEFAULT NULL COMMENT '订单编号', + `reason` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci DEFAULT NULL COMMENT '失败原因', + `created_by` varchar(32) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci DEFAULT NULL COMMENT '创建人', + `created_time` datetime DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间', + `updated_by` varchar(32) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci DEFAULT NULL COMMENT '更新人', + `updated_time` datetime DEFAULT CURRENT_TIMESTAMP COMMENT '更新时间', + `operator` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci DEFAULT NULL COMMENT '操作人员', + `type` int DEFAULT NULL COMMENT '人工操作;1人工确认成功;2人工确认失败', + PRIMARY KEY (`id`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;