feat: upvote & downvote

This commit is contained in:
2022-10-16 02:21:44 +08:00
parent e0d6720433
commit 04a0d1084f
13 changed files with 127 additions and 19 deletions

View File

@@ -0,0 +1,4 @@
-- Your SQL goes here
ALTER TABLE posts
ADD COLUMN up_votes INTEGER NOT NULL DEFAULT 0,
ADD COLUMN down_votes INTEGER NOT NULL DEFAULT 0