Skip to content

Commit

Permalink
chore: edited schema for comments editing
Browse files Browse the repository at this point in the history
  • Loading branch information
potts99 committed Nov 11, 2024
1 parent 3ef3a75 commit 95d941b
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
-- AlterTable
ALTER TABLE "Comment" ADD COLUMN "edited" BOOLEAN NOT NULL DEFAULT false,
ADD COLUMN "editedAt" TIMESTAMP(3),
ADD COLUMN "previous" TEXT;
3 changes: 3 additions & 0 deletions apps/api/src/prisma/schema.prisma
Original file line number Diff line number Diff line change
Expand Up @@ -161,6 +161,9 @@ model Comment {
public Boolean @default(false)
reply Boolean @default(false)
replyEmail String?
edited Boolean @default(false)
editedAt DateTime?
previous String?
userId String?
user User? @relation(fields: [userId], references: [id])
Expand Down

0 comments on commit 95d941b

Please sign in to comment.