Skip to content

Commit

Permalink
Add tagId to link model.
Browse files Browse the repository at this point in the history
  • Loading branch information
pheralb committed Jan 8, 2024
1 parent b208e0e commit 5d71a07
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions prisma/schema.prisma
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,12 @@ model link {
createdAt DateTime @default(now())
createdBy User? @relation(fields: [creatorId], references: [id])
creatorId String
folder folder? @relation(fields: [folderId], references: [id])
folderId Int?
folder folder? @relation(fields: [tagId], references: [id])
tagId Int?
@@index(slug)
@@index([creatorId])
@@index([folderId])
@@index([tagId])
}

model folder {
Expand Down

0 comments on commit 5d71a07

Please sign in to comment.