Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add comments Statuses to data model documentation #4318

Merged
merged 12 commits into from
Dec 18, 2018
6 changes: 6 additions & 0 deletions doc/DATA_MODEL.md
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,12 @@ They are typically cached for quick loading, and can be inserted anywhere in the

Comments belong to Notes via `nid`, and each have an author via `uid`; primary key `cid`. Maps also have comments via `nid`, and Answers may also have comments, via `aid`.

Comment `status` -- a property of `comments`, can be:

* 0: banned
* 1: normal
* 4: moderated -- i.e. comment created by a first-time poster, and has not yet been "approved"

### Answers

Answers are similar to Comments, but are used in Question-type Notes, and may each have Comments of their own. Primary key `aid`.
Expand Down