Example HOOK_views_data for 2 "related" custom tables and includes a relationship back to the users table.

http://internetdevels.com/blog/describe-custom-table-for-views