{"action":"created","comment":{"url":"https://api.github.com/repos/r-kanamaru/chat-space/pulls/comments/228731734","pull_request_review_id":169075687,"id":228731734,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIyODczMTczNA==","diff_hunk":"@@ -1,4 +1,41 @@\n # DB設計\n \n+## usersテーブル\n+\n+|Column|Type|Options|\n+|------|----|-------|\n+|name|string|null: false|\n+|e_mail|string|null: false|\n+|password|text|null: false|\n+\n+### Association\n+- has_many :groups,through: :messages","path":"README.md","position":null,"original_position":12,"commit_id":"73d6b99eb6cee95dd1a82acddb128722d0c3e5a2","original_commit_id":"73d6b99eb6cee95dd1a82acddb128722d0c3e5a2","user":{"login":"kuroko918","id":16913756,"node_id":"MDQ6VXNlcjE2OTEzNzU2","avatar_url":"https://avatars3.githubusercontent.com/u/16913756?v=4","gravatar_id":"","url":"https://api.github.com/users/kuroko918","html_url":"https://github.com/kuroko918","followers_url":"https://api.github.com/users/kuroko918/followers","following_url":"https://api.github.com/users/kuroko918/following{/other_user}","gists_url":"https://api.github.com/users/kuroko918/gists{/gist_id}","starred_url":"https://api.github.com/users/kuroko918/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kuroko918/subscriptions","organizations_url":"https://api.github.com/users/kuroko918/orgs","repos_url":"https://api.github.com/users/kuroko918/repos","events_url":"https://api.github.com/users/kuroko918/events{/privacy}","received_events_url":"https://api.github.com/users/kuroko918/received_events","type":"User","site_admin":false},"body":"messagesテーブルはusersテーブルとgroupsテーブルの中間テーブルではないと思うので、この記述は不要です。","created_at":"2018-10-28T01:48:23Z","updated_at":"2018-10-28T01:49:56Z","html_url":"https://github.com/r-kanamaru/chat-space/pull/1#discussion_r228731734","pull_request_url":"https://api.github.com/repos/r-kanamaru/chat-space/pulls/1","author_association":"NONE","_links":{"self":{"href":"https://api.github.com/repos/r-kanamaru/chat-space/pulls/comments/228731734"},"html":{"href":"https://github.com/r-kanamaru/chat-space/pull/1#discussion_r228731734"},"pull_request":{"href":"https://api.github.com/repos/r-kanamaru/chat-space/pulls/1"}}},"pull_request":{"url":"https://api.github.com/repos/r-kanamaru/chat-space/pulls/1","id":226295103,"node_id":"MDExOlB1bGxSZXF1ZXN0MjI2Mjk1MTAz","html_url":"https://github.com/r-kanamaru/chat-space/pull/1","diff_url":"https://github.com/r-kanamaru/chat-space/pull/1.diff","patch_url":"https://github.com/r-kanamaru/chat-space/pull/1.patch","issue_url":"https://api.github.com/repos/r-kanamaru/chat-space/issues/1","number":1,"state":"open","locked":false,"title":"[WIP]データベースの設計","user":{"login":"r-kanamaru","id":43672664,"node_id":"MDQ6VXNlcjQzNjcyNjY0","avatar_url":"https://avatars2.githubusercontent.com/u/43672664?v=4","gravatar_id":"","url":"https://api.github.com/users/r-kanamaru","html_url":"https://github.com/r-kanamaru","followers_url":"https://api.github.com/users/r-kanamaru/followers","following_url":"https://api.github.com/users/r-kanamaru/following{/other_user}","gists_url":"https://api.github.com/users/r-kanamaru/gists{/gist_id}","starred_url":"https://api.github.com/users/r-kanamaru/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/r-kanamaru/subscriptions","organizations_url":"https://api.github.com/users/r-kanamaru/orgs","repos_url":"https://api.github.com/users/r-kanamaru/repos","events_url":"https://api.github.com/users/r-kanamaru/events{/privacy}","received_events_url":"https://api.github.com/users/r-kanamaru/received_events","type":"User","site_admin":false},"body":"# WHAT\r\nREADMEへ「DBの設計」を記述しました。\r\n\r\n# WHY\r\nDB実装前に、DBの設計について実装前に事前に確認したい。","created_at":"2018-10-27T13:41:59Z","updated_at":"2018-10-28T01:49:56Z","closed_at":null,"merged_at":null,"merge_commit_sha":"898ddd8b213b54cec3b695298a716f07d62b2ab7","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/r-kanamaru/chat-space/pulls/1/commits","review_comments_url":"https://api.github.com/repos/r-kanamaru/chat-space/pulls/1/comments","review_comment_url":"https://api.github.com/repos/r-kanamaru/chat-space/pulls/comments{/number}","comments_url":"https://api.github.com/repos/r-kanamaru/chat-space/issues/1/comments","statuses_url":"https://api.github.com/repos/r-kanamaru/chat-space/statuses/73d6b99eb6cee95dd1a82acddb128722d0c3e5a2","head":{"label":"r-kanamaru:add_DB","ref":"add_DB","sha":"73d6b99eb6cee95dd1a82acddb128722d0c3e5a2","user":{"login":"r-kanamaru","id":43672664,"node_id":"MDQ6VXNlcjQzNjcyNjY0","avatar_url":"https://avatars2.githubusercontent.com/u/43672664?v=4","gravatar_id":"","url":"https://api.github.com/users/r-kanamaru","html_url":"https://github.com/r-kanamaru","followers_url":"https://api.github.com/users/r-kanamaru/followers","following_url":"https://api.github.com/users/r-kanamaru/following{/other_user}","gists_url":"https://api.github.com/users/r-kanamaru/gists{/gist_id}","starred_url":"https://api.github.com/users/r-kanamaru/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/r-kanamaru/subscriptions","organizations_url":"https://api.github.com/users/r-kanamaru/orgs","repos_url":"https://api.github.com/users/r-kanamaru/repos","events_url":"https://api.github.com/users/r-kanamaru/events{/privacy}","received_events_url":"https://api.github.com/users/r-kanamaru/received_events","type":"User","site_admin":false},"repo":{"id":154767026,"node_id":"MDEwOlJlcG9zaXRvcnkxNTQ3NjcwMjY=","name":"chat-space","full_name":"r-kanamaru/chat-space","private":false,"owner":{"login":"r-kanamaru","id":43672664,"node_id":"MDQ6VXNlcjQzNjcyNjY0","avatar_url":"https://avatars2.githubusercontent.com/u/43672664?v=4","gravatar_id":"","url":"https://api.github.com/users/r-kanamaru","html_url":"https://github.com/r-kanamaru","followers_url":"https://api.github.com/users/r-kanamaru/followers","following_url":"https://api.github.com/users/r-kanamaru/following{/other_user}","gists_url":"https://api.github.com/users/r-kanamaru/gists{/gist_id}","starred_url":"https://api.github.com/users/r-kanamaru/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/r-kanamaru/subscriptions","organizations_url":"https://api.github.com/users/r-kanamaru/orgs","repos_url":"https://api.github.com/users/r-kanamaru/repos","events_url":"https://api.github.com/users/r-kanamaru/events{/privacy}","received_events_url":"https://api.github.com/users/r-kanamaru/received_events","type":"User","site_admin":false},"html_url":"https://github.com/r-kanamaru/chat-space","description":null,"fork":false,"url":"https://api.github.com/repos/r-kanamaru/chat-space","forks_url":"https://api.github.com/repos/r-kanamaru/chat-space/forks","keys_url":"https://api.github.com/repos/r-kanamaru/chat-space/keys{/key_id}","collaborators_url":"https://api.github.com/repos/r-kanamaru/chat-space/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/r-kanamaru/chat-space/teams","hooks_url":"https://api.github.com/repos/r-kanamaru/chat-space/hooks","issue_events_url":"https://api.github.com/repos/r-kanamaru/chat-space/issues/events{/number}","events_url":"https://api.github.com/repos/r-kanamaru/chat-space/events","assignees_url":"https://api.github.com/repos/r-kanamaru/chat-space/assignees{/user}","branches_url":"https://api.github.com/repos/r-kanamaru/chat-space/branches{/branch}","tags_url":"https://api.github.com/repos/r-kanamaru/chat-space/tags","blobs_url":"https://api.github.com/repos/r-kanamaru/chat-space/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/r-kanamaru/chat-space/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/r-kanamaru/chat-space/git/refs{/sha}","trees_url":"https://api.github.com/repos/r-kanamaru/chat-space/git/trees{/sha}","statuses_url":"https://api.github.com/repos/r-kanamaru/chat-space/statuses/{sha}","languages_url":"https://api.github.com/repos/r-kanamaru/chat-space/languages","stargazers_url":"https://api.github.com/repos/r-kanamaru/chat-space/stargazers","contributors_url":"https://api.github.com/repos/r-kanamaru/chat-space/contributors","subscribers_url":"https://api.github.com/repos/r-kanamaru/chat-space/subscribers","subscription_url":"https://api.github.com/repos/r-kanamaru/chat-space/subscription","commits_url":"https://api.github.com/repos/r-kanamaru/chat-space/commits{/sha}","git_commits_url":"https://api.github.com/repos/r-kanamaru/chat-space/git/commits{/sha}","comments_url":"https://api.github.com/repos/r-kanamaru/chat-space/comments{/number}","issue_comment_url":"https://api.github.com/repos/r-kanamaru/chat-space/issues/comments{/number}","contents_url":"https://api.github.com/repos/r-kanamaru/chat-space/contents/{+path}","compare_url":"https://api.github.com/repos/r-kanamaru/chat-space/compare/{base}...{head}","merges_url":"https://api.github.com/repos/r-kanamaru/chat-space/merges","archive_url":"https://api.github.com/repos/r-kanamaru/chat-space/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/r-kanamaru/chat-space/downloads","issues_url":"https://api.github.com/repos/r-kanamaru/chat-space/issues{/number}","pulls_url":"https://api.github.com/repos/r-kanamaru/chat-space/pulls{/number}","milestones_url":"https://api.github.com/repos/r-kanamaru/chat-space/milestones{/number}","notifications_url":"https://api.github.com/repos/r-kanamaru/chat-space/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/r-kanamaru/chat-space/labels{/name}","releases_url":"https://api.github.com/repos/r-kanamaru/chat-space/releases{/id}","deployments_url":"https://api.github.com/repos/r-kanamaru/chat-space/deployments","created_at":"2018-10-26T02:40:20Z","updated_at":"2018-10-27T13:35:27Z","pushed_at":"2018-10-27T13:42:00Z","git_url":"git://github.com/r-kanamaru/chat-space.git","ssh_url":"git@github.com:r-kanamaru/chat-space.git","clone_url":"https://github.com/r-kanamaru/chat-space.git","svn_url":"https://github.com/r-kanamaru/chat-space","homepage":null,"size":22,"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,"open_issues_count":1,"license":null,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"base":{"label":"r-kanamaru:master","ref":"master","sha":"a6c7a21e11858d0c9f161c07e4e5ffa09f8f8982","user":{"login":"r-kanamaru","id":43672664,"node_id":"MDQ6VXNlcjQzNjcyNjY0","avatar_url":"https://avatars2.githubusercontent.com/u/43672664?v=4","gravatar_id":"","url":"https://api.github.com/users/r-kanamaru","html_url":"https://github.com/r-kanamaru","followers_url":"https://api.github.com/users/r-kanamaru/followers","following_url":"https://api.github.com/users/r-kanamaru/following{/other_user}","gists_url":"https://api.github.com/users/r-kanamaru/gists{/gist_id}","starred_url":"https://api.github.com/users/r-kanamaru/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/r-kanamaru/subscriptions","organizations_url":"https://api.github.com/users/r-kanamaru/orgs","repos_url":"https://api.github.com/users/r-kanamaru/repos","events_url":"https://api.github.com/users/r-kanamaru/events{/privacy}","received_events_url":"https://api.github.com/users/r-kanamaru/received_events","type":"User","site_admin":false},"repo":{"id":154767026,"node_id":"MDEwOlJlcG9zaXRvcnkxNTQ3NjcwMjY=","name":"chat-space","full_name":"r-kanamaru/chat-space","private":false,"owner":{"login":"r-kanamaru","id":43672664,"node_id":"MDQ6VXNlcjQzNjcyNjY0","avatar_url":"https://avatars2.githubusercontent.com/u/43672664?v=4","gravatar_id":"","url":"https://api.github.com/users/r-kanamaru","html_url":"https://github.com/r-kanamaru","followers_url":"https://api.github.com/users/r-kanamaru/followers","following_url":"https://api.github.com/users/r-kanamaru/following{/other_user}","gists_url":"https://api.github.com/users/r-kanamaru/gists{/gist_id}","starred_url":"https://api.github.com/users/r-kanamaru/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/r-kanamaru/subscriptions","organizations_url":"https://api.github.com/users/r-kanamaru/orgs","repos_url":"https://api.github.com/users/r-kanamaru/repos","events_url":"https://api.github.com/users/r-kanamaru/events{/privacy}","received_events_url":"https://api.github.com/users/r-kanamaru/received_events","type":"User","site_admin":false},"html_url":"https://github.com/r-kanamaru/chat-space","description":null,"fork":false,"url":"https://api.github.com/repos/r-kanamaru/chat-space","forks_url":"https://api.github.com/repos/r-kanamaru/chat-space/forks","keys_url":"https://api.github.com/repos/r-kanamaru/chat-space/keys{/key_id}","collaborators_url":"https://api.github.com/repos/r-kanamaru/chat-space/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/r-kanamaru/chat-space/teams","hooks_url":"https://api.github.com/repos/r-kanamaru/chat-space/hooks","issue_events_url":"https://api.github.com/repos/r-kanamaru/chat-space/issues/events{/number}","events_url":"https://api.github.com/repos/r-kanamaru/chat-space/events","assignees_url":"https://api.github.com/repos/r-kanamaru/chat-space/assignees{/user}","branches_url":"https://api.github.com/repos/r-kanamaru/chat-space/branches{/branch}","tags_url":"https://api.github.com/repos/r-kanamaru/chat-space/tags","blobs_url":"https://api.github.com/repos/r-kanamaru/chat-space/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/r-kanamaru/chat-space/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/r-kanamaru/chat-space/git/refs{/sha}","trees_url":"https://api.github.com/repos/r-kanamaru/chat-space/git/trees{/sha}","statuses_url":"https://api.github.com/repos/r-kanamaru/chat-space/statuses/{sha}","languages_url":"https://api.github.com/repos/r-kanamaru/chat-space/languages","stargazers_url":"https://api.github.com/repos/r-kanamaru/chat-space/stargazers","contributors_url":"https://api.github.com/repos/r-kanamaru/chat-space/contributors","subscribers_url":"https://api.github.com/repos/r-kanamaru/chat-space/subscribers","subscription_url":"https://api.github.com/repos/r-kanamaru/chat-space/subscription","commits_url":"https://api.github.com/repos/r-kanamaru/chat-space/commits{/sha}","git_commits_url":"https://api.github.com/repos/r-kanamaru/chat-space/git/commits{/sha}","comments_url":"https://api.github.com/repos/r-kanamaru/chat-space/comments{/number}","issue_comment_url":"https://api.github.com/repos/r-kanamaru/chat-space/issues/comments{/number}","contents_url":"https://api.github.com/repos/r-kanamaru/chat-space/contents/{+path}","compare_url":"https://api.github.com/repos/r-kanamaru/chat-space/compare/{base}...{head}","merges_url":"https://api.github.com/repos/r-kanamaru/chat-space/merges","archive_url":"https://api.github.com/repos/r-kanamaru/chat-space/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/r-kanamaru/chat-space/downloads","issues_url":"https://api.github.com/repos/r-kanamaru/chat-space/issues{/number}","pulls_url":"https://api.github.com/repos/r-kanamaru/chat-space/pulls{/number}","milestones_url":"https://api.github.com/repos/r-kanamaru/chat-space/milestones{/number}","notifications_url":"https://api.github.com/repos/r-kanamaru/chat-space/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/r-kanamaru/chat-space/labels{/name}","releases_url":"https://api.github.com/repos/r-kanamaru/chat-space/releases{/id}","deployments_url":"https://api.github.com/repos/r-kanamaru/chat-space/deployments","created_at":"2018-10-26T02:40:20Z","updated_at":"2018-10-27T13:35:27Z","pushed_at":"2018-10-27T13:42:00Z","git_url":"git://github.com/r-kanamaru/chat-space.git","ssh_url":"git@github.com:r-kanamaru/chat-space.git","clone_url":"https://github.com/r-kanamaru/chat-space.git","svn_url":"https://github.com/r-kanamaru/chat-space","homepage":null,"size":22,"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,"open_issues_count":1,"license":null,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/r-kanamaru/chat-space/pulls/1"},"html":{"href":"https://github.com/r-kanamaru/chat-space/pull/1"},"issue":{"href":"https://api.github.com/repos/r-kanamaru/chat-space/issues/1"},"comments":{"href":"https://api.github.com/repos/r-kanamaru/chat-space/issues/1/comments"},"review_comments":{"href":"https://api.github.com/repos/r-kanamaru/chat-space/pulls/1/comments"},"review_comment":{"href":"https://api.github.com/repos/r-kanamaru/chat-space/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/r-kanamaru/chat-space/pulls/1/commits"},"statuses":{"href":"https://api.github.com/repos/r-kanamaru/chat-space/statuses/73d6b99eb6cee95dd1a82acddb128722d0c3e5a2"}},"author_association":"OWNER"}}
{"actor":{"display_login":"kuroko918"}}