-- [TANKS]

CREATE TYPE TANKS_OVERFLOW AS ENUM ('YES', 'NO');

CREATE TABLE TANKS
(
  ID VARCHAR(32) PRIMARY KEY REFERENCES _NODE(ID)
, Elevation NUMERIC NOT NULL
, Init_Level NUMERIC NOT NULL
, Min_Level NUMERIC NOT NULL
, Max_Level NUMERIC NOT NULL
, Diameter NUMERIC NOT NULL
, Min_Vol NUMERIC NOT NULL
, Vol_Curve VARCHAR(32) REFERENCES _CURVE(ID)
, Overflow TANKS_OVERFLOW
);
