Answer the question
In order to leave comments, you need to log in
What should be the structure of the comments table?
Hello!
Here's how I envision it:
Answer the question
In order to leave comments, you need to log in
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?)
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question