-- [REACTIONS]

create table reactions_global
(
  key text not null
, value numeric not null
);

create table reactions_pipe_bulk
(
  pipe  varchar(32) primary key references pipes(id) not null
, value numeric not null
);

create table reactions_pipe_wall
(
  pipe  varchar(32) primary key references pipes(id) not null
, value numeric not null
);

create table reactions_tank
(
  tank  varchar(32) primary key references tanks(id) not null
, value numeric not null
);
