I am creating a data model for a social networking site and have lost the way of modeling users and accounts.
1) The user signs and creates an account. Thus, we assign the user the user ID, as on most social sites that we see, which are the same profile identifiers. Now is this an account id? OR is there a hidden account identifier? If a user can have multiple profiles, then the user ID is separate from the account ID, which is separate from each profile ID?
2) Assume that 1 user has only 1 account. But when the user edits his account or allows the administrator to edit the user account, does the user edit the account, so does it require two separate identifiers to simulate it?
3) What is the life of the user and the account object? If a user closes his account, does this mean that both the user and the account object will be killed?
4) And who contains the user profile data, user settings, privacy, friends, etc.? User object or Account object and which object is superior?
5) Are there system objects, such as photos, videos, etc., that the user can create / admin, as well as those that belong to the user or the account object?
6) What exactly does the object do? Say we have status updates, comments, profile data. Are these 3 objects? Or all considered 1 type of object and only 3 categories?
source share