From 53015a43ae27c7262b715e6313bd765e3515134b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=99=BD=E5=87=A4=E5=90=89?= Date: Thu, 20 Feb 2025 11:23:50 +0800 Subject: [PATCH] =?UTF-8?q?fix:=E5=A2=9E=E5=8A=A0=E5=B7=A5=E8=89=BA?= =?UTF-8?q?=E6=B5=8B=E8=AF=95=E6=95=B0=E6=8D=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- sql/demo.sql | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/sql/demo.sql b/sql/demo.sql index 420660b..1f116ab 100644 --- a/sql/demo.sql +++ b/sql/demo.sql @@ -99,8 +99,8 @@ CREATE TABLE IF NOT EXISTS ores ( update_time TIMESTAMP DEFAULT CURRENT_TIMESTAMP ); -INSERT INTO "main"."ores" ("id", "name", "create_time", "update_time") VALUES (1, '金矿石', '2025-02-18 02:47:35', '2025-02-18 02:47:35'); -INSERT INTO "main"."ores" ("id", "name", "create_time", "update_time") VALUES (2, '银矿石', '2025-02-18 02:47:41', '2025-02-18 02:47:41'); +INSERT INTO "ores" ("id", "name", "create_time", "update_time") VALUES (1, '金矿石', '2025-02-18 02:47:35', '2025-02-18 02:47:35'); +INSERT INTO "ores" ("id", "name", "create_time", "update_time") VALUES (2, '银矿石', '2025-02-18 02:47:41', '2025-02-18 02:47:41'); -- 创建 crafts 工艺 表 CREATE TABLE IF NOT EXISTS crafts ( @@ -112,6 +112,10 @@ CREATE TABLE IF NOT EXISTS crafts ( update_time TIMESTAMP DEFAULT CURRENT_TIMESTAMP ); +INSERT INTO "crafts" ("name", "steps", "ores_id") VALUES ('测试工艺1', '[{"method":"upTray"},{"method":"downTray"},{"method":"addLiquid","params":{"tubeSolList":[{"tubeNum":15,"addLiquidList":[{"solId":15,"volume":20}]}]}},{"method":"moveToSol"},{"method":"moveToHeater"},{"method":"shaking","params":{"second":6}},{"method":"startHeating","params":{"temperature":200}},{"method":"stopHeating"},{"method":"takePhoto"},{"method":"delay","params":{"second":2}}]', 1); +INSERT INTO "crafts" ("name", "steps", "ores_id") VALUES ('测试工艺2', '[{"method":"upTray"},{"method":"downTray"},{"method":"addLiquid","params":{"tubeSolList":[{"tubeNum":15,"addLiquidList":[{"solId":15,"volume":20}]}]}},{"method":"moveToSol"},{"method":"moveToHeater"},{"method":"shaking","params":{"second":6}},{"method":"startHeating","params":{"temperature":200}},{"method":"stopHeating"},{"method":"takePhoto"},{"method":"delay","params":{"second":2}}]', 1); +INSERT INTO "crafts" ("name", "steps", "ores_id") VALUES ('测试工艺3', '[{"method":"upTray"},{"method":"downTray"},{"method":"addLiquid","params":{"tubeSolList":[{"tubeNum":15,"addLiquidList":[{"solId":15,"volume":20}]}]}},{"method":"moveToSol"},{"method":"moveToHeater"},{"method":"shaking","params":{"second":6}},{"method":"startHeating","params":{"temperature":200}},{"method":"stopHeating"},{"method":"takePhoto"},{"method":"delay","params":{"second":2}}]', 1); + -- 创建 tasks 实验 CREATE TABLE IF NOT EXISTS tasks ( id INTEGER PRIMARY KEY AUTOINCREMENT,