Home > other >  Comments @ function (table structure) how to implement?
Comments @ function (table structure) how to implement?

Time:09-22

Want to save a reply_user_id is list before to put @ person id, but it seems to be only one person @,
Later to, if the direct deposit reply_user_id but not directly in the view layer to regular matching @ and Spaces between the user name, and then in the database to find the corresponding user replace links, in this case, if it be @ user name, and how to deal with the

CodePudding user response:

This is a one-to-many relationship, can create a new table, comment id and be @ the user id associated,

CodePudding user response:

Comments table reply_user_id stored strings, comma-separated @ person id

CodePudding user response:

Suggest or built a table between a pair of multiple items to save more because this might involve read and unread if a field to save what distinction is @ whether the person has read the message?

CodePudding user response:

The planned economy and

CodePudding user response:

3232134243434324
2
1
1
1
1
1
1
1
1
1
1
1
11.
@
  • Related