{"action":"created","comment":{"url":"https://api.github.com/repos/cuappdev/fitness-backend/pulls/comments/171943171","pull_request_review_id":100888901,"id":171943171,"diff_hunk":"@@ -5,19 +5,33 @@ class GymClass(Base):\n   __tablename__ = 'gym_classes'\n \n   id = db.Column(db.Integer, primary_key=True)\n+  name = db.Column(db.String(300), nullable=False)\n   gym_id = db.Column(db.Integer,\n                      db.ForeignKey('gyms.id', ondelete='CASCADE'))\n \n   gym = db.relationship('Gym', backref='gyms')\n+\n   description = db.Column(db.String(2000))\n \n+  instructor_id = db.Column(db.Integer,\n+                            db.ForeignKey('instructors.id', ondelete='CASCADE'))\n+  instructor = db.relationship('Instructor', backref='instructors')\n+\n+  location = db.Column(db.String(500))","path":"src/app/classes/models/gymclass.py","position":16,"original_position":16,"commit_id":"28ca45ae15b17cb676fc1f65862a5c2ef8e54449","original_commit_id":"28ca45ae15b17cb676fc1f65862a5c2ef8e54449","user":{"login":"young-k","id":8889311,"avatar_url":"https://avatars1.githubusercontent.com/u/8889311?v=4","gravatar_id":"","url":"https://api.github.com/users/young-k","html_url":"https://github.com/young-k","followers_url":"https://api.github.com/users/young-k/followers","following_url":"https://api.github.com/users/young-k/following{/other_user}","gists_url":"https://api.github.com/users/young-k/gists{/gist_id}","starred_url":"https://api.github.com/users/young-k/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/young-k/subscriptions","organizations_url":"https://api.github.com/users/young-k/orgs","repos_url":"https://api.github.com/users/young-k/repos","events_url":"https://api.github.com/users/young-k/events{/privacy}","received_events_url":"https://api.github.com/users/young-k/received_events","type":"User","site_admin":false},"body":"do we need this field if `gym` stores the location? don't feel like we do","created_at":"2018-03-02T19:38:11Z","updated_at":"2018-03-02T19:43:05Z","html_url":"https://github.com/cuappdev/fitness-backend/pull/8#discussion_r171943171","pull_request_url":"https://api.github.com/repos/cuappdev/fitness-backend/pulls/8","author_association":"MEMBER","_links":{"self":{"href":"https://api.github.com/repos/cuappdev/fitness-backend/pulls/comments/171943171"},"html":{"href":"https://github.com/cuappdev/fitness-backend/pull/8#discussion_r171943171"},"pull_request":{"href":"https://api.github.com/repos/cuappdev/fitness-backend/pulls/8"}}},"pull_request":{"url":"https://api.github.com/repos/cuappdev/fitness-backend/pulls/8","id":172417409,"html_url":"https://github.com/cuappdev/fitness-backend/pull/8","diff_url":"https://github.com/cuappdev/fitness-backend/pull/8.diff","patch_url":"https://github.com/cuappdev/fitness-backend/pull/8.patch","issue_url":"https://api.github.com/repos/cuappdev/fitness-backend/issues/8","number":8,"state":"open","locked":false,"title":"Added gymclassinstance.py and instructor.py","user":{"login":"williambaibai","id":32851155,"avatar_url":"https://avatars3.githubusercontent.com/u/32851155?v=4","gravatar_id":"","url":"https://api.github.com/users/williambaibai","html_url":"https://github.com/williambaibai","followers_url":"https://api.github.com/users/williambaibai/followers","following_url":"https://api.github.com/users/williambaibai/following{/other_user}","gists_url":"https://api.github.com/users/williambaibai/gists{/gist_id}","starred_url":"https://api.github.com/users/williambaibai/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/williambaibai/subscriptions","organizations_url":"https://api.github.com/users/williambaibai/orgs","repos_url":"https://api.github.com/users/williambaibai/repos","events_url":"https://api.github.com/users/williambaibai/events{/privacy}","received_events_url":"https://api.github.com/users/williambaibai/received_events","type":"User","site_admin":false},"body":"<img width=\"872\" alt=\"screen shot 2018-03-01 at 10 45 33 pm\" src=\"https://user-images.githubusercontent.com/32851155/36882713-7958cef0-1da3-11e8-94e1-12074c1a38a3.png\">\r\n\r\n`created gymclassinstance.py and instructor.py` and `added columns 'instructor_id'(fk), 'location', 'name' to gymclass.py`","created_at":"2018-03-02T04:01:10Z","updated_at":"2018-03-02T19:43:06Z","closed_at":null,"merged_at":null,"merge_commit_sha":"3aac242373e10a6e527ff7ffc414cf4f4c18da90","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/cuappdev/fitness-backend/pulls/8/commits","review_comments_url":"https://api.github.com/repos/cuappdev/fitness-backend/pulls/8/comments","review_comment_url":"https://api.github.com/repos/cuappdev/fitness-backend/pulls/comments{/number}","comments_url":"https://api.github.com/repos/cuappdev/fitness-backend/issues/8/comments","statuses_url":"https://api.github.com/repos/cuappdev/fitness-backend/statuses/28ca45ae15b17cb676fc1f65862a5c2ef8e54449","head":{"label":"cuappdev:william/instructor_classinstance","ref":"william/instructor_classinstance","sha":"28ca45ae15b17cb676fc1f65862a5c2ef8e54449","user":{"login":"cuappdev","id":17533691,"avatar_url":"https://avatars0.githubusercontent.com/u/17533691?v=4","gravatar_id":"","url":"https://api.github.com/users/cuappdev","html_url":"https://github.com/cuappdev","followers_url":"https://api.github.com/users/cuappdev/followers","following_url":"https://api.github.com/users/cuappdev/following{/other_user}","gists_url":"https://api.github.com/users/cuappdev/gists{/gist_id}","starred_url":"https://api.github.com/users/cuappdev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cuappdev/subscriptions","organizations_url":"https://api.github.com/users/cuappdev/orgs","repos_url":"https://api.github.com/users/cuappdev/repos","events_url":"https://api.github.com/users/cuappdev/events{/privacy}","received_events_url":"https://api.github.com/users/cuappdev/received_events","type":"Organization","site_admin":false},"repo":{"id":122643156,"name":"fitness-backend","full_name":"cuappdev/fitness-backend","owner":{"login":"cuappdev","id":17533691,"avatar_url":"https://avatars0.githubusercontent.com/u/17533691?v=4","gravatar_id":"","url":"https://api.github.com/users/cuappdev","html_url":"https://github.com/cuappdev","followers_url":"https://api.github.com/users/cuappdev/followers","following_url":"https://api.github.com/users/cuappdev/following{/other_user}","gists_url":"https://api.github.com/users/cuappdev/gists{/gist_id}","starred_url":"https://api.github.com/users/cuappdev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cuappdev/subscriptions","organizations_url":"https://api.github.com/users/cuappdev/orgs","repos_url":"https://api.github.com/users/cuappdev/repos","events_url":"https://api.github.com/users/cuappdev/events{/privacy}","received_events_url":"https://api.github.com/users/cuappdev/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/cuappdev/fitness-backend","description":"Fitness app backend layer","fork":false,"url":"https://api.github.com/repos/cuappdev/fitness-backend","forks_url":"https://api.github.com/repos/cuappdev/fitness-backend/forks","keys_url":"https://api.github.com/repos/cuappdev/fitness-backend/keys{/key_id}","collaborators_url":"https://api.github.com/repos/cuappdev/fitness-backend/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/cuappdev/fitness-backend/teams","hooks_url":"https://api.github.com/repos/cuappdev/fitness-backend/hooks","issue_events_url":"https://api.github.com/repos/cuappdev/fitness-backend/issues/events{/number}","events_url":"https://api.github.com/repos/cuappdev/fitness-backend/events","assignees_url":"https://api.github.com/repos/cuappdev/fitness-backend/assignees{/user}","branches_url":"https://api.github.com/repos/cuappdev/fitness-backend/branches{/branch}","tags_url":"https://api.github.com/repos/cuappdev/fitness-backend/tags","blobs_url":"https://api.github.com/repos/cuappdev/fitness-backend/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/cuappdev/fitness-backend/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/cuappdev/fitness-backend/git/refs{/sha}","trees_url":"https://api.github.com/repos/cuappdev/fitness-backend/git/trees{/sha}","statuses_url":"https://api.github.com/repos/cuappdev/fitness-backend/statuses/{sha}","languages_url":"https://api.github.com/repos/cuappdev/fitness-backend/languages","stargazers_url":"https://api.github.com/repos/cuappdev/fitness-backend/stargazers","contributors_url":"https://api.github.com/repos/cuappdev/fitness-backend/contributors","subscribers_url":"https://api.github.com/repos/cuappdev/fitness-backend/subscribers","subscription_url":"https://api.github.com/repos/cuappdev/fitness-backend/subscription","commits_url":"https://api.github.com/repos/cuappdev/fitness-backend/commits{/sha}","git_commits_url":"https://api.github.com/repos/cuappdev/fitness-backend/git/commits{/sha}","comments_url":"https://api.github.com/repos/cuappdev/fitness-backend/comments{/number}","issue_comment_url":"https://api.github.com/repos/cuappdev/fitness-backend/issues/comments{/number}","contents_url":"https://api.github.com/repos/cuappdev/fitness-backend/contents/{+path}","compare_url":"https://api.github.com/repos/cuappdev/fitness-backend/compare/{base}...{head}","merges_url":"https://api.github.com/repos/cuappdev/fitness-backend/merges","archive_url":"https://api.github.com/repos/cuappdev/fitness-backend/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/cuappdev/fitness-backend/downloads","issues_url":"https://api.github.com/repos/cuappdev/fitness-backend/issues{/number}","pulls_url":"https://api.github.com/repos/cuappdev/fitness-backend/pulls{/number}","milestones_url":"https://api.github.com/repos/cuappdev/fitness-backend/milestones{/number}","notifications_url":"https://api.github.com/repos/cuappdev/fitness-backend/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/cuappdev/fitness-backend/labels{/name}","releases_url":"https://api.github.com/repos/cuappdev/fitness-backend/releases{/id}","deployments_url":"https://api.github.com/repos/cuappdev/fitness-backend/deployments","created_at":"2018-02-23T16:09:31Z","updated_at":"2018-02-23T16:32:37Z","pushed_at":"2018-03-02T04:01:10Z","git_url":"git://github.com/cuappdev/fitness-backend.git","ssh_url":"git@github.com:cuappdev/fitness-backend.git","clone_url":"https://github.com/cuappdev/fitness-backend.git","svn_url":"https://github.com/cuappdev/fitness-backend","homepage":null,"size":26,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":3,"license":null,"forks":0,"open_issues":3,"watchers":0,"default_branch":"master"}},"base":{"label":"cuappdev:master","ref":"master","sha":"cf2060f09d31abab20e46ebaef73a34f7c377c39","user":{"login":"cuappdev","id":17533691,"avatar_url":"https://avatars0.githubusercontent.com/u/17533691?v=4","gravatar_id":"","url":"https://api.github.com/users/cuappdev","html_url":"https://github.com/cuappdev","followers_url":"https://api.github.com/users/cuappdev/followers","following_url":"https://api.github.com/users/cuappdev/following{/other_user}","gists_url":"https://api.github.com/users/cuappdev/gists{/gist_id}","starred_url":"https://api.github.com/users/cuappdev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cuappdev/subscriptions","organizations_url":"https://api.github.com/users/cuappdev/orgs","repos_url":"https://api.github.com/users/cuappdev/repos","events_url":"https://api.github.com/users/cuappdev/events{/privacy}","received_events_url":"https://api.github.com/users/cuappdev/received_events","type":"Organization","site_admin":false},"repo":{"id":122643156,"name":"fitness-backend","full_name":"cuappdev/fitness-backend","owner":{"login":"cuappdev","id":17533691,"avatar_url":"https://avatars0.githubusercontent.com/u/17533691?v=4","gravatar_id":"","url":"https://api.github.com/users/cuappdev","html_url":"https://github.com/cuappdev","followers_url":"https://api.github.com/users/cuappdev/followers","following_url":"https://api.github.com/users/cuappdev/following{/other_user}","gists_url":"https://api.github.com/users/cuappdev/gists{/gist_id}","starred_url":"https://api.github.com/users/cuappdev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cuappdev/subscriptions","organizations_url":"https://api.github.com/users/cuappdev/orgs","repos_url":"https://api.github.com/users/cuappdev/repos","events_url":"https://api.github.com/users/cuappdev/events{/privacy}","received_events_url":"https://api.github.com/users/cuappdev/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/cuappdev/fitness-backend","description":"Fitness app backend layer","fork":false,"url":"https://api.github.com/repos/cuappdev/fitness-backend","forks_url":"https://api.github.com/repos/cuappdev/fitness-backend/forks","keys_url":"https://api.github.com/repos/cuappdev/fitness-backend/keys{/key_id}","collaborators_url":"https://api.github.com/repos/cuappdev/fitness-backend/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/cuappdev/fitness-backend/teams","hooks_url":"https://api.github.com/repos/cuappdev/fitness-backend/hooks","issue_events_url":"https://api.github.com/repos/cuappdev/fitness-backend/issues/events{/number}","events_url":"https://api.github.com/repos/cuappdev/fitness-backend/events","assignees_url":"https://api.github.com/repos/cuappdev/fitness-backend/assignees{/user}","branches_url":"https://api.github.com/repos/cuappdev/fitness-backend/branches{/branch}","tags_url":"https://api.github.com/repos/cuappdev/fitness-backend/tags","blobs_url":"https://api.github.com/repos/cuappdev/fitness-backend/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/cuappdev/fitness-backend/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/cuappdev/fitness-backend/git/refs{/sha}","trees_url":"https://api.github.com/repos/cuappdev/fitness-backend/git/trees{/sha}","statuses_url":"https://api.github.com/repos/cuappdev/fitness-backend/statuses/{sha}","languages_url":"https://api.github.com/repos/cuappdev/fitness-backend/languages","stargazers_url":"https://api.github.com/repos/cuappdev/fitness-backend/stargazers","contributors_url":"https://api.github.com/repos/cuappdev/fitness-backend/contributors","subscribers_url":"https://api.github.com/repos/cuappdev/fitness-backend/subscribers","subscription_url":"https://api.github.com/repos/cuappdev/fitness-backend/subscription","commits_url":"https://api.github.com/repos/cuappdev/fitness-backend/commits{/sha}","git_commits_url":"https://api.github.com/repos/cuappdev/fitness-backend/git/commits{/sha}","comments_url":"https://api.github.com/repos/cuappdev/fitness-backend/comments{/number}","issue_comment_url":"https://api.github.com/repos/cuappdev/fitness-backend/issues/comments{/number}","contents_url":"https://api.github.com/repos/cuappdev/fitness-backend/contents/{+path}","compare_url":"https://api.github.com/repos/cuappdev/fitness-backend/compare/{base}...{head}","merges_url":"https://api.github.com/repos/cuappdev/fitness-backend/merges","archive_url":"https://api.github.com/repos/cuappdev/fitness-backend/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/cuappdev/fitness-backend/downloads","issues_url":"https://api.github.com/repos/cuappdev/fitness-backend/issues{/number}","pulls_url":"https://api.github.com/repos/cuappdev/fitness-backend/pulls{/number}","milestones_url":"https://api.github.com/repos/cuappdev/fitness-backend/milestones{/number}","notifications_url":"https://api.github.com/repos/cuappdev/fitness-backend/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/cuappdev/fitness-backend/labels{/name}","releases_url":"https://api.github.com/repos/cuappdev/fitness-backend/releases{/id}","deployments_url":"https://api.github.com/repos/cuappdev/fitness-backend/deployments","created_at":"2018-02-23T16:09:31Z","updated_at":"2018-02-23T16:32:37Z","pushed_at":"2018-03-02T04:01:10Z","git_url":"git://github.com/cuappdev/fitness-backend.git","ssh_url":"git@github.com:cuappdev/fitness-backend.git","clone_url":"https://github.com/cuappdev/fitness-backend.git","svn_url":"https://github.com/cuappdev/fitness-backend","homepage":null,"size":26,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":3,"license":null,"forks":0,"open_issues":3,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/cuappdev/fitness-backend/pulls/8"},"html":{"href":"https://github.com/cuappdev/fitness-backend/pull/8"},"issue":{"href":"https://api.github.com/repos/cuappdev/fitness-backend/issues/8"},"comments":{"href":"https://api.github.com/repos/cuappdev/fitness-backend/issues/8/comments"},"review_comments":{"href":"https://api.github.com/repos/cuappdev/fitness-backend/pulls/8/comments"},"review_comment":{"href":"https://api.github.com/repos/cuappdev/fitness-backend/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/cuappdev/fitness-backend/pulls/8/commits"},"statuses":{"href":"https://api.github.com/repos/cuappdev/fitness-backend/statuses/28ca45ae15b17cb676fc1f65862a5c2ef8e54449"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"young-k"}}