{"action":"closed","number":47,"pull_request":{"url":"https://api.github.com/repos/Bobsar0/Fast-Food-Fast/pulls/47","id":219774970,"node_id":"MDExOlB1bGxSZXF1ZXN0MjE5Nzc0OTcw","html_url":"https://github.com/Bobsar0/Fast-Food-Fast/pull/47","diff_url":"https://github.com/Bobsar0/Fast-Food-Fast/pull/47.diff","patch_url":"https://github.com/Bobsar0/Fast-Food-Fast/pull/47.patch","issue_url":"https://api.github.com/repos/Bobsar0/Fast-Food-Fast/issues/47","number":47,"state":"closed","locked":false,"title":"#160840091 Setup PostgreSQL database ","user":{"login":"Bobsar0","id":19636985,"node_id":"MDQ6VXNlcjE5NjM2OTg1","avatar_url":"https://avatars1.githubusercontent.com/u/19636985?v=4","gravatar_id":"","url":"https://api.github.com/users/Bobsar0","html_url":"https://github.com/Bobsar0","followers_url":"https://api.github.com/users/Bobsar0/followers","following_url":"https://api.github.com/users/Bobsar0/following{/other_user}","gists_url":"https://api.github.com/users/Bobsar0/gists{/gist_id}","starred_url":"https://api.github.com/users/Bobsar0/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Bobsar0/subscriptions","organizations_url":"https://api.github.com/users/Bobsar0/orgs","repos_url":"https://api.github.com/users/Bobsar0/repos","events_url":"https://api.github.com/users/Bobsar0/events{/privacy}","received_events_url":"https://api.github.com/users/Bobsar0/received_events","type":"User","site_admin":false},"body":"#### What does this PR do?\r\nSets up local and test databases using node-postgres (pg)\r\n\r\n#### Description of Task to be completed?\r\n- Setup connection to local PostgreSQL database using connection-string hosted on .env file\r\n- Setup connection to travis PostgreSQL database for testing purposes.\r\n- Create Users table\r\n- Create Orders table with relation to Users table\r\n\r\n#### How should this be manually tested?\r\nClone the repo and run the following commands:\r\n```\r\n  git checkout ch-setup-database-#160840091\r\n  npm test\r\n  npm start\r\n```\r\nYou should see an output on the console indicating success in creation of tables\r\n\r\nWhat are the relevant pivotal tracker stories?\r\nhttps://www.pivotaltracker.com/story/show/#160840091","created_at":"2018-10-02T16:55:18Z","updated_at":"2018-10-02T17:47:36Z","closed_at":"2018-10-02T17:47:36Z","merged_at":"2018-10-02T17:47:36Z","merge_commit_sha":"83adf50548913ff7e9e23c6b4fa8ca7be90aa85f","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/Bobsar0/Fast-Food-Fast/pulls/47/commits","review_comments_url":"https://api.github.com/repos/Bobsar0/Fast-Food-Fast/pulls/47/comments","review_comment_url":"https://api.github.com/repos/Bobsar0/Fast-Food-Fast/pulls/comments{/number}","comments_url":"https://api.github.com/repos/Bobsar0/Fast-Food-Fast/issues/47/comments","statuses_url":"https://api.github.com/repos/Bobsar0/Fast-Food-Fast/statuses/bd261307cf0fa3afa27785bf4c03c0a17946dc01","head":{"label":"Bobsar0:ch-setup-database-#160840091","ref":"ch-setup-database-#160840091","sha":"bd261307cf0fa3afa27785bf4c03c0a17946dc01","user":{"login":"Bobsar0","id":19636985,"node_id":"MDQ6VXNlcjE5NjM2OTg1","avatar_url":"https://avatars1.githubusercontent.com/u/19636985?v=4","gravatar_id":"","url":"https://api.github.com/users/Bobsar0","html_url":"https://github.com/Bobsar0","followers_url":"https://api.github.com/users/Bobsar0/followers","following_url":"https://api.github.com/users/Bobsar0/following{/other_user}","gists_url":"https://api.github.com/users/Bobsar0/gists{/gist_id}","starred_url":"https://api.github.com/users/Bobsar0/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Bobsar0/subscriptions","organizations_url":"https://api.github.com/users/Bobsar0/orgs","repos_url":"https://api.github.com/users/Bobsar0/repos","events_url":"https://api.github.com/users/Bobsar0/events{/privacy}","received_events_url":"https://api.github.com/users/Bobsar0/received_events","type":"User","site_admin":false},"repo":{"id":146391657,"node_id":"MDEwOlJlcG9zaXRvcnkxNDYzOTE2NTc=","name":"Fast-Food-Fast","full_name":"Bobsar0/Fast-Food-Fast","private":false,"owner":{"login":"Bobsar0","id":19636985,"node_id":"MDQ6VXNlcjE5NjM2OTg1","avatar_url":"https://avatars1.githubusercontent.com/u/19636985?v=4","gravatar_id":"","url":"https://api.github.com/users/Bobsar0","html_url":"https://github.com/Bobsar0","followers_url":"https://api.github.com/users/Bobsar0/followers","following_url":"https://api.github.com/users/Bobsar0/following{/other_user}","gists_url":"https://api.github.com/users/Bobsar0/gists{/gist_id}","starred_url":"https://api.github.com/users/Bobsar0/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Bobsar0/subscriptions","organizations_url":"https://api.github.com/users/Bobsar0/orgs","repos_url":"https://api.github.com/users/Bobsar0/repos","events_url":"https://api.github.com/users/Bobsar0/events{/privacy}","received_events_url":"https://api.github.com/users/Bobsar0/received_events","type":"User","site_admin":false},"html_url":"https://github.com/Bobsar0/Fast-Food-Fast","description":"A food delivery service app for a restaurant","fork":false,"url":"https://api.github.com/repos/Bobsar0/Fast-Food-Fast","forks_url":"https://api.github.com/repos/Bobsar0/Fast-Food-Fast/forks","keys_url":"https://api.github.com/repos/Bobsar0/Fast-Food-Fast/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Bobsar0/Fast-Food-Fast/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Bobsar0/Fast-Food-Fast/teams","hooks_url":"https://api.github.com/repos/Bobsar0/Fast-Food-Fast/hooks","issue_events_url":"https://api.github.com/repos/Bobsar0/Fast-Food-Fast/issues/events{/number}","events_url":"https://api.github.com/repos/Bobsar0/Fast-Food-Fast/events","assignees_url":"https://api.github.com/repos/Bobsar0/Fast-Food-Fast/assignees{/user}","branches_url":"https://api.github.com/repos/Bobsar0/Fast-Food-Fast/branches{/branch}","tags_url":"https://api.github.com/repos/Bobsar0/Fast-Food-Fast/tags","blobs_url":"https://api.github.com/repos/Bobsar0/Fast-Food-Fast/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Bobsar0/Fast-Food-Fast/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Bobsar0/Fast-Food-Fast/git/refs{/sha}","trees_url":"https://api.github.com/repos/Bobsar0/Fast-Food-Fast/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Bobsar0/Fast-Food-Fast/statuses/{sha}","languages_url":"https://api.github.com/repos/Bobsar0/Fast-Food-Fast/languages","stargazers_url":"https://api.github.com/repos/Bobsar0/Fast-Food-Fast/stargazers","contributors_url":"https://api.github.com/repos/Bobsar0/Fast-Food-Fast/contributors","subscribers_url":"https://api.github.com/repos/Bobsar0/Fast-Food-Fast/subscribers","subscription_url":"https://api.github.com/repos/Bobsar0/Fast-Food-Fast/subscription","commits_url":"https://api.github.com/repos/Bobsar0/Fast-Food-Fast/commits{/sha}","git_commits_url":"https://api.github.com/repos/Bobsar0/Fast-Food-Fast/git/commits{/sha}","comments_url":"https://api.github.com/repos/Bobsar0/Fast-Food-Fast/comments{/number}","issue_comment_url":"https://api.github.com/repos/Bobsar0/Fast-Food-Fast/issues/comments{/number}","contents_url":"https://api.github.com/repos/Bobsar0/Fast-Food-Fast/contents/{+path}","compare_url":"https://api.github.com/repos/Bobsar0/Fast-Food-Fast/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Bobsar0/Fast-Food-Fast/merges","archive_url":"https://api.github.com/repos/Bobsar0/Fast-Food-Fast/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Bobsar0/Fast-Food-Fast/downloads","issues_url":"https://api.github.com/repos/Bobsar0/Fast-Food-Fast/issues{/number}","pulls_url":"https://api.github.com/repos/Bobsar0/Fast-Food-Fast/pulls{/number}","milestones_url":"https://api.github.com/repos/Bobsar0/Fast-Food-Fast/milestones{/number}","notifications_url":"https://api.github.com/repos/Bobsar0/Fast-Food-Fast/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Bobsar0/Fast-Food-Fast/labels{/name}","releases_url":"https://api.github.com/repos/Bobsar0/Fast-Food-Fast/releases{/id}","deployments_url":"https://api.github.com/repos/Bobsar0/Fast-Food-Fast/deployments","created_at":"2018-08-28T04:24:05Z","updated_at":"2018-09-28T19:10:45Z","pushed_at":"2018-10-02T17:47:36Z","git_url":"git://github.com/Bobsar0/Fast-Food-Fast.git","ssh_url":"git@github.com:Bobsar0/Fast-Food-Fast.git","clone_url":"https://github.com/Bobsar0/Fast-Food-Fast.git","svn_url":"https://github.com/Bobsar0/Fast-Food-Fast","homepage":"https://fast-food-fast-bobsar0.herokuapp.com/","size":7038,"stargazers_count":1,"watchers_count":1,"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":0,"license":null,"forks":0,"open_issues":0,"watchers":1,"default_branch":"develop"}},"base":{"label":"Bobsar0:develop","ref":"develop","sha":"920dee7020ce195c920e9375f29969c5d505e6ce","user":{"login":"Bobsar0","id":19636985,"node_id":"MDQ6VXNlcjE5NjM2OTg1","avatar_url":"https://avatars1.githubusercontent.com/u/19636985?v=4","gravatar_id":"","url":"https://api.github.com/users/Bobsar0","html_url":"https://github.com/Bobsar0","followers_url":"https://api.github.com/users/Bobsar0/followers","following_url":"https://api.github.com/users/Bobsar0/following{/other_user}","gists_url":"https://api.github.com/users/Bobsar0/gists{/gist_id}","starred_url":"https://api.github.com/users/Bobsar0/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Bobsar0/subscriptions","organizations_url":"https://api.github.com/users/Bobsar0/orgs","repos_url":"https://api.github.com/users/Bobsar0/repos","events_url":"https://api.github.com/users/Bobsar0/events{/privacy}","received_events_url":"https://api.github.com/users/Bobsar0/received_events","type":"User","site_admin":false},"repo":{"id":146391657,"node_id":"MDEwOlJlcG9zaXRvcnkxNDYzOTE2NTc=","name":"Fast-Food-Fast","full_name":"Bobsar0/Fast-Food-Fast","private":false,"owner":{"login":"Bobsar0","id":19636985,"node_id":"MDQ6VXNlcjE5NjM2OTg1","avatar_url":"https://avatars1.githubusercontent.com/u/19636985?v=4","gravatar_id":"","url":"https://api.github.com/users/Bobsar0","html_url":"https://github.com/Bobsar0","followers_url":"https://api.github.com/users/Bobsar0/followers","following_url":"https://api.github.com/users/Bobsar0/following{/other_user}","gists_url":"https://api.github.com/users/Bobsar0/gists{/gist_id}","starred_url":"https://api.github.com/users/Bobsar0/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Bobsar0/subscriptions","organizations_url":"https://api.github.com/users/Bobsar0/orgs","repos_url":"https://api.github.com/users/Bobsar0/repos","events_url":"https://api.github.com/users/Bobsar0/events{/privacy}","received_events_url":"https://api.github.com/users/Bobsar0/received_events","type":"User","site_admin":false},"html_url":"https://github.com/Bobsar0/Fast-Food-Fast","description":"A food delivery service app for a restaurant","fork":false,"url":"https://api.github.com/repos/Bobsar0/Fast-Food-Fast","forks_url":"https://api.github.com/repos/Bobsar0/Fast-Food-Fast/forks","keys_url":"https://api.github.com/repos/Bobsar0/Fast-Food-Fast/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Bobsar0/Fast-Food-Fast/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Bobsar0/Fast-Food-Fast/teams","hooks_url":"https://api.github.com/repos/Bobsar0/Fast-Food-Fast/hooks","issue_events_url":"https://api.github.com/repos/Bobsar0/Fast-Food-Fast/issues/events{/number}","events_url":"https://api.github.com/repos/Bobsar0/Fast-Food-Fast/events","assignees_url":"https://api.github.com/repos/Bobsar0/Fast-Food-Fast/assignees{/user}","branches_url":"https://api.github.com/repos/Bobsar0/Fast-Food-Fast/branches{/branch}","tags_url":"https://api.github.com/repos/Bobsar0/Fast-Food-Fast/tags","blobs_url":"https://api.github.com/repos/Bobsar0/Fast-Food-Fast/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Bobsar0/Fast-Food-Fast/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Bobsar0/Fast-Food-Fast/git/refs{/sha}","trees_url":"https://api.github.com/repos/Bobsar0/Fast-Food-Fast/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Bobsar0/Fast-Food-Fast/statuses/{sha}","languages_url":"https://api.github.com/repos/Bobsar0/Fast-Food-Fast/languages","stargazers_url":"https://api.github.com/repos/Bobsar0/Fast-Food-Fast/stargazers","contributors_url":"https://api.github.com/repos/Bobsar0/Fast-Food-Fast/contributors","subscribers_url":"https://api.github.com/repos/Bobsar0/Fast-Food-Fast/subscribers","subscription_url":"https://api.github.com/repos/Bobsar0/Fast-Food-Fast/subscription","commits_url":"https://api.github.com/repos/Bobsar0/Fast-Food-Fast/commits{/sha}","git_commits_url":"https://api.github.com/repos/Bobsar0/Fast-Food-Fast/git/commits{/sha}","comments_url":"https://api.github.com/repos/Bobsar0/Fast-Food-Fast/comments{/number}","issue_comment_url":"https://api.github.com/repos/Bobsar0/Fast-Food-Fast/issues/comments{/number}","contents_url":"https://api.github.com/repos/Bobsar0/Fast-Food-Fast/contents/{+path}","compare_url":"https://api.github.com/repos/Bobsar0/Fast-Food-Fast/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Bobsar0/Fast-Food-Fast/merges","archive_url":"https://api.github.com/repos/Bobsar0/Fast-Food-Fast/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Bobsar0/Fast-Food-Fast/downloads","issues_url":"https://api.github.com/repos/Bobsar0/Fast-Food-Fast/issues{/number}","pulls_url":"https://api.github.com/repos/Bobsar0/Fast-Food-Fast/pulls{/number}","milestones_url":"https://api.github.com/repos/Bobsar0/Fast-Food-Fast/milestones{/number}","notifications_url":"https://api.github.com/repos/Bobsar0/Fast-Food-Fast/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Bobsar0/Fast-Food-Fast/labels{/name}","releases_url":"https://api.github.com/repos/Bobsar0/Fast-Food-Fast/releases{/id}","deployments_url":"https://api.github.com/repos/Bobsar0/Fast-Food-Fast/deployments","created_at":"2018-08-28T04:24:05Z","updated_at":"2018-09-28T19:10:45Z","pushed_at":"2018-10-02T17:47:36Z","git_url":"git://github.com/Bobsar0/Fast-Food-Fast.git","ssh_url":"git@github.com:Bobsar0/Fast-Food-Fast.git","clone_url":"https://github.com/Bobsar0/Fast-Food-Fast.git","svn_url":"https://github.com/Bobsar0/Fast-Food-Fast","homepage":"https://fast-food-fast-bobsar0.herokuapp.com/","size":7038,"stargazers_count":1,"watchers_count":1,"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":0,"license":null,"forks":0,"open_issues":0,"watchers":1,"default_branch":"develop"}},"_links":{"self":{"href":"https://api.github.com/repos/Bobsar0/Fast-Food-Fast/pulls/47"},"html":{"href":"https://github.com/Bobsar0/Fast-Food-Fast/pull/47"},"issue":{"href":"https://api.github.com/repos/Bobsar0/Fast-Food-Fast/issues/47"},"comments":{"href":"https://api.github.com/repos/Bobsar0/Fast-Food-Fast/issues/47/comments"},"review_comments":{"href":"https://api.github.com/repos/Bobsar0/Fast-Food-Fast/pulls/47/comments"},"review_comment":{"href":"https://api.github.com/repos/Bobsar0/Fast-Food-Fast/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/Bobsar0/Fast-Food-Fast/pulls/47/commits"},"statuses":{"href":"https://api.github.com/repos/Bobsar0/Fast-Food-Fast/statuses/bd261307cf0fa3afa27785bf4c03c0a17946dc01"}},"author_association":"OWNER","merged":true,"mergeable":null,"rebaseable":null,"mergeable_state":"unknown","merged_by":{"login":"Bobsar0","id":19636985,"node_id":"MDQ6VXNlcjE5NjM2OTg1","avatar_url":"https://avatars1.githubusercontent.com/u/19636985?v=4","gravatar_id":"","url":"https://api.github.com/users/Bobsar0","html_url":"https://github.com/Bobsar0","followers_url":"https://api.github.com/users/Bobsar0/followers","following_url":"https://api.github.com/users/Bobsar0/following{/other_user}","gists_url":"https://api.github.com/users/Bobsar0/gists{/gist_id}","starred_url":"https://api.github.com/users/Bobsar0/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Bobsar0/subscriptions","organizations_url":"https://api.github.com/users/Bobsar0/orgs","repos_url":"https://api.github.com/users/Bobsar0/repos","events_url":"https://api.github.com/users/Bobsar0/events{/privacy}","received_events_url":"https://api.github.com/users/Bobsar0/received_events","type":"User","site_admin":false},"comments":0,"review_comments":0,"maintainer_can_modify":false,"commits":6,"additions":2388,"deletions":2927,"changed_files":8}}
{"actor":{"display_login":"Bobsar0"}}