mirror of
https://github.com/versia-pub/server.git
synced 2026-03-13 13:59:16 +01:00
Enable verbatim module syntax + more API routes
This commit is contained in:
parent
991a2cba84
commit
be9b2e3376
84 changed files with 438 additions and 192 deletions
|
|
@ -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;
|
||||
Loading…
Add table
Add a link
Reference in a new issue