     PRIMARY KEY ("id", "versionId")
 );
 
-CREATE TABLE IF NOT EXISTS topology_sinks (
-  "id" SERIAL NOT NULL,
-  "versionId" BIGINT REFERENCES topology_versioninfos,
+CREATE TABLE IF NOT EXISTS topology_sink (
+  "id" SERIAL NOT NULL,
+  "versionId" BIGINT REFERENCES topology_version,
   "topologyId" BIGINT NOT NULL,
   "topologyComponentBundleId" BIGINT NOT NULL,
   "name" VARCHAR(256) NOT NULL,

     PRIMARY KEY ("namespaceId", "serviceName", "clusterId")
);

CREATE TABLE IF NOT EXISTS topology_versioninfos (
  "id" SERIAL PRIMARY KEY,
  "topologyId" BIGINT NOT NULL,
  "name" VARCHAR(256) NOT NULL,

  PRIMARY KEY (id)
);

CREATE TABLE IF NOT EXISTS service (
  "id" SERIAL NOT NULL,
  "clusterId" BIGINT NOT NULL,
  "name" VARCHAR(256) NOT NULL,
