{"action":"created","comment":{"url":"https://api.github.com/repos/hironori-tsukishima/mercari-copy-c/pulls/comments/240988535","pull_request_review_id":184144805,"id":240988535,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDI0MDk4ODUzNQ==","diff_hunk":"@@ -13,6 +13,155 @@ Things you may want to cover:\n \n * Database creation\n \n+## usersテーブル\n+|Column|Type|Options|\n+|------|----|-------|\n+|nickname|string|null: false|\n+|email|string|null: false|\n+|password|string|null: false|\n+\n+### Association\n+- has_many :items\n+- has_many :snses\n+- has_many :comments\n+- has_many :messages\n+- has_many :likes\n+- has_many :user_reviewes\n+- has_one :credit\n+- has_one :profile\n+\n+\n+## profileテーブル\n+|Column|Type|Options|\n+|------|----|-------|\n+|user_id|references|foreign_key: true|\n+|first_name|string|null: false|\n+|last_name|string|null: false|\n+|first_name_kana|string|null: false|\n+|last_name_kana|string|null: false|\n+|postal_codes|integer|null: false|\n+|region|string|null: false|\n+|city|string|null: false|\n+|adress|string||null: false|\n+|building_name|string|\n+|tell|integer|\n+|image|string|\n+|profile_text|text|\n+|birth_date|date|\n+\n+### Association\n+- has_one :user\n+\n+\n+## user_reviewテーブル\n+|Column|Type|Options|\n+|------|----|-------|\n+|buyer_id|references| class_name: \"User\"|\n+|seller_id|references| class_name: \"User\"|\n+|review|text|null: false|\n+\n+### Association\n+- belongs_to :user\n+\n+\n+## creditテーブル\n+|Column|Type|Options|\n+|------|----|-------|\n+|number|integer|null: false, unique: true|\n+|code|integer|null: false, unique: true|\n+|year_month|string|null: false, unique: true|\n+|user_id|references| foreign_key: true|\n+\n+### Association\n+- has_one :user\n+\n+\n+## snsesテーブル\n+|Column|Type|Options|\n+|------|----|-------|\n+|uid|string|null: false|\n+|provider|string|null: false|\n+|user_id|references| foreign_key: true|\n+|access_token|string|\n+|access_secret|string|\n+\n+### Association\n+- belongs_to :user\n+\n+\n+## likesテーブル\n+|Column|Type|Options|\n+|------|----|-------|\n+|item_id|references| foreign_key: true|\n+|user_id|references| foreign_key: true|\n+\n+### Association\n+- belongs_to :user\n+- belongs_to :item\n+\n+\n+## commentsテーブル\n+|Column|Type|Options|\n+|------|----|-------|\n+|comment|text|null: false|","path":"README.md","position":null,"original_position":94,"commit_id":"eed27d3b5fae593b8b5ce6892b8bfb832b10cb8a","original_commit_id":"d660cb37044136c872a2646cd77eba00be92bef1","user":{"login":"hidenari-ueno","id":44520933,"node_id":"MDQ6VXNlcjQ0NTIwOTMz","avatar_url":"https://avatars2.githubusercontent.com/u/44520933?v=4","gravatar_id":"","url":"https://api.github.com/users/hidenari-ueno","html_url":"https://github.com/hidenari-ueno","followers_url":"https://api.github.com/users/hidenari-ueno/followers","following_url":"https://api.github.com/users/hidenari-ueno/following{/other_user}","gists_url":"https://api.github.com/users/hidenari-ueno/gists{/gist_id}","starred_url":"https://api.github.com/users/hidenari-ueno/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hidenari-ueno/subscriptions","organizations_url":"https://api.github.com/users/hidenari-ueno/orgs","repos_url":"https://api.github.com/users/hidenari-ueno/repos","events_url":"https://api.github.com/users/hidenari-ueno/events{/privacy}","received_events_url":"https://api.github.com/users/hidenari-ueno/received_events","type":"User","site_admin":false},"body":"なるほど、わかりました！","created_at":"2018-12-12T12:06:10Z","updated_at":"2018-12-12T12:06:10Z","html_url":"https://github.com/hironori-tsukishima/mercari-copy-c/pull/4#discussion_r240988535","pull_request_url":"https://api.github.com/repos/hironori-tsukishima/mercari-copy-c/pulls/4","author_association":"NONE","_links":{"self":{"href":"https://api.github.com/repos/hironori-tsukishima/mercari-copy-c/pulls/comments/240988535"},"html":{"href":"https://github.com/hironori-tsukishima/mercari-copy-c/pull/4#discussion_r240988535"},"pull_request":{"href":"https://api.github.com/repos/hironori-tsukishima/mercari-copy-c/pulls/4"}},"in_reply_to_id":240974611},"pull_request":{"url":"https://api.github.com/repos/hironori-tsukishima/mercari-copy-c/pulls/4","id":237987795,"node_id":"MDExOlB1bGxSZXF1ZXN0MjM3OTg3Nzk1","html_url":"https://github.com/hironori-tsukishima/mercari-copy-c/pull/4","diff_url":"https://github.com/hironori-tsukishima/mercari-copy-c/pull/4.diff","patch_url":"https://github.com/hironori-tsukishima/mercari-copy-c/pull/4.patch","issue_url":"https://api.github.com/repos/hironori-tsukishima/mercari-copy-c/issues/4","number":4,"state":"open","locked":false,"title":"Edit README","user":{"login":"kss27thgen","id":44834419,"node_id":"MDQ6VXNlcjQ0ODM0NDE5","avatar_url":"https://avatars1.githubusercontent.com/u/44834419?v=4","gravatar_id":"","url":"https://api.github.com/users/kss27thgen","html_url":"https://github.com/kss27thgen","followers_url":"https://api.github.com/users/kss27thgen/followers","following_url":"https://api.github.com/users/kss27thgen/following{/other_user}","gists_url":"https://api.github.com/users/kss27thgen/gists{/gist_id}","starred_url":"https://api.github.com/users/kss27thgen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kss27thgen/subscriptions","organizations_url":"https://api.github.com/users/kss27thgen/orgs","repos_url":"https://api.github.com/users/kss27thgen/repos","events_url":"https://api.github.com/users/kss27thgen/events{/privacy}","received_events_url":"https://api.github.com/users/kss27thgen/received_events","type":"User","site_admin":false},"body":"## what\r\nDBの設計に関してREADMEを編集\r\n## why\r\n必須の作業のため","created_at":"2018-12-12T10:37:19Z","updated_at":"2018-12-12T12:06:10Z","closed_at":null,"merged_at":null,"merge_commit_sha":"92bfd5883ddd8d81ead8130f643b9bc91a0a6741","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/hironori-tsukishima/mercari-copy-c/pulls/4/commits","review_comments_url":"https://api.github.com/repos/hironori-tsukishima/mercari-copy-c/pulls/4/comments","review_comment_url":"https://api.github.com/repos/hironori-tsukishima/mercari-copy-c/pulls/comments{/number}","comments_url":"https://api.github.com/repos/hironori-tsukishima/mercari-copy-c/issues/4/comments","statuses_url":"https://api.github.com/repos/hironori-tsukishima/mercari-copy-c/statuses/eed27d3b5fae593b8b5ce6892b8bfb832b10cb8a","head":{"label":"kss27thgen:edti-readme","ref":"edti-readme","sha":"eed27d3b5fae593b8b5ce6892b8bfb832b10cb8a","user":{"login":"kss27thgen","id":44834419,"node_id":"MDQ6VXNlcjQ0ODM0NDE5","avatar_url":"https://avatars1.githubusercontent.com/u/44834419?v=4","gravatar_id":"","url":"https://api.github.com/users/kss27thgen","html_url":"https://github.com/kss27thgen","followers_url":"https://api.github.com/users/kss27thgen/followers","following_url":"https://api.github.com/users/kss27thgen/following{/other_user}","gists_url":"https://api.github.com/users/kss27thgen/gists{/gist_id}","starred_url":"https://api.github.com/users/kss27thgen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kss27thgen/subscriptions","organizations_url":"https://api.github.com/users/kss27thgen/orgs","repos_url":"https://api.github.com/users/kss27thgen/repos","events_url":"https://api.github.com/users/kss27thgen/events{/privacy}","received_events_url":"https://api.github.com/users/kss27thgen/received_events","type":"User","site_admin":false},"repo":{"id":161447460,"node_id":"MDEwOlJlcG9zaXRvcnkxNjE0NDc0NjA=","name":"mercari-copy-c","full_name":"kss27thgen/mercari-copy-c","private":false,"owner":{"login":"kss27thgen","id":44834419,"node_id":"MDQ6VXNlcjQ0ODM0NDE5","avatar_url":"https://avatars1.githubusercontent.com/u/44834419?v=4","gravatar_id":"","url":"https://api.github.com/users/kss27thgen","html_url":"https://github.com/kss27thgen","followers_url":"https://api.github.com/users/kss27thgen/followers","following_url":"https://api.github.com/users/kss27thgen/following{/other_user}","gists_url":"https://api.github.com/users/kss27thgen/gists{/gist_id}","starred_url":"https://api.github.com/users/kss27thgen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kss27thgen/subscriptions","organizations_url":"https://api.github.com/users/kss27thgen/orgs","repos_url":"https://api.github.com/users/kss27thgen/repos","events_url":"https://api.github.com/users/kss27thgen/events{/privacy}","received_events_url":"https://api.github.com/users/kss27thgen/received_events","type":"User","site_admin":false},"html_url":"https://github.com/kss27thgen/mercari-copy-c","description":null,"fork":true,"url":"https://api.github.com/repos/kss27thgen/mercari-copy-c","forks_url":"https://api.github.com/repos/kss27thgen/mercari-copy-c/forks","keys_url":"https://api.github.com/repos/kss27thgen/mercari-copy-c/keys{/key_id}","collaborators_url":"https://api.github.com/repos/kss27thgen/mercari-copy-c/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/kss27thgen/mercari-copy-c/teams","hooks_url":"https://api.github.com/repos/kss27thgen/mercari-copy-c/hooks","issue_events_url":"https://api.github.com/repos/kss27thgen/mercari-copy-c/issues/events{/number}","events_url":"https://api.github.com/repos/kss27thgen/mercari-copy-c/events","assignees_url":"https://api.github.com/repos/kss27thgen/mercari-copy-c/assignees{/user}","branches_url":"https://api.github.com/repos/kss27thgen/mercari-copy-c/branches{/branch}","tags_url":"https://api.github.com/repos/kss27thgen/mercari-copy-c/tags","blobs_url":"https://api.github.com/repos/kss27thgen/mercari-copy-c/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/kss27thgen/mercari-copy-c/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/kss27thgen/mercari-copy-c/git/refs{/sha}","trees_url":"https://api.github.com/repos/kss27thgen/mercari-copy-c/git/trees{/sha}","statuses_url":"https://api.github.com/repos/kss27thgen/mercari-copy-c/statuses/{sha}","languages_url":"https://api.github.com/repos/kss27thgen/mercari-copy-c/languages","stargazers_url":"https://api.github.com/repos/kss27thgen/mercari-copy-c/stargazers","contributors_url":"https://api.github.com/repos/kss27thgen/mercari-copy-c/contributors","subscribers_url":"https://api.github.com/repos/kss27thgen/mercari-copy-c/subscribers","subscription_url":"https://api.github.com/repos/kss27thgen/mercari-copy-c/subscription","commits_url":"https://api.github.com/repos/kss27thgen/mercari-copy-c/commits{/sha}","git_commits_url":"https://api.github.com/repos/kss27thgen/mercari-copy-c/git/commits{/sha}","comments_url":"https://api.github.com/repos/kss27thgen/mercari-copy-c/comments{/number}","issue_comment_url":"https://api.github.com/repos/kss27thgen/mercari-copy-c/issues/comments{/number}","contents_url":"https://api.github.com/repos/kss27thgen/mercari-copy-c/contents/{+path}","compare_url":"https://api.github.com/repos/kss27thgen/mercari-copy-c/compare/{base}...{head}","merges_url":"https://api.github.com/repos/kss27thgen/mercari-copy-c/merges","archive_url":"https://api.github.com/repos/kss27thgen/mercari-copy-c/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/kss27thgen/mercari-copy-c/downloads","issues_url":"https://api.github.com/repos/kss27thgen/mercari-copy-c/issues{/number}","pulls_url":"https://api.github.com/repos/kss27thgen/mercari-copy-c/pulls{/number}","milestones_url":"https://api.github.com/repos/kss27thgen/mercari-copy-c/milestones{/number}","notifications_url":"https://api.github.com/repos/kss27thgen/mercari-copy-c/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/kss27thgen/mercari-copy-c/labels{/name}","releases_url":"https://api.github.com/repos/kss27thgen/mercari-copy-c/releases{/id}","deployments_url":"https://api.github.com/repos/kss27thgen/mercari-copy-c/deployments","created_at":"2018-12-12T07:10:55Z","updated_at":"2018-12-12T07:10:57Z","pushed_at":"2018-12-12T11:42:15Z","git_url":"git://github.com/kss27thgen/mercari-copy-c.git","ssh_url":"git@github.com:kss27thgen/mercari-copy-c.git","clone_url":"https://github.com/kss27thgen/mercari-copy-c.git","svn_url":"https://github.com/kss27thgen/mercari-copy-c","homepage":null,"size":23,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":0,"license":null,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"hironori-tsukishima:master","ref":"master","sha":"3b8784ead0699555be8832dcfd7e20e4d36bcf5d","user":{"login":"hironori-tsukishima","id":44799065,"node_id":"MDQ6VXNlcjQ0Nzk5MDY1","avatar_url":"https://avatars1.githubusercontent.com/u/44799065?v=4","gravatar_id":"","url":"https://api.github.com/users/hironori-tsukishima","html_url":"https://github.com/hironori-tsukishima","followers_url":"https://api.github.com/users/hironori-tsukishima/followers","following_url":"https://api.github.com/users/hironori-tsukishima/following{/other_user}","gists_url":"https://api.github.com/users/hironori-tsukishima/gists{/gist_id}","starred_url":"https://api.github.com/users/hironori-tsukishima/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hironori-tsukishima/subscriptions","organizations_url":"https://api.github.com/users/hironori-tsukishima/orgs","repos_url":"https://api.github.com/users/hironori-tsukishima/repos","events_url":"https://api.github.com/users/hironori-tsukishima/events{/privacy}","received_events_url":"https://api.github.com/users/hironori-tsukishima/received_events","type":"User","site_admin":false},"repo":{"id":161446276,"node_id":"MDEwOlJlcG9zaXRvcnkxNjE0NDYyNzY=","name":"mercari-copy-c","full_name":"hironori-tsukishima/mercari-copy-c","private":false,"owner":{"login":"hironori-tsukishima","id":44799065,"node_id":"MDQ6VXNlcjQ0Nzk5MDY1","avatar_url":"https://avatars1.githubusercontent.com/u/44799065?v=4","gravatar_id":"","url":"https://api.github.com/users/hironori-tsukishima","html_url":"https://github.com/hironori-tsukishima","followers_url":"https://api.github.com/users/hironori-tsukishima/followers","following_url":"https://api.github.com/users/hironori-tsukishima/following{/other_user}","gists_url":"https://api.github.com/users/hironori-tsukishima/gists{/gist_id}","starred_url":"https://api.github.com/users/hironori-tsukishima/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hironori-tsukishima/subscriptions","organizations_url":"https://api.github.com/users/hironori-tsukishima/orgs","repos_url":"https://api.github.com/users/hironori-tsukishima/repos","events_url":"https://api.github.com/users/hironori-tsukishima/events{/privacy}","received_events_url":"https://api.github.com/users/hironori-tsukishima/received_events","type":"User","site_admin":false},"html_url":"https://github.com/hironori-tsukishima/mercari-copy-c","description":null,"fork":false,"url":"https://api.github.com/repos/hironori-tsukishima/mercari-copy-c","forks_url":"https://api.github.com/repos/hironori-tsukishima/mercari-copy-c/forks","keys_url":"https://api.github.com/repos/hironori-tsukishima/mercari-copy-c/keys{/key_id}","collaborators_url":"https://api.github.com/repos/hironori-tsukishima/mercari-copy-c/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/hironori-tsukishima/mercari-copy-c/teams","hooks_url":"https://api.github.com/repos/hironori-tsukishima/mercari-copy-c/hooks","issue_events_url":"https://api.github.com/repos/hironori-tsukishima/mercari-copy-c/issues/events{/number}","events_url":"https://api.github.com/repos/hironori-tsukishima/mercari-copy-c/events","assignees_url":"https://api.github.com/repos/hironori-tsukishima/mercari-copy-c/assignees{/user}","branches_url":"https://api.github.com/repos/hironori-tsukishima/mercari-copy-c/branches{/branch}","tags_url":"https://api.github.com/repos/hironori-tsukishima/mercari-copy-c/tags","blobs_url":"https://api.github.com/repos/hironori-tsukishima/mercari-copy-c/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/hironori-tsukishima/mercari-copy-c/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/hironori-tsukishima/mercari-copy-c/git/refs{/sha}","trees_url":"https://api.github.com/repos/hironori-tsukishima/mercari-copy-c/git/trees{/sha}","statuses_url":"https://api.github.com/repos/hironori-tsukishima/mercari-copy-c/statuses/{sha}","languages_url":"https://api.github.com/repos/hironori-tsukishima/mercari-copy-c/languages","stargazers_url":"https://api.github.com/repos/hironori-tsukishima/mercari-copy-c/stargazers","contributors_url":"https://api.github.com/repos/hironori-tsukishima/mercari-copy-c/contributors","subscribers_url":"https://api.github.com/repos/hironori-tsukishima/mercari-copy-c/subscribers","subscription_url":"https://api.github.com/repos/hironori-tsukishima/mercari-copy-c/subscription","commits_url":"https://api.github.com/repos/hironori-tsukishima/mercari-copy-c/commits{/sha}","git_commits_url":"https://api.github.com/repos/hironori-tsukishima/mercari-copy-c/git/commits{/sha}","comments_url":"https://api.github.com/repos/hironori-tsukishima/mercari-copy-c/comments{/number}","issue_comment_url":"https://api.github.com/repos/hironori-tsukishima/mercari-copy-c/issues/comments{/number}","contents_url":"https://api.github.com/repos/hironori-tsukishima/mercari-copy-c/contents/{+path}","compare_url":"https://api.github.com/repos/hironori-tsukishima/mercari-copy-c/compare/{base}...{head}","merges_url":"https://api.github.com/repos/hironori-tsukishima/mercari-copy-c/merges","archive_url":"https://api.github.com/repos/hironori-tsukishima/mercari-copy-c/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/hironori-tsukishima/mercari-copy-c/downloads","issues_url":"https://api.github.com/repos/hironori-tsukishima/mercari-copy-c/issues{/number}","pulls_url":"https://api.github.com/repos/hironori-tsukishima/mercari-copy-c/pulls{/number}","milestones_url":"https://api.github.com/repos/hironori-tsukishima/mercari-copy-c/milestones{/number}","notifications_url":"https://api.github.com/repos/hironori-tsukishima/mercari-copy-c/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/hironori-tsukishima/mercari-copy-c/labels{/name}","releases_url":"https://api.github.com/repos/hironori-tsukishima/mercari-copy-c/releases{/id}","deployments_url":"https://api.github.com/repos/hironori-tsukishima/mercari-copy-c/deployments","created_at":"2018-12-12T07:00:27Z","updated_at":"2018-12-12T11:41:35Z","pushed_at":"2018-12-12T11:42:17Z","git_url":"git://github.com/hironori-tsukishima/mercari-copy-c.git","ssh_url":"git@github.com:hironori-tsukishima/mercari-copy-c.git","clone_url":"https://github.com/hironori-tsukishima/mercari-copy-c.git","svn_url":"https://github.com/hironori-tsukishima/mercari-copy-c","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":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/hironori-tsukishima/mercari-copy-c/pulls/4"},"html":{"href":"https://github.com/hironori-tsukishima/mercari-copy-c/pull/4"},"issue":{"href":"https://api.github.com/repos/hironori-tsukishima/mercari-copy-c/issues/4"},"comments":{"href":"https://api.github.com/repos/hironori-tsukishima/mercari-copy-c/issues/4/comments"},"review_comments":{"href":"https://api.github.com/repos/hironori-tsukishima/mercari-copy-c/pulls/4/comments"},"review_comment":{"href":"https://api.github.com/repos/hironori-tsukishima/mercari-copy-c/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/hironori-tsukishima/mercari-copy-c/pulls/4/commits"},"statuses":{"href":"https://api.github.com/repos/hironori-tsukishima/mercari-copy-c/statuses/eed27d3b5fae593b8b5ce6892b8bfb832b10cb8a"}},"author_association":"NONE"}}
{"actor":{"display_login":"hidenari-ueno"}}