-3

我有一个功能齐全的网站,我想添加成员相互发送电子邮件的功能,有点像 facebook,但要小得多,所以我不需要他们对巨大流量的需求。

基本上我需要一个起点。有什么建议么?

4

1 回答 1

2

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.

于 2011-09-01T14:31:59.860 回答