{"action":"opened","issue":{"url":"https://api.github.com/repos/fif4evr/personally-api/issues/4","labels_url":"https://api.github.com/repos/fif4evr/personally-api/issues/4/labels{/name}","comments_url":"https://api.github.com/repos/fif4evr/personally-api/issues/4/comments","events_url":"https://api.github.com/repos/fif4evr/personally-api/issues/4/events","html_url":"https://github.com/fif4evr/personally-api/issues/4","id":54668161,"number":4,"title":"Associate Departments with a company","user":{"login":"benmccormick","id":1899941,"avatar_url":"https://avatars.githubusercontent.com/u/1899941?v=3","gravatar_id":"","url":"https://api.github.com/users/benmccormick","html_url":"https://github.com/benmccormick","followers_url":"https://api.github.com/users/benmccormick/followers","following_url":"https://api.github.com/users/benmccormick/following{/other_user}","gists_url":"https://api.github.com/users/benmccormick/gists{/gist_id}","starred_url":"https://api.github.com/users/benmccormick/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/benmccormick/subscriptions","organizations_url":"https://api.github.com/users/benmccormick/orgs","repos_url":"https://api.github.com/users/benmccormick/repos","events_url":"https://api.github.com/users/benmccormick/events{/privacy}","received_events_url":"https://api.github.com/users/benmccormick/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-01-17T17:22:58Z","updated_at":"2015-01-17T17:22:58Z","closed_at":null,"body":"Departments should belong to a company and have a foreign key making that association.\r\n\r\nThat does mean that company then probably shouldn't be a foreign key on Employee, since you could then figure that out from department.\r\n\r\nYou might want to define a `get_company()` function on the Employee class too, to make that simpler."}}