1 CREATE TABLE "CE_ACTIVITY" (
2 "ID" INTEGER NOT NULL GENERATED BY DEFAULT AS IDENTITY (START WITH 1, INCREMENT BY 1),
3 "UUID" VARCHAR(40) NOT NULL,
4 "TASK_TYPE" VARCHAR(15) NOT NULL,
5 "COMPONENT_UUID" VARCHAR(40) NULL,
6 "ANALYSIS_UUID" VARCHAR(50) NULL,
7 "STATUS" VARCHAR(15) NOT NULL,
8 "IS_LAST" BOOLEAN NOT NULL,
9 "IS_LAST_KEY" VARCHAR(55) NOT NULL,
10 "SUBMITTER_LOGIN" VARCHAR(255) NULL,
11 "WORKER_UUID" VARCHAR(40) NULL,
12 "EXECUTION_COUNT" INTEGER NOT NULL,
13 "SUBMITTED_AT" BIGINT NOT NULL,
14 "STARTED_AT" BIGINT NULL,
15 "EXECUTED_AT" BIGINT NULL,
16 "CREATED_AT" BIGINT NOT NULL,
17 "UPDATED_AT" BIGINT NOT NULL,
18 "EXECUTION_TIME_MS" BIGINT NULL,
19 "ERROR_MESSAGE" VARCHAR(1000),
20 "ERROR_STACKTRACE" CLOB(2147483647)
23 CREATE UNIQUE INDEX "CE_ACTIVITY_UUID" ON "CE_ACTIVITY" ("UUID");
24 CREATE INDEX "CE_ACTIVITY_COMPONENT_UUID" ON "CE_ACTIVITY" ("COMPONENT_UUID");
25 CREATE INDEX "CE_ACTIVITY_ISLASTKEY" ON "CE_ACTIVITY" ("IS_LAST_KEY");
26 CREATE INDEX "CE_ACTIVITY_ISLAST_STATUS" ON "CE_ACTIVITY" ("IS_LAST", "STATUS");
29 CREATE TABLE "WEBHOOK_DELIVERIES" (
30 "UUID" VARCHAR(40) NOT NULL PRIMARY KEY,
31 "COMPONENT_UUID" VARCHAR(40) NOT NULL,
32 "ANALYSIS_UUID" VARCHAR(40),
33 "CE_TASK_UUID" VARCHAR(40),
34 "NAME" VARCHAR(100) NOT NULL,
35 "URL" VARCHAR(2000) NOT NULL,
36 "SUCCESS" BOOLEAN NOT NULL,
39 "PAYLOAD" CLOB NOT NULL,
40 "ERROR_STACKTRACE" CLOB,
41 "CREATED_AT" BIGINT NOT NULL
43 CREATE UNIQUE INDEX "PK_WEBHOOK_DELIVERIES" ON "WEBHOOK_DELIVERIES" ("UUID");
44 CREATE INDEX "COMPONENT_UUID" ON "WEBHOOK_DELIVERIES" ("COMPONENT_UUID");
45 CREATE INDEX "CE_TASK_UUID" ON "WEBHOOK_DELIVERIES" ("CE_TASK_UUID");
46 CREATE INDEX "ANALYSES_UUID" ON "WEBHOOK_DELIVERIES" ("ANALYSIS_UUID");