Add table scada_model

This commit is contained in:
WQY\qiong
2023-02-10 00:46:16 +08:00
parent d04dea6b60
commit 1520847813
2 changed files with 16 additions and 0 deletions

View File

@@ -0,0 +1,13 @@
create type scada_type as enum ('PRESSURE', 'DEMAND', 'QUALITY', 'LEVEL', 'FLOW');
create table scada_model
(
id text primary key
, x numeric not null
, y numeric not null
, device_id text not null unique
, device_name text
, address text
, type scada_type
, model_id varchar(32) -- add constraint in API
);

View File

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