开发者

difference between User and Account object in social network design? [closed]

开发者 https://www.devze.com 2023-01-15 02:53 出处:网络
Closed. This question needs to be more focused. It is not currently accepting answers. Want to improve this question? Update the question so it focuses on one problem only by editing this
Closed. This question needs to be more focused. It is not currently accepting answers.

Want to improve this question? Update the question so it focuses on one problem only by editing this post.

Closed 2 months ago.

Improve this question

I am building a data model for a social networking site and lost of how to model Users and Accounts.

1) User signsup开发者_运维技巧 and creates an Account. So we assign the User a user Id like on most social websites we see which is same profile ID. Now is that the account ID too? OR is there a separate account ID also hidden? If user can have multiple profiles, then user ID is seperate from account ID which is separate from each profile ID?

2) We assume 1 user has only 1 account. But when a user is editing his account or let's say an admin edits a user's account, then the User is editing an account, so two separate IDs required to model this?

3) What is the life of a user and account object? If user closes his account, that means both the user and account object get killed?

4) And who holds the user profile details, user settings, privacy, friends, etc? The user object or Account object, and which object is superior?

5) There are system objects such as photo, video, etc which a user can create/admin, so are those owned by the user or the account object?

6) What exactly makes an object? Say we have status updates, comments, profile details. Are these 3 objects? Or all considered 1 type of object and just 3 categories?


I understand your point about user vs. profile, but user vs. account?

For most of my designs, that's the same thing. Most of your questions seem to stem from this confusion. Why would you need separate IDs? Why would you differentiate between the two. If you have a need to, then maybe so. For example, maybe you have a user account that spans several services. This user has separate account information on the different services, but the same login. In that case, you'd need to have two separate objects: login (in the authentication system), and account (in the actual application). But I don't think you are creating such a large system. No?

6) If all those cannot be represented in the same code, they will have to be separate objects or derived from a similar object. For example, in some portals I see the PM (private message) system looks like a private forum thread between two or more people. Having not looked at the source, I would imagine then that forum topics/threads are the same or a similar, perhaps derived from the same, object.


The System, Application, Software or any other resources (Files for example) has Owner and User such as accounting application, Social media application, CRM application, ERP application.

First and foremost, we need to define what a user is. a user is a identified, authenticated, real person who utilizes a resource such as Computer, Network, Application.

Some software products provide services to other systems and have no direct end users (Real Person User).

We can not allow these users utilize a resource without accounting, resource management, security. So we have to define an account for these users. know as User Account.

Account is used for accounting, responsibility each has a resource, profile, user or users it depends, owner.

0

精彩评论

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