Log spans, track size & undownloadable files

This commit is contained in:
2021-07-11 22:49:29 -04:00
parent 792e78391c
commit b609e7059a
10 changed files with 104 additions and 47 deletions

View File

@@ -30,7 +30,9 @@ CREATE TABLE IF NOT EXISTS "files" (
"category" VARCHAR(255),
"version" VARCHAR(255),
"mod_version" VARCHAR(255),
"size" BIGINT NOT NULL,
"uploaded_at" timestamp(3) NOT NULL,
"has_download_link" BOOLEAN NOT NULL DEFAULT true,
"created_at" timestamp(3) NOT NULL,
"updated_at" timestamp(3) NOT NULL
);
@@ -43,6 +45,7 @@ CREATE TABLE IF NOT EXISTS "plugins" (
"hash" BIGINT NOT NULL,
"file_id" INTEGER REFERENCES "files"(id) NOT NULL,
"version" FLOAT,
"size" BIGINT NOT NULL,
"author" TEXT,
"description" TEXT,
"masters" VARCHAR(255)[],