{"action":"created","comment":{"url":"https://api.github.com/repos/ashurisj/chat-space/pulls/comments/322166351","pull_request_review_id":285408950,"id":322166351,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDMyMjE2NjM1MQ==","diff_hunk":"@@ -1,6 +1,61 @@\n # README\n \n-This README would normally document whatever steps are necessary to get the\n+## groups_usersテーブル\n+\n+|Column|Type|Options|\n+|------|----|-------|\n+|user_id|integer|null: false, foreign_key: true|\n+|group_id|integer|null: false, foreign_key: true|\n+\n+### Association\n+- belongs_to :group\n+- belongs_to :user\n+\n+\n+## usersテーブル\n+\n+|Column|Type|Options|\n+|------|----|-------|\n+|user_id|integer|null: false, foreign_key: true|\n+|name|text|null: false, foreign_key: true|\n+|Email|text|null: false, foreign_key: true|\n+|group_id|text|null: false, foreign_key: true|\n+\n+### Association\n+- belongs_to :group\n+- has_many :message\n+\n+\n+## groupsテーブル\n+\n+|Column|Type|Options|\n+|------|----|-------|\n+|user_id|integer|null: false, foreign_key: true|\n+|group_name|text|null: false, foreign_key: true|\n+|message|text|null: false, foreign_key: true|\n+|image|text|null: false, foreign_key: true|","path":"README.md","position":37,"original_position":37,"commit_id":"6899a8c67d9ea20dd136d9a9632dfdaf058e1fb2","original_commit_id":"6899a8c67d9ea20dd136d9a9632dfdaf058e1fb2","user":{"login":"shingoteshima","id":27781505,"node_id":"MDQ6VXNlcjI3NzgxNTA1","avatar_url":"https://avatars0.githubusercontent.com/u/27781505?v=4","gravatar_id":"","url":"https://api.github.com/users/shingoteshima","html_url":"https://github.com/shingoteshima","followers_url":"https://api.github.com/users/shingoteshima/followers","following_url":"https://api.github.com/users/shingoteshima/following{/other_user}","gists_url":"https://api.github.com/users/shingoteshima/gists{/gist_id}","starred_url":"https://api.github.com/users/shingoteshima/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/shingoteshima/subscriptions","organizations_url":"https://api.github.com/users/shingoteshima/orgs","repos_url":"https://api.github.com/users/shingoteshima/repos","events_url":"https://api.github.com/users/shingoteshima/events{/privacy}","received_events_url":"https://api.github.com/users/shingoteshima/received_events","type":"User","site_admin":false},"body":"message, image不要です。","created_at":"2019-09-09T10:19:15Z","updated_at":"2019-09-09T10:20:29Z","html_url":"https://github.com/ashurisj/chat-space/pull/2#discussion_r322166351","pull_request_url":"https://api.github.com/repos/ashurisj/chat-space/pulls/2","author_association":"NONE","_links":{"self":{"href":"https://api.github.com/repos/ashurisj/chat-space/pulls/comments/322166351"},"html":{"href":"https://github.com/ashurisj/chat-space/pull/2#discussion_r322166351"},"pull_request":{"href":"https://api.github.com/repos/ashurisj/chat-space/pulls/2"}}},"pull_request":{"url":"https://api.github.com/repos/ashurisj/chat-space/pulls/2","id":315455250,"node_id":"MDExOlB1bGxSZXF1ZXN0MzE1NDU1MjUw","html_url":"https://github.com/ashurisj/chat-space/pull/2","diff_url":"https://github.com/ashurisj/chat-space/pull/2.diff","patch_url":"https://github.com/ashurisj/chat-space/pull/2.patch","issue_url":"https://api.github.com/repos/ashurisj/chat-space/issues/2","number":2,"state":"open","locked":false,"title":"(WIP)ChatSpaceデータベース設計","user":{"login":"ashurisj","id":55018485,"node_id":"MDQ6VXNlcjU1MDE4NDg1","avatar_url":"https://avatars2.githubusercontent.com/u/55018485?v=4","gravatar_id":"","url":"https://api.github.com/users/ashurisj","html_url":"https://github.com/ashurisj","followers_url":"https://api.github.com/users/ashurisj/followers","following_url":"https://api.github.com/users/ashurisj/following{/other_user}","gists_url":"https://api.github.com/users/ashurisj/gists{/gist_id}","starred_url":"https://api.github.com/users/ashurisj/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ashurisj/subscriptions","organizations_url":"https://api.github.com/users/ashurisj/orgs","repos_url":"https://api.github.com/users/ashurisj/repos","events_url":"https://api.github.com/users/ashurisj/events{/privacy}","received_events_url":"https://api.github.com/users/ashurisj/received_events","type":"User","site_admin":false},"body":"WHAT\r\ngroups_usersテーブル・usersテーブル・groupsテーブルを作成\r\nREADME.mdへ追記しアークダウンが適用されていることを確認\r\n\r\nWHY\r\nChatSpaceの実装において、まずはデータベースの設計から取り組むから","created_at":"2019-09-09T10:07:52Z","updated_at":"2019-09-09T10:20:29Z","closed_at":null,"merged_at":null,"merge_commit_sha":"731b457570ac1c2d865a2b57c67fb9516c1e92c2","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/ashurisj/chat-space/pulls/2/commits","review_comments_url":"https://api.github.com/repos/ashurisj/chat-space/pulls/2/comments","review_comment_url":"https://api.github.com/repos/ashurisj/chat-space/pulls/comments{/number}","comments_url":"https://api.github.com/repos/ashurisj/chat-space/issues/2/comments","statuses_url":"https://api.github.com/repos/ashurisj/chat-space/statuses/6899a8c67d9ea20dd136d9a9632dfdaf058e1fb2","head":{"label":"ashurisj:add-posting-chatspace-practice","ref":"add-posting-chatspace-practice","sha":"6899a8c67d9ea20dd136d9a9632dfdaf058e1fb2","user":{"login":"ashurisj","id":55018485,"node_id":"MDQ6VXNlcjU1MDE4NDg1","avatar_url":"https://avatars2.githubusercontent.com/u/55018485?v=4","gravatar_id":"","url":"https://api.github.com/users/ashurisj","html_url":"https://github.com/ashurisj","followers_url":"https://api.github.com/users/ashurisj/followers","following_url":"https://api.github.com/users/ashurisj/following{/other_user}","gists_url":"https://api.github.com/users/ashurisj/gists{/gist_id}","starred_url":"https://api.github.com/users/ashurisj/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ashurisj/subscriptions","organizations_url":"https://api.github.com/users/ashurisj/orgs","repos_url":"https://api.github.com/users/ashurisj/repos","events_url":"https://api.github.com/users/ashurisj/events{/privacy}","received_events_url":"https://api.github.com/users/ashurisj/received_events","type":"User","site_admin":false},"repo":{"id":207089689,"node_id":"MDEwOlJlcG9zaXRvcnkyMDcwODk2ODk=","name":"chat-space","full_name":"ashurisj/chat-space","private":false,"owner":{"login":"ashurisj","id":55018485,"node_id":"MDQ6VXNlcjU1MDE4NDg1","avatar_url":"https://avatars2.githubusercontent.com/u/55018485?v=4","gravatar_id":"","url":"https://api.github.com/users/ashurisj","html_url":"https://github.com/ashurisj","followers_url":"https://api.github.com/users/ashurisj/followers","following_url":"https://api.github.com/users/ashurisj/following{/other_user}","gists_url":"https://api.github.com/users/ashurisj/gists{/gist_id}","starred_url":"https://api.github.com/users/ashurisj/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ashurisj/subscriptions","organizations_url":"https://api.github.com/users/ashurisj/orgs","repos_url":"https://api.github.com/users/ashurisj/repos","events_url":"https://api.github.com/users/ashurisj/events{/privacy}","received_events_url":"https://api.github.com/users/ashurisj/received_events","type":"User","site_admin":false},"html_url":"https://github.com/ashurisj/chat-space","description":null,"fork":false,"url":"https://api.github.com/repos/ashurisj/chat-space","forks_url":"https://api.github.com/repos/ashurisj/chat-space/forks","keys_url":"https://api.github.com/repos/ashurisj/chat-space/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ashurisj/chat-space/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ashurisj/chat-space/teams","hooks_url":"https://api.github.com/repos/ashurisj/chat-space/hooks","issue_events_url":"https://api.github.com/repos/ashurisj/chat-space/issues/events{/number}","events_url":"https://api.github.com/repos/ashurisj/chat-space/events","assignees_url":"https://api.github.com/repos/ashurisj/chat-space/assignees{/user}","branches_url":"https://api.github.com/repos/ashurisj/chat-space/branches{/branch}","tags_url":"https://api.github.com/repos/ashurisj/chat-space/tags","blobs_url":"https://api.github.com/repos/ashurisj/chat-space/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ashurisj/chat-space/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ashurisj/chat-space/git/refs{/sha}","trees_url":"https://api.github.com/repos/ashurisj/chat-space/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ashurisj/chat-space/statuses/{sha}","languages_url":"https://api.github.com/repos/ashurisj/chat-space/languages","stargazers_url":"https://api.github.com/repos/ashurisj/chat-space/stargazers","contributors_url":"https://api.github.com/repos/ashurisj/chat-space/contributors","subscribers_url":"https://api.github.com/repos/ashurisj/chat-space/subscribers","subscription_url":"https://api.github.com/repos/ashurisj/chat-space/subscription","commits_url":"https://api.github.com/repos/ashurisj/chat-space/commits{/sha}","git_commits_url":"https://api.github.com/repos/ashurisj/chat-space/git/commits{/sha}","comments_url":"https://api.github.com/repos/ashurisj/chat-space/comments{/number}","issue_comment_url":"https://api.github.com/repos/ashurisj/chat-space/issues/comments{/number}","contents_url":"https://api.github.com/repos/ashurisj/chat-space/contents/{+path}","compare_url":"https://api.github.com/repos/ashurisj/chat-space/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ashurisj/chat-space/merges","archive_url":"https://api.github.com/repos/ashurisj/chat-space/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ashurisj/chat-space/downloads","issues_url":"https://api.github.com/repos/ashurisj/chat-space/issues{/number}","pulls_url":"https://api.github.com/repos/ashurisj/chat-space/pulls{/number}","milestones_url":"https://api.github.com/repos/ashurisj/chat-space/milestones{/number}","notifications_url":"https://api.github.com/repos/ashurisj/chat-space/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ashurisj/chat-space/labels{/name}","releases_url":"https://api.github.com/repos/ashurisj/chat-space/releases{/id}","deployments_url":"https://api.github.com/repos/ashurisj/chat-space/deployments","created_at":"2019-09-08T09:27:54Z","updated_at":"2019-09-09T10:05:58Z","pushed_at":"2019-09-09T10:16:26Z","git_url":"git://github.com/ashurisj/chat-space.git","ssh_url":"git@github.com:ashurisj/chat-space.git","clone_url":"https://github.com/ashurisj/chat-space.git","svn_url":"https://github.com/ashurisj/chat-space","homepage":null,"size":23,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"disabled":false,"open_issues_count":2,"license":null,"forks":0,"open_issues":2,"watchers":0,"default_branch":"master"}},"base":{"label":"ashurisj:master","ref":"master","sha":"8f2171bb54dccf41184451c21fb644a6edc1ae5f","user":{"login":"ashurisj","id":55018485,"node_id":"MDQ6VXNlcjU1MDE4NDg1","avatar_url":"https://avatars2.githubusercontent.com/u/55018485?v=4","gravatar_id":"","url":"https://api.github.com/users/ashurisj","html_url":"https://github.com/ashurisj","followers_url":"https://api.github.com/users/ashurisj/followers","following_url":"https://api.github.com/users/ashurisj/following{/other_user}","gists_url":"https://api.github.com/users/ashurisj/gists{/gist_id}","starred_url":"https://api.github.com/users/ashurisj/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ashurisj/subscriptions","organizations_url":"https://api.github.com/users/ashurisj/orgs","repos_url":"https://api.github.com/users/ashurisj/repos","events_url":"https://api.github.com/users/ashurisj/events{/privacy}","received_events_url":"https://api.github.com/users/ashurisj/received_events","type":"User","site_admin":false},"repo":{"id":207089689,"node_id":"MDEwOlJlcG9zaXRvcnkyMDcwODk2ODk=","name":"chat-space","full_name":"ashurisj/chat-space","private":false,"owner":{"login":"ashurisj","id":55018485,"node_id":"MDQ6VXNlcjU1MDE4NDg1","avatar_url":"https://avatars2.githubusercontent.com/u/55018485?v=4","gravatar_id":"","url":"https://api.github.com/users/ashurisj","html_url":"https://github.com/ashurisj","followers_url":"https://api.github.com/users/ashurisj/followers","following_url":"https://api.github.com/users/ashurisj/following{/other_user}","gists_url":"https://api.github.com/users/ashurisj/gists{/gist_id}","starred_url":"https://api.github.com/users/ashurisj/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ashurisj/subscriptions","organizations_url":"https://api.github.com/users/ashurisj/orgs","repos_url":"https://api.github.com/users/ashurisj/repos","events_url":"https://api.github.com/users/ashurisj/events{/privacy}","received_events_url":"https://api.github.com/users/ashurisj/received_events","type":"User","site_admin":false},"html_url":"https://github.com/ashurisj/chat-space","description":null,"fork":false,"url":"https://api.github.com/repos/ashurisj/chat-space","forks_url":"https://api.github.com/repos/ashurisj/chat-space/forks","keys_url":"https://api.github.com/repos/ashurisj/chat-space/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ashurisj/chat-space/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ashurisj/chat-space/teams","hooks_url":"https://api.github.com/repos/ashurisj/chat-space/hooks","issue_events_url":"https://api.github.com/repos/ashurisj/chat-space/issues/events{/number}","events_url":"https://api.github.com/repos/ashurisj/chat-space/events","assignees_url":"https://api.github.com/repos/ashurisj/chat-space/assignees{/user}","branches_url":"https://api.github.com/repos/ashurisj/chat-space/branches{/branch}","tags_url":"https://api.github.com/repos/ashurisj/chat-space/tags","blobs_url":"https://api.github.com/repos/ashurisj/chat-space/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ashurisj/chat-space/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ashurisj/chat-space/git/refs{/sha}","trees_url":"https://api.github.com/repos/ashurisj/chat-space/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ashurisj/chat-space/statuses/{sha}","languages_url":"https://api.github.com/repos/ashurisj/chat-space/languages","stargazers_url":"https://api.github.com/repos/ashurisj/chat-space/stargazers","contributors_url":"https://api.github.com/repos/ashurisj/chat-space/contributors","subscribers_url":"https://api.github.com/repos/ashurisj/chat-space/subscribers","subscription_url":"https://api.github.com/repos/ashurisj/chat-space/subscription","commits_url":"https://api.github.com/repos/ashurisj/chat-space/commits{/sha}","git_commits_url":"https://api.github.com/repos/ashurisj/chat-space/git/commits{/sha}","comments_url":"https://api.github.com/repos/ashurisj/chat-space/comments{/number}","issue_comment_url":"https://api.github.com/repos/ashurisj/chat-space/issues/comments{/number}","contents_url":"https://api.github.com/repos/ashurisj/chat-space/contents/{+path}","compare_url":"https://api.github.com/repos/ashurisj/chat-space/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ashurisj/chat-space/merges","archive_url":"https://api.github.com/repos/ashurisj/chat-space/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ashurisj/chat-space/downloads","issues_url":"https://api.github.com/repos/ashurisj/chat-space/issues{/number}","pulls_url":"https://api.github.com/repos/ashurisj/chat-space/pulls{/number}","milestones_url":"https://api.github.com/repos/ashurisj/chat-space/milestones{/number}","notifications_url":"https://api.github.com/repos/ashurisj/chat-space/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ashurisj/chat-space/labels{/name}","releases_url":"https://api.github.com/repos/ashurisj/chat-space/releases{/id}","deployments_url":"https://api.github.com/repos/ashurisj/chat-space/deployments","created_at":"2019-09-08T09:27:54Z","updated_at":"2019-09-09T10:05:58Z","pushed_at":"2019-09-09T10:16:26Z","git_url":"git://github.com/ashurisj/chat-space.git","ssh_url":"git@github.com:ashurisj/chat-space.git","clone_url":"https://github.com/ashurisj/chat-space.git","svn_url":"https://github.com/ashurisj/chat-space","homepage":null,"size":23,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"disabled":false,"open_issues_count":2,"license":null,"forks":0,"open_issues":2,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/ashurisj/chat-space/pulls/2"},"html":{"href":"https://github.com/ashurisj/chat-space/pull/2"},"issue":{"href":"https://api.github.com/repos/ashurisj/chat-space/issues/2"},"comments":{"href":"https://api.github.com/repos/ashurisj/chat-space/issues/2/comments"},"review_comments":{"href":"https://api.github.com/repos/ashurisj/chat-space/pulls/2/comments"},"review_comment":{"href":"https://api.github.com/repos/ashurisj/chat-space/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/ashurisj/chat-space/pulls/2/commits"},"statuses":{"href":"https://api.github.com/repos/ashurisj/chat-space/statuses/6899a8c67d9ea20dd136d9a9632dfdaf058e1fb2"}},"author_association":"OWNER"}}
{"actor":{"display_login":"shingoteshima"}}