1 CREATE TABLE "ORGANIZATIONS" (
2 "UUID" VARCHAR(40) NOT NULL PRIMARY KEY,
3 "KEE" VARCHAR(32) NOT NULL,
4 "NAME" VARCHAR(64) NOT NULL,
5 "DESCRIPTION" VARCHAR(256),
7 "AVATAR_URL" VARCHAR(256),
8 "DEFAULT_PERM_TEMPLATE" VARCHAR(40),
9 "DEFAULT_PERM_TEMPLATE_PROJECT" VARCHAR(40),
10 "DEFAULT_PERM_TEMPLATE_VIEW" VARCHAR(40),
11 "CREATED_AT" BIGINT NOT NULL,
12 "UPDATED_AT" BIGINT NOT NULL
14 CREATE UNIQUE INDEX "PK_ORGANIZATIONS" ON "ORGANIZATIONS" ("UUID");
15 CREATE UNIQUE INDEX "ORGANIZATION_KEY" ON "ORGANIZATIONS" ("KEE");
17 CREATE TABLE "PROPERTIES" (
18 "ID" INTEGER NOT NULL GENERATED BY DEFAULT AS IDENTITY (START WITH 1, INCREMENT BY 1),
19 "PROP_KEY" VARCHAR(512) NOT NULL,
20 "RESOURCE_ID" INTEGER,
22 "IS_EMPTY" BOOLEAN NOT NULL,
23 "TEXT_VALUE" VARCHAR(4000),
24 "CLOB_VALUE" CLOB(2147483647),
27 CREATE INDEX "PROPERTIES_KEY" ON "PROPERTIES" ("PROP_KEY");
29 CREATE TABLE "INTERNAL_PROPERTIES" (
30 "KEE" VARCHAR(50) NOT NULL PRIMARY KEY,
31 "IS_EMPTY" BOOLEAN NOT NULL,
32 "TEXT_VALUE" VARCHAR(4000),
36 CREATE UNIQUE INDEX "UNIQ_INTERNAL_PROPERTIES" ON "INTERNAL_PROPERTIES" ("KEE");