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
9 changes: 9 additions & 0 deletions doc/DATA_MODEL.md
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,15 @@ 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`.

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

* 0: banned
* 1: normal
* 3: draft
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
* 3: draft

I forgot to tell you about removing draft status too 😐.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ok, I have made the change!

* 4: moderated -- i.e. node created by a first-time poster, and has not yet been "approved"

The status for Node is now the same for comment in our Code base except for status = 5
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

How about removing this line? @dinaelhanan

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ok, will do. Thanks!


### 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