{"action":"created","comment":{"url":"https://api.github.com/repos/koyablue/freemarket_sample_40d/pulls/comments/241943350","pull_request_review_id":185348027,"id":241943350,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDI0MTk0MzM1MA==","diff_hunk":"@@ -0,0 +1,187 @@\n+# users table\n+|column|type|options|\n+|------|----|-------|\n+|nickname|string|null: false, unique: true|\n+|email|string|null: false, unique: true|\n+|password|integer|null: false, unique: true|\n+|phone_number|integer|null:false, unique: true|\n+|first_name|string|null: false|\n+|last_name|string|null: false|\n+|postal_code|integer|null: false|\n+|birthday|integer|null: false|\n+|payment_method|string|null: false|\n+|profile_text|text||\n+\n+## Association\n+- has_many :prefectures\n+- has_many :sale_proceeds\n+- has_many :points\n+- has_many :comments\n+\n+\n+# municipalities table\n+|column|type|options|\n+|------|----|-------|\n+|name|string|null: false|\n+|address|string|null: false|\n+|building|string||\n+|prefecture_id|integer|references :prefecture, foreign_key: true, null: false|\n+\n+## Association\n+- belongs_to :prefecture\n+\n+\n+# prefectures table","path":"README.md","position":34,"original_position":34,"commit_id":"45ea12be24dbec9099908b841045e90d2fe70996","original_commit_id":"45ea12be24dbec9099908b841045e90d2fe70996","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":"このテーブルは県の情報しか持たないのですか？\r\nもしそうならenumで管理した方がいいかと思います","created_at":"2018-12-15T09:08:15Z","updated_at":"2018-12-15T09:10:23Z","html_url":"https://github.com/koyablue/freemarket_sample_40d/pull/12#discussion_r241943350","pull_request_url":"https://api.github.com/repos/koyablue/freemarket_sample_40d/pulls/12","author_association":"NONE","_links":{"self":{"href":"https://api.github.com/repos/koyablue/freemarket_sample_40d/pulls/comments/241943350"},"html":{"href":"https://github.com/koyablue/freemarket_sample_40d/pull/12#discussion_r241943350"},"pull_request":{"href":"https://api.github.com/repos/koyablue/freemarket_sample_40d/pulls/12"}}},"pull_request":{"url":"https://api.github.com/repos/koyablue/freemarket_sample_40d/pulls/12","id":238895482,"node_id":"MDExOlB1bGxSZXF1ZXN0MjM4ODk1NDgy","html_url":"https://github.com/koyablue/freemarket_sample_40d/pull/12","diff_url":"https://github.com/koyablue/freemarket_sample_40d/pull/12.diff","patch_url":"https://github.com/koyablue/freemarket_sample_40d/pull/12.patch","issue_url":"https://api.github.com/repos/koyablue/freemarket_sample_40d/issues/12","number":12,"state":"open","locked":false,"title":"READMEにDB設計案を記述","user":{"login":"koyablue","id":43242050,"node_id":"MDQ6VXNlcjQzMjQyMDUw","avatar_url":"https://avatars1.githubusercontent.com/u/43242050?v=4","gravatar_id":"","url":"https://api.github.com/users/koyablue","html_url":"https://github.com/koyablue","followers_url":"https://api.github.com/users/koyablue/followers","following_url":"https://api.github.com/users/koyablue/following{/other_user}","gists_url":"https://api.github.com/users/koyablue/gists{/gist_id}","starred_url":"https://api.github.com/users/koyablue/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/koyablue/subscriptions","organizations_url":"https://api.github.com/users/koyablue/orgs","repos_url":"https://api.github.com/users/koyablue/repos","events_url":"https://api.github.com/users/koyablue/events{/privacy}","received_events_url":"https://api.github.com/users/koyablue/received_events","type":"User","site_admin":false},"body":"# what\r\n- READMEにDB設計案を記述\r\n\r\n# why\r\n- 実際にDBを作成するにあたっての必須作業であるため\r\n\r\n# how\r\n-本家メルカリを参考にチーム内で必要なテーブルやカラムを洗い出しER図を作成, READMEに書き起こした.\r\n- items tableに紐づくcategories tableについてはカテゴリー分けはせずに全て一つのテーブルで管理し, idで関連づける方法をとった","created_at":"2018-12-15T06:57:04Z","updated_at":"2018-12-15T09:10:23Z","closed_at":null,"merged_at":null,"merge_commit_sha":"46292a4b03cb172ac9663214ed703dd88ec3c768","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/koyablue/freemarket_sample_40d/pulls/12/commits","review_comments_url":"https://api.github.com/repos/koyablue/freemarket_sample_40d/pulls/12/comments","review_comment_url":"https://api.github.com/repos/koyablue/freemarket_sample_40d/pulls/comments{/number}","comments_url":"https://api.github.com/repos/koyablue/freemarket_sample_40d/issues/12/comments","statuses_url":"https://api.github.com/repos/koyablue/freemarket_sample_40d/statuses/45ea12be24dbec9099908b841045e90d2fe70996","head":{"label":"koyablue:edit-README","ref":"edit-README","sha":"45ea12be24dbec9099908b841045e90d2fe70996","user":{"login":"koyablue","id":43242050,"node_id":"MDQ6VXNlcjQzMjQyMDUw","avatar_url":"https://avatars1.githubusercontent.com/u/43242050?v=4","gravatar_id":"","url":"https://api.github.com/users/koyablue","html_url":"https://github.com/koyablue","followers_url":"https://api.github.com/users/koyablue/followers","following_url":"https://api.github.com/users/koyablue/following{/other_user}","gists_url":"https://api.github.com/users/koyablue/gists{/gist_id}","starred_url":"https://api.github.com/users/koyablue/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/koyablue/subscriptions","organizations_url":"https://api.github.com/users/koyablue/orgs","repos_url":"https://api.github.com/users/koyablue/repos","events_url":"https://api.github.com/users/koyablue/events{/privacy}","received_events_url":"https://api.github.com/users/koyablue/received_events","type":"User","site_admin":false},"repo":{"id":161271893,"node_id":"MDEwOlJlcG9zaXRvcnkxNjEyNzE4OTM=","name":"freemarket_sample_40d","full_name":"koyablue/freemarket_sample_40d","private":false,"owner":{"login":"koyablue","id":43242050,"node_id":"MDQ6VXNlcjQzMjQyMDUw","avatar_url":"https://avatars1.githubusercontent.com/u/43242050?v=4","gravatar_id":"","url":"https://api.github.com/users/koyablue","html_url":"https://github.com/koyablue","followers_url":"https://api.github.com/users/koyablue/followers","following_url":"https://api.github.com/users/koyablue/following{/other_user}","gists_url":"https://api.github.com/users/koyablue/gists{/gist_id}","starred_url":"https://api.github.com/users/koyablue/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/koyablue/subscriptions","organizations_url":"https://api.github.com/users/koyablue/orgs","repos_url":"https://api.github.com/users/koyablue/repos","events_url":"https://api.github.com/users/koyablue/events{/privacy}","received_events_url":"https://api.github.com/users/koyablue/received_events","type":"User","site_admin":false},"html_url":"https://github.com/koyablue/freemarket_sample_40d","description":"TECH::EXPERT 40期 最終課題","fork":false,"url":"https://api.github.com/repos/koyablue/freemarket_sample_40d","forks_url":"https://api.github.com/repos/koyablue/freemarket_sample_40d/forks","keys_url":"https://api.github.com/repos/koyablue/freemarket_sample_40d/keys{/key_id}","collaborators_url":"https://api.github.com/repos/koyablue/freemarket_sample_40d/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/koyablue/freemarket_sample_40d/teams","hooks_url":"https://api.github.com/repos/koyablue/freemarket_sample_40d/hooks","issue_events_url":"https://api.github.com/repos/koyablue/freemarket_sample_40d/issues/events{/number}","events_url":"https://api.github.com/repos/koyablue/freemarket_sample_40d/events","assignees_url":"https://api.github.com/repos/koyablue/freemarket_sample_40d/assignees{/user}","branches_url":"https://api.github.com/repos/koyablue/freemarket_sample_40d/branches{/branch}","tags_url":"https://api.github.com/repos/koyablue/freemarket_sample_40d/tags","blobs_url":"https://api.github.com/repos/koyablue/freemarket_sample_40d/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/koyablue/freemarket_sample_40d/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/koyablue/freemarket_sample_40d/git/refs{/sha}","trees_url":"https://api.github.com/repos/koyablue/freemarket_sample_40d/git/trees{/sha}","statuses_url":"https://api.github.com/repos/koyablue/freemarket_sample_40d/statuses/{sha}","languages_url":"https://api.github.com/repos/koyablue/freemarket_sample_40d/languages","stargazers_url":"https://api.github.com/repos/koyablue/freemarket_sample_40d/stargazers","contributors_url":"https://api.github.com/repos/koyablue/freemarket_sample_40d/contributors","subscribers_url":"https://api.github.com/repos/koyablue/freemarket_sample_40d/subscribers","subscription_url":"https://api.github.com/repos/koyablue/freemarket_sample_40d/subscription","commits_url":"https://api.github.com/repos/koyablue/freemarket_sample_40d/commits{/sha}","git_commits_url":"https://api.github.com/repos/koyablue/freemarket_sample_40d/git/commits{/sha}","comments_url":"https://api.github.com/repos/koyablue/freemarket_sample_40d/comments{/number}","issue_comment_url":"https://api.github.com/repos/koyablue/freemarket_sample_40d/issues/comments{/number}","contents_url":"https://api.github.com/repos/koyablue/freemarket_sample_40d/contents/{+path}","compare_url":"https://api.github.com/repos/koyablue/freemarket_sample_40d/compare/{base}...{head}","merges_url":"https://api.github.com/repos/koyablue/freemarket_sample_40d/merges","archive_url":"https://api.github.com/repos/koyablue/freemarket_sample_40d/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/koyablue/freemarket_sample_40d/downloads","issues_url":"https://api.github.com/repos/koyablue/freemarket_sample_40d/issues{/number}","pulls_url":"https://api.github.com/repos/koyablue/freemarket_sample_40d/pulls{/number}","milestones_url":"https://api.github.com/repos/koyablue/freemarket_sample_40d/milestones{/number}","notifications_url":"https://api.github.com/repos/koyablue/freemarket_sample_40d/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/koyablue/freemarket_sample_40d/labels{/name}","releases_url":"https://api.github.com/repos/koyablue/freemarket_sample_40d/releases{/id}","deployments_url":"https://api.github.com/repos/koyablue/freemarket_sample_40d/deployments","created_at":"2018-12-11T03:29:48Z","updated_at":"2018-12-15T06:50:55Z","pushed_at":"2018-12-15T08:57:28Z","git_url":"git://github.com/koyablue/freemarket_sample_40d.git","ssh_url":"git@github.com:koyablue/freemarket_sample_40d.git","clone_url":"https://github.com/koyablue/freemarket_sample_40d.git","svn_url":"https://github.com/koyablue/freemarket_sample_40d","homepage":"","size":213,"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":2,"mirror_url":null,"archived":false,"open_issues_count":1,"license":null,"forks":2,"open_issues":1,"watchers":0,"default_branch":"master"}},"base":{"label":"koyablue:master","ref":"master","sha":"08cec2cd004368bf866f254b1a9478acf53fcbda","user":{"login":"koyablue","id":43242050,"node_id":"MDQ6VXNlcjQzMjQyMDUw","avatar_url":"https://avatars1.githubusercontent.com/u/43242050?v=4","gravatar_id":"","url":"https://api.github.com/users/koyablue","html_url":"https://github.com/koyablue","followers_url":"https://api.github.com/users/koyablue/followers","following_url":"https://api.github.com/users/koyablue/following{/other_user}","gists_url":"https://api.github.com/users/koyablue/gists{/gist_id}","starred_url":"https://api.github.com/users/koyablue/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/koyablue/subscriptions","organizations_url":"https://api.github.com/users/koyablue/orgs","repos_url":"https://api.github.com/users/koyablue/repos","events_url":"https://api.github.com/users/koyablue/events{/privacy}","received_events_url":"https://api.github.com/users/koyablue/received_events","type":"User","site_admin":false},"repo":{"id":161271893,"node_id":"MDEwOlJlcG9zaXRvcnkxNjEyNzE4OTM=","name":"freemarket_sample_40d","full_name":"koyablue/freemarket_sample_40d","private":false,"owner":{"login":"koyablue","id":43242050,"node_id":"MDQ6VXNlcjQzMjQyMDUw","avatar_url":"https://avatars1.githubusercontent.com/u/43242050?v=4","gravatar_id":"","url":"https://api.github.com/users/koyablue","html_url":"https://github.com/koyablue","followers_url":"https://api.github.com/users/koyablue/followers","following_url":"https://api.github.com/users/koyablue/following{/other_user}","gists_url":"https://api.github.com/users/koyablue/gists{/gist_id}","starred_url":"https://api.github.com/users/koyablue/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/koyablue/subscriptions","organizations_url":"https://api.github.com/users/koyablue/orgs","repos_url":"https://api.github.com/users/koyablue/repos","events_url":"https://api.github.com/users/koyablue/events{/privacy}","received_events_url":"https://api.github.com/users/koyablue/received_events","type":"User","site_admin":false},"html_url":"https://github.com/koyablue/freemarket_sample_40d","description":"TECH::EXPERT 40期 最終課題","fork":false,"url":"https://api.github.com/repos/koyablue/freemarket_sample_40d","forks_url":"https://api.github.com/repos/koyablue/freemarket_sample_40d/forks","keys_url":"https://api.github.com/repos/koyablue/freemarket_sample_40d/keys{/key_id}","collaborators_url":"https://api.github.com/repos/koyablue/freemarket_sample_40d/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/koyablue/freemarket_sample_40d/teams","hooks_url":"https://api.github.com/repos/koyablue/freemarket_sample_40d/hooks","issue_events_url":"https://api.github.com/repos/koyablue/freemarket_sample_40d/issues/events{/number}","events_url":"https://api.github.com/repos/koyablue/freemarket_sample_40d/events","assignees_url":"https://api.github.com/repos/koyablue/freemarket_sample_40d/assignees{/user}","branches_url":"https://api.github.com/repos/koyablue/freemarket_sample_40d/branches{/branch}","tags_url":"https://api.github.com/repos/koyablue/freemarket_sample_40d/tags","blobs_url":"https://api.github.com/repos/koyablue/freemarket_sample_40d/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/koyablue/freemarket_sample_40d/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/koyablue/freemarket_sample_40d/git/refs{/sha}","trees_url":"https://api.github.com/repos/koyablue/freemarket_sample_40d/git/trees{/sha}","statuses_url":"https://api.github.com/repos/koyablue/freemarket_sample_40d/statuses/{sha}","languages_url":"https://api.github.com/repos/koyablue/freemarket_sample_40d/languages","stargazers_url":"https://api.github.com/repos/koyablue/freemarket_sample_40d/stargazers","contributors_url":"https://api.github.com/repos/koyablue/freemarket_sample_40d/contributors","subscribers_url":"https://api.github.com/repos/koyablue/freemarket_sample_40d/subscribers","subscription_url":"https://api.github.com/repos/koyablue/freemarket_sample_40d/subscription","commits_url":"https://api.github.com/repos/koyablue/freemarket_sample_40d/commits{/sha}","git_commits_url":"https://api.github.com/repos/koyablue/freemarket_sample_40d/git/commits{/sha}","comments_url":"https://api.github.com/repos/koyablue/freemarket_sample_40d/comments{/number}","issue_comment_url":"https://api.github.com/repos/koyablue/freemarket_sample_40d/issues/comments{/number}","contents_url":"https://api.github.com/repos/koyablue/freemarket_sample_40d/contents/{+path}","compare_url":"https://api.github.com/repos/koyablue/freemarket_sample_40d/compare/{base}...{head}","merges_url":"https://api.github.com/repos/koyablue/freemarket_sample_40d/merges","archive_url":"https://api.github.com/repos/koyablue/freemarket_sample_40d/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/koyablue/freemarket_sample_40d/downloads","issues_url":"https://api.github.com/repos/koyablue/freemarket_sample_40d/issues{/number}","pulls_url":"https://api.github.com/repos/koyablue/freemarket_sample_40d/pulls{/number}","milestones_url":"https://api.github.com/repos/koyablue/freemarket_sample_40d/milestones{/number}","notifications_url":"https://api.github.com/repos/koyablue/freemarket_sample_40d/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/koyablue/freemarket_sample_40d/labels{/name}","releases_url":"https://api.github.com/repos/koyablue/freemarket_sample_40d/releases{/id}","deployments_url":"https://api.github.com/repos/koyablue/freemarket_sample_40d/deployments","created_at":"2018-12-11T03:29:48Z","updated_at":"2018-12-15T06:50:55Z","pushed_at":"2018-12-15T08:57:28Z","git_url":"git://github.com/koyablue/freemarket_sample_40d.git","ssh_url":"git@github.com:koyablue/freemarket_sample_40d.git","clone_url":"https://github.com/koyablue/freemarket_sample_40d.git","svn_url":"https://github.com/koyablue/freemarket_sample_40d","homepage":"","size":213,"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":2,"mirror_url":null,"archived":false,"open_issues_count":1,"license":null,"forks":2,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/koyablue/freemarket_sample_40d/pulls/12"},"html":{"href":"https://github.com/koyablue/freemarket_sample_40d/pull/12"},"issue":{"href":"https://api.github.com/repos/koyablue/freemarket_sample_40d/issues/12"},"comments":{"href":"https://api.github.com/repos/koyablue/freemarket_sample_40d/issues/12/comments"},"review_comments":{"href":"https://api.github.com/repos/koyablue/freemarket_sample_40d/pulls/12/comments"},"review_comment":{"href":"https://api.github.com/repos/koyablue/freemarket_sample_40d/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/koyablue/freemarket_sample_40d/pulls/12/commits"},"statuses":{"href":"https://api.github.com/repos/koyablue/freemarket_sample_40d/statuses/45ea12be24dbec9099908b841045e90d2fe70996"}},"author_association":"OWNER"}}
{"actor":{"display_login":"kuroko918"}}