{"action":"created","comment":{"url":"https://api.github.com/repos/xabibmf/chat-space/pulls/comments/113101248","pull_request_review_id":34463218,"id":113101248,"diff_hunk":"@@ -0,0 +1,49 @@\n+# DB設計\n+\n+## users table\n++ usersテーブルはdeviseを利用する。\n+\n+|Column|Type|Options|\n+|:--|:-:|:--|\n+|id|integer|index: true, null: false, unique: true|\n+|name|string|index: true, null: false, unique: true|\n+|email|string|null: false|\n+|password|string|null: false|\n+\n+### Association\n++ has_many :groups, through: user_group\n++ has_many :messages\n++ has_many :user_group\n+\n+## groups table\n+|Column|Type|Options|\n+|:--|:-:|:--|\n+|id|integer|null: false, unique: true|\n+|name|string|null: false, unique: true|\n+\n+### Association\n++ has_many :users, through: user_group\n++ has_many :messages\n++ has_many :user_group\n+\n+## user_group table","path":"README.md","position":null,"original_position":29,"commit_id":"8d8dd845f600d0d108f97059a9008bb96b709eac","original_commit_id":"05a18fca73fc1d046e8fae2349a57671f75ad178","user":{"login":"xabibmf","id":15979230,"avatar_url":"https://avatars1.githubusercontent.com/u/15979230?v=3","gravatar_id":"","url":"https://api.github.com/users/xabibmf","html_url":"https://github.com/xabibmf","followers_url":"https://api.github.com/users/xabibmf/followers","following_url":"https://api.github.com/users/xabibmf/following{/other_user}","gists_url":"https://api.github.com/users/xabibmf/gists{/gist_id}","starred_url":"https://api.github.com/users/xabibmf/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/xabibmf/subscriptions","organizations_url":"https://api.github.com/users/xabibmf/orgs","repos_url":"https://api.github.com/users/xabibmf/repos","events_url":"https://api.github.com/users/xabibmf/events{/privacy}","received_events_url":"https://api.github.com/users/xabibmf/received_events","type":"User","site_admin":false},"body":"修正しました。","created_at":"2017-04-25T03:39:30Z","updated_at":"2017-04-25T03:39:30Z","html_url":"https://github.com/xabibmf/chat-space/pull/2#discussion_r113101248","pull_request_url":"https://api.github.com/repos/xabibmf/chat-space/pulls/2","_links":{"self":{"href":"https://api.github.com/repos/xabibmf/chat-space/pulls/comments/113101248"},"html":{"href":"https://github.com/xabibmf/chat-space/pull/2#discussion_r113101248"},"pull_request":{"href":"https://api.github.com/repos/xabibmf/chat-space/pulls/2"}}},"pull_request":{"url":"https://api.github.com/repos/xabibmf/chat-space/pulls/2","id":117240481,"html_url":"https://github.com/xabibmf/chat-space/pull/2","diff_url":"https://github.com/xabibmf/chat-space/pull/2.diff","patch_url":"https://github.com/xabibmf/chat-space/pull/2.patch","issue_url":"https://api.github.com/repos/xabibmf/chat-space/issues/2","number":2,"state":"open","locked":false,"title":"DB設計","user":{"login":"xabibmf","id":15979230,"avatar_url":"https://avatars1.githubusercontent.com/u/15979230?v=3","gravatar_id":"","url":"https://api.github.com/users/xabibmf","html_url":"https://github.com/xabibmf","followers_url":"https://api.github.com/users/xabibmf/followers","following_url":"https://api.github.com/users/xabibmf/following{/other_user}","gists_url":"https://api.github.com/users/xabibmf/gists{/gist_id}","starred_url":"https://api.github.com/users/xabibmf/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/xabibmf/subscriptions","organizations_url":"https://api.github.com/users/xabibmf/orgs","repos_url":"https://api.github.com/users/xabibmf/repos","events_url":"https://api.github.com/users/xabibmf/events{/privacy}","received_events_url":"https://api.github.com/users/xabibmf/received_events","type":"User","site_admin":false},"body":"# WHAT\r\nDB設計をREADME.mdに記載する。\r\n\r\n# WHY\r\n実装時に必要となるため。","created_at":"2017-04-24T11:10:43Z","updated_at":"2017-04-25T03:39:30Z","closed_at":null,"merged_at":null,"merge_commit_sha":"a0c8989ed51a564de514b11ed6ca0ff247b6bd3b","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/xabibmf/chat-space/pulls/2/commits","review_comments_url":"https://api.github.com/repos/xabibmf/chat-space/pulls/2/comments","review_comment_url":"https://api.github.com/repos/xabibmf/chat-space/pulls/comments{/number}","comments_url":"https://api.github.com/repos/xabibmf/chat-space/issues/2/comments","statuses_url":"https://api.github.com/repos/xabibmf/chat-space/statuses/8d8dd845f600d0d108f97059a9008bb96b709eac","head":{"label":"xabibmf:edit-readme-db-design","ref":"edit-readme-db-design","sha":"8d8dd845f600d0d108f97059a9008bb96b709eac","user":{"login":"xabibmf","id":15979230,"avatar_url":"https://avatars1.githubusercontent.com/u/15979230?v=3","gravatar_id":"","url":"https://api.github.com/users/xabibmf","html_url":"https://github.com/xabibmf","followers_url":"https://api.github.com/users/xabibmf/followers","following_url":"https://api.github.com/users/xabibmf/following{/other_user}","gists_url":"https://api.github.com/users/xabibmf/gists{/gist_id}","starred_url":"https://api.github.com/users/xabibmf/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/xabibmf/subscriptions","organizations_url":"https://api.github.com/users/xabibmf/orgs","repos_url":"https://api.github.com/users/xabibmf/repos","events_url":"https://api.github.com/users/xabibmf/events{/privacy}","received_events_url":"https://api.github.com/users/xabibmf/received_events","type":"User","site_admin":false},"repo":{"id":89188868,"name":"chat-space","full_name":"xabibmf/chat-space","owner":{"login":"xabibmf","id":15979230,"avatar_url":"https://avatars1.githubusercontent.com/u/15979230?v=3","gravatar_id":"","url":"https://api.github.com/users/xabibmf","html_url":"https://github.com/xabibmf","followers_url":"https://api.github.com/users/xabibmf/followers","following_url":"https://api.github.com/users/xabibmf/following{/other_user}","gists_url":"https://api.github.com/users/xabibmf/gists{/gist_id}","starred_url":"https://api.github.com/users/xabibmf/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/xabibmf/subscriptions","organizations_url":"https://api.github.com/users/xabibmf/orgs","repos_url":"https://api.github.com/users/xabibmf/repos","events_url":"https://api.github.com/users/xabibmf/events{/privacy}","received_events_url":"https://api.github.com/users/xabibmf/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/xabibmf/chat-space","description":null,"fork":false,"url":"https://api.github.com/repos/xabibmf/chat-space","forks_url":"https://api.github.com/repos/xabibmf/chat-space/forks","keys_url":"https://api.github.com/repos/xabibmf/chat-space/keys{/key_id}","collaborators_url":"https://api.github.com/repos/xabibmf/chat-space/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/xabibmf/chat-space/teams","hooks_url":"https://api.github.com/repos/xabibmf/chat-space/hooks","issue_events_url":"https://api.github.com/repos/xabibmf/chat-space/issues/events{/number}","events_url":"https://api.github.com/repos/xabibmf/chat-space/events","assignees_url":"https://api.github.com/repos/xabibmf/chat-space/assignees{/user}","branches_url":"https://api.github.com/repos/xabibmf/chat-space/branches{/branch}","tags_url":"https://api.github.com/repos/xabibmf/chat-space/tags","blobs_url":"https://api.github.com/repos/xabibmf/chat-space/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/xabibmf/chat-space/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/xabibmf/chat-space/git/refs{/sha}","trees_url":"https://api.github.com/repos/xabibmf/chat-space/git/trees{/sha}","statuses_url":"https://api.github.com/repos/xabibmf/chat-space/statuses/{sha}","languages_url":"https://api.github.com/repos/xabibmf/chat-space/languages","stargazers_url":"https://api.github.com/repos/xabibmf/chat-space/stargazers","contributors_url":"https://api.github.com/repos/xabibmf/chat-space/contributors","subscribers_url":"https://api.github.com/repos/xabibmf/chat-space/subscribers","subscription_url":"https://api.github.com/repos/xabibmf/chat-space/subscription","commits_url":"https://api.github.com/repos/xabibmf/chat-space/commits{/sha}","git_commits_url":"https://api.github.com/repos/xabibmf/chat-space/git/commits{/sha}","comments_url":"https://api.github.com/repos/xabibmf/chat-space/comments{/number}","issue_comment_url":"https://api.github.com/repos/xabibmf/chat-space/issues/comments{/number}","contents_url":"https://api.github.com/repos/xabibmf/chat-space/contents/{+path}","compare_url":"https://api.github.com/repos/xabibmf/chat-space/compare/{base}...{head}","merges_url":"https://api.github.com/repos/xabibmf/chat-space/merges","archive_url":"https://api.github.com/repos/xabibmf/chat-space/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/xabibmf/chat-space/downloads","issues_url":"https://api.github.com/repos/xabibmf/chat-space/issues{/number}","pulls_url":"https://api.github.com/repos/xabibmf/chat-space/pulls{/number}","milestones_url":"https://api.github.com/repos/xabibmf/chat-space/milestones{/number}","notifications_url":"https://api.github.com/repos/xabibmf/chat-space/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/xabibmf/chat-space/labels{/name}","releases_url":"https://api.github.com/repos/xabibmf/chat-space/releases{/id}","deployments_url":"https://api.github.com/repos/xabibmf/chat-space/deployments","created_at":"2017-04-24T02:21:10Z","updated_at":"2017-04-24T02:25:56Z","pushed_at":"2017-04-25T03:39:17Z","git_url":"git://github.com/xabibmf/chat-space.git","ssh_url":"git@github.com:xabibmf/chat-space.git","clone_url":"https://github.com/xabibmf/chat-space.git","svn_url":"https://github.com/xabibmf/chat-space","homepage":"","size":25,"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,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"base":{"label":"xabibmf:master","ref":"master","sha":"fa73d71282141bd721e401521f836a527c612bfd","user":{"login":"xabibmf","id":15979230,"avatar_url":"https://avatars1.githubusercontent.com/u/15979230?v=3","gravatar_id":"","url":"https://api.github.com/users/xabibmf","html_url":"https://github.com/xabibmf","followers_url":"https://api.github.com/users/xabibmf/followers","following_url":"https://api.github.com/users/xabibmf/following{/other_user}","gists_url":"https://api.github.com/users/xabibmf/gists{/gist_id}","starred_url":"https://api.github.com/users/xabibmf/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/xabibmf/subscriptions","organizations_url":"https://api.github.com/users/xabibmf/orgs","repos_url":"https://api.github.com/users/xabibmf/repos","events_url":"https://api.github.com/users/xabibmf/events{/privacy}","received_events_url":"https://api.github.com/users/xabibmf/received_events","type":"User","site_admin":false},"repo":{"id":89188868,"name":"chat-space","full_name":"xabibmf/chat-space","owner":{"login":"xabibmf","id":15979230,"avatar_url":"https://avatars1.githubusercontent.com/u/15979230?v=3","gravatar_id":"","url":"https://api.github.com/users/xabibmf","html_url":"https://github.com/xabibmf","followers_url":"https://api.github.com/users/xabibmf/followers","following_url":"https://api.github.com/users/xabibmf/following{/other_user}","gists_url":"https://api.github.com/users/xabibmf/gists{/gist_id}","starred_url":"https://api.github.com/users/xabibmf/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/xabibmf/subscriptions","organizations_url":"https://api.github.com/users/xabibmf/orgs","repos_url":"https://api.github.com/users/xabibmf/repos","events_url":"https://api.github.com/users/xabibmf/events{/privacy}","received_events_url":"https://api.github.com/users/xabibmf/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/xabibmf/chat-space","description":null,"fork":false,"url":"https://api.github.com/repos/xabibmf/chat-space","forks_url":"https://api.github.com/repos/xabibmf/chat-space/forks","keys_url":"https://api.github.com/repos/xabibmf/chat-space/keys{/key_id}","collaborators_url":"https://api.github.com/repos/xabibmf/chat-space/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/xabibmf/chat-space/teams","hooks_url":"https://api.github.com/repos/xabibmf/chat-space/hooks","issue_events_url":"https://api.github.com/repos/xabibmf/chat-space/issues/events{/number}","events_url":"https://api.github.com/repos/xabibmf/chat-space/events","assignees_url":"https://api.github.com/repos/xabibmf/chat-space/assignees{/user}","branches_url":"https://api.github.com/repos/xabibmf/chat-space/branches{/branch}","tags_url":"https://api.github.com/repos/xabibmf/chat-space/tags","blobs_url":"https://api.github.com/repos/xabibmf/chat-space/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/xabibmf/chat-space/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/xabibmf/chat-space/git/refs{/sha}","trees_url":"https://api.github.com/repos/xabibmf/chat-space/git/trees{/sha}","statuses_url":"https://api.github.com/repos/xabibmf/chat-space/statuses/{sha}","languages_url":"https://api.github.com/repos/xabibmf/chat-space/languages","stargazers_url":"https://api.github.com/repos/xabibmf/chat-space/stargazers","contributors_url":"https://api.github.com/repos/xabibmf/chat-space/contributors","subscribers_url":"https://api.github.com/repos/xabibmf/chat-space/subscribers","subscription_url":"https://api.github.com/repos/xabibmf/chat-space/subscription","commits_url":"https://api.github.com/repos/xabibmf/chat-space/commits{/sha}","git_commits_url":"https://api.github.com/repos/xabibmf/chat-space/git/commits{/sha}","comments_url":"https://api.github.com/repos/xabibmf/chat-space/comments{/number}","issue_comment_url":"https://api.github.com/repos/xabibmf/chat-space/issues/comments{/number}","contents_url":"https://api.github.com/repos/xabibmf/chat-space/contents/{+path}","compare_url":"https://api.github.com/repos/xabibmf/chat-space/compare/{base}...{head}","merges_url":"https://api.github.com/repos/xabibmf/chat-space/merges","archive_url":"https://api.github.com/repos/xabibmf/chat-space/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/xabibmf/chat-space/downloads","issues_url":"https://api.github.com/repos/xabibmf/chat-space/issues{/number}","pulls_url":"https://api.github.com/repos/xabibmf/chat-space/pulls{/number}","milestones_url":"https://api.github.com/repos/xabibmf/chat-space/milestones{/number}","notifications_url":"https://api.github.com/repos/xabibmf/chat-space/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/xabibmf/chat-space/labels{/name}","releases_url":"https://api.github.com/repos/xabibmf/chat-space/releases{/id}","deployments_url":"https://api.github.com/repos/xabibmf/chat-space/deployments","created_at":"2017-04-24T02:21:10Z","updated_at":"2017-04-24T02:25:56Z","pushed_at":"2017-04-25T03:39:17Z","git_url":"git://github.com/xabibmf/chat-space.git","ssh_url":"git@github.com:xabibmf/chat-space.git","clone_url":"https://github.com/xabibmf/chat-space.git","svn_url":"https://github.com/xabibmf/chat-space","homepage":"","size":25,"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,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/xabibmf/chat-space/pulls/2"},"html":{"href":"https://github.com/xabibmf/chat-space/pull/2"},"issue":{"href":"https://api.github.com/repos/xabibmf/chat-space/issues/2"},"comments":{"href":"https://api.github.com/repos/xabibmf/chat-space/issues/2/comments"},"review_comments":{"href":"https://api.github.com/repos/xabibmf/chat-space/pulls/2/comments"},"review_comment":{"href":"https://api.github.com/repos/xabibmf/chat-space/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/xabibmf/chat-space/pulls/2/commits"},"statuses":{"href":"https://api.github.com/repos/xabibmf/chat-space/statuses/8d8dd845f600d0d108f97059a9008bb96b709eac"}}}}
{"actor":{"display_login":"xabibmf"}}