Files
TJWaterServer/script/sql/create/29.scada_model.sql
2023-02-10 00:46:16 +08:00

14 lines
311 B
SQL

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
);