-- [PUMPS]

CREATE TABLE PUMPS
(
  ID VARCHAR(32) PRIMARY KEY REFERENCES _LINK(ID)
, Node1 VARCHAR(32) REFERENCES _NODE(ID) NOT NULL
, Node2 VARCHAR(32) REFERENCES _NODE(ID) NOT NULL
);

CREATE TABLE PUMPS_PROPERTY_POWER
(
  ID VARCHAR PRIMARY KEY REFERENCES PUMPS(ID)
, Value VARCHAR(32) NOT NULL
);

CREATE TABLE PUMPS_PROPERTY_SPEED
(
  ID VARCHAR PRIMARY KEY REFERENCES PUMPS(ID)
, Value VARCHAR(32) NOT NULL
);

CREATE TABLE PUMPS_PROPERTY_HEAD
(
  ID VARCHAR PRIMARY KEY REFERENCES PUMPS(ID)
, Head VARCHAR(32) REFERENCES _CURVE(ID) NOT NULL
);

CREATE TABLE PUMPS_PROPERTY_PATTERN
(
  ID VARCHAR PRIMARY KEY REFERENCES PUMPS(ID)
, Pattern VARCHAR(32) REFERENCES _PATTERN(ID) NOT NULL
);
