add fields mode, operations to table measurement
This commit is contained in:
parent
6ab6ffecca
commit
69ec0b4ff8
|
|
@ -154,6 +154,8 @@ CREATE TABLE PUBLIC.MEASUREMENT (
|
||||||
NAME VARCHAR(64) NOT NULL DEFAULT '',
|
NAME VARCHAR(64) NOT NULL DEFAULT '',
|
||||||
TYPE SMALLINT NOT NULL DEFAULT -1, -- 要按电力元素的类型(包含可能的结构体类型)来展开
|
TYPE SMALLINT NOT NULL DEFAULT -1, -- 要按电力元素的类型(包含可能的结构体类型)来展开
|
||||||
SIZE INTEGER NOT NULL DEFAULT -1,
|
SIZE INTEGER NOT NULL DEFAULT -1,
|
||||||
|
MODE SMALLINT NOT NULL DEFAULT 1, -- 运行模式 1:采集值 0:人工置数
|
||||||
|
OPERATIONS JSONB[] NOT NULL DEFAULT '{}', -- 记录 字段command(取mode值),timestamp,value
|
||||||
DATA_SOURCE JSONB NOT NULL DEFAULT '{}', -- http://server.baseware.net:6875/books/product-design-docs/page/7eacb
|
DATA_SOURCE JSONB NOT NULL DEFAULT '{}', -- http://server.baseware.net:6875/books/product-design-docs/page/7eacb
|
||||||
EVENT_PLAN JSONB NOT NULL DEFAULT '{}', -- http://server.baseware.net:6875/books/product-design-docs/page/02522
|
EVENT_PLAN JSONB NOT NULL DEFAULT '{}', -- http://server.baseware.net:6875/books/product-design-docs/page/02522
|
||||||
BINDING JSONB NOT NULL DEFAULT '{"ct":{"ratio":1.0,"polarity":1,"index":0},"pt":{"ratio":1.0,"polarity":1,"index":0}}',
|
BINDING JSONB NOT NULL DEFAULT '{"ct":{"ratio":1.0,"polarity":1,"index":0},"pt":{"ratio":1.0,"polarity":1,"index":0}}',
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue