Enable verbatim module syntax + more API routes

This commit is contained in:
Jesse Wierzbinski 2023-11-22 18:10:37 -10:00
parent 991a2cba84
commit be9b2e3376
No known key found for this signature in database
84 changed files with 438 additions and 192 deletions

View file

@ -0,0 +1,22 @@
-- CreateTable
CREATE TABLE "Attachment" (
"id" UUID NOT NULL DEFAULT uuid_generate_v7(),
"url" TEXT NOT NULL,
"remote_url" TEXT,
"thumbnail_url" TEXT,
"mime_type" TEXT NOT NULL,
"description" TEXT,
"blurhash" TEXT,
"sha256" TEXT,
"fps" INTEGER,
"duration" INTEGER,
"width" INTEGER,
"height" INTEGER,
"size" INTEGER,
"statusId" UUID,
CONSTRAINT "Attachment_pkey" PRIMARY KEY ("id")
);
-- AddForeignKey
ALTER TABLE "Attachment" ADD CONSTRAINT "Attachment_statusId_fkey" FOREIGN KEY ("statusId") REFERENCES "Status"("id") ON DELETE CASCADE ON UPDATE CASCADE;