[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 answerId String
userId String? userId String?
content String @db.Text content String @db.Text
upvotes Int upvotes Int @default(0)
createdAt DateTime @default(now()) createdAt DateTime @default(now())
updatedAt DateTime @updatedAt updatedAt DateTime @updatedAt

Loading…
Cancel
Save