Refine type

This commit is contained in:
WQY\qiong
2023-05-13 10:41:05 +08:00
parent 3114a0a92e
commit d5a2e006a1
6 changed files with 22 additions and 22 deletions

View File

@@ -5,7 +5,7 @@ create type sources_type as enum ('CONCEN', 'MASS', 'FLOWPACED', 'SETPOINT');
create table sources
(
node varchar(32) primary key references _node(id)
, type sources_type not null
, s_type sources_type not null
, strength float8 not null
, pattern varchar(32) references _pattern(id)
);

View File

@@ -5,5 +5,5 @@ create table scada_device
id text primary key
, name text
, address text
, type scada_device_type
, sd_type scada_device_type
);

View File

@@ -8,7 +8,7 @@ create table valves
, node1 varchar(32) references _node(id) not null
, node2 varchar(32) references _node(id) not null
, diameter float8 not null
, type valves_type not null
, v_type valves_type not null
, setting text not null
, minor_loss float8 not null
);