关于Tables的BUGs?

2016-07-07 16:51 来源:www.chinab4c.com 作者:ecshop专家

当我创建Web IM(Yahoo, Gtalk, Skype)商店的菜单时,我发现一个问题。
如果 ecm_member 已经有tables (Name, Phone, im_ww, im_qq, im_msn, im_yahoo, im_skype),为什么还需要额外的 ecm_store 几乎相同的tables?
需要set两次Web IM 在个人资料和管理商店,难道这不烦人,不友好吧?
一次已经足够了,而且容易更新 (Suggest using ecm_member tables only)

* Remember add GTalk....


回答:
店铺也可能有多个管理员,所以店铺有可能和用户不是一对一的关系

更加倾向于 wilson1stop意见
采用统一表即可。
这样能保证联系信息的单一性。
如果店铺有过个管理员,建议采用storeid,useid,usename,grade,statu,来定义即可。

老大,

这应该没关系吧。。。
Buyer, Seller, Store Owner, Admin 都是人/用户,采用统一表即可 (ecm_member)
By the way,Store is owned by Seller and his information will be display in his Store Homepage, while admin just assist/help but not owned it, someday they may resign/quit (I don't think admin info will display in Store Homepage)

My meaning not remove whole ecm_store, but using some same tables from ecm_member (eg. im_msn, im_yahoo) instead of using both separate tables.
Just modify (3) html files and app files

  • themes/mall/default/my_store.index.html
  • themes/mall/default/member.profile.html
  • admin/templates/user.form.html
  • app/my_store.app.php
  • app/member.app.php
  • admin/app/user.app.php