Pretend I'm Mark Zuckerberg and it's 2003.
I'm building a social network website (thefacebook.com) and I need an advice.
The emphasis of the site is on user profiles but it also supports profiles of businesses, universities, etc. We call these other profiles - page profiles.
Both types of profiles (user profiles and page profiles) support phone numbers.
How should I store these phone numbers in the database?
Does the following design make sense:
phones(phone_id, phone_number);
users_phones(user_id, phone_id, ...);
pages_phones(page_id, phone_id, ...);
Woud you suggest an alternative design?
PS: I believe I'm onto something big with this Facebook thing, so by participating in this question you might be taking part of building history.