{"action":"created","comment":{"url":"https://api.github.com/repos/hr-memories/greenfield/pulls/comments/84734250","pull_request_review_id":5492041,"id":84734250,"diff_hunk":"@@ -0,0 +1,14 @@\n+var mongoose = require('mongoose');\n+var Schema = mongoose.Schema;\n+\n+var userSchema = new Schema({\n+  username: String,","path":"server/config/users/userModel.js","position":null,"original_position":5,"commit_id":"68340a6be9efb8d6de874e774d479fff4a57d87b","original_commit_id":"403524adc470dafee01c33bf1afc980c58b579a7","user":{"login":"showmethewei","id":568067,"avatar_url":"https://avatars.githubusercontent.com/u/568067?v=3","gravatar_id":"","url":"https://api.github.com/users/showmethewei","html_url":"https://github.com/showmethewei","followers_url":"https://api.github.com/users/showmethewei/followers","following_url":"https://api.github.com/users/showmethewei/following{/other_user}","gists_url":"https://api.github.com/users/showmethewei/gists{/gist_id}","starred_url":"https://api.github.com/users/showmethewei/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/showmethewei/subscriptions","organizations_url":"https://api.github.com/users/showmethewei/orgs","repos_url":"https://api.github.com/users/showmethewei/repos","events_url":"https://api.github.com/users/showmethewei/events{/privacy}","received_events_url":"https://api.github.com/users/showmethewei/received_events","type":"User","site_admin":false},"body":"Should we enforce uniqueness on the schema side as well?","created_at":"2016-10-24T17:05:25Z","updated_at":"2016-10-24T17:05:25Z","html_url":"https://github.com/hr-memories/greenfield/pull/18#discussion_r84734250","pull_request_url":"https://api.github.com/repos/hr-memories/greenfield/pulls/18","_links":{"self":{"href":"https://api.github.com/repos/hr-memories/greenfield/pulls/comments/84734250"},"html":{"href":"https://github.com/hr-memories/greenfield/pull/18#discussion_r84734250"},"pull_request":{"href":"https://api.github.com/repos/hr-memories/greenfield/pulls/18"}}},"pull_request":{"url":"https://api.github.com/repos/hr-memories/greenfield/pulls/18","id":90312425,"html_url":"https://github.com/hr-memories/greenfield/pull/18","diff_url":"https://github.com/hr-memories/greenfield/pull/18.diff","patch_url":"https://github.com/hr-memories/greenfield/pull/18.patch","issue_url":"https://api.github.com/repos/hr-memories/greenfield/issues/18","number":18,"state":"open","locked":false,"title":"(Feat) server and local database setup","user":{"login":"kkinaman","id":17942466,"avatar_url":"https://avatars.githubusercontent.com/u/17942466?v=3","gravatar_id":"","url":"https://api.github.com/users/kkinaman","html_url":"https://github.com/kkinaman","followers_url":"https://api.github.com/users/kkinaman/followers","following_url":"https://api.github.com/users/kkinaman/following{/other_user}","gists_url":"https://api.github.com/users/kkinaman/gists{/gist_id}","starred_url":"https://api.github.com/users/kkinaman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kkinaman/subscriptions","organizations_url":"https://api.github.com/users/kkinaman/orgs","repos_url":"https://api.github.com/users/kkinaman/repos","events_url":"https://api.github.com/users/kkinaman/events{/privacy}","received_events_url":"https://api.github.com/users/kkinaman/received_events","type":"User","site_admin":false},"body":"COMPLETED: \r\n- Node express server set up (server/index.js)\r\n- Npm dependencies set up (package.json)\r\n- Gruntfile written, basic tasks defined (Gruntfile.js) and npm scripts written (package.json)\r\n- Linting set up\r\n- MongoDB set up (server/config/db-config.js)\r\n- Database schemas defined (server/config/users/userModel.js and server/config/memories/memoryModel.js)\r\n- Routes set up for api calls (server/config/routes.js)\r\n- Methods written for sending POST requests to /api/login and /api/signup (server/config/users/userController.js)\r\n- Tests written for logging in and signing up (test/ServerSpec.js)\r\n\r\nNEXT STEPS:\r\n- specify where client files are located for static files (index.js)\r\n- specify client files for linting (Gruntfile.js)\r\n- host a mongodb instance on heroku and start using that","created_at":"2016-10-21T02:11:58Z","updated_at":"2016-10-24T17:23:17Z","closed_at":null,"merged_at":null,"merge_commit_sha":"b9e64e76c28e65a029c3896568609508b1553ee4","assignee":{"login":"showmethewei","id":568067,"avatar_url":"https://avatars.githubusercontent.com/u/568067?v=3","gravatar_id":"","url":"https://api.github.com/users/showmethewei","html_url":"https://github.com/showmethewei","followers_url":"https://api.github.com/users/showmethewei/followers","following_url":"https://api.github.com/users/showmethewei/following{/other_user}","gists_url":"https://api.github.com/users/showmethewei/gists{/gist_id}","starred_url":"https://api.github.com/users/showmethewei/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/showmethewei/subscriptions","organizations_url":"https://api.github.com/users/showmethewei/orgs","repos_url":"https://api.github.com/users/showmethewei/repos","events_url":"https://api.github.com/users/showmethewei/events{/privacy}","received_events_url":"https://api.github.com/users/showmethewei/received_events","type":"User","site_admin":false},"assignees":[{"login":"showmethewei","id":568067,"avatar_url":"https://avatars.githubusercontent.com/u/568067?v=3","gravatar_id":"","url":"https://api.github.com/users/showmethewei","html_url":"https://github.com/showmethewei","followers_url":"https://api.github.com/users/showmethewei/followers","following_url":"https://api.github.com/users/showmethewei/following{/other_user}","gists_url":"https://api.github.com/users/showmethewei/gists{/gist_id}","starred_url":"https://api.github.com/users/showmethewei/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/showmethewei/subscriptions","organizations_url":"https://api.github.com/users/showmethewei/orgs","repos_url":"https://api.github.com/users/showmethewei/repos","events_url":"https://api.github.com/users/showmethewei/events{/privacy}","received_events_url":"https://api.github.com/users/showmethewei/received_events","type":"User","site_admin":false},{"login":"kbchun","id":5743531,"avatar_url":"https://avatars.githubusercontent.com/u/5743531?v=3","gravatar_id":"","url":"https://api.github.com/users/kbchun","html_url":"https://github.com/kbchun","followers_url":"https://api.github.com/users/kbchun/followers","following_url":"https://api.github.com/users/kbchun/following{/other_user}","gists_url":"https://api.github.com/users/kbchun/gists{/gist_id}","starred_url":"https://api.github.com/users/kbchun/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kbchun/subscriptions","organizations_url":"https://api.github.com/users/kbchun/orgs","repos_url":"https://api.github.com/users/kbchun/repos","events_url":"https://api.github.com/users/kbchun/events{/privacy}","received_events_url":"https://api.github.com/users/kbchun/received_events","type":"User","site_admin":false},{"login":"BillZito","id":6311927,"avatar_url":"https://avatars.githubusercontent.com/u/6311927?v=3","gravatar_id":"","url":"https://api.github.com/users/BillZito","html_url":"https://github.com/BillZito","followers_url":"https://api.github.com/users/BillZito/followers","following_url":"https://api.github.com/users/BillZito/following{/other_user}","gists_url":"https://api.github.com/users/BillZito/gists{/gist_id}","starred_url":"https://api.github.com/users/BillZito/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/BillZito/subscriptions","organizations_url":"https://api.github.com/users/BillZito/orgs","repos_url":"https://api.github.com/users/BillZito/repos","events_url":"https://api.github.com/users/BillZito/events{/privacy}","received_events_url":"https://api.github.com/users/BillZito/received_events","type":"User","site_admin":false}],"milestone":null,"commits_url":"https://api.github.com/repos/hr-memories/greenfield/pulls/18/commits","review_comments_url":"https://api.github.com/repos/hr-memories/greenfield/pulls/18/comments","review_comment_url":"https://api.github.com/repos/hr-memories/greenfield/pulls/comments{/number}","comments_url":"https://api.github.com/repos/hr-memories/greenfield/issues/18/comments","statuses_url":"https://api.github.com/repos/hr-memories/greenfield/statuses/68340a6be9efb8d6de874e774d479fff4a57d87b","head":{"label":"kkinaman:feat/server-setup","ref":"feat/server-setup","sha":"68340a6be9efb8d6de874e774d479fff4a57d87b","user":{"login":"kkinaman","id":17942466,"avatar_url":"https://avatars.githubusercontent.com/u/17942466?v=3","gravatar_id":"","url":"https://api.github.com/users/kkinaman","html_url":"https://github.com/kkinaman","followers_url":"https://api.github.com/users/kkinaman/followers","following_url":"https://api.github.com/users/kkinaman/following{/other_user}","gists_url":"https://api.github.com/users/kkinaman/gists{/gist_id}","starred_url":"https://api.github.com/users/kkinaman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kkinaman/subscriptions","organizations_url":"https://api.github.com/users/kkinaman/orgs","repos_url":"https://api.github.com/users/kkinaman/repos","events_url":"https://api.github.com/users/kkinaman/events{/privacy}","received_events_url":"https://api.github.com/users/kkinaman/received_events","type":"User","site_admin":false},"repo":{"id":71490599,"name":"greenfield","full_name":"kkinaman/greenfield","owner":{"login":"kkinaman","id":17942466,"avatar_url":"https://avatars.githubusercontent.com/u/17942466?v=3","gravatar_id":"","url":"https://api.github.com/users/kkinaman","html_url":"https://github.com/kkinaman","followers_url":"https://api.github.com/users/kkinaman/followers","following_url":"https://api.github.com/users/kkinaman/following{/other_user}","gists_url":"https://api.github.com/users/kkinaman/gists{/gist_id}","starred_url":"https://api.github.com/users/kkinaman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kkinaman/subscriptions","organizations_url":"https://api.github.com/users/kkinaman/orgs","repos_url":"https://api.github.com/users/kkinaman/repos","events_url":"https://api.github.com/users/kkinaman/events{/privacy}","received_events_url":"https://api.github.com/users/kkinaman/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/kkinaman/greenfield","description":null,"fork":true,"url":"https://api.github.com/repos/kkinaman/greenfield","forks_url":"https://api.github.com/repos/kkinaman/greenfield/forks","keys_url":"https://api.github.com/repos/kkinaman/greenfield/keys{/key_id}","collaborators_url":"https://api.github.com/repos/kkinaman/greenfield/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/kkinaman/greenfield/teams","hooks_url":"https://api.github.com/repos/kkinaman/greenfield/hooks","issue_events_url":"https://api.github.com/repos/kkinaman/greenfield/issues/events{/number}","events_url":"https://api.github.com/repos/kkinaman/greenfield/events","assignees_url":"https://api.github.com/repos/kkinaman/greenfield/assignees{/user}","branches_url":"https://api.github.com/repos/kkinaman/greenfield/branches{/branch}","tags_url":"https://api.github.com/repos/kkinaman/greenfield/tags","blobs_url":"https://api.github.com/repos/kkinaman/greenfield/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/kkinaman/greenfield/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/kkinaman/greenfield/git/refs{/sha}","trees_url":"https://api.github.com/repos/kkinaman/greenfield/git/trees{/sha}","statuses_url":"https://api.github.com/repos/kkinaman/greenfield/statuses/{sha}","languages_url":"https://api.github.com/repos/kkinaman/greenfield/languages","stargazers_url":"https://api.github.com/repos/kkinaman/greenfield/stargazers","contributors_url":"https://api.github.com/repos/kkinaman/greenfield/contributors","subscribers_url":"https://api.github.com/repos/kkinaman/greenfield/subscribers","subscription_url":"https://api.github.com/repos/kkinaman/greenfield/subscription","commits_url":"https://api.github.com/repos/kkinaman/greenfield/commits{/sha}","git_commits_url":"https://api.github.com/repos/kkinaman/greenfield/git/commits{/sha}","comments_url":"https://api.github.com/repos/kkinaman/greenfield/comments{/number}","issue_comment_url":"https://api.github.com/repos/kkinaman/greenfield/issues/comments{/number}","contents_url":"https://api.github.com/repos/kkinaman/greenfield/contents/{+path}","compare_url":"https://api.github.com/repos/kkinaman/greenfield/compare/{base}...{head}","merges_url":"https://api.github.com/repos/kkinaman/greenfield/merges","archive_url":"https://api.github.com/repos/kkinaman/greenfield/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/kkinaman/greenfield/downloads","issues_url":"https://api.github.com/repos/kkinaman/greenfield/issues{/number}","pulls_url":"https://api.github.com/repos/kkinaman/greenfield/pulls{/number}","milestones_url":"https://api.github.com/repos/kkinaman/greenfield/milestones{/number}","notifications_url":"https://api.github.com/repos/kkinaman/greenfield/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/kkinaman/greenfield/labels{/name}","releases_url":"https://api.github.com/repos/kkinaman/greenfield/releases{/id}","deployments_url":"https://api.github.com/repos/kkinaman/greenfield/deployments","created_at":"2016-10-20T18:08:15Z","updated_at":"2016-10-20T00:35:25Z","pushed_at":"2016-10-21T01:58:57Z","git_url":"git://github.com/kkinaman/greenfield.git","ssh_url":"git@github.com:kkinaman/greenfield.git","clone_url":"https://github.com/kkinaman/greenfield.git","svn_url":"https://github.com/kkinaman/greenfield","homepage":null,"size":14,"stargazers_count":0,"watchers_count":0,"language":null,"has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"hr-memories:master","ref":"master","sha":"272fb6c331f2fe9a278cfe988d4ce978fd6de7e6","user":{"login":"hr-memories","id":22947647,"avatar_url":"https://avatars.githubusercontent.com/u/22947647?v=3","gravatar_id":"","url":"https://api.github.com/users/hr-memories","html_url":"https://github.com/hr-memories","followers_url":"https://api.github.com/users/hr-memories/followers","following_url":"https://api.github.com/users/hr-memories/following{/other_user}","gists_url":"https://api.github.com/users/hr-memories/gists{/gist_id}","starred_url":"https://api.github.com/users/hr-memories/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hr-memories/subscriptions","organizations_url":"https://api.github.com/users/hr-memories/orgs","repos_url":"https://api.github.com/users/hr-memories/repos","events_url":"https://api.github.com/users/hr-memories/events{/privacy}","received_events_url":"https://api.github.com/users/hr-memories/received_events","type":"Organization","site_admin":false},"repo":{"id":71411109,"name":"greenfield","full_name":"hr-memories/greenfield","owner":{"login":"hr-memories","id":22947647,"avatar_url":"https://avatars.githubusercontent.com/u/22947647?v=3","gravatar_id":"","url":"https://api.github.com/users/hr-memories","html_url":"https://github.com/hr-memories","followers_url":"https://api.github.com/users/hr-memories/followers","following_url":"https://api.github.com/users/hr-memories/following{/other_user}","gists_url":"https://api.github.com/users/hr-memories/gists{/gist_id}","starred_url":"https://api.github.com/users/hr-memories/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hr-memories/subscriptions","organizations_url":"https://api.github.com/users/hr-memories/orgs","repos_url":"https://api.github.com/users/hr-memories/repos","events_url":"https://api.github.com/users/hr-memories/events{/privacy}","received_events_url":"https://api.github.com/users/hr-memories/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/hr-memories/greenfield","description":null,"fork":false,"url":"https://api.github.com/repos/hr-memories/greenfield","forks_url":"https://api.github.com/repos/hr-memories/greenfield/forks","keys_url":"https://api.github.com/repos/hr-memories/greenfield/keys{/key_id}","collaborators_url":"https://api.github.com/repos/hr-memories/greenfield/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/hr-memories/greenfield/teams","hooks_url":"https://api.github.com/repos/hr-memories/greenfield/hooks","issue_events_url":"https://api.github.com/repos/hr-memories/greenfield/issues/events{/number}","events_url":"https://api.github.com/repos/hr-memories/greenfield/events","assignees_url":"https://api.github.com/repos/hr-memories/greenfield/assignees{/user}","branches_url":"https://api.github.com/repos/hr-memories/greenfield/branches{/branch}","tags_url":"https://api.github.com/repos/hr-memories/greenfield/tags","blobs_url":"https://api.github.com/repos/hr-memories/greenfield/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/hr-memories/greenfield/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/hr-memories/greenfield/git/refs{/sha}","trees_url":"https://api.github.com/repos/hr-memories/greenfield/git/trees{/sha}","statuses_url":"https://api.github.com/repos/hr-memories/greenfield/statuses/{sha}","languages_url":"https://api.github.com/repos/hr-memories/greenfield/languages","stargazers_url":"https://api.github.com/repos/hr-memories/greenfield/stargazers","contributors_url":"https://api.github.com/repos/hr-memories/greenfield/contributors","subscribers_url":"https://api.github.com/repos/hr-memories/greenfield/subscribers","subscription_url":"https://api.github.com/repos/hr-memories/greenfield/subscription","commits_url":"https://api.github.com/repos/hr-memories/greenfield/commits{/sha}","git_commits_url":"https://api.github.com/repos/hr-memories/greenfield/git/commits{/sha}","comments_url":"https://api.github.com/repos/hr-memories/greenfield/comments{/number}","issue_comment_url":"https://api.github.com/repos/hr-memories/greenfield/issues/comments{/number}","contents_url":"https://api.github.com/repos/hr-memories/greenfield/contents/{+path}","compare_url":"https://api.github.com/repos/hr-memories/greenfield/compare/{base}...{head}","merges_url":"https://api.github.com/repos/hr-memories/greenfield/merges","archive_url":"https://api.github.com/repos/hr-memories/greenfield/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/hr-memories/greenfield/downloads","issues_url":"https://api.github.com/repos/hr-memories/greenfield/issues{/number}","pulls_url":"https://api.github.com/repos/hr-memories/greenfield/pulls{/number}","milestones_url":"https://api.github.com/repos/hr-memories/greenfield/milestones{/number}","notifications_url":"https://api.github.com/repos/hr-memories/greenfield/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/hr-memories/greenfield/labels{/name}","releases_url":"https://api.github.com/repos/hr-memories/greenfield/releases{/id}","deployments_url":"https://api.github.com/repos/hr-memories/greenfield/deployments","created_at":"2016-10-20T00:35:25Z","updated_at":"2016-10-20T00:35:25Z","pushed_at":"2016-10-21T02:11:58Z","git_url":"git://github.com/hr-memories/greenfield.git","ssh_url":"git@github.com:hr-memories/greenfield.git","clone_url":"https://github.com/hr-memories/greenfield.git","svn_url":"https://github.com/hr-memories/greenfield","homepage":null,"size":4,"stargazers_count":0,"watchers_count":0,"language":null,"has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":14,"forks":1,"open_issues":14,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/hr-memories/greenfield/pulls/18"},"html":{"href":"https://github.com/hr-memories/greenfield/pull/18"},"issue":{"href":"https://api.github.com/repos/hr-memories/greenfield/issues/18"},"comments":{"href":"https://api.github.com/repos/hr-memories/greenfield/issues/18/comments"},"review_comments":{"href":"https://api.github.com/repos/hr-memories/greenfield/pulls/18/comments"},"review_comment":{"href":"https://api.github.com/repos/hr-memories/greenfield/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/hr-memories/greenfield/pulls/18/commits"},"statuses":{"href":"https://api.github.com/repos/hr-memories/greenfield/statuses/68340a6be9efb8d6de874e774d479fff4a57d87b"}}}}
{"actor":{"display_login":"showmethewei"}}