-- [REACTIONS]

create type reactions_order_param as enum ('BULK', 'WALL', 'TANK');

create table reactions_order
(
  key reactions_order_param not null
, value numeric not null
);

create type reactions_global_param as enum ('BULK', 'WALL');

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

create type reactions_pipe_param as enum ('BULK', 'WALL');

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

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

create table reactions_limiting_potential
(
  value numeric not null
);

create table reactions_roughness_correlation
(
  value numeric not null
);
