payload: {"action":"created","comment":{"url":"https://api.github.com/repos/ziko7110/chat-space/pulls/comments/348444036","pull_request_review_id":319786779,"id":348444036,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDM0ODQ0NDAzNg==","diff_hunk":"@@ -1,24 +1,59 @@\n-# README\n+## groupsテーブル\n \n-This README would normally document whatever steps are necessary to get the\n-application up and running.\n+|Column|Type|Options|\n+|------|----|-------|\n+|user_id|integer|null: false, foreign_key: true|\n+|group_id|integer|null: false, foreign_key: true|\n+|menber|string|null: false|\n+|group_name|string|null: false|\n \n-Things you may want to cover:\n \n-* Ruby version\n+### Association\n+-  has_many :user_tag,through: :user_tags\n+-  has_many :ｍessages\n \n-* System dependencies\n \n-* Configuration\n \n-* Database creation\n \n-* Database initialization\n+## usersテーブル\n \n-* How to run the test suite\n+|Column|Type|Options|\n+|------|----|-------|\n+|user_id|integer|null: false, foreign_key: true|\n+|group_id|integer|null: false, foreign_key: true|\n+|user_name|string|null: false|\n+|email|string|null: false|\n+|password|string|null: false|\n \n-* Services (job queues, cache servers, search engines, etc.)\n \n-* Deployment instructions\n+### Association\n+-  has_many :user_tag,through: :user_tags\n+-  has_many :ｍessages\n \n-* ...\n+\n+## users_tagテーブル\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+\n+-  belongs_to :users \n+-  belongs_to :groups\n+\n+\n+\n+## ｍessagesテーブル\n+\n+|Column|Type|Options|\n+|------|----|-------|\n+|comments|string|null: false|\n+|group_id|integer|null: false|\n+|group_id|integer|null: false|\n+|image|string\n+\n+### Association\n+- has_many :user\n+- belongs_to:ｍessages","path":"README.md","position":72,"original_position":72,"commit_id":"2cd047f6b60579607dda4bd0f5cd410ef8366263","original_commit_id":"2cd047f6b60579607dda4bd0f5cd410ef8366263","user":{"login":"i-date","id":45116607,"node_id":"MDQ6VXNlcjQ1MTE2NjA3","avatar_url":"https://avatars1.githubusercontent.com/u/45116607?v=4","gravatar_id":"","url":"https://api.github.com/users/i-date","html_url":"https://github.com/i-date","followers_url":"https://api.github.com/users/i-date/followers","following_url":"https://api.github.com/users/i-date/following{/other_user}","gists_url":"https://api.github.com/users/i-date/gists{/gist_id}","starred_url":"https://api.github.com/users/i-date/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/i-date/subscriptions","organizations_url":"https://api.github.com/users/i-date/orgs","repos_url":"https://api.github.com/users/i-date/repos","events_url":"https://api.github.com/users/i-date/events{/privacy}","received_events_url":"https://api.github.com/users/i-date/received_events","type":"User","site_admin":false},"body":"ｍessagesテーブルがｍessagesテーブルに対してアソシエーションを持つわけではないので、59行目はgroupテーブルとのアソシエーションに修正しましょう。","created_at":"2019-11-20T12:05:09Z","updated_at":"2019-11-20T12:05:26Z","html_url":"https://github.com/ziko7110/chat-space/pull/1#discussion_r348444036","pull_request_url":"https://api.github.com/repos/ziko7110/chat-space/pulls/1","author_association":"NONE","_links":{"self":{"href":"https://api.github.com/repos/ziko7110/chat-space/pulls/comments/348444036"},"html":{"href":"https://github.com/ziko7110/chat-space/pull/1#discussion_r348444036"},"pull_request":{"href":"https://api.github.com/repos/ziko7110/chat-space/pulls/1"}}},"pull_request":{"url":"https://api.github.com/repos/ziko7110/chat-space/pulls/1","id":343276278,"node_id":"MDExOlB1bGxSZXF1ZXN0MzQzMjc2Mjc4","html_url":"https://github.com/ziko7110/chat-space/pull/1","diff_url":"https://github.com/ziko7110/chat-space/pull/1.diff","patch_url":"https://github.com/ziko7110/chat-space/pull/1.patch","issue_url":"https://api.github.com/repos/ziko7110/chat-space/issues/1","number":1,"state":"open","locked":false,"title":"データベース設計でのREADMEの記載","user":{"login":"ziko7110","id":57856141,"node_id":"MDQ6VXNlcjU3ODU2MTQx","avatar_url":"https://avatars1.githubusercontent.com/u/57856141?v=4","gravatar_id":"","url":"https://api.github.com/users/ziko7110","html_url":"https://github.com/ziko7110","followers_url":"https://api.github.com/users/ziko7110/followers","following_url":"https://api.github.com/users/ziko7110/following{/other_user}","gists_url":"https://api.github.com/users/ziko7110/gists{/gist_id}","starred_url":"https://api.github.com/users/ziko7110/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ziko7110/subscriptions","organizations_url":"https://api.github.com/users/ziko7110/orgs","repos_url":"https://api.github.com/users/ziko7110/repos","events_url":"https://api.github.com/users/ziko7110/events{/privacy}","received_events_url":"https://api.github.com/users/ziko7110/received_events","type":"User","site_admin":false},"body":"# What\r\nREADMEへのデータベース設計を記載し、LGTM頂く。\r\n\r\n\r\n# Why\r\nカリキュラム上の流れ。","created_at":"2019-11-20T10:19:18Z","updated_at":"2019-11-20T12:05:25Z","closed_at":null,"merged_at":null,"merge_commit_sha":"afbee6bf4c198a86b732069aefd0e3d9b2756ef6","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/ziko7110/chat-space/pulls/1/commits","review_comments_url":"https://api.github.com/repos/ziko7110/chat-space/pulls/1/comments","review_comment_url":"https://api.github.com/repos/ziko7110/chat-space/pulls/comments{/number}","comments_url":"https://api.github.com/repos/ziko7110/chat-space/issues/1/comments","statuses_url":"https://api.github.com/repos/ziko7110/chat-space/statuses/2cd047f6b60579607dda4bd0f5cd410ef8366263","head":{"label":"ziko7110:データベース設計","ref":"データベース設計","sha":"2cd047f6b60579607dda4bd0f5cd410ef8366263","user":{"login":"ziko7110","id":57856141,"node_id":"MDQ6VXNlcjU3ODU2MTQx","avatar_url":"https://avatars1.githubusercontent.com/u/57856141?v=4","gravatar_id":"","url":"https://api.github.com/users/ziko7110","html_url":"https://github.com/ziko7110","followers_url":"https://api.github.com/users/ziko7110/followers","following_url":"https://api.github.com/users/ziko7110/following{/other_user}","gists_url":"https://api.github.com/users/ziko7110/gists{/gist_id}","starred_url":"https://api.github.com/users/ziko7110/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ziko7110/subscriptions","organizations_url":"https://api.github.com/users/ziko7110/orgs","repos_url":"https://api.github.com/users/ziko7110/repos","events_url":"https://api.github.com/users/ziko7110/events{/privacy}","received_events_url":"https://api.github.com/users/ziko7110/received_events","type":"User","site_admin":false},"repo":{"id":222881378,"node_id":"MDEwOlJlcG9zaXRvcnkyMjI4ODEzNzg=","name":"chat-space","full_name":"ziko7110/chat-space","private":false,"owner":{"login":"ziko7110","id":57856141,"node_id":"MDQ6VXNlcjU3ODU2MTQx","avatar_url":"https://avatars1.githubusercontent.com/u/57856141?v=4","gravatar_id":"","url":"https://api.github.com/users/ziko7110","html_url":"https://github.com/ziko7110","followers_url":"https://api.github.com/users/ziko7110/followers","following_url":"https://api.github.com/users/ziko7110/following{/other_user}","gists_url":"https://api.github.com/users/ziko7110/gists{/gist_id}","starred_url":"https://api.github.com/users/ziko7110/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ziko7110/subscriptions","organizations_url":"https://api.github.com/users/ziko7110/orgs","repos_url":"https://api.github.com/users/ziko7110/repos","events_url":"https://api.github.com/users/ziko7110/events{/privacy}","received_events_url":"https://api.github.com/users/ziko7110/received_events","type":"User","site_admin":false},"html_url":"https://github.com/ziko7110/chat-space","description":null,"fork":false,"url":"https://api.github.com/repos/ziko7110/chat-space","forks_url":"https://api.github.com/repos/ziko7110/chat-space/forks","keys_url":"https://api.github.com/repos/ziko7110/chat-space/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ziko7110/chat-space/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ziko7110/chat-space/teams","hooks_url":"https://api.github.com/repos/ziko7110/chat-space/hooks","issue_events_url":"https://api.github.com/repos/ziko7110/chat-space/issues/events{/number}","events_url":"https://api.github.com/repos/ziko7110/chat-space/events","assignees_url":"https://api.github.com/repos/ziko7110/chat-space/assignees{/user}","branches_url":"https://api.github.com/repos/ziko7110/chat-space/branches{/branch}","tags_url":"https://api.github.com/repos/ziko7110/chat-space/tags","blobs_url":"https://api.github.com/repos/ziko7110/chat-space/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ziko7110/chat-space/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ziko7110/chat-space/git/refs{/sha}","trees_url":"https://api.github.com/repos/ziko7110/chat-space/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ziko7110/chat-space/statuses/{sha}","languages_url":"https://api.github.com/repos/ziko7110/chat-space/languages","stargazers_url":"https://api.github.com/repos/ziko7110/chat-space/stargazers","contributors_url":"https://api.github.com/repos/ziko7110/chat-space/contributors","subscribers_url":"https://api.github.com/repos/ziko7110/chat-space/subscribers","subscription_url":"https://api.github.com/repos/ziko7110/chat-space/subscription","commits_url":"https://api.github.com/repos/ziko7110/chat-space/commits{/sha}","git_commits_url":"https://api.github.com/repos/ziko7110/chat-space/git/commits{/sha}","comments_url":"https://api.github.com/repos/ziko7110/chat-space/comments{/number}","issue_comment_url":"https://api.github.com/repos/ziko7110/chat-space/issues/comments{/number}","contents_url":"https://api.github.com/repos/ziko7110/chat-space/contents/{+path}","compare_url":"https://api.github.com/repos/ziko7110/chat-space/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ziko7110/chat-space/merges","archive_url":"https://api.github.com/repos/ziko7110/chat-space/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ziko7110/chat-space/downloads","issues_url":"https://api.github.com/repos/ziko7110/chat-space/issues{/number}","pulls_url":"https://api.github.com/repos/ziko7110/chat-space/pulls{/number}","milestones_url":"https://api.github.com/repos/ziko7110/chat-space/milestones{/number}","notifications_url":"https://api.github.com/repos/ziko7110/chat-space/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ziko7110/chat-space/labels{/name}","releases_url":"https://api.github.com/repos/ziko7110/chat-space/releases{/id}","deployments_url":"https://api.github.com/repos/ziko7110/chat-space/deployments","created_at":"2019-11-20T07:54:14Z","updated_at":"2019-11-20T07:54:22Z","pushed_at":"2019-11-20T11:50:45Z","git_url":"git://github.com/ziko7110/chat-space.git","ssh_url":"git@github.com:ziko7110/chat-space.git","clone_url":"https://github.com/ziko7110/chat-space.git","svn_url":"https://github.com/ziko7110/chat-space","homepage":null,"size":21,"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":1,"license":null,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"base":{"label":"ziko7110:master","ref":"master","sha":"b602730b47c1107a7e0788c3162cd5d4cc590edc","user":{"login":"ziko7110","id":57856141,"node_id":"MDQ6VXNlcjU3ODU2MTQx","avatar_url":"https://avatars1.githubusercontent.com/u/57856141?v=4","gravatar_id":"","url":"https://api.github.com/users/ziko7110","html_url":"https://github.com/ziko7110","followers_url":"https://api.github.com/users/ziko7110/followers","following_url":"https://api.github.com/users/ziko7110/following{/other_user}","gists_url":"https://api.github.com/users/ziko7110/gists{/gist_id}","starred_url":"https://api.github.com/users/ziko7110/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ziko7110/subscriptions","organizations_url":"https://api.github.com/users/ziko7110/orgs","repos_url":"https://api.github.com/users/ziko7110/repos","events_url":"https://api.github.com/users/ziko7110/events{/privacy}","received_events_url":"https://api.github.com/users/ziko7110/received_events","type":"User","site_admin":false},"repo":{"id":222881378,"node_id":"MDEwOlJlcG9zaXRvcnkyMjI4ODEzNzg=","name":"chat-space","full_name":"ziko7110/chat-space","private":false,"owner":{"login":"ziko7110","id":57856141,"node_id":"MDQ6VXNlcjU3ODU2MTQx","avatar_url":"https://avatars1.githubusercontent.com/u/57856141?v=4","gravatar_id":"","url":"https://api.github.com/users/ziko7110","html_url":"https://github.com/ziko7110","followers_url":"https://api.github.com/users/ziko7110/followers","following_url":"https://api.github.com/users/ziko7110/following{/other_user}","gists_url":"https://api.github.com/users/ziko7110/gists{/gist_id}","starred_url":"https://api.github.com/users/ziko7110/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ziko7110/subscriptions","organizations_url":"https://api.github.com/users/ziko7110/orgs","repos_url":"https://api.github.com/users/ziko7110/repos","events_url":"https://api.github.com/users/ziko7110/events{/privacy}","received_events_url":"https://api.github.com/users/ziko7110/received_events","type":"User","site_admin":false},"html_url":"https://github.com/ziko7110/chat-space","description":null,"fork":false,"url":"https://api.github.com/repos/ziko7110/chat-space","forks_url":"https://api.github.com/repos/ziko7110/chat-space/forks","keys_url":"https://api.github.com/repos/ziko7110/chat-space/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ziko7110/chat-space/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ziko7110/chat-space/teams","hooks_url":"https://api.github.com/repos/ziko7110/chat-space/hooks","issue_events_url":"https://api.github.com/repos/ziko7110/chat-space/issues/events{/number}","events_url":"https://api.github.com/repos/ziko7110/chat-space/events","assignees_url":"https://api.github.com/repos/ziko7110/chat-space/assignees{/user}","branches_url":"https://api.github.com/repos/ziko7110/chat-space/branches{/branch}","tags_url":"https://api.github.com/repos/ziko7110/chat-space/tags","blobs_url":"https://api.github.com/repos/ziko7110/chat-space/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ziko7110/chat-space/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ziko7110/chat-space/git/refs{/sha}","trees_url":"https://api.github.com/repos/ziko7110/chat-space/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ziko7110/chat-space/statuses/{sha}","languages_url":"https://api.github.com/repos/ziko7110/chat-space/languages","stargazers_url":"https://api.github.com/repos/ziko7110/chat-space/stargazers","contributors_url":"https://api.github.com/repos/ziko7110/chat-space/contributors","subscribers_url":"https://api.github.com/repos/ziko7110/chat-space/subscribers","subscription_url":"https://api.github.com/repos/ziko7110/chat-space/subscription","commits_url":"https://api.github.com/repos/ziko7110/chat-space/commits{/sha}","git_commits_url":"https://api.github.com/repos/ziko7110/chat-space/git/commits{/sha}","comments_url":"https://api.github.com/repos/ziko7110/chat-space/comments{/number}","issue_comment_url":"https://api.github.com/repos/ziko7110/chat-space/issues/comments{/number}","contents_url":"https://api.github.com/repos/ziko7110/chat-space/contents/{+path}","compare_url":"https://api.github.com/repos/ziko7110/chat-space/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ziko7110/chat-space/merges","archive_url":"https://api.github.com/repos/ziko7110/chat-space/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ziko7110/chat-space/downloads","issues_url":"https://api.github.com/repos/ziko7110/chat-space/issues{/number}","pulls_url":"https://api.github.com/repos/ziko7110/chat-space/pulls{/number}","milestones_url":"https://api.github.com/repos/ziko7110/chat-space/milestones{/number}","notifications_url":"https://api.github.com/repos/ziko7110/chat-space/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ziko7110/chat-space/labels{/name}","releases_url":"https://api.github.com/repos/ziko7110/chat-space/releases{/id}","deployments_url":"https://api.github.com/repos/ziko7110/chat-space/deployments","created_at":"2019-11-20T07:54:14Z","updated_at":"2019-11-20T07:54:22Z","pushed_at":"2019-11-20T11:50:45Z","git_url":"git://github.com/ziko7110/chat-space.git","ssh_url":"git@github.com:ziko7110/chat-space.git","clone_url":"https://github.com/ziko7110/chat-space.git","svn_url":"https://github.com/ziko7110/chat-space","homepage":null,"size":21,"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":1,"license":null,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/ziko7110/chat-space/pulls/1"},"html":{"href":"https://github.com/ziko7110/chat-space/pull/1"},"issue":{"href":"https://api.github.com/repos/ziko7110/chat-space/issues/1"},"comments":{"href":"https://api.github.com/repos/ziko7110/chat-space/issues/1/comments"},"review_comments":{"href":"https://api.github.com/repos/ziko7110/chat-space/pulls/1/comments"},"review_comment":{"href":"https://api.github.com/repos/ziko7110/chat-space/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/ziko7110/chat-space/pulls/1/commits"},"statuses":{"href":"https://api.github.com/repos/ziko7110/chat-space/statuses/2cd047f6b60579607dda4bd0f5cd410ef8366263"}},"author_association":"OWNER"}}
other: {"actor":{"display_login":"i-date"}}