{"action":"created","comment":{"url":"https://api.github.com/repos/danielsomekh/capstone/pulls/comments/45379057","id":45379057,"diff_hunk":"@@ -0,0 +1,13 @@\n+'use strict';\n+var mongoose = require('mongoose');\n+var _ = require('lodash');\n+\n+var schema = new mongoose.Schema({\n+    name: {\n+        type: String, required: true\n+    }\n+});\n+\n+\n+\n+module.exports = mongoose.model('Category', schema);","path":"server/db/models/category.js","position":13,"original_position":13,"commit_id":"328bb2fc68edc573c84d993c487b8e3b0eb6d976","original_commit_id":"328bb2fc68edc573c84d993c487b8e3b0eb6d976","user":{"login":"danielsomekh","id":5473478,"avatar_url":"https://avatars.githubusercontent.com/u/5473478?v=3","gravatar_id":"","url":"https://api.github.com/users/danielsomekh","html_url":"https://github.com/danielsomekh","followers_url":"https://api.github.com/users/danielsomekh/followers","following_url":"https://api.github.com/users/danielsomekh/following{/other_user}","gists_url":"https://api.github.com/users/danielsomekh/gists{/gist_id}","starred_url":"https://api.github.com/users/danielsomekh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/danielsomekh/subscriptions","organizations_url":"https://api.github.com/users/danielsomekh/orgs","repos_url":"https://api.github.com/users/danielsomekh/repos","events_url":"https://api.github.com/users/danielsomekh/events{/privacy}","received_events_url":"https://api.github.com/users/danielsomekh/received_events","type":"User","site_admin":false},"body":"don't think you need this...","created_at":"2015-11-19T18:23:21Z","updated_at":"2015-11-19T18:23:21Z","html_url":"https://github.com/danielsomekh/capstone/pull/7#discussion_r45379057","pull_request_url":"https://api.github.com/repos/danielsomekh/capstone/pulls/7","_links":{"self":{"href":"https://api.github.com/repos/danielsomekh/capstone/pulls/comments/45379057"},"html":{"href":"https://github.com/danielsomekh/capstone/pull/7#discussion_r45379057"},"pull_request":{"href":"https://api.github.com/repos/danielsomekh/capstone/pulls/7"}}},"pull_request":{"url":"https://api.github.com/repos/danielsomekh/capstone/pulls/7","id":51260362,"html_url":"https://github.com/danielsomekh/capstone/pull/7","diff_url":"https://github.com/danielsomekh/capstone/pull/7.diff","patch_url":"https://github.com/danielsomekh/capstone/pull/7.patch","issue_url":"https://api.github.com/repos/danielsomekh/capstone/issues/7","number":7,"state":"open","locked":false,"title":"completed user,media,help,category closes#3","user":{"login":"png262","id":13039917,"avatar_url":"https://avatars.githubusercontent.com/u/13039917?v=3","gravatar_id":"","url":"https://api.github.com/users/png262","html_url":"https://github.com/png262","followers_url":"https://api.github.com/users/png262/followers","following_url":"https://api.github.com/users/png262/following{/other_user}","gists_url":"https://api.github.com/users/png262/gists{/gist_id}","starred_url":"https://api.github.com/users/png262/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/png262/subscriptions","organizations_url":"https://api.github.com/users/png262/orgs","repos_url":"https://api.github.com/users/png262/repos","events_url":"https://api.github.com/users/png262/events{/privacy}","received_events_url":"https://api.github.com/users/png262/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-11-19T18:19:55Z","updated_at":"2015-11-19T18:23:21Z","closed_at":null,"merged_at":null,"merge_commit_sha":"2da5c5ba508ff9b601980da60d99b1431f37173d","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/danielsomekh/capstone/pulls/7/commits","review_comments_url":"https://api.github.com/repos/danielsomekh/capstone/pulls/7/comments","review_comment_url":"https://api.github.com/repos/danielsomekh/capstone/pulls/comments{/number}","comments_url":"https://api.github.com/repos/danielsomekh/capstone/issues/7/comments","statuses_url":"https://api.github.com/repos/danielsomekh/capstone/statuses/328bb2fc68edc573c84d993c487b8e3b0eb6d976","head":{"label":"danielsomekh:user_media_help_cat_models_#3","ref":"user_media_help_cat_models_#3","sha":"328bb2fc68edc573c84d993c487b8e3b0eb6d976","user":{"login":"danielsomekh","id":5473478,"avatar_url":"https://avatars.githubusercontent.com/u/5473478?v=3","gravatar_id":"","url":"https://api.github.com/users/danielsomekh","html_url":"https://github.com/danielsomekh","followers_url":"https://api.github.com/users/danielsomekh/followers","following_url":"https://api.github.com/users/danielsomekh/following{/other_user}","gists_url":"https://api.github.com/users/danielsomekh/gists{/gist_id}","starred_url":"https://api.github.com/users/danielsomekh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/danielsomekh/subscriptions","organizations_url":"https://api.github.com/users/danielsomekh/orgs","repos_url":"https://api.github.com/users/danielsomekh/repos","events_url":"https://api.github.com/users/danielsomekh/events{/privacy}","received_events_url":"https://api.github.com/users/danielsomekh/received_events","type":"User","site_admin":false},"repo":{"id":46444563,"name":"capstone","full_name":"danielsomekh/capstone","owner":{"login":"danielsomekh","id":5473478,"avatar_url":"https://avatars.githubusercontent.com/u/5473478?v=3","gravatar_id":"","url":"https://api.github.com/users/danielsomekh","html_url":"https://github.com/danielsomekh","followers_url":"https://api.github.com/users/danielsomekh/followers","following_url":"https://api.github.com/users/danielsomekh/following{/other_user}","gists_url":"https://api.github.com/users/danielsomekh/gists{/gist_id}","starred_url":"https://api.github.com/users/danielsomekh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/danielsomekh/subscriptions","organizations_url":"https://api.github.com/users/danielsomekh/orgs","repos_url":"https://api.github.com/users/danielsomekh/repos","events_url":"https://api.github.com/users/danielsomekh/events{/privacy}","received_events_url":"https://api.github.com/users/danielsomekh/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/danielsomekh/capstone","description":"","fork":false,"url":"https://api.github.com/repos/danielsomekh/capstone","forks_url":"https://api.github.com/repos/danielsomekh/capstone/forks","keys_url":"https://api.github.com/repos/danielsomekh/capstone/keys{/key_id}","collaborators_url":"https://api.github.com/repos/danielsomekh/capstone/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/danielsomekh/capstone/teams","hooks_url":"https://api.github.com/repos/danielsomekh/capstone/hooks","issue_events_url":"https://api.github.com/repos/danielsomekh/capstone/issues/events{/number}","events_url":"https://api.github.com/repos/danielsomekh/capstone/events","assignees_url":"https://api.github.com/repos/danielsomekh/capstone/assignees{/user}","branches_url":"https://api.github.com/repos/danielsomekh/capstone/branches{/branch}","tags_url":"https://api.github.com/repos/danielsomekh/capstone/tags","blobs_url":"https://api.github.com/repos/danielsomekh/capstone/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/danielsomekh/capstone/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/danielsomekh/capstone/git/refs{/sha}","trees_url":"https://api.github.com/repos/danielsomekh/capstone/git/trees{/sha}","statuses_url":"https://api.github.com/repos/danielsomekh/capstone/statuses/{sha}","languages_url":"https://api.github.com/repos/danielsomekh/capstone/languages","stargazers_url":"https://api.github.com/repos/danielsomekh/capstone/stargazers","contributors_url":"https://api.github.com/repos/danielsomekh/capstone/contributors","subscribers_url":"https://api.github.com/repos/danielsomekh/capstone/subscribers","subscription_url":"https://api.github.com/repos/danielsomekh/capstone/subscription","commits_url":"https://api.github.com/repos/danielsomekh/capstone/commits{/sha}","git_commits_url":"https://api.github.com/repos/danielsomekh/capstone/git/commits{/sha}","comments_url":"https://api.github.com/repos/danielsomekh/capstone/comments{/number}","issue_comment_url":"https://api.github.com/repos/danielsomekh/capstone/issues/comments{/number}","contents_url":"https://api.github.com/repos/danielsomekh/capstone/contents/{+path}","compare_url":"https://api.github.com/repos/danielsomekh/capstone/compare/{base}...{head}","merges_url":"https://api.github.com/repos/danielsomekh/capstone/merges","archive_url":"https://api.github.com/repos/danielsomekh/capstone/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/danielsomekh/capstone/downloads","issues_url":"https://api.github.com/repos/danielsomekh/capstone/issues{/number}","pulls_url":"https://api.github.com/repos/danielsomekh/capstone/pulls{/number}","milestones_url":"https://api.github.com/repos/danielsomekh/capstone/milestones{/number}","notifications_url":"https://api.github.com/repos/danielsomekh/capstone/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/danielsomekh/capstone/labels{/name}","releases_url":"https://api.github.com/repos/danielsomekh/capstone/releases{/id}","created_at":"2015-11-18T20:12:37Z","updated_at":"2015-11-18T20:13:20Z","pushed_at":"2015-11-19T18:19:55Z","git_url":"git://github.com/danielsomekh/capstone.git","ssh_url":"git@github.com:danielsomekh/capstone.git","clone_url":"https://github.com/danielsomekh/capstone.git","svn_url":"https://github.com/danielsomekh/capstone","homepage":null,"size":41,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":7,"forks":0,"open_issues":7,"watchers":0,"default_branch":"master"}},"base":{"label":"danielsomekh:master","ref":"master","sha":"0c9ae0930dc57a482a3c55e48171f023a55205ef","user":{"login":"danielsomekh","id":5473478,"avatar_url":"https://avatars.githubusercontent.com/u/5473478?v=3","gravatar_id":"","url":"https://api.github.com/users/danielsomekh","html_url":"https://github.com/danielsomekh","followers_url":"https://api.github.com/users/danielsomekh/followers","following_url":"https://api.github.com/users/danielsomekh/following{/other_user}","gists_url":"https://api.github.com/users/danielsomekh/gists{/gist_id}","starred_url":"https://api.github.com/users/danielsomekh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/danielsomekh/subscriptions","organizations_url":"https://api.github.com/users/danielsomekh/orgs","repos_url":"https://api.github.com/users/danielsomekh/repos","events_url":"https://api.github.com/users/danielsomekh/events{/privacy}","received_events_url":"https://api.github.com/users/danielsomekh/received_events","type":"User","site_admin":false},"repo":{"id":46444563,"name":"capstone","full_name":"danielsomekh/capstone","owner":{"login":"danielsomekh","id":5473478,"avatar_url":"https://avatars.githubusercontent.com/u/5473478?v=3","gravatar_id":"","url":"https://api.github.com/users/danielsomekh","html_url":"https://github.com/danielsomekh","followers_url":"https://api.github.com/users/danielsomekh/followers","following_url":"https://api.github.com/users/danielsomekh/following{/other_user}","gists_url":"https://api.github.com/users/danielsomekh/gists{/gist_id}","starred_url":"https://api.github.com/users/danielsomekh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/danielsomekh/subscriptions","organizations_url":"https://api.github.com/users/danielsomekh/orgs","repos_url":"https://api.github.com/users/danielsomekh/repos","events_url":"https://api.github.com/users/danielsomekh/events{/privacy}","received_events_url":"https://api.github.com/users/danielsomekh/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/danielsomekh/capstone","description":"","fork":false,"url":"https://api.github.com/repos/danielsomekh/capstone","forks_url":"https://api.github.com/repos/danielsomekh/capstone/forks","keys_url":"https://api.github.com/repos/danielsomekh/capstone/keys{/key_id}","collaborators_url":"https://api.github.com/repos/danielsomekh/capstone/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/danielsomekh/capstone/teams","hooks_url":"https://api.github.com/repos/danielsomekh/capstone/hooks","issue_events_url":"https://api.github.com/repos/danielsomekh/capstone/issues/events{/number}","events_url":"https://api.github.com/repos/danielsomekh/capstone/events","assignees_url":"https://api.github.com/repos/danielsomekh/capstone/assignees{/user}","branches_url":"https://api.github.com/repos/danielsomekh/capstone/branches{/branch}","tags_url":"https://api.github.com/repos/danielsomekh/capstone/tags","blobs_url":"https://api.github.com/repos/danielsomekh/capstone/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/danielsomekh/capstone/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/danielsomekh/capstone/git/refs{/sha}","trees_url":"https://api.github.com/repos/danielsomekh/capstone/git/trees{/sha}","statuses_url":"https://api.github.com/repos/danielsomekh/capstone/statuses/{sha}","languages_url":"https://api.github.com/repos/danielsomekh/capstone/languages","stargazers_url":"https://api.github.com/repos/danielsomekh/capstone/stargazers","contributors_url":"https://api.github.com/repos/danielsomekh/capstone/contributors","subscribers_url":"https://api.github.com/repos/danielsomekh/capstone/subscribers","subscription_url":"https://api.github.com/repos/danielsomekh/capstone/subscription","commits_url":"https://api.github.com/repos/danielsomekh/capstone/commits{/sha}","git_commits_url":"https://api.github.com/repos/danielsomekh/capstone/git/commits{/sha}","comments_url":"https://api.github.com/repos/danielsomekh/capstone/comments{/number}","issue_comment_url":"https://api.github.com/repos/danielsomekh/capstone/issues/comments{/number}","contents_url":"https://api.github.com/repos/danielsomekh/capstone/contents/{+path}","compare_url":"https://api.github.com/repos/danielsomekh/capstone/compare/{base}...{head}","merges_url":"https://api.github.com/repos/danielsomekh/capstone/merges","archive_url":"https://api.github.com/repos/danielsomekh/capstone/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/danielsomekh/capstone/downloads","issues_url":"https://api.github.com/repos/danielsomekh/capstone/issues{/number}","pulls_url":"https://api.github.com/repos/danielsomekh/capstone/pulls{/number}","milestones_url":"https://api.github.com/repos/danielsomekh/capstone/milestones{/number}","notifications_url":"https://api.github.com/repos/danielsomekh/capstone/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/danielsomekh/capstone/labels{/name}","releases_url":"https://api.github.com/repos/danielsomekh/capstone/releases{/id}","created_at":"2015-11-18T20:12:37Z","updated_at":"2015-11-18T20:13:20Z","pushed_at":"2015-11-19T18:19:55Z","git_url":"git://github.com/danielsomekh/capstone.git","ssh_url":"git@github.com:danielsomekh/capstone.git","clone_url":"https://github.com/danielsomekh/capstone.git","svn_url":"https://github.com/danielsomekh/capstone","homepage":null,"size":41,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":7,"forks":0,"open_issues":7,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/danielsomekh/capstone/pulls/7"},"html":{"href":"https://github.com/danielsomekh/capstone/pull/7"},"issue":{"href":"https://api.github.com/repos/danielsomekh/capstone/issues/7"},"comments":{"href":"https://api.github.com/repos/danielsomekh/capstone/issues/7/comments"},"review_comments":{"href":"https://api.github.com/repos/danielsomekh/capstone/pulls/7/comments"},"review_comment":{"href":"https://api.github.com/repos/danielsomekh/capstone/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/danielsomekh/capstone/pulls/7/commits"},"statuses":{"href":"https://api.github.com/repos/danielsomekh/capstone/statuses/328bb2fc68edc573c84d993c487b8e3b0eb6d976"}}}}