开发者

How do I implement a messaging system for members of my website to communicate with each other? [closed]

开发者 https://www.devze.com 2023-04-01 16:17 出处:网络
It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical andcannot be reasonably answered in its current form. For help clari
It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center. Closed 11 years ago.

I have a fully functional website, to which I want to add the ability for members to email each other, kinda like facebook, but much smaller, so I won't need their need for huge traffic.

Basical开发者_如何学运维ly I need a starting point. Any suggestions?


First step is to design the tables to store the mail objects.

One approach which works is to set up a mail "hasMany" children relationship, which basically means that a single mail object will have an id column and a self-referential parent_id column like this:

mail:
id , parent_id, create_time , from_user_id , to_user_id , textual_content

or something similar.

0

精彩评论

暂无评论...
验证码 换一张
取 消