   "name" VARCHAR(256) NOT NULL,
   "topologyId" BIGINT NOT NULL,
   "timestamp" BIGINT,
-  PRIMARY KEY (id),
-  FOREIGN KEY (topologyId) REFERENCES topology(id)
+  PRIMARY KEY (id)
 );
 
 CREATE TABLE IF NOT EXISTS topology_test_run_case_source (

  "records" TEXT NOT NULL,
  "timestamp" BIGINT,
  PRIMARY KEY (id),
  FOREIGN KEY (testCaseId) REFERENCES topology_test_run_case(id),
  FOREIGN KEY (sourceId) REFERENCES topology_source(id),
  UNIQUE KEY testcase_source (testCaseId, sourceId)
);

CREATE TABLE IF NOT EXISTS topology_test_run_case_sink (
  id SERIAL NOT NULL,
  testCaseId BIGINT NOT NULL,
  sinkId BIGINT NOT NULL,
  records TEXT NOT NULL,
  timestamp BIGINT,
  PRIMARY KEY (id),
  FOREIGN KEY (testCaseId) REFERENCES topology_test_run_case(id),
  FOREIGN KEY (sinkId) REFERENCES topology_sink(id),
  UNIQUE KEY testcase_sink (testCaseId, sinkId)
);

CREATE TABLE IF NOT EXISTS topology_test_run_histories (

  "topologyId" BIGINT NOT NULL,
  "name" VARCHAR(255) NOT NULL,
  "description" TEXT NOT NULL,
  PRIMARY KEY ("topologyId")
);

CREATE TABLE IF NOT EXISTS service_bundle (
