Extended "Link" model.

This commit is contained in:
Daniel
2023-03-06 23:38:11 +03:30
parent cff10fa9b6
commit bd3b2f50f2
2 changed files with 10 additions and 0 deletions
@@ -36,7 +36,12 @@ CREATE TABLE "Link" (
"id" SERIAL NOT NULL,
"name" TEXT NOT NULL,
"url" TEXT NOT NULL,
"title" TEXT NOT NULL,
"collectionId" INTEGER NOT NULL,
"isFavorites" BOOLEAN NOT NULL,
"screenshotPath" TEXT NOT NULL,
"pdfPath" TEXT NOT NULL,
"createdAt" TIMESTAMP(3) NOT NULL DEFAULT CURRENT_TIMESTAMP,
CONSTRAINT "Link_pkey" PRIMARY KEY ("id")
);