   PRIMARY KEY (id)
 );
 
-CREATE TABLE IF NOT EXISTS services (
+CREATE TABLE IF NOT EXISTS service (
   "id" SERIAL NOT NULL,
   "clusterId" BIGINT NOT NULL,
   "name" VARCHAR(256) NOT NULL,

    "projections" TEXT NULL,
    "groupbykeys" TEXT NULL,
    PRIMARY KEY ("id", "versionId"),
    FOREIGN KEY ("versionId") REFERENCES topology_versioninfos(id)
);

CREATE TABLE IF NOT EXISTS udfs (
    "id" SERIAL NOT NULL,
    "name" VARCHAR(256) NOT NULL,
    "displayName" VARCHAR(256) NOT NULL,

    "window" TEXT NOT NULL,
    "actions" TEXT NOT NULL,
    PRIMARY KEY ("id", "versionId"),
    FOREIGN KEY ("versionId") REFERENCES topology_version(id)
);

CREATE TABLE IF NOT EXISTS topology_branchrule (
    "id" SERIAL NOT NULL,
    "versionId" BIGINT NOT NULL,
    "topologyId" BIGINT NOT NULL,
