Skip to content

Instantly share code, notes, and snippets.

@wolfsage
Last active February 25, 2016 20:31
Show Gist options
  • Save wolfsage/841b1c247cd9b74b953b to your computer and use it in GitHub Desktop.
Save wolfsage/841b1c247cd9b74b953b to your computer and use it in GitHub Desktop.
Accepted design:
user
user_id
foo
bar
user_info
user_info_id
user_id
name
email
My design:
user
user_id
user_info_id
foo
bar
user_info
user_info_id
name
email
Benefits: From the user object which I'll typically have, I have the user_info_id which I need for other things but I often don't need to use user_info data.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment