{"action":"created","comment":{"url":"https://api.github.com/repos/alxolr/student-moodle/pulls/comments/200122767","pull_request_review_id":134375064,"id":200122767,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIwMDEyMjc2Nw==","diff_hunk":"@@ -0,0 +1,16 @@\n+\n+module.exports = (sequelize, DataTypes) => {\n+  const Course = sequelize.define('Course', {\n+    name: {\n+      type: DataTypes.STRING,\n+    },\n+\n+  }, {\n+    tableName: 'courses',\n+    timestamps: false,\n+  });\n+  Course.associate = (models) => {\n+    // Course.hasMany(Groups, {foreignKey: 'idSpecialities'});","path":"src/models/course.js","position":13,"original_position":13,"commit_id":"6adc4990d8d0e85ccf6969987cded48d4e0c126d","original_commit_id":"6adc4990d8d0e85ccf6969987cded48d4e0c126d","user":{"login":"alxolr","id":13674220,"node_id":"MDQ6VXNlcjEzNjc0MjIw","avatar_url":"https://avatars0.githubusercontent.com/u/13674220?v=4","gravatar_id":"","url":"https://api.github.com/users/alxolr","html_url":"https://github.com/alxolr","followers_url":"https://api.github.com/users/alxolr/followers","following_url":"https://api.github.com/users/alxolr/following{/other_user}","gists_url":"https://api.github.com/users/alxolr/gists{/gist_id}","starred_url":"https://api.github.com/users/alxolr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alxolr/subscriptions","organizations_url":"https://api.github.com/users/alxolr/orgs","repos_url":"https://api.github.com/users/alxolr/repos","events_url":"https://api.github.com/users/alxolr/events{/privacy}","received_events_url":"https://api.github.com/users/alxolr/received_events","type":"User","site_admin":false},"body":"Commented code should not be commited","created_at":"2018-07-04T13:14:46Z","updated_at":"2018-07-04T13:20:29Z","html_url":"https://github.com/alxolr/student-moodle/pull/3#discussion_r200122767","pull_request_url":"https://api.github.com/repos/alxolr/student-moodle/pulls/3","author_association":"OWNER","_links":{"self":{"href":"https://api.github.com/repos/alxolr/student-moodle/pulls/comments/200122767"},"html":{"href":"https://github.com/alxolr/student-moodle/pull/3#discussion_r200122767"},"pull_request":{"href":"https://api.github.com/repos/alxolr/student-moodle/pulls/3"}}},"pull_request":{"url":"https://api.github.com/repos/alxolr/student-moodle/pulls/3","id":199240847,"node_id":"MDExOlB1bGxSZXF1ZXN0MTk5MjQwODQ3","html_url":"https://github.com/alxolr/student-moodle/pull/3","diff_url":"https://github.com/alxolr/student-moodle/pull/3.diff","patch_url":"https://github.com/alxolr/student-moodle/pull/3.patch","issue_url":"https://api.github.com/repos/alxolr/student-moodle/issues/3","number":3,"state":"open","locked":false,"title":"Database works now","user":{"login":"runtilov","id":40624285,"node_id":"MDQ6VXNlcjQwNjI0Mjg1","avatar_url":"https://avatars0.githubusercontent.com/u/40624285?v=4","gravatar_id":"","url":"https://api.github.com/users/runtilov","html_url":"https://github.com/runtilov","followers_url":"https://api.github.com/users/runtilov/followers","following_url":"https://api.github.com/users/runtilov/following{/other_user}","gists_url":"https://api.github.com/users/runtilov/gists{/gist_id}","starred_url":"https://api.github.com/users/runtilov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/runtilov/subscriptions","organizations_url":"https://api.github.com/users/runtilov/orgs","repos_url":"https://api.github.com/users/runtilov/repos","events_url":"https://api.github.com/users/runtilov/events{/privacy}","received_events_url":"https://api.github.com/users/runtilov/received_events","type":"User","site_admin":false},"body":"The server can only get the list of admins  from the database and an admin to the db. We need the definition of the API to completely integrate the database.","created_at":"2018-07-04T12:53:29Z","updated_at":"2018-07-04T13:20:29Z","closed_at":null,"merged_at":null,"merge_commit_sha":"d8a498bc58e7ad47294ecae7055997dbb8db6882","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/alxolr/student-moodle/pulls/3/commits","review_comments_url":"https://api.github.com/repos/alxolr/student-moodle/pulls/3/comments","review_comment_url":"https://api.github.com/repos/alxolr/student-moodle/pulls/comments{/number}","comments_url":"https://api.github.com/repos/alxolr/student-moodle/issues/3/comments","statuses_url":"https://api.github.com/repos/alxolr/student-moodle/statuses/6adc4990d8d0e85ccf6969987cded48d4e0c126d","head":{"label":"alxolr:baza","ref":"baza","sha":"6adc4990d8d0e85ccf6969987cded48d4e0c126d","user":{"login":"alxolr","id":13674220,"node_id":"MDQ6VXNlcjEzNjc0MjIw","avatar_url":"https://avatars0.githubusercontent.com/u/13674220?v=4","gravatar_id":"","url":"https://api.github.com/users/alxolr","html_url":"https://github.com/alxolr","followers_url":"https://api.github.com/users/alxolr/followers","following_url":"https://api.github.com/users/alxolr/following{/other_user}","gists_url":"https://api.github.com/users/alxolr/gists{/gist_id}","starred_url":"https://api.github.com/users/alxolr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alxolr/subscriptions","organizations_url":"https://api.github.com/users/alxolr/orgs","repos_url":"https://api.github.com/users/alxolr/repos","events_url":"https://api.github.com/users/alxolr/events{/privacy}","received_events_url":"https://api.github.com/users/alxolr/received_events","type":"User","site_admin":false},"repo":{"id":139401594,"node_id":"MDEwOlJlcG9zaXRvcnkxMzk0MDE1OTQ=","name":"student-moodle","full_name":"alxolr/student-moodle","owner":{"login":"alxolr","id":13674220,"node_id":"MDQ6VXNlcjEzNjc0MjIw","avatar_url":"https://avatars0.githubusercontent.com/u/13674220?v=4","gravatar_id":"","url":"https://api.github.com/users/alxolr","html_url":"https://github.com/alxolr","followers_url":"https://api.github.com/users/alxolr/followers","following_url":"https://api.github.com/users/alxolr/following{/other_user}","gists_url":"https://api.github.com/users/alxolr/gists{/gist_id}","starred_url":"https://api.github.com/users/alxolr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alxolr/subscriptions","organizations_url":"https://api.github.com/users/alxolr/orgs","repos_url":"https://api.github.com/users/alxolr/repos","events_url":"https://api.github.com/users/alxolr/events{/privacy}","received_events_url":"https://api.github.com/users/alxolr/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/alxolr/student-moodle","description":null,"fork":false,"url":"https://api.github.com/repos/alxolr/student-moodle","forks_url":"https://api.github.com/repos/alxolr/student-moodle/forks","keys_url":"https://api.github.com/repos/alxolr/student-moodle/keys{/key_id}","collaborators_url":"https://api.github.com/repos/alxolr/student-moodle/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/alxolr/student-moodle/teams","hooks_url":"https://api.github.com/repos/alxolr/student-moodle/hooks","issue_events_url":"https://api.github.com/repos/alxolr/student-moodle/issues/events{/number}","events_url":"https://api.github.com/repos/alxolr/student-moodle/events","assignees_url":"https://api.github.com/repos/alxolr/student-moodle/assignees{/user}","branches_url":"https://api.github.com/repos/alxolr/student-moodle/branches{/branch}","tags_url":"https://api.github.com/repos/alxolr/student-moodle/tags","blobs_url":"https://api.github.com/repos/alxolr/student-moodle/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/alxolr/student-moodle/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/alxolr/student-moodle/git/refs{/sha}","trees_url":"https://api.github.com/repos/alxolr/student-moodle/git/trees{/sha}","statuses_url":"https://api.github.com/repos/alxolr/student-moodle/statuses/{sha}","languages_url":"https://api.github.com/repos/alxolr/student-moodle/languages","stargazers_url":"https://api.github.com/repos/alxolr/student-moodle/stargazers","contributors_url":"https://api.github.com/repos/alxolr/student-moodle/contributors","subscribers_url":"https://api.github.com/repos/alxolr/student-moodle/subscribers","subscription_url":"https://api.github.com/repos/alxolr/student-moodle/subscription","commits_url":"https://api.github.com/repos/alxolr/student-moodle/commits{/sha}","git_commits_url":"https://api.github.com/repos/alxolr/student-moodle/git/commits{/sha}","comments_url":"https://api.github.com/repos/alxolr/student-moodle/comments{/number}","issue_comment_url":"https://api.github.com/repos/alxolr/student-moodle/issues/comments{/number}","contents_url":"https://api.github.com/repos/alxolr/student-moodle/contents/{+path}","compare_url":"https://api.github.com/repos/alxolr/student-moodle/compare/{base}...{head}","merges_url":"https://api.github.com/repos/alxolr/student-moodle/merges","archive_url":"https://api.github.com/repos/alxolr/student-moodle/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/alxolr/student-moodle/downloads","issues_url":"https://api.github.com/repos/alxolr/student-moodle/issues{/number}","pulls_url":"https://api.github.com/repos/alxolr/student-moodle/pulls{/number}","milestones_url":"https://api.github.com/repos/alxolr/student-moodle/milestones{/number}","notifications_url":"https://api.github.com/repos/alxolr/student-moodle/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/alxolr/student-moodle/labels{/name}","releases_url":"https://api.github.com/repos/alxolr/student-moodle/releases{/id}","deployments_url":"https://api.github.com/repos/alxolr/student-moodle/deployments","created_at":"2018-07-02T06:40:20Z","updated_at":"2018-07-03T09:15:43Z","pushed_at":"2018-07-04T12:53:30Z","git_url":"git://github.com/alxolr/student-moodle.git","ssh_url":"git@github.com:alxolr/student-moodle.git","clone_url":"https://github.com/alxolr/student-moodle.git","svn_url":"https://github.com/alxolr/student-moodle","homepage":null,"size":68,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":2,"mirror_url":null,"archived":false,"open_issues_count":1,"license":null,"forks":2,"open_issues":1,"watchers":0,"default_branch":"master"}},"base":{"label":"alxolr:master","ref":"master","sha":"00c1ac117a72e962e260b20a3f3f402db073b0fa","user":{"login":"alxolr","id":13674220,"node_id":"MDQ6VXNlcjEzNjc0MjIw","avatar_url":"https://avatars0.githubusercontent.com/u/13674220?v=4","gravatar_id":"","url":"https://api.github.com/users/alxolr","html_url":"https://github.com/alxolr","followers_url":"https://api.github.com/users/alxolr/followers","following_url":"https://api.github.com/users/alxolr/following{/other_user}","gists_url":"https://api.github.com/users/alxolr/gists{/gist_id}","starred_url":"https://api.github.com/users/alxolr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alxolr/subscriptions","organizations_url":"https://api.github.com/users/alxolr/orgs","repos_url":"https://api.github.com/users/alxolr/repos","events_url":"https://api.github.com/users/alxolr/events{/privacy}","received_events_url":"https://api.github.com/users/alxolr/received_events","type":"User","site_admin":false},"repo":{"id":139401594,"node_id":"MDEwOlJlcG9zaXRvcnkxMzk0MDE1OTQ=","name":"student-moodle","full_name":"alxolr/student-moodle","owner":{"login":"alxolr","id":13674220,"node_id":"MDQ6VXNlcjEzNjc0MjIw","avatar_url":"https://avatars0.githubusercontent.com/u/13674220?v=4","gravatar_id":"","url":"https://api.github.com/users/alxolr","html_url":"https://github.com/alxolr","followers_url":"https://api.github.com/users/alxolr/followers","following_url":"https://api.github.com/users/alxolr/following{/other_user}","gists_url":"https://api.github.com/users/alxolr/gists{/gist_id}","starred_url":"https://api.github.com/users/alxolr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alxolr/subscriptions","organizations_url":"https://api.github.com/users/alxolr/orgs","repos_url":"https://api.github.com/users/alxolr/repos","events_url":"https://api.github.com/users/alxolr/events{/privacy}","received_events_url":"https://api.github.com/users/alxolr/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/alxolr/student-moodle","description":null,"fork":false,"url":"https://api.github.com/repos/alxolr/student-moodle","forks_url":"https://api.github.com/repos/alxolr/student-moodle/forks","keys_url":"https://api.github.com/repos/alxolr/student-moodle/keys{/key_id}","collaborators_url":"https://api.github.com/repos/alxolr/student-moodle/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/alxolr/student-moodle/teams","hooks_url":"https://api.github.com/repos/alxolr/student-moodle/hooks","issue_events_url":"https://api.github.com/repos/alxolr/student-moodle/issues/events{/number}","events_url":"https://api.github.com/repos/alxolr/student-moodle/events","assignees_url":"https://api.github.com/repos/alxolr/student-moodle/assignees{/user}","branches_url":"https://api.github.com/repos/alxolr/student-moodle/branches{/branch}","tags_url":"https://api.github.com/repos/alxolr/student-moodle/tags","blobs_url":"https://api.github.com/repos/alxolr/student-moodle/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/alxolr/student-moodle/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/alxolr/student-moodle/git/refs{/sha}","trees_url":"https://api.github.com/repos/alxolr/student-moodle/git/trees{/sha}","statuses_url":"https://api.github.com/repos/alxolr/student-moodle/statuses/{sha}","languages_url":"https://api.github.com/repos/alxolr/student-moodle/languages","stargazers_url":"https://api.github.com/repos/alxolr/student-moodle/stargazers","contributors_url":"https://api.github.com/repos/alxolr/student-moodle/contributors","subscribers_url":"https://api.github.com/repos/alxolr/student-moodle/subscribers","subscription_url":"https://api.github.com/repos/alxolr/student-moodle/subscription","commits_url":"https://api.github.com/repos/alxolr/student-moodle/commits{/sha}","git_commits_url":"https://api.github.com/repos/alxolr/student-moodle/git/commits{/sha}","comments_url":"https://api.github.com/repos/alxolr/student-moodle/comments{/number}","issue_comment_url":"https://api.github.com/repos/alxolr/student-moodle/issues/comments{/number}","contents_url":"https://api.github.com/repos/alxolr/student-moodle/contents/{+path}","compare_url":"https://api.github.com/repos/alxolr/student-moodle/compare/{base}...{head}","merges_url":"https://api.github.com/repos/alxolr/student-moodle/merges","archive_url":"https://api.github.com/repos/alxolr/student-moodle/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/alxolr/student-moodle/downloads","issues_url":"https://api.github.com/repos/alxolr/student-moodle/issues{/number}","pulls_url":"https://api.github.com/repos/alxolr/student-moodle/pulls{/number}","milestones_url":"https://api.github.com/repos/alxolr/student-moodle/milestones{/number}","notifications_url":"https://api.github.com/repos/alxolr/student-moodle/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/alxolr/student-moodle/labels{/name}","releases_url":"https://api.github.com/repos/alxolr/student-moodle/releases{/id}","deployments_url":"https://api.github.com/repos/alxolr/student-moodle/deployments","created_at":"2018-07-02T06:40:20Z","updated_at":"2018-07-03T09:15:43Z","pushed_at":"2018-07-04T12:53:30Z","git_url":"git://github.com/alxolr/student-moodle.git","ssh_url":"git@github.com:alxolr/student-moodle.git","clone_url":"https://github.com/alxolr/student-moodle.git","svn_url":"https://github.com/alxolr/student-moodle","homepage":null,"size":68,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":2,"mirror_url":null,"archived":false,"open_issues_count":1,"license":null,"forks":2,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/alxolr/student-moodle/pulls/3"},"html":{"href":"https://github.com/alxolr/student-moodle/pull/3"},"issue":{"href":"https://api.github.com/repos/alxolr/student-moodle/issues/3"},"comments":{"href":"https://api.github.com/repos/alxolr/student-moodle/issues/3/comments"},"review_comments":{"href":"https://api.github.com/repos/alxolr/student-moodle/pulls/3/comments"},"review_comment":{"href":"https://api.github.com/repos/alxolr/student-moodle/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/alxolr/student-moodle/pulls/3/commits"},"statuses":{"href":"https://api.github.com/repos/alxolr/student-moodle/statuses/6adc4990d8d0e85ccf6969987cded48d4e0c126d"}},"author_association":"COLLABORATOR"}}
{"actor":{"display_login":"alxolr"}}