{"action":"created","comment":{"url":"https://api.github.com/repos/faraday-effect/faraday/pulls/comments/67207161","id":67207161,"diff_hunk":"@@ -0,0 +1,72 @@\n+'use strict';\n+\n+const Model = require('objection').Model;\n+const db = require('./../db')\n+\n+class User extends Model {\n+    static get tableName() {\n+        return 'user';\n+    }\n+\n+    static get relationMappings() {\n+        return {\n+            user_relationship: {\n+                relation: Model.OneToManyRelation,\n+                modelClass: __dirname + '/User_Relationship',","path":"server/models/User.js","position":15,"original_position":15,"commit_id":"0e5a097b8e5150add8d7346b6a0c27a51d00e408","original_commit_id":"0e5a097b8e5150add8d7346b6a0c27a51d00e408","user":{"login":"nurkkala","id":406537,"avatar_url":"https://avatars.githubusercontent.com/u/406537?v=3","gravatar_id":"","url":"https://api.github.com/users/nurkkala","html_url":"https://github.com/nurkkala","followers_url":"https://api.github.com/users/nurkkala/followers","following_url":"https://api.github.com/users/nurkkala/following{/other_user}","gists_url":"https://api.github.com/users/nurkkala/gists{/gist_id}","starred_url":"https://api.github.com/users/nurkkala/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nurkkala/subscriptions","organizations_url":"https://api.github.com/users/nurkkala/orgs","repos_url":"https://api.github.com/users/nurkkala/repos","events_url":"https://api.github.com/users/nurkkala/events{/privacy}","received_events_url":"https://api.github.com/users/nurkkala/received_events","type":"User","site_admin":false},"body":"Don't use both capital letter and an underscore. So the class should be `UserRelationship` and should be stored in `UserRelationship.js`.","created_at":"2016-06-15T17:30:00Z","updated_at":"2016-06-15T17:30:00Z","html_url":"https://github.com/faraday-effect/faraday/pull/29#discussion_r67207161","pull_request_url":"https://api.github.com/repos/faraday-effect/faraday/pulls/29","_links":{"self":{"href":"https://api.github.com/repos/faraday-effect/faraday/pulls/comments/67207161"},"html":{"href":"https://github.com/faraday-effect/faraday/pull/29#discussion_r67207161"},"pull_request":{"href":"https://api.github.com/repos/faraday-effect/faraday/pulls/29"}}},"pull_request":{"url":"https://api.github.com/repos/faraday-effect/faraday/pulls/29","id":73934402,"html_url":"https://github.com/faraday-effect/faraday/pull/29","diff_url":"https://github.com/faraday-effect/faraday/pull/29.diff","patch_url":"https://github.com/faraday-effect/faraday/pull/29.patch","issue_url":"https://api.github.com/repos/faraday-effect/faraday/issues/29","number":29,"state":"open","locked":false,"title":"Feature/database refactor","user":{"login":"abramjstamper","id":9876126,"avatar_url":"https://avatars.githubusercontent.com/u/9876126?v=3","gravatar_id":"","url":"https://api.github.com/users/abramjstamper","html_url":"https://github.com/abramjstamper","followers_url":"https://api.github.com/users/abramjstamper/followers","following_url":"https://api.github.com/users/abramjstamper/following{/other_user}","gists_url":"https://api.github.com/users/abramjstamper/gists{/gist_id}","starred_url":"https://api.github.com/users/abramjstamper/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/abramjstamper/subscriptions","organizations_url":"https://api.github.com/users/abramjstamper/orgs","repos_url":"https://api.github.com/users/abramjstamper/repos","events_url":"https://api.github.com/users/abramjstamper/events{/privacy}","received_events_url":"https://api.github.com/users/abramjstamper/received_events","type":"User","site_admin":false},"body":"","created_at":"2016-06-15T15:36:33Z","updated_at":"2016-06-15T17:30:00Z","closed_at":null,"merged_at":null,"merge_commit_sha":"b0b10f601863740b6dd180ae3f3a2d726b2e96bc","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/faraday-effect/faraday/pulls/29/commits","review_comments_url":"https://api.github.com/repos/faraday-effect/faraday/pulls/29/comments","review_comment_url":"https://api.github.com/repos/faraday-effect/faraday/pulls/comments{/number}","comments_url":"https://api.github.com/repos/faraday-effect/faraday/issues/29/comments","statuses_url":"https://api.github.com/repos/faraday-effect/faraday/statuses/0e5a097b8e5150add8d7346b6a0c27a51d00e408","head":{"label":"faraday-effect:feature/database-refactor","ref":"feature/database-refactor","sha":"0e5a097b8e5150add8d7346b6a0c27a51d00e408","user":{"login":"faraday-effect","id":16848600,"avatar_url":"https://avatars.githubusercontent.com/u/16848600?v=3","gravatar_id":"","url":"https://api.github.com/users/faraday-effect","html_url":"https://github.com/faraday-effect","followers_url":"https://api.github.com/users/faraday-effect/followers","following_url":"https://api.github.com/users/faraday-effect/following{/other_user}","gists_url":"https://api.github.com/users/faraday-effect/gists{/gist_id}","starred_url":"https://api.github.com/users/faraday-effect/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/faraday-effect/subscriptions","organizations_url":"https://api.github.com/users/faraday-effect/orgs","repos_url":"https://api.github.com/users/faraday-effect/repos","events_url":"https://api.github.com/users/faraday-effect/events{/privacy}","received_events_url":"https://api.github.com/users/faraday-effect/received_events","type":"Organization","site_admin":false},"repo":{"id":59579221,"name":"faraday","full_name":"faraday-effect/faraday","owner":{"login":"faraday-effect","id":16848600,"avatar_url":"https://avatars.githubusercontent.com/u/16848600?v=3","gravatar_id":"","url":"https://api.github.com/users/faraday-effect","html_url":"https://github.com/faraday-effect","followers_url":"https://api.github.com/users/faraday-effect/followers","following_url":"https://api.github.com/users/faraday-effect/following{/other_user}","gists_url":"https://api.github.com/users/faraday-effect/gists{/gist_id}","starred_url":"https://api.github.com/users/faraday-effect/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/faraday-effect/subscriptions","organizations_url":"https://api.github.com/users/faraday-effect/orgs","repos_url":"https://api.github.com/users/faraday-effect/repos","events_url":"https://api.github.com/users/faraday-effect/events{/privacy}","received_events_url":"https://api.github.com/users/faraday-effect/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/faraday-effect/faraday","description":"Learning Management 2.0 - Unscrewing the Inscrutable -","fork":false,"url":"https://api.github.com/repos/faraday-effect/faraday","forks_url":"https://api.github.com/repos/faraday-effect/faraday/forks","keys_url":"https://api.github.com/repos/faraday-effect/faraday/keys{/key_id}","collaborators_url":"https://api.github.com/repos/faraday-effect/faraday/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/faraday-effect/faraday/teams","hooks_url":"https://api.github.com/repos/faraday-effect/faraday/hooks","issue_events_url":"https://api.github.com/repos/faraday-effect/faraday/issues/events{/number}","events_url":"https://api.github.com/repos/faraday-effect/faraday/events","assignees_url":"https://api.github.com/repos/faraday-effect/faraday/assignees{/user}","branches_url":"https://api.github.com/repos/faraday-effect/faraday/branches{/branch}","tags_url":"https://api.github.com/repos/faraday-effect/faraday/tags","blobs_url":"https://api.github.com/repos/faraday-effect/faraday/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/faraday-effect/faraday/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/faraday-effect/faraday/git/refs{/sha}","trees_url":"https://api.github.com/repos/faraday-effect/faraday/git/trees{/sha}","statuses_url":"https://api.github.com/repos/faraday-effect/faraday/statuses/{sha}","languages_url":"https://api.github.com/repos/faraday-effect/faraday/languages","stargazers_url":"https://api.github.com/repos/faraday-effect/faraday/stargazers","contributors_url":"https://api.github.com/repos/faraday-effect/faraday/contributors","subscribers_url":"https://api.github.com/repos/faraday-effect/faraday/subscribers","subscription_url":"https://api.github.com/repos/faraday-effect/faraday/subscription","commits_url":"https://api.github.com/repos/faraday-effect/faraday/commits{/sha}","git_commits_url":"https://api.github.com/repos/faraday-effect/faraday/git/commits{/sha}","comments_url":"https://api.github.com/repos/faraday-effect/faraday/comments{/number}","issue_comment_url":"https://api.github.com/repos/faraday-effect/faraday/issues/comments{/number}","contents_url":"https://api.github.com/repos/faraday-effect/faraday/contents/{+path}","compare_url":"https://api.github.com/repos/faraday-effect/faraday/compare/{base}...{head}","merges_url":"https://api.github.com/repos/faraday-effect/faraday/merges","archive_url":"https://api.github.com/repos/faraday-effect/faraday/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/faraday-effect/faraday/downloads","issues_url":"https://api.github.com/repos/faraday-effect/faraday/issues{/number}","pulls_url":"https://api.github.com/repos/faraday-effect/faraday/pulls{/number}","milestones_url":"https://api.github.com/repos/faraday-effect/faraday/milestones{/number}","notifications_url":"https://api.github.com/repos/faraday-effect/faraday/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/faraday-effect/faraday/labels{/name}","releases_url":"https://api.github.com/repos/faraday-effect/faraday/releases{/id}","deployments_url":"https://api.github.com/repos/faraday-effect/faraday/deployments","created_at":"2016-05-24T14:14:25Z","updated_at":"2016-06-11T13:07:32Z","pushed_at":"2016-06-15T17:20:29Z","git_url":"git://github.com/faraday-effect/faraday.git","ssh_url":"git@github.com:faraday-effect/faraday.git","clone_url":"https://github.com/faraday-effect/faraday.git","svn_url":"https://github.com/faraday-effect/faraday","homepage":"http://faraday-effect.github.io/","size":2318,"stargazers_count":1,"watchers_count":1,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":1,"default_branch":"develop"}},"base":{"label":"faraday-effect:develop","ref":"develop","sha":"b776feef9168a212f836cbe2468910ab5748cd7c","user":{"login":"faraday-effect","id":16848600,"avatar_url":"https://avatars.githubusercontent.com/u/16848600?v=3","gravatar_id":"","url":"https://api.github.com/users/faraday-effect","html_url":"https://github.com/faraday-effect","followers_url":"https://api.github.com/users/faraday-effect/followers","following_url":"https://api.github.com/users/faraday-effect/following{/other_user}","gists_url":"https://api.github.com/users/faraday-effect/gists{/gist_id}","starred_url":"https://api.github.com/users/faraday-effect/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/faraday-effect/subscriptions","organizations_url":"https://api.github.com/users/faraday-effect/orgs","repos_url":"https://api.github.com/users/faraday-effect/repos","events_url":"https://api.github.com/users/faraday-effect/events{/privacy}","received_events_url":"https://api.github.com/users/faraday-effect/received_events","type":"Organization","site_admin":false},"repo":{"id":59579221,"name":"faraday","full_name":"faraday-effect/faraday","owner":{"login":"faraday-effect","id":16848600,"avatar_url":"https://avatars.githubusercontent.com/u/16848600?v=3","gravatar_id":"","url":"https://api.github.com/users/faraday-effect","html_url":"https://github.com/faraday-effect","followers_url":"https://api.github.com/users/faraday-effect/followers","following_url":"https://api.github.com/users/faraday-effect/following{/other_user}","gists_url":"https://api.github.com/users/faraday-effect/gists{/gist_id}","starred_url":"https://api.github.com/users/faraday-effect/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/faraday-effect/subscriptions","organizations_url":"https://api.github.com/users/faraday-effect/orgs","repos_url":"https://api.github.com/users/faraday-effect/repos","events_url":"https://api.github.com/users/faraday-effect/events{/privacy}","received_events_url":"https://api.github.com/users/faraday-effect/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/faraday-effect/faraday","description":"Learning Management 2.0 - Unscrewing the Inscrutable -","fork":false,"url":"https://api.github.com/repos/faraday-effect/faraday","forks_url":"https://api.github.com/repos/faraday-effect/faraday/forks","keys_url":"https://api.github.com/repos/faraday-effect/faraday/keys{/key_id}","collaborators_url":"https://api.github.com/repos/faraday-effect/faraday/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/faraday-effect/faraday/teams","hooks_url":"https://api.github.com/repos/faraday-effect/faraday/hooks","issue_events_url":"https://api.github.com/repos/faraday-effect/faraday/issues/events{/number}","events_url":"https://api.github.com/repos/faraday-effect/faraday/events","assignees_url":"https://api.github.com/repos/faraday-effect/faraday/assignees{/user}","branches_url":"https://api.github.com/repos/faraday-effect/faraday/branches{/branch}","tags_url":"https://api.github.com/repos/faraday-effect/faraday/tags","blobs_url":"https://api.github.com/repos/faraday-effect/faraday/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/faraday-effect/faraday/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/faraday-effect/faraday/git/refs{/sha}","trees_url":"https://api.github.com/repos/faraday-effect/faraday/git/trees{/sha}","statuses_url":"https://api.github.com/repos/faraday-effect/faraday/statuses/{sha}","languages_url":"https://api.github.com/repos/faraday-effect/faraday/languages","stargazers_url":"https://api.github.com/repos/faraday-effect/faraday/stargazers","contributors_url":"https://api.github.com/repos/faraday-effect/faraday/contributors","subscribers_url":"https://api.github.com/repos/faraday-effect/faraday/subscribers","subscription_url":"https://api.github.com/repos/faraday-effect/faraday/subscription","commits_url":"https://api.github.com/repos/faraday-effect/faraday/commits{/sha}","git_commits_url":"https://api.github.com/repos/faraday-effect/faraday/git/commits{/sha}","comments_url":"https://api.github.com/repos/faraday-effect/faraday/comments{/number}","issue_comment_url":"https://api.github.com/repos/faraday-effect/faraday/issues/comments{/number}","contents_url":"https://api.github.com/repos/faraday-effect/faraday/contents/{+path}","compare_url":"https://api.github.com/repos/faraday-effect/faraday/compare/{base}...{head}","merges_url":"https://api.github.com/repos/faraday-effect/faraday/merges","archive_url":"https://api.github.com/repos/faraday-effect/faraday/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/faraday-effect/faraday/downloads","issues_url":"https://api.github.com/repos/faraday-effect/faraday/issues{/number}","pulls_url":"https://api.github.com/repos/faraday-effect/faraday/pulls{/number}","milestones_url":"https://api.github.com/repos/faraday-effect/faraday/milestones{/number}","notifications_url":"https://api.github.com/repos/faraday-effect/faraday/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/faraday-effect/faraday/labels{/name}","releases_url":"https://api.github.com/repos/faraday-effect/faraday/releases{/id}","deployments_url":"https://api.github.com/repos/faraday-effect/faraday/deployments","created_at":"2016-05-24T14:14:25Z","updated_at":"2016-06-11T13:07:32Z","pushed_at":"2016-06-15T17:20:29Z","git_url":"git://github.com/faraday-effect/faraday.git","ssh_url":"git@github.com:faraday-effect/faraday.git","clone_url":"https://github.com/faraday-effect/faraday.git","svn_url":"https://github.com/faraday-effect/faraday","homepage":"http://faraday-effect.github.io/","size":2318,"stargazers_count":1,"watchers_count":1,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":1,"default_branch":"develop"}},"_links":{"self":{"href":"https://api.github.com/repos/faraday-effect/faraday/pulls/29"},"html":{"href":"https://github.com/faraday-effect/faraday/pull/29"},"issue":{"href":"https://api.github.com/repos/faraday-effect/faraday/issues/29"},"comments":{"href":"https://api.github.com/repos/faraday-effect/faraday/issues/29/comments"},"review_comments":{"href":"https://api.github.com/repos/faraday-effect/faraday/pulls/29/comments"},"review_comment":{"href":"https://api.github.com/repos/faraday-effect/faraday/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/faraday-effect/faraday/pulls/29/commits"},"statuses":{"href":"https://api.github.com/repos/faraday-effect/faraday/statuses/0e5a097b8e5150add8d7346b6a0c27a51d00e408"}}}}
{"actor":{"display_login":"nurkkala"}}