1 CREATE TABLE ALM_SETTINGS(
2 UUID VARCHAR(40) NOT NULL,
3 ALM_ID VARCHAR(40) NOT NULL,
4 KEE VARCHAR(200) NOT NULL,
7 PRIVATE_KEY VARCHAR(2000),
9 UPDATED_AT BIGINT NOT NULL,
10 CREATED_AT BIGINT NOT NULL
12 ALTER TABLE ALM_SETTINGS ADD CONSTRAINT PK_ALM_SETTINGS PRIMARY KEY(UUID);
13 CREATE UNIQUE INDEX UNIQ_ALM_SETTINGS ON ALM_SETTINGS(KEE);
15 CREATE TABLE PROJECT_ALM_SETTINGS(
16 UUID VARCHAR(40) NOT NULL,
17 ALM_SETTING_UUID VARCHAR(40) NOT NULL,
18 PROJECT_UUID VARCHAR(50) NOT NULL,
19 ALM_REPO VARCHAR(256),
20 ALM_SLUG VARCHAR(256),
21 UPDATED_AT BIGINT NOT NULL,
22 CREATED_AT BIGINT NOT NULL
24 ALTER TABLE PROJECT_ALM_SETTINGS ADD CONSTRAINT PK_PROJECT_ALM_SETTINGS PRIMARY KEY(UUID);
25 CREATE UNIQUE INDEX UNIQ_PROJECT_ALM_SETTINGS ON PROJECT_ALM_SETTINGS(PROJECT_UUID);
26 CREATE INDEX PROJECT_ALM_SETTINGS_ALM ON PROJECT_ALM_SETTINGS(ALM_SETTING_UUID);
28 CREATE TABLE "PROPERTIES" (
29 "ID" INTEGER NOT NULL GENERATED BY DEFAULT AS IDENTITY (START WITH 1, INCREMENT BY 1),
30 "PROP_KEY" VARCHAR(512) NOT NULL,
31 "RESOURCE_ID" INTEGER,
33 "IS_EMPTY" BOOLEAN NOT NULL,
34 "TEXT_VALUE" VARCHAR(4000),
38 CREATE INDEX "PROPERTIES_KEY" ON "PROPERTIES" ("PROP_KEY");
40 CREATE TABLE PROJECTS(
41 ID INTEGER NOT NULL AUTO_INCREMENT (1,1),
42 UUID VARCHAR(50) NOT NULL,
43 ORGANIZATION_UUID VARCHAR(40) NOT NULL,
45 DEPRECATED_KEE VARCHAR(400),
47 LONG_NAME VARCHAR(2000),
48 DESCRIPTION VARCHAR(2000),
49 ENABLED BOOLEAN DEFAULT TRUE NOT NULL,
51 QUALIFIER VARCHAR(10),
52 PRIVATE BOOLEAN NOT NULL,
53 ROOT_UUID VARCHAR(50) NOT NULL,
55 COPY_COMPONENT_UUID VARCHAR(50),
56 DEVELOPER_UUID VARCHAR(50),
58 UUID_PATH VARCHAR(1500) NOT NULL,
59 PROJECT_UUID VARCHAR(50) NOT NULL,
60 MODULE_UUID VARCHAR(50),
61 MODULE_UUID_PATH VARCHAR(1500),
62 AUTHORIZATION_UPDATED_AT BIGINT,
64 MAIN_BRANCH_PROJECT_UUID VARCHAR(50),
67 B_LONG_NAME VARCHAR(500),
68 B_DESCRIPTION VARCHAR(2000),
70 B_QUALIFIER VARCHAR(10),
71 B_LANGUAGE VARCHAR(20),
72 B_COPY_COMPONENT_UUID VARCHAR(50),
74 B_UUID_PATH VARCHAR(1500),
75 B_MODULE_UUID VARCHAR(50),
76 B_MODULE_UUID_PATH VARCHAR(1500),
79 ALTER TABLE PROJECTS ADD CONSTRAINT PK_PROJECTS PRIMARY KEY(ID);
80 CREATE INDEX PROJECTS_ORGANIZATION ON PROJECTS(ORGANIZATION_UUID);
81 CREATE UNIQUE INDEX PROJECTS_KEE ON PROJECTS(KEE);
82 CREATE INDEX PROJECTS_MODULE_UUID ON PROJECTS(MODULE_UUID);
83 CREATE INDEX PROJECTS_PROJECT_UUID ON PROJECTS(PROJECT_UUID);
84 CREATE INDEX PROJECTS_QUALIFIER ON PROJECTS(QUALIFIER);
85 CREATE INDEX PROJECTS_ROOT_UUID ON PROJECTS(ROOT_UUID);
86 CREATE INDEX PROJECTS_UUID ON PROJECTS(UUID);