add: community topic endpoints
This commit is contained in:
parent
12fa80c7c0
commit
ef029c59b3
7 changed files with 201 additions and 28 deletions
|
@ -7,9 +7,11 @@ CREATE TABLE IF NOT EXISTS communities (
|
|||
read_access TEXT NOT NULL,
|
||||
write_access TEXT NOT NULL,
|
||||
join_access TEXT NOT NULL,
|
||||
-- likes
|
||||
likes INT NOT NULL,
|
||||
dislikes INT NOT NULL,
|
||||
-- counts
|
||||
member_count INT NOT NULL
|
||||
member_count INT NOT NULL,
|
||||
is_forge INT NOT NULL,
|
||||
post_count INT NOT NULL,
|
||||
is_forum INT NOT NULL,
|
||||
topics TEXT NOT NULL
|
||||
)
|
||||
|
|
|
@ -17,3 +17,7 @@ ADD COLUMN IF NOT EXISTS replying_to BIGINT DEFAULT 0;
|
|||
-- communities is_forum
|
||||
ALTER TABLE communities
|
||||
ADD COLUMN IF NOT EXISTS is_forum INT DEFAULT 0;
|
||||
|
||||
-- communities topics
|
||||
ALTER TABLE communities
|
||||
ADD COLUMN IF NOT EXISTS topics TEXT DEFAULT '{}';
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue