3 CREATE TABLE "SNAPSHOTS" (
4 "ID" INTEGER NOT NULL GENERATED BY DEFAULT AS IDENTITY (START WITH 1, INCREMENT BY 1),
5 "CREATED_AT" TIMESTAMP,
6 "BUILD_DATE" TIMESTAMP,
7 "PROJECT_ID" INTEGER NOT NULL,
8 "PARENT_SNAPSHOT_ID" INTEGER,
9 "STATUS" VARCHAR(4) NOT NULL DEFAULT 'U',
10 "PURGE_STATUS" INTEGER,
11 "ISLAST" BOOLEAN NOT NULL DEFAULT FALSE,
13 "QUALIFIER" VARCHAR(10),
14 "ROOT_SNAPSHOT_ID" INTEGER,
15 "VERSION" VARCHAR(500),
18 "ROOT_PROJECT_ID" INTEGER,
19 "PERIOD1_MODE" VARCHAR(100),
20 "PERIOD1_PARAM" VARCHAR(100),
21 "PERIOD1_DATE" TIMESTAMP,
22 "PERIOD2_MODE" VARCHAR(100),
23 "PERIOD2_PARAM" VARCHAR(100),
24 "PERIOD2_DATE" TIMESTAMP,
25 "PERIOD3_MODE" VARCHAR(100),
26 "PERIOD3_PARAM" VARCHAR(100),
27 "PERIOD3_DATE" TIMESTAMP,
28 "PERIOD4_MODE" VARCHAR(100),
29 "PERIOD4_PARAM" VARCHAR(100),
30 "PERIOD4_DATE" TIMESTAMP,
31 "PERIOD5_MODE" VARCHAR(100),
32 "PERIOD5_PARAM" VARCHAR(100),
33 "PERIOD5_DATE" TIMESTAMP
36 CREATE TABLE "USERS" (
37 "ID" INTEGER NOT NULL GENERATED BY DEFAULT AS IDENTITY (START WITH 1, INCREMENT BY 1),
41 "CRYPTED_PASSWORD" VARCHAR(40),
43 "CREATED_AT" TIMESTAMP,
44 "UPDATED_AT" TIMESTAMP,
45 "REMEMBER_TOKEN" VARCHAR(500),
46 "REMEMBER_TOKEN_EXPIRES_AT" TIMESTAMP,
47 "ACTIVE" BOOLEAN DEFAULT TRUE
51 CREATE TABLE "RULE_FAILURES" (
52 "ID" INTEGER NOT NULL GENERATED BY DEFAULT AS IDENTITY (START WITH 1, INCREMENT BY 1),
53 "SNAPSHOT_ID" INTEGER NOT NULL,
54 "RULE_ID" INTEGER NOT NULL,
55 "FAILURE_LEVEL" INTEGER NOT NULL,
56 "MESSAGE" VARCHAR(4000),
59 "CREATED_AT" TIMESTAMP,
60 "CHECKSUM" VARCHAR(1000),
61 "PERMANENT_ID" INTEGER,
62 "SWITCHED_OFF" BOOLEAN,
66 CREATE TABLE "ACTION_PLANS" (
67 "ID" INTEGER NOT NULL GENERATED BY DEFAULT AS IDENTITY (START WITH 1, INCREMENT BY 1),
70 "DESCRIPTION" VARCHAR(1000),
72 "USER_LOGIN" VARCHAR(40),
75 "CREATED_AT" TIMESTAMP,
76 "UPDATED_AT" TIMESTAMP
79 CREATE TABLE "ACTION_PLANS_REVIEWS" (
80 "ACTION_PLAN_ID" INTEGER,
84 CREATE TABLE "REVIEWS" (
85 "ID" INTEGER NOT NULL GENERATED BY DEFAULT AS IDENTITY (START WITH 1, INCREMENT BY 1),
86 "CREATED_AT" TIMESTAMP,
87 "UPDATED_AT" TIMESTAMP,
89 "ASSIGNEE_ID" INTEGER,
92 "SEVERITY" VARCHAR(10),
93 "RULE_FAILURE_PERMANENT_ID" INTEGER,
95 "RESOURCE_ID" INTEGER,
96 "RESOURCE_LINE" INTEGER,
97 "RESOLUTION" VARCHAR(200),
99 "MANUAL_VIOLATION" BOOLEAN NOT NULL,
100 "MANUAL_SEVERITY" BOOLEAN NOT NULL,
104 CREATE TABLE "REVIEW_COMMENTS" (
105 "ID" INTEGER NOT NULL GENERATED BY DEFAULT AS IDENTITY (START WITH 1, INCREMENT BY 1),
106 "CREATED_AT" TIMESTAMP,
107 "UPDATED_AT" TIMESTAMP,
110 "REVIEW_TEXT" VARCHAR(16777215)
117 CREATE TABLE "ISSUES" (
118 "ID" INTEGER NOT NULL GENERATED BY DEFAULT AS IDENTITY (START WITH 1, INCREMENT BY 1),
119 "KEE" VARCHAR(50) UNIQUE NOT NULL,
120 "COMPONENT_ID" INTEGER NOT NULL,
121 "ROOT_COMPONENT_ID" INTEGER,
123 "SEVERITY" VARCHAR(10),
124 "MANUAL_SEVERITY" BOOLEAN NOT NULL,
125 "MESSAGE" VARCHAR(4000),
127 "EFFORT_TO_FIX" DOUBLE,
128 "STATUS" VARCHAR(20),
129 "RESOLUTION" VARCHAR(20),
130 "CHECKSUM" VARCHAR(1000),
131 "REPORTER" VARCHAR(40),
132 "ASSIGNEE" VARCHAR(40),
133 "AUTHOR_LOGIN" VARCHAR(100),
134 "ACTION_PLAN_KEY" VARCHAR(50) NULL,
135 "ISSUE_ATTRIBUTES" VARCHAR(4000),
136 "ISSUE_CREATION_DATE" TIMESTAMP,
137 "ISSUE_CLOSE_DATE" TIMESTAMP,
138 "ISSUE_UPDATE_DATE" TIMESTAMP,
139 "CREATED_AT" TIMESTAMP,
140 "UPDATED_AT" TIMESTAMP
143 CREATE TABLE "ISSUE_CHANGES" (
144 "ID" INTEGER NOT NULL GENERATED BY DEFAULT AS IDENTITY (START WITH 1, INCREMENT BY 1),
146 "ISSUE_KEY" VARCHAR(50) NOT NULL,
147 "USER_LOGIN" VARCHAR(40),
148 "CHANGE_TYPE" VARCHAR(40),
149 "CHANGE_DATA" VARCHAR(16777215),
150 "CREATED_AT" TIMESTAMP,
151 "UPDATED_AT" TIMESTAMP,