{"action":"created","comment":{"url":"https://api.github.com/repos/Oluwafayokemi/book-a-meal/pulls/comments/186290964","pull_request_review_id":117843772,"id":186290964,"diff_hunk":"@@ -1,31 +1,40 @@\n+'use strict';\n module.exports = (sequelize, DataTypes) => {\n-  const Menu = sequelize.define('Menu', {\n+  let Menu = sequelize.define('Menu', {\n     title: DataTypes.STRING,\n     images: DataTypes.BLOB,\n     quantity: DataTypes.INTEGER,\n     description: DataTypes.TEXT,\n-    date: DataTypes.DATE,\n-    mealId: {\n-      type: DataTypes.INTEGER,\n-      references: 'Meal',\n-      referencesKey: 'id',\n-      allowNull: false,\n-    },\n+    price: DataTypes.INTEGER,\n     userId: {\n-      type: DataTypes.INTEGER,\n-      references: 'User',\n-      referencesKey: 'id',\n-      allowNull: false,\n+      type: Sequelize.INTEGER,\n+      references: {\n+        model: 'User',\n+        key: 'id'\n+      }\n+    },\n+    mealId: {\n+      type: Sequelize.INTEGER,","path":"server/models/menu.js","position":29,"original_position":29,"commit_id":"12d3dcaaee90bd8e61222c3d5c3daa9bf87b595b","original_commit_id":"12d3dcaaee90bd8e61222c3d5c3daa9bf87b595b","user":{"login":"houndci-bot","id":6697940,"avatar_url":"https://avatars0.githubusercontent.com/u/6697940?v=4","gravatar_id":"","url":"https://api.github.com/users/houndci-bot","html_url":"https://github.com/houndci-bot","followers_url":"https://api.github.com/users/houndci-bot/followers","following_url":"https://api.github.com/users/houndci-bot/following{/other_user}","gists_url":"https://api.github.com/users/houndci-bot/gists{/gist_id}","starred_url":"https://api.github.com/users/houndci-bot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/houndci-bot/subscriptions","organizations_url":"https://api.github.com/users/houndci-bot/orgs","repos_url":"https://api.github.com/users/houndci-bot/repos","events_url":"https://api.github.com/users/houndci-bot/events{/privacy}","received_events_url":"https://api.github.com/users/houndci-bot/received_events","type":"User","site_admin":false},"body":"'Sequelize' is not defined  no-undef","created_at":"2018-05-06T13:42:32Z","updated_at":"2018-05-06T13:42:34Z","html_url":"https://github.com/Oluwafayokemi/book-a-meal/pull/36#discussion_r186290964","pull_request_url":"https://api.github.com/repos/Oluwafayokemi/book-a-meal/pulls/36","author_association":"NONE","_links":{"self":{"href":"https://api.github.com/repos/Oluwafayokemi/book-a-meal/pulls/comments/186290964"},"html":{"href":"https://github.com/Oluwafayokemi/book-a-meal/pull/36#discussion_r186290964"},"pull_request":{"href":"https://api.github.com/repos/Oluwafayokemi/book-a-meal/pulls/36"}}},"pull_request":{"url":"https://api.github.com/repos/Oluwafayokemi/book-a-meal/pulls/36","id":186206306,"html_url":"https://github.com/Oluwafayokemi/book-a-meal/pull/36","diff_url":"https://github.com/Oluwafayokemi/book-a-meal/pull/36.diff","patch_url":"https://github.com/Oluwafayokemi/book-a-meal/pull/36.patch","issue_url":"https://api.github.com/repos/Oluwafayokemi/book-a-meal/issues/36","number":36,"state":"open","locked":false,"title":"Feature/#157333582/set up models","user":{"login":"Oluwafayokemi","id":33626790,"avatar_url":"https://avatars1.githubusercontent.com/u/33626790?v=4","gravatar_id":"","url":"https://api.github.com/users/Oluwafayokemi","html_url":"https://github.com/Oluwafayokemi","followers_url":"https://api.github.com/users/Oluwafayokemi/followers","following_url":"https://api.github.com/users/Oluwafayokemi/following{/other_user}","gists_url":"https://api.github.com/users/Oluwafayokemi/gists{/gist_id}","starred_url":"https://api.github.com/users/Oluwafayokemi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Oluwafayokemi/subscriptions","organizations_url":"https://api.github.com/users/Oluwafayokemi/orgs","repos_url":"https://api.github.com/users/Oluwafayokemi/repos","events_url":"https://api.github.com/users/Oluwafayokemi/events{/privacy}","received_events_url":"https://api.github.com/users/Oluwafayokemi/received_events","type":"User","site_admin":false},"body":"","created_at":"2018-05-06T13:42:11Z","updated_at":"2018-05-06T13:42:34Z","closed_at":null,"merged_at":null,"merge_commit_sha":"03d9be41bf4018ee6a283aa922ef2ed8b20e4661","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/Oluwafayokemi/book-a-meal/pulls/36/commits","review_comments_url":"https://api.github.com/repos/Oluwafayokemi/book-a-meal/pulls/36/comments","review_comment_url":"https://api.github.com/repos/Oluwafayokemi/book-a-meal/pulls/comments{/number}","comments_url":"https://api.github.com/repos/Oluwafayokemi/book-a-meal/issues/36/comments","statuses_url":"https://api.github.com/repos/Oluwafayokemi/book-a-meal/statuses/12d3dcaaee90bd8e61222c3d5c3daa9bf87b595b","head":{"label":"Oluwafayokemi:feature/#157333582/set-up-models","ref":"feature/#157333582/set-up-models","sha":"12d3dcaaee90bd8e61222c3d5c3daa9bf87b595b","user":{"login":"Oluwafayokemi","id":33626790,"avatar_url":"https://avatars1.githubusercontent.com/u/33626790?v=4","gravatar_id":"","url":"https://api.github.com/users/Oluwafayokemi","html_url":"https://github.com/Oluwafayokemi","followers_url":"https://api.github.com/users/Oluwafayokemi/followers","following_url":"https://api.github.com/users/Oluwafayokemi/following{/other_user}","gists_url":"https://api.github.com/users/Oluwafayokemi/gists{/gist_id}","starred_url":"https://api.github.com/users/Oluwafayokemi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Oluwafayokemi/subscriptions","organizations_url":"https://api.github.com/users/Oluwafayokemi/orgs","repos_url":"https://api.github.com/users/Oluwafayokemi/repos","events_url":"https://api.github.com/users/Oluwafayokemi/events{/privacy}","received_events_url":"https://api.github.com/users/Oluwafayokemi/received_events","type":"User","site_admin":false},"repo":{"id":129745273,"name":"book-a-meal","full_name":"Oluwafayokemi/book-a-meal","owner":{"login":"Oluwafayokemi","id":33626790,"avatar_url":"https://avatars1.githubusercontent.com/u/33626790?v=4","gravatar_id":"","url":"https://api.github.com/users/Oluwafayokemi","html_url":"https://github.com/Oluwafayokemi","followers_url":"https://api.github.com/users/Oluwafayokemi/followers","following_url":"https://api.github.com/users/Oluwafayokemi/following{/other_user}","gists_url":"https://api.github.com/users/Oluwafayokemi/gists{/gist_id}","starred_url":"https://api.github.com/users/Oluwafayokemi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Oluwafayokemi/subscriptions","organizations_url":"https://api.github.com/users/Oluwafayokemi/orgs","repos_url":"https://api.github.com/users/Oluwafayokemi/repos","events_url":"https://api.github.com/users/Oluwafayokemi/events{/privacy}","received_events_url":"https://api.github.com/users/Oluwafayokemi/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/Oluwafayokemi/book-a-meal","description":null,"fork":false,"url":"https://api.github.com/repos/Oluwafayokemi/book-a-meal","forks_url":"https://api.github.com/repos/Oluwafayokemi/book-a-meal/forks","keys_url":"https://api.github.com/repos/Oluwafayokemi/book-a-meal/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Oluwafayokemi/book-a-meal/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Oluwafayokemi/book-a-meal/teams","hooks_url":"https://api.github.com/repos/Oluwafayokemi/book-a-meal/hooks","issue_events_url":"https://api.github.com/repos/Oluwafayokemi/book-a-meal/issues/events{/number}","events_url":"https://api.github.com/repos/Oluwafayokemi/book-a-meal/events","assignees_url":"https://api.github.com/repos/Oluwafayokemi/book-a-meal/assignees{/user}","branches_url":"https://api.github.com/repos/Oluwafayokemi/book-a-meal/branches{/branch}","tags_url":"https://api.github.com/repos/Oluwafayokemi/book-a-meal/tags","blobs_url":"https://api.github.com/repos/Oluwafayokemi/book-a-meal/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Oluwafayokemi/book-a-meal/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Oluwafayokemi/book-a-meal/git/refs{/sha}","trees_url":"https://api.github.com/repos/Oluwafayokemi/book-a-meal/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Oluwafayokemi/book-a-meal/statuses/{sha}","languages_url":"https://api.github.com/repos/Oluwafayokemi/book-a-meal/languages","stargazers_url":"https://api.github.com/repos/Oluwafayokemi/book-a-meal/stargazers","contributors_url":"https://api.github.com/repos/Oluwafayokemi/book-a-meal/contributors","subscribers_url":"https://api.github.com/repos/Oluwafayokemi/book-a-meal/subscribers","subscription_url":"https://api.github.com/repos/Oluwafayokemi/book-a-meal/subscription","commits_url":"https://api.github.com/repos/Oluwafayokemi/book-a-meal/commits{/sha}","git_commits_url":"https://api.github.com/repos/Oluwafayokemi/book-a-meal/git/commits{/sha}","comments_url":"https://api.github.com/repos/Oluwafayokemi/book-a-meal/comments{/number}","issue_comment_url":"https://api.github.com/repos/Oluwafayokemi/book-a-meal/issues/comments{/number}","contents_url":"https://api.github.com/repos/Oluwafayokemi/book-a-meal/contents/{+path}","compare_url":"https://api.github.com/repos/Oluwafayokemi/book-a-meal/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Oluwafayokemi/book-a-meal/merges","archive_url":"https://api.github.com/repos/Oluwafayokemi/book-a-meal/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Oluwafayokemi/book-a-meal/downloads","issues_url":"https://api.github.com/repos/Oluwafayokemi/book-a-meal/issues{/number}","pulls_url":"https://api.github.com/repos/Oluwafayokemi/book-a-meal/pulls{/number}","milestones_url":"https://api.github.com/repos/Oluwafayokemi/book-a-meal/milestones{/number}","notifications_url":"https://api.github.com/repos/Oluwafayokemi/book-a-meal/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Oluwafayokemi/book-a-meal/labels{/name}","releases_url":"https://api.github.com/repos/Oluwafayokemi/book-a-meal/releases{/id}","deployments_url":"https://api.github.com/repos/Oluwafayokemi/book-a-meal/deployments","created_at":"2018-04-16T13:09:04Z","updated_at":"2018-05-05T10:59:37Z","pushed_at":"2018-05-06T13:42:12Z","git_url":"git://github.com/Oluwafayokemi/book-a-meal.git","ssh_url":"git@github.com:Oluwafayokemi/book-a-meal.git","clone_url":"https://github.com/Oluwafayokemi/book-a-meal.git","svn_url":"https://github.com/Oluwafayokemi/book-a-meal","homepage":"https://oluwafayokemi.github.io/book-a-meal/UI","size":4342,"stargazers_count":0,"watchers_count":0,"language":"HTML","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":1,"license":null,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"base":{"label":"Oluwafayokemi:develop","ref":"develop","sha":"8795849088149dfddfc96de2d6bb7d3a2eaf7a1a","user":{"login":"Oluwafayokemi","id":33626790,"avatar_url":"https://avatars1.githubusercontent.com/u/33626790?v=4","gravatar_id":"","url":"https://api.github.com/users/Oluwafayokemi","html_url":"https://github.com/Oluwafayokemi","followers_url":"https://api.github.com/users/Oluwafayokemi/followers","following_url":"https://api.github.com/users/Oluwafayokemi/following{/other_user}","gists_url":"https://api.github.com/users/Oluwafayokemi/gists{/gist_id}","starred_url":"https://api.github.com/users/Oluwafayokemi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Oluwafayokemi/subscriptions","organizations_url":"https://api.github.com/users/Oluwafayokemi/orgs","repos_url":"https://api.github.com/users/Oluwafayokemi/repos","events_url":"https://api.github.com/users/Oluwafayokemi/events{/privacy}","received_events_url":"https://api.github.com/users/Oluwafayokemi/received_events","type":"User","site_admin":false},"repo":{"id":129745273,"name":"book-a-meal","full_name":"Oluwafayokemi/book-a-meal","owner":{"login":"Oluwafayokemi","id":33626790,"avatar_url":"https://avatars1.githubusercontent.com/u/33626790?v=4","gravatar_id":"","url":"https://api.github.com/users/Oluwafayokemi","html_url":"https://github.com/Oluwafayokemi","followers_url":"https://api.github.com/users/Oluwafayokemi/followers","following_url":"https://api.github.com/users/Oluwafayokemi/following{/other_user}","gists_url":"https://api.github.com/users/Oluwafayokemi/gists{/gist_id}","starred_url":"https://api.github.com/users/Oluwafayokemi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Oluwafayokemi/subscriptions","organizations_url":"https://api.github.com/users/Oluwafayokemi/orgs","repos_url":"https://api.github.com/users/Oluwafayokemi/repos","events_url":"https://api.github.com/users/Oluwafayokemi/events{/privacy}","received_events_url":"https://api.github.com/users/Oluwafayokemi/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/Oluwafayokemi/book-a-meal","description":null,"fork":false,"url":"https://api.github.com/repos/Oluwafayokemi/book-a-meal","forks_url":"https://api.github.com/repos/Oluwafayokemi/book-a-meal/forks","keys_url":"https://api.github.com/repos/Oluwafayokemi/book-a-meal/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Oluwafayokemi/book-a-meal/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Oluwafayokemi/book-a-meal/teams","hooks_url":"https://api.github.com/repos/Oluwafayokemi/book-a-meal/hooks","issue_events_url":"https://api.github.com/repos/Oluwafayokemi/book-a-meal/issues/events{/number}","events_url":"https://api.github.com/repos/Oluwafayokemi/book-a-meal/events","assignees_url":"https://api.github.com/repos/Oluwafayokemi/book-a-meal/assignees{/user}","branches_url":"https://api.github.com/repos/Oluwafayokemi/book-a-meal/branches{/branch}","tags_url":"https://api.github.com/repos/Oluwafayokemi/book-a-meal/tags","blobs_url":"https://api.github.com/repos/Oluwafayokemi/book-a-meal/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Oluwafayokemi/book-a-meal/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Oluwafayokemi/book-a-meal/git/refs{/sha}","trees_url":"https://api.github.com/repos/Oluwafayokemi/book-a-meal/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Oluwafayokemi/book-a-meal/statuses/{sha}","languages_url":"https://api.github.com/repos/Oluwafayokemi/book-a-meal/languages","stargazers_url":"https://api.github.com/repos/Oluwafayokemi/book-a-meal/stargazers","contributors_url":"https://api.github.com/repos/Oluwafayokemi/book-a-meal/contributors","subscribers_url":"https://api.github.com/repos/Oluwafayokemi/book-a-meal/subscribers","subscription_url":"https://api.github.com/repos/Oluwafayokemi/book-a-meal/subscription","commits_url":"https://api.github.com/repos/Oluwafayokemi/book-a-meal/commits{/sha}","git_commits_url":"https://api.github.com/repos/Oluwafayokemi/book-a-meal/git/commits{/sha}","comments_url":"https://api.github.com/repos/Oluwafayokemi/book-a-meal/comments{/number}","issue_comment_url":"https://api.github.com/repos/Oluwafayokemi/book-a-meal/issues/comments{/number}","contents_url":"https://api.github.com/repos/Oluwafayokemi/book-a-meal/contents/{+path}","compare_url":"https://api.github.com/repos/Oluwafayokemi/book-a-meal/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Oluwafayokemi/book-a-meal/merges","archive_url":"https://api.github.com/repos/Oluwafayokemi/book-a-meal/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Oluwafayokemi/book-a-meal/downloads","issues_url":"https://api.github.com/repos/Oluwafayokemi/book-a-meal/issues{/number}","pulls_url":"https://api.github.com/repos/Oluwafayokemi/book-a-meal/pulls{/number}","milestones_url":"https://api.github.com/repos/Oluwafayokemi/book-a-meal/milestones{/number}","notifications_url":"https://api.github.com/repos/Oluwafayokemi/book-a-meal/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Oluwafayokemi/book-a-meal/labels{/name}","releases_url":"https://api.github.com/repos/Oluwafayokemi/book-a-meal/releases{/id}","deployments_url":"https://api.github.com/repos/Oluwafayokemi/book-a-meal/deployments","created_at":"2018-04-16T13:09:04Z","updated_at":"2018-05-05T10:59:37Z","pushed_at":"2018-05-06T13:42:12Z","git_url":"git://github.com/Oluwafayokemi/book-a-meal.git","ssh_url":"git@github.com:Oluwafayokemi/book-a-meal.git","clone_url":"https://github.com/Oluwafayokemi/book-a-meal.git","svn_url":"https://github.com/Oluwafayokemi/book-a-meal","homepage":"https://oluwafayokemi.github.io/book-a-meal/UI","size":4342,"stargazers_count":0,"watchers_count":0,"language":"HTML","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":1,"license":null,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/Oluwafayokemi/book-a-meal/pulls/36"},"html":{"href":"https://github.com/Oluwafayokemi/book-a-meal/pull/36"},"issue":{"href":"https://api.github.com/repos/Oluwafayokemi/book-a-meal/issues/36"},"comments":{"href":"https://api.github.com/repos/Oluwafayokemi/book-a-meal/issues/36/comments"},"review_comments":{"href":"https://api.github.com/repos/Oluwafayokemi/book-a-meal/pulls/36/comments"},"review_comment":{"href":"https://api.github.com/repos/Oluwafayokemi/book-a-meal/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/Oluwafayokemi/book-a-meal/pulls/36/commits"},"statuses":{"href":"https://api.github.com/repos/Oluwafayokemi/book-a-meal/statuses/12d3dcaaee90bd8e61222c3d5c3daa9bf87b595b"}},"author_association":"OWNER"}}
{"actor":{"display_login":"houndci-bot"}}