{"action":"opened","issue":{"url":"https://api.github.com/repos/smwa/angular-momentum/issues/43","labels_url":"https://api.github.com/repos/smwa/angular-momentum/issues/43/labels{/name}","comments_url":"https://api.github.com/repos/smwa/angular-momentum/issues/43/comments","events_url":"https://api.github.com/repos/smwa/angular-momentum/issues/43/events","html_url":"https://github.com/smwa/angular-momentum/issues/43","id":69889373,"number":43,"title":"relations","user":{"login":"smwa","id":4969375,"avatar_url":"https://avatars.githubusercontent.com/u/4969375?v=3","gravatar_id":"","url":"https://api.github.com/users/smwa","html_url":"https://github.com/smwa","followers_url":"https://api.github.com/users/smwa/followers","following_url":"https://api.github.com/users/smwa/following{/other_user}","gists_url":"https://api.github.com/users/smwa/gists{/gist_id}","starred_url":"https://api.github.com/users/smwa/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/smwa/subscriptions","organizations_url":"https://api.github.com/users/smwa/orgs","repos_url":"https://api.github.com/users/smwa/repos","events_url":"https://api.github.com/users/smwa/events{/privacy}","received_events_url":"https://api.github.com/users/smwa/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-04-21T16:18:47Z","updated_at":"2015-04-21T16:18:47Z","closed_at":null,"body":"In the file branch, the channelsModel needs to have the file table added to its relations.\r\nAlso Models should be have relations to models without going through the non-joining tables.\r\ni.e. usersOrgs to channelOrgs to Files/Messages. This should simplify populating around the tables and increase efficiency."}}