Extended "Link" model.
This commit is contained in:
parent
cff10fa9b6
commit
bd3b2f50f2
|
@ -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")
|
||||
);
|
|
@ -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 {
|
||||
|
|
Ŝarĝante…
Reference in New Issue