创建友谊系统数据库模式,如何?
我正在创建一个社交系统,我需要建立一种友谊。任何人都可以帮助我创建它的数据库架构吗?我希望能够在群组中分配朋友(例如 google+),并根据群组或朋友(google+)设置帖子可见性。感谢任何帮助和建议。
我通过 Razor 和 SqlServer 2008 R2 使用 C# 和 ASP.NET MVC 3
I'm creating a social system, and I need to create a friendship. Can any body help me please to create it's database-schema? I want to be able to assign friends in groups (like google+) and set posts visibility based on groups or friends both (google+). Thanks to any help and suggestion.
I'm using C# and ASP.NET MVC 3 via Razor and SqlServer 2008 R2
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
首先,您可能应该发布您尝试过的内容。 “帮我完成这个”问题比“请帮我完成所有这些工作”问题会得到更好的答复。
基本架构可能类似于:
这就是您的朋友和群组所需要的全部内容。这确实要求每个朋友都在一个组中,但这并不妨碍他们在多个组中。
First, you probably should post what you have tried. You will get better responses with a "Help me finish this" question than with a "Please do all this work for me" question.
Basic schema could be something like:
That's all you should need for friends and groups. This does require that each friend be in a group, but it doesn't prevent them from being in multiple groups.