{"action":"created","comment":{"url":"https://api.github.com/repos/child-first-authority-fcc-project/webapp/pulls/comments/41223143","id":41223143,"diff_hunk":"@@ -0,0 +1,21 @@\n+'use strict';\n+\n+var mongoose = require('mongoose'),\n+    Schema = mongoose.Schema;\n+\n+var schoolYearSchema = new Schema({\n+\tallAbsences: Number,\n+\ttardy: Number,\n+\tpresent: Number,\n+\tenrolled: Number\n+});\n+\n+var StudentSchema = new Schema({\n+  _id: Number, // Student ID\n+  lastName: String,\n+  firstName: String,\n+  schoolYear: [ Number: {schoolYearSchema}]","path":"server/api/student/student.model.js","position":null,"original_position":17,"commit_id":"1543e2c2ec62d92f9410b7d66ff501d136ef91b0","original_commit_id":"ae7a4792adbcc6d9efaca525abb8677e115c101f","user":{"login":"pdotsani","id":5272252,"avatar_url":"https://avatars.githubusercontent.com/u/5272252?v=3","gravatar_id":"","url":"https://api.github.com/users/pdotsani","html_url":"https://github.com/pdotsani","followers_url":"https://api.github.com/users/pdotsani/followers","following_url":"https://api.github.com/users/pdotsani/following{/other_user}","gists_url":"https://api.github.com/users/pdotsani/gists{/gist_id}","starred_url":"https://api.github.com/users/pdotsani/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pdotsani/subscriptions","organizations_url":"https://api.github.com/users/pdotsani/orgs","repos_url":"https://api.github.com/users/pdotsani/repos","events_url":"https://api.github.com/users/pdotsani/events{/privacy}","received_events_url":"https://api.github.com/users/pdotsani/received_events","type":"User","site_admin":false},"body":"- This has worked for me in the past. So I figure we could try it in this project. \r\n\r\n- Year would go under 'year' in SchoolYearSchema","created_at":"2015-10-06T03:33:53Z","updated_at":"2015-10-06T03:33:53Z","html_url":"https://github.com/child-first-authority-fcc-project/webapp/pull/12#discussion_r41223143","pull_request_url":"https://api.github.com/repos/child-first-authority-fcc-project/webapp/pulls/12","_links":{"self":{"href":"https://api.github.com/repos/child-first-authority-fcc-project/webapp/pulls/comments/41223143"},"html":{"href":"https://github.com/child-first-authority-fcc-project/webapp/pull/12#discussion_r41223143"},"pull_request":{"href":"https://api.github.com/repos/child-first-authority-fcc-project/webapp/pulls/12"}}},"pull_request":{"url":"https://api.github.com/repos/child-first-authority-fcc-project/webapp/pulls/12","id":46840267,"html_url":"https://github.com/child-first-authority-fcc-project/webapp/pull/12","diff_url":"https://github.com/child-first-authority-fcc-project/webapp/pull/12.diff","patch_url":"https://github.com/child-first-authority-fcc-project/webapp/pull/12.patch","issue_url":"https://api.github.com/repos/child-first-authority-fcc-project/webapp/issues/12","number":12,"state":"open","locked":false,"title":"drafted mongodb schema","user":{"login":"pdotsani","id":5272252,"avatar_url":"https://avatars.githubusercontent.com/u/5272252?v=3","gravatar_id":"","url":"https://api.github.com/users/pdotsani","html_url":"https://github.com/pdotsani","followers_url":"https://api.github.com/users/pdotsani/followers","following_url":"https://api.github.com/users/pdotsani/following{/other_user}","gists_url":"https://api.github.com/users/pdotsani/gists{/gist_id}","starred_url":"https://api.github.com/users/pdotsani/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pdotsani/subscriptions","organizations_url":"https://api.github.com/users/pdotsani/orgs","repos_url":"https://api.github.com/users/pdotsani/repos","events_url":"https://api.github.com/users/pdotsani/events{/privacy}","received_events_url":"https://api.github.com/users/pdotsani/received_events","type":"User","site_admin":false},"body":"In reference to issue [#11](https://github.com/child-first-authority-fcc-project/webapp/issues/11)\r\n\r\nCreated schema and subschema for student records based on pdf.","created_at":"2015-10-05T22:05:45Z","updated_at":"2015-10-06T03:33:53Z","closed_at":null,"merged_at":null,"merge_commit_sha":"86c54fcbe758bc1f3974f9384f83f0f47c3bcc1b","assignee":{"login":"dting","id":394393,"avatar_url":"https://avatars.githubusercontent.com/u/394393?v=3","gravatar_id":"","url":"https://api.github.com/users/dting","html_url":"https://github.com/dting","followers_url":"https://api.github.com/users/dting/followers","following_url":"https://api.github.com/users/dting/following{/other_user}","gists_url":"https://api.github.com/users/dting/gists{/gist_id}","starred_url":"https://api.github.com/users/dting/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dting/subscriptions","organizations_url":"https://api.github.com/users/dting/orgs","repos_url":"https://api.github.com/users/dting/repos","events_url":"https://api.github.com/users/dting/events{/privacy}","received_events_url":"https://api.github.com/users/dting/received_events","type":"User","site_admin":false},"milestone":null,"commits_url":"https://api.github.com/repos/child-first-authority-fcc-project/webapp/pulls/12/commits","review_comments_url":"https://api.github.com/repos/child-first-authority-fcc-project/webapp/pulls/12/comments","review_comment_url":"https://api.github.com/repos/child-first-authority-fcc-project/webapp/pulls/comments{/number}","comments_url":"https://api.github.com/repos/child-first-authority-fcc-project/webapp/issues/12/comments","statuses_url":"https://api.github.com/repos/child-first-authority-fcc-project/webapp/statuses/1543e2c2ec62d92f9410b7d66ff501d136ef91b0","head":{"label":"pdotsani:create-mongodb-schema","ref":"create-mongodb-schema","sha":"1543e2c2ec62d92f9410b7d66ff501d136ef91b0","user":{"login":"pdotsani","id":5272252,"avatar_url":"https://avatars.githubusercontent.com/u/5272252?v=3","gravatar_id":"","url":"https://api.github.com/users/pdotsani","html_url":"https://github.com/pdotsani","followers_url":"https://api.github.com/users/pdotsani/followers","following_url":"https://api.github.com/users/pdotsani/following{/other_user}","gists_url":"https://api.github.com/users/pdotsani/gists{/gist_id}","starred_url":"https://api.github.com/users/pdotsani/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pdotsani/subscriptions","organizations_url":"https://api.github.com/users/pdotsani/orgs","repos_url":"https://api.github.com/users/pdotsani/repos","events_url":"https://api.github.com/users/pdotsani/events{/privacy}","received_events_url":"https://api.github.com/users/pdotsani/received_events","type":"User","site_admin":false},"repo":{"id":43326818,"name":"webapp","full_name":"pdotsani/webapp","owner":{"login":"pdotsani","id":5272252,"avatar_url":"https://avatars.githubusercontent.com/u/5272252?v=3","gravatar_id":"","url":"https://api.github.com/users/pdotsani","html_url":"https://github.com/pdotsani","followers_url":"https://api.github.com/users/pdotsani/followers","following_url":"https://api.github.com/users/pdotsani/following{/other_user}","gists_url":"https://api.github.com/users/pdotsani/gists{/gist_id}","starred_url":"https://api.github.com/users/pdotsani/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pdotsani/subscriptions","organizations_url":"https://api.github.com/users/pdotsani/orgs","repos_url":"https://api.github.com/users/pdotsani/repos","events_url":"https://api.github.com/users/pdotsani/events{/privacy}","received_events_url":"https://api.github.com/users/pdotsani/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/pdotsani/webapp","description":"Student absentee and outreach tracking and reporting app for Child First Authority.","fork":true,"url":"https://api.github.com/repos/pdotsani/webapp","forks_url":"https://api.github.com/repos/pdotsani/webapp/forks","keys_url":"https://api.github.com/repos/pdotsani/webapp/keys{/key_id}","collaborators_url":"https://api.github.com/repos/pdotsani/webapp/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/pdotsani/webapp/teams","hooks_url":"https://api.github.com/repos/pdotsani/webapp/hooks","issue_events_url":"https://api.github.com/repos/pdotsani/webapp/issues/events{/number}","events_url":"https://api.github.com/repos/pdotsani/webapp/events","assignees_url":"https://api.github.com/repos/pdotsani/webapp/assignees{/user}","branches_url":"https://api.github.com/repos/pdotsani/webapp/branches{/branch}","tags_url":"https://api.github.com/repos/pdotsani/webapp/tags","blobs_url":"https://api.github.com/repos/pdotsani/webapp/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/pdotsani/webapp/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/pdotsani/webapp/git/refs{/sha}","trees_url":"https://api.github.com/repos/pdotsani/webapp/git/trees{/sha}","statuses_url":"https://api.github.com/repos/pdotsani/webapp/statuses/{sha}","languages_url":"https://api.github.com/repos/pdotsani/webapp/languages","stargazers_url":"https://api.github.com/repos/pdotsani/webapp/stargazers","contributors_url":"https://api.github.com/repos/pdotsani/webapp/contributors","subscribers_url":"https://api.github.com/repos/pdotsani/webapp/subscribers","subscription_url":"https://api.github.com/repos/pdotsani/webapp/subscription","commits_url":"https://api.github.com/repos/pdotsani/webapp/commits{/sha}","git_commits_url":"https://api.github.com/repos/pdotsani/webapp/git/commits{/sha}","comments_url":"https://api.github.com/repos/pdotsani/webapp/comments{/number}","issue_comment_url":"https://api.github.com/repos/pdotsani/webapp/issues/comments{/number}","contents_url":"https://api.github.com/repos/pdotsani/webapp/contents/{+path}","compare_url":"https://api.github.com/repos/pdotsani/webapp/compare/{base}...{head}","merges_url":"https://api.github.com/repos/pdotsani/webapp/merges","archive_url":"https://api.github.com/repos/pdotsani/webapp/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/pdotsani/webapp/downloads","issues_url":"https://api.github.com/repos/pdotsani/webapp/issues{/number}","pulls_url":"https://api.github.com/repos/pdotsani/webapp/pulls{/number}","milestones_url":"https://api.github.com/repos/pdotsani/webapp/milestones{/number}","notifications_url":"https://api.github.com/repos/pdotsani/webapp/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/pdotsani/webapp/labels{/name}","releases_url":"https://api.github.com/repos/pdotsani/webapp/releases{/id}","created_at":"2015-09-28T21:00:54Z","updated_at":"2015-09-28T21:00:55Z","pushed_at":"2015-10-06T03:27:49Z","git_url":"git://github.com/pdotsani/webapp.git","ssh_url":"git@github.com:pdotsani/webapp.git","clone_url":"https://github.com/pdotsani/webapp.git","svn_url":"https://github.com/pdotsani/webapp","homepage":null,"size":635,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","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":"child-first-authority-fcc-project:master","ref":"master","sha":"1e9b831729d961ee8589e9e890e34916bbeea10a","user":{"login":"child-first-authority-fcc-project","id":14875443,"avatar_url":"https://avatars.githubusercontent.com/u/14875443?v=3","gravatar_id":"","url":"https://api.github.com/users/child-first-authority-fcc-project","html_url":"https://github.com/child-first-authority-fcc-project","followers_url":"https://api.github.com/users/child-first-authority-fcc-project/followers","following_url":"https://api.github.com/users/child-first-authority-fcc-project/following{/other_user}","gists_url":"https://api.github.com/users/child-first-authority-fcc-project/gists{/gist_id}","starred_url":"https://api.github.com/users/child-first-authority-fcc-project/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/child-first-authority-fcc-project/subscriptions","organizations_url":"https://api.github.com/users/child-first-authority-fcc-project/orgs","repos_url":"https://api.github.com/users/child-first-authority-fcc-project/repos","events_url":"https://api.github.com/users/child-first-authority-fcc-project/events{/privacy}","received_events_url":"https://api.github.com/users/child-first-authority-fcc-project/received_events","type":"Organization","site_admin":false},"repo":{"id":43320722,"name":"webapp","full_name":"child-first-authority-fcc-project/webapp","owner":{"login":"child-first-authority-fcc-project","id":14875443,"avatar_url":"https://avatars.githubusercontent.com/u/14875443?v=3","gravatar_id":"","url":"https://api.github.com/users/child-first-authority-fcc-project","html_url":"https://github.com/child-first-authority-fcc-project","followers_url":"https://api.github.com/users/child-first-authority-fcc-project/followers","following_url":"https://api.github.com/users/child-first-authority-fcc-project/following{/other_user}","gists_url":"https://api.github.com/users/child-first-authority-fcc-project/gists{/gist_id}","starred_url":"https://api.github.com/users/child-first-authority-fcc-project/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/child-first-authority-fcc-project/subscriptions","organizations_url":"https://api.github.com/users/child-first-authority-fcc-project/orgs","repos_url":"https://api.github.com/users/child-first-authority-fcc-project/repos","events_url":"https://api.github.com/users/child-first-authority-fcc-project/events{/privacy}","received_events_url":"https://api.github.com/users/child-first-authority-fcc-project/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/child-first-authority-fcc-project/webapp","description":"Student absentee and outreach tracking and reporting app for Child First Authority.","fork":false,"url":"https://api.github.com/repos/child-first-authority-fcc-project/webapp","forks_url":"https://api.github.com/repos/child-first-authority-fcc-project/webapp/forks","keys_url":"https://api.github.com/repos/child-first-authority-fcc-project/webapp/keys{/key_id}","collaborators_url":"https://api.github.com/repos/child-first-authority-fcc-project/webapp/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/child-first-authority-fcc-project/webapp/teams","hooks_url":"https://api.github.com/repos/child-first-authority-fcc-project/webapp/hooks","issue_events_url":"https://api.github.com/repos/child-first-authority-fcc-project/webapp/issues/events{/number}","events_url":"https://api.github.com/repos/child-first-authority-fcc-project/webapp/events","assignees_url":"https://api.github.com/repos/child-first-authority-fcc-project/webapp/assignees{/user}","branches_url":"https://api.github.com/repos/child-first-authority-fcc-project/webapp/branches{/branch}","tags_url":"https://api.github.com/repos/child-first-authority-fcc-project/webapp/tags","blobs_url":"https://api.github.com/repos/child-first-authority-fcc-project/webapp/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/child-first-authority-fcc-project/webapp/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/child-first-authority-fcc-project/webapp/git/refs{/sha}","trees_url":"https://api.github.com/repos/child-first-authority-fcc-project/webapp/git/trees{/sha}","statuses_url":"https://api.github.com/repos/child-first-authority-fcc-project/webapp/statuses/{sha}","languages_url":"https://api.github.com/repos/child-first-authority-fcc-project/webapp/languages","stargazers_url":"https://api.github.com/repos/child-first-authority-fcc-project/webapp/stargazers","contributors_url":"https://api.github.com/repos/child-first-authority-fcc-project/webapp/contributors","subscribers_url":"https://api.github.com/repos/child-first-authority-fcc-project/webapp/subscribers","subscription_url":"https://api.github.com/repos/child-first-authority-fcc-project/webapp/subscription","commits_url":"https://api.github.com/repos/child-first-authority-fcc-project/webapp/commits{/sha}","git_commits_url":"https://api.github.com/repos/child-first-authority-fcc-project/webapp/git/commits{/sha}","comments_url":"https://api.github.com/repos/child-first-authority-fcc-project/webapp/comments{/number}","issue_comment_url":"https://api.github.com/repos/child-first-authority-fcc-project/webapp/issues/comments{/number}","contents_url":"https://api.github.com/repos/child-first-authority-fcc-project/webapp/contents/{+path}","compare_url":"https://api.github.com/repos/child-first-authority-fcc-project/webapp/compare/{base}...{head}","merges_url":"https://api.github.com/repos/child-first-authority-fcc-project/webapp/merges","archive_url":"https://api.github.com/repos/child-first-authority-fcc-project/webapp/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/child-first-authority-fcc-project/webapp/downloads","issues_url":"https://api.github.com/repos/child-first-authority-fcc-project/webapp/issues{/number}","pulls_url":"https://api.github.com/repos/child-first-authority-fcc-project/webapp/pulls{/number}","milestones_url":"https://api.github.com/repos/child-first-authority-fcc-project/webapp/milestones{/number}","notifications_url":"https://api.github.com/repos/child-first-authority-fcc-project/webapp/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/child-first-authority-fcc-project/webapp/labels{/name}","releases_url":"https://api.github.com/repos/child-first-authority-fcc-project/webapp/releases{/id}","created_at":"2015-09-28T19:02:11Z","updated_at":"2015-09-28T19:06:00Z","pushed_at":"2015-10-06T03:27:50Z","git_url":"git://github.com/child-first-authority-fcc-project/webapp.git","ssh_url":"git@github.com:child-first-authority-fcc-project/webapp.git","clone_url":"https://github.com/child-first-authority-fcc-project/webapp.git","svn_url":"https://github.com/child-first-authority-fcc-project/webapp","homepage":null,"size":808,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":2,"mirror_url":null,"open_issues_count":2,"forks":2,"open_issues":2,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/child-first-authority-fcc-project/webapp/pulls/12"},"html":{"href":"https://github.com/child-first-authority-fcc-project/webapp/pull/12"},"issue":{"href":"https://api.github.com/repos/child-first-authority-fcc-project/webapp/issues/12"},"comments":{"href":"https://api.github.com/repos/child-first-authority-fcc-project/webapp/issues/12/comments"},"review_comments":{"href":"https://api.github.com/repos/child-first-authority-fcc-project/webapp/pulls/12/comments"},"review_comment":{"href":"https://api.github.com/repos/child-first-authority-fcc-project/webapp/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/child-first-authority-fcc-project/webapp/pulls/12/commits"},"statuses":{"href":"https://api.github.com/repos/child-first-authority-fcc-project/webapp/statuses/1543e2c2ec62d92f9410b7d66ff501d136ef91b0"}}}}