Add 'status' field to scada_model

This commit is contained in:
WQY\qiong
2023-02-16 21:20:21 +08:00
parent 8c21ebb48c
commit 6ba4dc2ed7
2 changed files with 4 additions and 0 deletions

View File

@@ -1,4 +1,5 @@
create type scada_type as enum ('PRESSURE', 'DEMAND', 'QUALITY', 'LEVEL', 'FLOW');
create type scada_status as enum ('OFF', 'ON');
create table scada_model
(
@@ -10,4 +11,5 @@ create table scada_model
, address text
, type scada_type
, model_id varchar(32) -- add constraint in API
, status scada_status not null default 'OFF'
);

View File

@@ -1,3 +1,5 @@
drop table if exists scada_model;
drop type if exists scada_status;
drop type if exists scada_type;