{"action":"created","comment":{"url":"https://api.github.com/repos/shoh8190/mercari/pulls/comments/189457530","pull_request_review_id":121642373,"id":189457530,"diff_hunk":"@@ -1,24 +1,210 @@\n-# README\n+# メルカリのクローンサイトの作成\n+DB設計を記載\n \n-This README would normally document whatever steps are necessary to get the\n-application up and running.\n+ER図\n+https://www.lucidchart.com/documents/edit/b4635d84-adc7-48a1-bea3-a87ae143f84e/0\n \n-Things you may want to cover:\n+## User\n+ベースはdevise gemを利用して作成予定\n \n-* Ruby version\n+|Column|Type|Options|\n+|------|----|-------|\n+|nickname|string||\n+|email|||\n+|password|||\n+|user_info_id|integer|null: false, foreign_key: true|\n+|user_address_id|integer|null: false, foreign_key: true|\n \n-* System dependencies\n+### Association\n+- has_one :user_info, dependent: :destroy\n+- has_one :user_address, dependent: :destroy\n+- has_many :user_ratings\n+- has_many :comments\n+- has_many :likes\n+- has_many :items\n+- has_many :buyers\n \n-* Configuration\n+## User_info\n+|Column|Type|Options|\n+|------|----|-------|\n+|last_name|string|null: false|\n+|first_name|string|null: false|\n+|phonetic_last|string|null: false|\n+|phonetic_first|string|null: false|\n+|phone_number|integer||\n+|message|text||\n+|user_id|integer|null: false, foreign_key: true|\n \n-* Database creation\n+### Association\n+- belongs_to :user\n \n-* Database initialization\n+## User_address\n+|Column|Type|Options|\n+|------|----|-------|\n+|zip|integer|null: false|\n+|city|string|null: false|\n+|address|string|null: false|\n+|building|text||\n+|prefecture_id|integer|null: false, foreign_key: true|","path":"README.md","position":57,"original_position":57,"commit_id":"558374f6cd608972aee6cb799039c588d40270b1","original_commit_id":"558374f6cd608972aee6cb799039c588d40270b1","user":{"login":"miyagit","id":17040491,"avatar_url":"https://avatars3.githubusercontent.com/u/17040491?v=4","gravatar_id":"","url":"https://api.github.com/users/miyagit","html_url":"https://github.com/miyagit","followers_url":"https://api.github.com/users/miyagit/followers","following_url":"https://api.github.com/users/miyagit/following{/other_user}","gists_url":"https://api.github.com/users/miyagit/gists{/gist_id}","starred_url":"https://api.github.com/users/miyagit/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/miyagit/subscriptions","organizations_url":"https://api.github.com/users/miyagit/orgs","repos_url":"https://api.github.com/users/miyagit/repos","events_url":"https://api.github.com/users/miyagit/events{/privacy}","received_events_url":"https://api.github.com/users/miyagit/received_events","type":"User","site_admin":false},"body":"これはenumでも良さそうですね。","created_at":"2018-05-20T11:40:47Z","updated_at":"2018-05-20T11:54:55Z","html_url":"https://github.com/shoh8190/mercari/pull/2#discussion_r189457530","pull_request_url":"https://api.github.com/repos/shoh8190/mercari/pulls/2","author_association":"NONE","_links":{"self":{"href":"https://api.github.com/repos/shoh8190/mercari/pulls/comments/189457530"},"html":{"href":"https://github.com/shoh8190/mercari/pull/2#discussion_r189457530"},"pull_request":{"href":"https://api.github.com/repos/shoh8190/mercari/pulls/2"}}},"pull_request":{"url":"https://api.github.com/repos/shoh8190/mercari/pulls/2","id":189229663,"html_url":"https://github.com/shoh8190/mercari/pull/2","diff_url":"https://github.com/shoh8190/mercari/pull/2.diff","patch_url":"https://github.com/shoh8190/mercari/pull/2.patch","issue_url":"https://api.github.com/repos/shoh8190/mercari/issues/2","number":2,"state":"open","locked":false,"title":"DB設計","user":{"login":"shoh8190","id":35335729,"avatar_url":"https://avatars0.githubusercontent.com/u/35335729?v=4","gravatar_id":"","url":"https://api.github.com/users/shoh8190","html_url":"https://github.com/shoh8190","followers_url":"https://api.github.com/users/shoh8190/followers","following_url":"https://api.github.com/users/shoh8190/following{/other_user}","gists_url":"https://api.github.com/users/shoh8190/gists{/gist_id}","starred_url":"https://api.github.com/users/shoh8190/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/shoh8190/subscriptions","organizations_url":"https://api.github.com/users/shoh8190/orgs","repos_url":"https://api.github.com/users/shoh8190/repos","events_url":"https://api.github.com/users/shoh8190/events{/privacy}","received_events_url":"https://api.github.com/users/shoh8190/received_events","type":"User","site_admin":false},"body":"","created_at":"2018-05-20T11:22:48Z","updated_at":"2018-05-20T11:54:55Z","closed_at":null,"merged_at":null,"merge_commit_sha":"f4ab0f9bebdeeb2074b30e89246f3318c477b9bc","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/shoh8190/mercari/pulls/2/commits","review_comments_url":"https://api.github.com/repos/shoh8190/mercari/pulls/2/comments","review_comment_url":"https://api.github.com/repos/shoh8190/mercari/pulls/comments{/number}","comments_url":"https://api.github.com/repos/shoh8190/mercari/issues/2/comments","statuses_url":"https://api.github.com/repos/shoh8190/mercari/statuses/558374f6cd608972aee6cb799039c588d40270b1","head":{"label":"shoh8190:DB設計","ref":"DB設計","sha":"558374f6cd608972aee6cb799039c588d40270b1","user":{"login":"shoh8190","id":35335729,"avatar_url":"https://avatars0.githubusercontent.com/u/35335729?v=4","gravatar_id":"","url":"https://api.github.com/users/shoh8190","html_url":"https://github.com/shoh8190","followers_url":"https://api.github.com/users/shoh8190/followers","following_url":"https://api.github.com/users/shoh8190/following{/other_user}","gists_url":"https://api.github.com/users/shoh8190/gists{/gist_id}","starred_url":"https://api.github.com/users/shoh8190/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/shoh8190/subscriptions","organizations_url":"https://api.github.com/users/shoh8190/orgs","repos_url":"https://api.github.com/users/shoh8190/repos","events_url":"https://api.github.com/users/shoh8190/events{/privacy}","received_events_url":"https://api.github.com/users/shoh8190/received_events","type":"User","site_admin":false},"repo":{"id":132149624,"name":"mercari","full_name":"shoh8190/mercari","owner":{"login":"shoh8190","id":35335729,"avatar_url":"https://avatars0.githubusercontent.com/u/35335729?v=4","gravatar_id":"","url":"https://api.github.com/users/shoh8190","html_url":"https://github.com/shoh8190","followers_url":"https://api.github.com/users/shoh8190/followers","following_url":"https://api.github.com/users/shoh8190/following{/other_user}","gists_url":"https://api.github.com/users/shoh8190/gists{/gist_id}","starred_url":"https://api.github.com/users/shoh8190/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/shoh8190/subscriptions","organizations_url":"https://api.github.com/users/shoh8190/orgs","repos_url":"https://api.github.com/users/shoh8190/repos","events_url":"https://api.github.com/users/shoh8190/events{/privacy}","received_events_url":"https://api.github.com/users/shoh8190/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/shoh8190/mercari","description":null,"fork":false,"url":"https://api.github.com/repos/shoh8190/mercari","forks_url":"https://api.github.com/repos/shoh8190/mercari/forks","keys_url":"https://api.github.com/repos/shoh8190/mercari/keys{/key_id}","collaborators_url":"https://api.github.com/repos/shoh8190/mercari/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/shoh8190/mercari/teams","hooks_url":"https://api.github.com/repos/shoh8190/mercari/hooks","issue_events_url":"https://api.github.com/repos/shoh8190/mercari/issues/events{/number}","events_url":"https://api.github.com/repos/shoh8190/mercari/events","assignees_url":"https://api.github.com/repos/shoh8190/mercari/assignees{/user}","branches_url":"https://api.github.com/repos/shoh8190/mercari/branches{/branch}","tags_url":"https://api.github.com/repos/shoh8190/mercari/tags","blobs_url":"https://api.github.com/repos/shoh8190/mercari/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/shoh8190/mercari/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/shoh8190/mercari/git/refs{/sha}","trees_url":"https://api.github.com/repos/shoh8190/mercari/git/trees{/sha}","statuses_url":"https://api.github.com/repos/shoh8190/mercari/statuses/{sha}","languages_url":"https://api.github.com/repos/shoh8190/mercari/languages","stargazers_url":"https://api.github.com/repos/shoh8190/mercari/stargazers","contributors_url":"https://api.github.com/repos/shoh8190/mercari/contributors","subscribers_url":"https://api.github.com/repos/shoh8190/mercari/subscribers","subscription_url":"https://api.github.com/repos/shoh8190/mercari/subscription","commits_url":"https://api.github.com/repos/shoh8190/mercari/commits{/sha}","git_commits_url":"https://api.github.com/repos/shoh8190/mercari/git/commits{/sha}","comments_url":"https://api.github.com/repos/shoh8190/mercari/comments{/number}","issue_comment_url":"https://api.github.com/repos/shoh8190/mercari/issues/comments{/number}","contents_url":"https://api.github.com/repos/shoh8190/mercari/contents/{+path}","compare_url":"https://api.github.com/repos/shoh8190/mercari/compare/{base}...{head}","merges_url":"https://api.github.com/repos/shoh8190/mercari/merges","archive_url":"https://api.github.com/repos/shoh8190/mercari/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/shoh8190/mercari/downloads","issues_url":"https://api.github.com/repos/shoh8190/mercari/issues{/number}","pulls_url":"https://api.github.com/repos/shoh8190/mercari/pulls{/number}","milestones_url":"https://api.github.com/repos/shoh8190/mercari/milestones{/number}","notifications_url":"https://api.github.com/repos/shoh8190/mercari/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/shoh8190/mercari/labels{/name}","releases_url":"https://api.github.com/repos/shoh8190/mercari/releases{/id}","deployments_url":"https://api.github.com/repos/shoh8190/mercari/deployments","created_at":"2018-05-04T14:19:57Z","updated_at":"2018-05-10T14:17:45Z","pushed_at":"2018-05-20T11:25:40Z","git_url":"git://github.com/shoh8190/mercari.git","ssh_url":"git@github.com:shoh8190/mercari.git","clone_url":"https://github.com/shoh8190/mercari.git","svn_url":"https://github.com/shoh8190/mercari","homepage":null,"size":32,"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":"shoh8190:master","ref":"master","sha":"5a331f5628ea10f5d6f9f385def523e6a6ab7773","user":{"login":"shoh8190","id":35335729,"avatar_url":"https://avatars0.githubusercontent.com/u/35335729?v=4","gravatar_id":"","url":"https://api.github.com/users/shoh8190","html_url":"https://github.com/shoh8190","followers_url":"https://api.github.com/users/shoh8190/followers","following_url":"https://api.github.com/users/shoh8190/following{/other_user}","gists_url":"https://api.github.com/users/shoh8190/gists{/gist_id}","starred_url":"https://api.github.com/users/shoh8190/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/shoh8190/subscriptions","organizations_url":"https://api.github.com/users/shoh8190/orgs","repos_url":"https://api.github.com/users/shoh8190/repos","events_url":"https://api.github.com/users/shoh8190/events{/privacy}","received_events_url":"https://api.github.com/users/shoh8190/received_events","type":"User","site_admin":false},"repo":{"id":132149624,"name":"mercari","full_name":"shoh8190/mercari","owner":{"login":"shoh8190","id":35335729,"avatar_url":"https://avatars0.githubusercontent.com/u/35335729?v=4","gravatar_id":"","url":"https://api.github.com/users/shoh8190","html_url":"https://github.com/shoh8190","followers_url":"https://api.github.com/users/shoh8190/followers","following_url":"https://api.github.com/users/shoh8190/following{/other_user}","gists_url":"https://api.github.com/users/shoh8190/gists{/gist_id}","starred_url":"https://api.github.com/users/shoh8190/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/shoh8190/subscriptions","organizations_url":"https://api.github.com/users/shoh8190/orgs","repos_url":"https://api.github.com/users/shoh8190/repos","events_url":"https://api.github.com/users/shoh8190/events{/privacy}","received_events_url":"https://api.github.com/users/shoh8190/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/shoh8190/mercari","description":null,"fork":false,"url":"https://api.github.com/repos/shoh8190/mercari","forks_url":"https://api.github.com/repos/shoh8190/mercari/forks","keys_url":"https://api.github.com/repos/shoh8190/mercari/keys{/key_id}","collaborators_url":"https://api.github.com/repos/shoh8190/mercari/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/shoh8190/mercari/teams","hooks_url":"https://api.github.com/repos/shoh8190/mercari/hooks","issue_events_url":"https://api.github.com/repos/shoh8190/mercari/issues/events{/number}","events_url":"https://api.github.com/repos/shoh8190/mercari/events","assignees_url":"https://api.github.com/repos/shoh8190/mercari/assignees{/user}","branches_url":"https://api.github.com/repos/shoh8190/mercari/branches{/branch}","tags_url":"https://api.github.com/repos/shoh8190/mercari/tags","blobs_url":"https://api.github.com/repos/shoh8190/mercari/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/shoh8190/mercari/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/shoh8190/mercari/git/refs{/sha}","trees_url":"https://api.github.com/repos/shoh8190/mercari/git/trees{/sha}","statuses_url":"https://api.github.com/repos/shoh8190/mercari/statuses/{sha}","languages_url":"https://api.github.com/repos/shoh8190/mercari/languages","stargazers_url":"https://api.github.com/repos/shoh8190/mercari/stargazers","contributors_url":"https://api.github.com/repos/shoh8190/mercari/contributors","subscribers_url":"https://api.github.com/repos/shoh8190/mercari/subscribers","subscription_url":"https://api.github.com/repos/shoh8190/mercari/subscription","commits_url":"https://api.github.com/repos/shoh8190/mercari/commits{/sha}","git_commits_url":"https://api.github.com/repos/shoh8190/mercari/git/commits{/sha}","comments_url":"https://api.github.com/repos/shoh8190/mercari/comments{/number}","issue_comment_url":"https://api.github.com/repos/shoh8190/mercari/issues/comments{/number}","contents_url":"https://api.github.com/repos/shoh8190/mercari/contents/{+path}","compare_url":"https://api.github.com/repos/shoh8190/mercari/compare/{base}...{head}","merges_url":"https://api.github.com/repos/shoh8190/mercari/merges","archive_url":"https://api.github.com/repos/shoh8190/mercari/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/shoh8190/mercari/downloads","issues_url":"https://api.github.com/repos/shoh8190/mercari/issues{/number}","pulls_url":"https://api.github.com/repos/shoh8190/mercari/pulls{/number}","milestones_url":"https://api.github.com/repos/shoh8190/mercari/milestones{/number}","notifications_url":"https://api.github.com/repos/shoh8190/mercari/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/shoh8190/mercari/labels{/name}","releases_url":"https://api.github.com/repos/shoh8190/mercari/releases{/id}","deployments_url":"https://api.github.com/repos/shoh8190/mercari/deployments","created_at":"2018-05-04T14:19:57Z","updated_at":"2018-05-10T14:17:45Z","pushed_at":"2018-05-20T11:25:40Z","git_url":"git://github.com/shoh8190/mercari.git","ssh_url":"git@github.com:shoh8190/mercari.git","clone_url":"https://github.com/shoh8190/mercari.git","svn_url":"https://github.com/shoh8190/mercari","homepage":null,"size":32,"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/shoh8190/mercari/pulls/2"},"html":{"href":"https://github.com/shoh8190/mercari/pull/2"},"issue":{"href":"https://api.github.com/repos/shoh8190/mercari/issues/2"},"comments":{"href":"https://api.github.com/repos/shoh8190/mercari/issues/2/comments"},"review_comments":{"href":"https://api.github.com/repos/shoh8190/mercari/pulls/2/comments"},"review_comment":{"href":"https://api.github.com/repos/shoh8190/mercari/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/shoh8190/mercari/pulls/2/commits"},"statuses":{"href":"https://api.github.com/repos/shoh8190/mercari/statuses/558374f6cd608972aee6cb799039c588d40270b1"}},"author_association":"OWNER"}}
{"actor":{"display_login":"miyagit"}}