Skip to content

⚡️⚡️⚡️ Self-hosted collaborative bookmark manager to collect, read, annotate, and fully preserve what matters, all in one place.

Extended "Link" model.

Danielbd3b2f50f237
diff --git a/prisma/migrations/20230224113421_/migration.sql b/prisma/migrations/20230306200620_/migration.sql
similarity index 93%
rename from prisma/migrations/20230224113421_/migration.sql
rename to prisma/migrations/20230306200620_/migration.sql
index aa386e83..801d317a 100644
--- a/prisma/migrations/20230224113421_/migration.sql
+++ b/prisma/migrations/20230306200620_/migration.sql
@@ -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")
);
diff --git a/prisma/schema.prisma b/prisma/schema.prisma
index 32a0891b..09c6e0a1 100644
--- a/prisma/schema.prisma
+++ b/prisma/schema.prisma
@@ -47,9 +47,14 @@ model Link {
id Int @id @default(autoincrement())
name String
url String
+ title String
collection Collection @relation(fields: [collectionId], references: [id])
collectionId Int
tags Tag[]
+ isFavorites Boolean
+ screenshotPath String
+ pdfPath String
+ createdAt DateTime @default(now())
}
model Tag {