J
J
Jedi2018-05-27 02:33:13
Web development
Jedi, 2018-05-27 02:33:13

What should be the structure of the comments table?

Hello!
Here's how I envision it:

  • user_id
  • post_id
  • body
  • created_at
  • updated_at

You also need to add a field in which there will be boolean. (If the comment successfully passes through the moderator, then 1, which means that other users will be able to see this comment.)
How to name this field?)
So far, only two questions.
What should be the structure and how to name the field.
Thanks!!

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
Dave Hornigan, 2018-05-27
@PHPjedi

id, user_id, text, created_at, updated_at

You also need to add a field in which there will be boolean. (If the comment successfully passes through the moderator, then 1, which means that other users will be able to see this comment.)
What is the name of this field?)

I would call active or visible

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question