-- [SCADA_INFO]
-- WMH
-- 2025/01/12
create table scada_info
(
  id varchar(32) primary key
, type varchar(32) not null
, associated_element_id varchar(32) not null
, associated_pattern varchar(32)
, associated_pipe_flow_id varchar(32)
, associated_source_outflow_id1 varchar(32)
, associated_source_outflow_id2 varchar(32)
, associated_source_outflow_id3 varchar(32)
, associated_source_outflow_id4 varchar(32)
, associated_source_outflow_id5 varchar(32)
, associated_source_outflow_id6 varchar(32)
, associated_source_outflow_id7 varchar(32)
, associated_source_outflow_id8 varchar(32)
, associated_source_outflow_id9 varchar(32)
, associated_source_outflow_id10 varchar(32)
, associated_source_outflow_id11 varchar(32)
, associated_source_outflow_id12 varchar(32)
, associated_source_outflow_id13 varchar(32)
, associated_source_outflow_id14 varchar(32)
, associated_source_outflow_id15 varchar(32)
, associated_source_outflow_id16 varchar(32)
, associated_source_outflow_id17 varchar(32)
, associated_source_outflow_id18 varchar(32)
, associated_source_outflow_id19 varchar(32)
, associated_source_outflow_id20 varchar(32)
, API_query_id varchar(32)
, transmission_mode varchar(32) not null
, transmission_frequency text not null
, X_coor float8 not null
, Y_coor float8 not null
, coord geometry
)