From 8428c7048b23017614cafb968bfba7c82733a857 Mon Sep 17 00:00:00 2001 From: zhuxu Date: Wed, 18 Dec 2024 17:10:27 +0800 Subject: [PATCH] update component --- create.sql | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/create.sql b/create.sql index 2c51802..cd3c181 100644 --- a/create.sql +++ b/create.sql @@ -244,13 +244,14 @@ CREATE TABLE component ( --position JSONB NOT NULL DEFAULT '{}', -- {"x":0,"y":0},是否放在数据中 context JSONB NOT NULL DEFAULT '{}', -- 数据格式暂定jsonb,需要存放什么样的UI侧的数据 - station_id INTEGER NOT NULL DEFAULT -1, + grid VARCHAR(64) NOT NULL DEFAULT '', -- 仅用于展示 + zone VARCHAR(64) NOT NULL DEFAULT '', -- 仅用于展示 + station VARCHAR(64) NOT NULL DEFAULT '', -- 仅用于展示 page_id INTEGER NOT NULL DEFAULT -1, -- 组态图id -- op INTEGER NOT NULL DEFAULT -1, ts TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP, - FOREIGN KEY(station_id) REFERENCES station(id), FOREIGN KEY(page_id) REFERENCES page(id) ); COMMENT ON TABLE component IS '设备信息';