]> source.dussan.org Git - sonarqube.git/blob
ac79cfaaf79c735c6042fe8640b91e9897d3ea29
[sonarqube.git] /
1 CREATE TABLE "EVENTS"(
2     "ID" INTEGER NOT NULL,
3     "UUID" VARCHAR(40) NOT NULL,
4     "ANALYSIS_UUID" VARCHAR(50) NOT NULL,
5     "NAME" VARCHAR(400),
6     "CATEGORY" VARCHAR(50),
7     "DESCRIPTION" VARCHAR(4000),
8     "EVENT_DATA" VARCHAR(4000),
9     "EVENT_DATE" BIGINT NOT NULL,
10     "CREATED_AT" BIGINT NOT NULL,
11     "COMPONENT_UUID" VARCHAR(50) NOT NULL
12 );
13 ALTER TABLE "EVENTS" ADD CONSTRAINT "PK_EVENTS" PRIMARY KEY("UUID");
14 CREATE UNIQUE INDEX "EVENTS_UUID" ON "EVENTS"("UUID");
15 CREATE INDEX "EVENTS_ANALYSIS" ON "EVENTS"("ANALYSIS_UUID");
16 CREATE INDEX "EVENTS_COMPONENT_UUID" ON "EVENTS"("COMPONENT_UUID");