1 CREATE TABLE "FILE_SOURCES" (
2 "ID" INTEGER NOT NULL AUTO_INCREMENT (1,1),
3 "PROJECT_UUID" VARCHAR(50) NOT NULL,
4 "FILE_UUID" VARCHAR(50) NOT NULL,
6 "LINE_COUNT" INTEGER NOT NULL,
8 "DATA_TYPE" VARCHAR(20),
9 "DATA_HASH" VARCHAR(50),
10 "SRC_HASH" VARCHAR(50),
11 "REVISION" VARCHAR(100),
12 "CREATED_AT" BIGINT NOT NULL,
13 "UPDATED_AT" BIGINT NOT NULL
15 CREATE INDEX "FILE_SOURCES_PROJECT_UUID" ON "FILE_SOURCES" ("PROJECT_UUID");
16 CREATE UNIQUE INDEX "FILE_SOURCES_UUID_TYPE" ON "FILE_SOURCES" ("FILE_UUID", "DATA_TYPE");
17 CREATE INDEX "FILE_SOURCES_UPDATED_AT" ON "FILE_SOURCES" ("UPDATED_AT");