[resumes][refactor] use Vote enum in ResumesCommentVote

pull/363/head
Terence Ho 3 years ago
parent e6f2ea0af9
commit 9fad1844fb

@ -0,0 +1,9 @@
/*
Warnings:
- Changed the type of `value` on the `ResumesCommentVote` table. No cast exists, the column would be dropped and recreated, which cannot be done if there is data, since the column is required.
*/
-- AlterTable
ALTER TABLE "ResumesCommentVote" DROP COLUMN "value",
ADD COLUMN "value" "Vote" NOT NULL;

@ -159,7 +159,7 @@ model ResumesCommentVote {
id String @id @default(cuid()) id String @id @default(cuid())
userId String userId String
commentId String commentId String
value Int value Vote
createdAt DateTime @default(now()) createdAt DateTime @default(now())
updatedAt DateTime @updatedAt updatedAt DateTime @updatedAt
comment ResumesComment @relation(fields: [commentId], references: [id], onDelete: Cascade) comment ResumesComment @relation(fields: [commentId], references: [id], onDelete: Cascade)

Loading…
Cancel
Save