[questions][chore] add default upovte value

pull/410/head
hpkoh 3 years ago
parent 8fd1f6f413
commit 7121a3039b

@ -0,0 +1,2 @@
-- AlterTable
ALTER TABLE "QuestionsAnswerComment" ALTER COLUMN "upvotes" SET DEFAULT 0;

@ -512,7 +512,7 @@ model QuestionsAnswerComment {
answerId String
userId String?
content String @db.Text
upvotes Int
upvotes Int @default(0)
createdAt DateTime @default(now())
updatedAt DateTime @updatedAt

Loading…
Cancel
Save