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