1 CREATE TABLE "PROJECTS" (
2 "ID" INTEGER NOT NULL GENERATED BY DEFAULT AS IDENTITY (START WITH 1, INCREMENT BY 1),
3 "ORGANIZATION_UUID" VARCHAR(40) NOT NULL,
5 "UUID" VARCHAR(50) NOT NULL,
6 "UUID_PATH" VARCHAR(1500) NOT NULL,
7 "ROOT_UUID" VARCHAR(50) NOT NULL,
8 "PROJECT_UUID" VARCHAR(50) NOT NULL,
9 "MODULE_UUID" VARCHAR(50),
10 "MODULE_UUID_PATH" VARCHAR(1500),
11 "MAIN_BRANCH_PROJECT_UUID" VARCHAR(50),
13 "DESCRIPTION" VARCHAR(2000),
14 "PRIVATE" BOOLEAN NOT NULL,
16 "ENABLED" BOOLEAN NOT NULL DEFAULT TRUE,
18 "QUALIFIER" VARCHAR(10),
19 "DEPRECATED_KEE" VARCHAR(400),
21 "LANGUAGE" VARCHAR(20),
22 "COPY_COMPONENT_UUID" VARCHAR(50),
23 "LONG_NAME" VARCHAR(2000),
24 "DEVELOPER_UUID" VARCHAR(50),
25 "CREATED_AT" TIMESTAMP,
26 "AUTHORIZATION_UPDATED_AT" BIGINT,
28 "B_COPY_COMPONENT_UUID" VARCHAR(50),
29 "B_DESCRIPTION" VARCHAR(2000),
31 "B_UUID_PATH" VARCHAR(1500),
32 "B_LANGUAGE" VARCHAR(20),
33 "B_LONG_NAME" VARCHAR(500),
34 "B_MODULE_UUID" VARCHAR(50),
35 "B_MODULE_UUID_PATH" VARCHAR(1500),
36 "B_NAME" VARCHAR(500),
37 "B_PATH" VARCHAR(2000),
38 "B_QUALIFIER" VARCHAR(10)
40 CREATE INDEX "PROJECTS_ORGANIZATION" ON "PROJECTS" ("ORGANIZATION_UUID");
41 CREATE UNIQUE INDEX "PROJECTS_KEE" ON "PROJECTS" ("KEE");
42 CREATE INDEX "PROJECTS_ROOT_UUID" ON "PROJECTS" ("ROOT_UUID");
43 CREATE UNIQUE INDEX "PROJECTS_UUID" ON "PROJECTS" ("UUID");
44 CREATE INDEX "PROJECTS_PROJECT_UUID" ON "PROJECTS" ("PROJECT_UUID");
45 CREATE INDEX "PROJECTS_MODULE_UUID" ON "PROJECTS" ("MODULE_UUID");
46 CREATE INDEX "PROJECTS_QUALIFIER" ON "PROJECTS" ("QUALIFIER");
48 CREATE TABLE "QUALITY_GATES" (
49 "ID" INTEGER NOT NULL GENERATED BY DEFAULT AS IDENTITY (START WITH 1, INCREMENT BY 1),
50 "UUID" VARCHAR(40) NOT NULL,
51 "NAME" VARCHAR(100) NOT NULL,
52 "IS_BUILT_IN" BOOLEAN NOT NULL,
53 "CREATED_AT" TIMESTAMP,
54 "UPDATED_AT" TIMESTAMP,
56 CREATE UNIQUE INDEX "UNIQ_QUALITY_GATES_UUID" ON "QUALITY_GATES" ("UUID");
59 CREATE TABLE "PROPERTIES" (
60 "ID" INTEGER NOT NULL GENERATED BY DEFAULT AS IDENTITY (START WITH 1, INCREMENT BY 1),
61 "PROP_KEY" VARCHAR(512) NOT NULL,
62 "RESOURCE_ID" INTEGER,
64 "IS_EMPTY" BOOLEAN NOT NULL,
65 "TEXT_VALUE" VARCHAR(4000),
69 CREATE INDEX "PROPERTIES_KEY" ON "PROPERTIES" ("PROP_KEY");
71 CREATE TABLE "PROJECT_QGATES" (
72 "PROJECT_UUID" VARCHAR(40) NOT NULL,
73 "QUALITY_GATE_UUID" VARCHAR(40) NOT NULL,
75 CONSTRAINT "PK_PROJECT_QGATES" PRIMARY KEY ("PROJECT_UUID")
77 CREATE UNIQUE INDEX "UNIQ_PROJECT_QGATES" ON "PROJECT_QGATES" ("PROJECT_UUID", "QUALITY_GATE_UUID");