   INDEX node_id (node_id ASC),
   FOREIGN KEY (argument_id)
     REFERENCES agora.arguments (argument_id)
-    ON DELETE NO ACTION
-    ON UPDATE NO ACTION,
+    ON DELETE CASCADE
+    ON UPDATE CASCADE,
   FOREIGN KEY (node_id)
     REFERENCES agora.nodes (node_id)
-    ON DELETE NO ACTION
-    ON UPDATE NO ACTION);+    ON DELETE CASCADE
+    ON UPDATE CASCADE);
  INDEX map_id (map_id ASC),
  FOREIGN KEY (user_id)
	REFERENCES agora.users (user_id)
    ON DELETE NO ACTION
    ON UPDATE NO ACTION,
  FOREIGN KEY (map_id)
    REFERENCES agora.maps (map_id)
    ON DELETE NO ACTION
    ON UPDATE NO ACTION);

-- -----------------------------------------------------
-- Table agora.nodetext

  INDEX nodetype_id (nodetype_id ASC),
  FOREIGN KEY (user_id)
	REFERENCES agora.users (user_id)
    ON DELETE CASCADE
    ON UPDATE CASCADE,
  FOREIGN KEY (map_id)
	REFERENCES agora.maps (map_id)
    ON DELETE CASCADE
    ON UPDATE CASCADE,
  FOREIGN KEY(nodetype_id)
    REFERENCES agora.node_types (nodetype_id)
	ON DELETE CASCADE
	ON UPDATE CASCADE);

-- -----------------------------------------------------
-- Table agora.textboxes
