{"action":"created","comment":{"url":"https://api.github.com/repos/htmlacademy-php/869551-yeticave/pulls/comments/240034186","pull_request_review_id":182975794,"id":240034186,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDI0MDAzNDE4Ng==","diff_hunk":"@@ -0,0 +1,49 @@\n+CREATE DATABASE yeticave\n+\tDEFAULT CHARACTER SET utf8\n+\tDEFAULT COLLATE utf8_general_ci;\n+ \n+ \n+USE yeticave;\n+\n+\n+CREATE TABLE categories(\n+\tid INT AUTO_INCREMENT PRIMARY KEY,\n+\tname VARCHAR(255) NOT NULL UNIQUE\n+);\n+\n+CREATE TABLE lots(\n+\tid INT AUTO_INCREMENT PRIMARY KEY,\n+\tuser_id INT NOT NULL,\n+\twinner_id INT NULL,\n+\tcategory_id INT NOT NULL,\n+\tcreate_time TIMESTAMP DEFAULT CURRENT_TIMESTAMP,\n+\ttitle VARCHAR(255) NOT NULL,\n+\tdescription VARCHAR(255) NOT NULL,\n+  image VARCHAR(255) NOT NULL,\n+\tprice INT NOT NULL,\n+\tend_time TIMESTAMP NOT NULL,\n+  increment_rate INT NOT NULL\n+);\n+\n+CREATE TABLE rates(\n+\tid INT AUTO_INCREMENT PRIMARY KEY,\n+\tuser_id INT NOT NULL,\n+\tlot_id INT NOT NULL,\n+\tamount INT NOT NULL,\n+\tcreate_time TIMESTAMP DEFAULT CURRENT_TIMESTAMP,\n+);\n+\n+CREATE INDEX user_id_idx ON rates(user_id);\n+CREATE INDEX lot_id_idx ON rstes(lot_id);","path":"schema.sql","position":37,"original_position":37,"commit_id":"138accd581262495d77660f3a7942662a1f5f3bb","original_commit_id":"138accd581262495d77660f3a7942662a1f5f3bb","user":{"login":"sergeivl","id":15172324,"node_id":"MDQ6VXNlcjE1MTcyMzI0","avatar_url":"https://avatars1.githubusercontent.com/u/15172324?v=4","gravatar_id":"","url":"https://api.github.com/users/sergeivl","html_url":"https://github.com/sergeivl","followers_url":"https://api.github.com/users/sergeivl/followers","following_url":"https://api.github.com/users/sergeivl/following{/other_user}","gists_url":"https://api.github.com/users/sergeivl/gists{/gist_id}","starred_url":"https://api.github.com/users/sergeivl/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sergeivl/subscriptions","organizations_url":"https://api.github.com/users/sergeivl/orgs","repos_url":"https://api.github.com/users/sergeivl/repos","events_url":"https://api.github.com/users/sergeivl/events{/privacy}","received_events_url":"https://api.github.com/users/sergeivl/received_events","type":"User","site_admin":false},"body":"Исправь rstes на rates","created_at":"2018-12-09T12:06:18Z","updated_at":"2018-12-09T12:06:18Z","html_url":"https://github.com/htmlacademy-php/869551-yeticave/pull/7#discussion_r240034186","pull_request_url":"https://api.github.com/repos/htmlacademy-php/869551-yeticave/pulls/7","author_association":"NONE","_links":{"self":{"href":"https://api.github.com/repos/htmlacademy-php/869551-yeticave/pulls/comments/240034186"},"html":{"href":"https://github.com/htmlacademy-php/869551-yeticave/pull/7#discussion_r240034186"},"pull_request":{"href":"https://api.github.com/repos/htmlacademy-php/869551-yeticave/pulls/7"}}},"pull_request":{"url":"https://api.github.com/repos/htmlacademy-php/869551-yeticave/pulls/7","id":236962317,"node_id":"MDExOlB1bGxSZXF1ZXN0MjM2OTYyMzE3","html_url":"https://github.com/htmlacademy-php/869551-yeticave/pull/7","diff_url":"https://github.com/htmlacademy-php/869551-yeticave/pull/7.diff","patch_url":"https://github.com/htmlacademy-php/869551-yeticave/pull/7.patch","issue_url":"https://api.github.com/repos/htmlacademy-php/869551-yeticave/issues/7","number":7,"state":"open","locked":false,"title":"Создание схемы БД личного проекта","user":{"login":"juliaJS","id":44973324,"node_id":"MDQ6VXNlcjQ0OTczMzI0","avatar_url":"https://avatars3.githubusercontent.com/u/44973324?v=4","gravatar_id":"","url":"https://api.github.com/users/juliaJS","html_url":"https://github.com/juliaJS","followers_url":"https://api.github.com/users/juliaJS/followers","following_url":"https://api.github.com/users/juliaJS/following{/other_user}","gists_url":"https://api.github.com/users/juliaJS/gists{/gist_id}","starred_url":"https://api.github.com/users/juliaJS/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/juliaJS/subscriptions","organizations_url":"https://api.github.com/users/juliaJS/orgs","repos_url":"https://api.github.com/users/juliaJS/repos","events_url":"https://api.github.com/users/juliaJS/events{/privacy}","received_events_url":"https://api.github.com/users/juliaJS/received_events","type":"User","site_admin":false},"body":"\n\n---\n:mortar_board: [Создание схемы БД личного проекта](https://up.htmlacademy.ru/php/7/user/869551/tasks/9)","created_at":"2018-12-07T18:57:20Z","updated_at":"2018-12-09T12:06:18Z","closed_at":null,"merged_at":null,"merge_commit_sha":"b6e1642e99111ebe9c34a8a15cc31a5c1b6b97bb","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/htmlacademy-php/869551-yeticave/pulls/7/commits","review_comments_url":"https://api.github.com/repos/htmlacademy-php/869551-yeticave/pulls/7/comments","review_comment_url":"https://api.github.com/repos/htmlacademy-php/869551-yeticave/pulls/comments{/number}","comments_url":"https://api.github.com/repos/htmlacademy-php/869551-yeticave/issues/7/comments","statuses_url":"https://api.github.com/repos/htmlacademy-php/869551-yeticave/statuses/138accd581262495d77660f3a7942662a1f5f3bb","head":{"label":"juliaJS:module4-task1","ref":"module4-task1","sha":"138accd581262495d77660f3a7942662a1f5f3bb","user":{"login":"juliaJS","id":44973324,"node_id":"MDQ6VXNlcjQ0OTczMzI0","avatar_url":"https://avatars3.githubusercontent.com/u/44973324?v=4","gravatar_id":"","url":"https://api.github.com/users/juliaJS","html_url":"https://github.com/juliaJS","followers_url":"https://api.github.com/users/juliaJS/followers","following_url":"https://api.github.com/users/juliaJS/following{/other_user}","gists_url":"https://api.github.com/users/juliaJS/gists{/gist_id}","starred_url":"https://api.github.com/users/juliaJS/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/juliaJS/subscriptions","organizations_url":"https://api.github.com/users/juliaJS/orgs","repos_url":"https://api.github.com/users/juliaJS/repos","events_url":"https://api.github.com/users/juliaJS/events{/privacy}","received_events_url":"https://api.github.com/users/juliaJS/received_events","type":"User","site_admin":false},"repo":{"id":157743726,"node_id":"MDEwOlJlcG9zaXRvcnkxNTc3NDM3MjY=","name":"869551-yeticave","full_name":"juliaJS/869551-yeticave","private":false,"owner":{"login":"juliaJS","id":44973324,"node_id":"MDQ6VXNlcjQ0OTczMzI0","avatar_url":"https://avatars3.githubusercontent.com/u/44973324?v=4","gravatar_id":"","url":"https://api.github.com/users/juliaJS","html_url":"https://github.com/juliaJS","followers_url":"https://api.github.com/users/juliaJS/followers","following_url":"https://api.github.com/users/juliaJS/following{/other_user}","gists_url":"https://api.github.com/users/juliaJS/gists{/gist_id}","starred_url":"https://api.github.com/users/juliaJS/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/juliaJS/subscriptions","organizations_url":"https://api.github.com/users/juliaJS/orgs","repos_url":"https://api.github.com/users/juliaJS/repos","events_url":"https://api.github.com/users/juliaJS/events{/privacy}","received_events_url":"https://api.github.com/users/juliaJS/received_events","type":"User","site_admin":false},"html_url":"https://github.com/juliaJS/869551-yeticave","description":"Iuliia Kiseleva","fork":true,"url":"https://api.github.com/repos/juliaJS/869551-yeticave","forks_url":"https://api.github.com/repos/juliaJS/869551-yeticave/forks","keys_url":"https://api.github.com/repos/juliaJS/869551-yeticave/keys{/key_id}","collaborators_url":"https://api.github.com/repos/juliaJS/869551-yeticave/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/juliaJS/869551-yeticave/teams","hooks_url":"https://api.github.com/repos/juliaJS/869551-yeticave/hooks","issue_events_url":"https://api.github.com/repos/juliaJS/869551-yeticave/issues/events{/number}","events_url":"https://api.github.com/repos/juliaJS/869551-yeticave/events","assignees_url":"https://api.github.com/repos/juliaJS/869551-yeticave/assignees{/user}","branches_url":"https://api.github.com/repos/juliaJS/869551-yeticave/branches{/branch}","tags_url":"https://api.github.com/repos/juliaJS/869551-yeticave/tags","blobs_url":"https://api.github.com/repos/juliaJS/869551-yeticave/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/juliaJS/869551-yeticave/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/juliaJS/869551-yeticave/git/refs{/sha}","trees_url":"https://api.github.com/repos/juliaJS/869551-yeticave/git/trees{/sha}","statuses_url":"https://api.github.com/repos/juliaJS/869551-yeticave/statuses/{sha}","languages_url":"https://api.github.com/repos/juliaJS/869551-yeticave/languages","stargazers_url":"https://api.github.com/repos/juliaJS/869551-yeticave/stargazers","contributors_url":"https://api.github.com/repos/juliaJS/869551-yeticave/contributors","subscribers_url":"https://api.github.com/repos/juliaJS/869551-yeticave/subscribers","subscription_url":"https://api.github.com/repos/juliaJS/869551-yeticave/subscription","commits_url":"https://api.github.com/repos/juliaJS/869551-yeticave/commits{/sha}","git_commits_url":"https://api.github.com/repos/juliaJS/869551-yeticave/git/commits{/sha}","comments_url":"https://api.github.com/repos/juliaJS/869551-yeticave/comments{/number}","issue_comment_url":"https://api.github.com/repos/juliaJS/869551-yeticave/issues/comments{/number}","contents_url":"https://api.github.com/repos/juliaJS/869551-yeticave/contents/{+path}","compare_url":"https://api.github.com/repos/juliaJS/869551-yeticave/compare/{base}...{head}","merges_url":"https://api.github.com/repos/juliaJS/869551-yeticave/merges","archive_url":"https://api.github.com/repos/juliaJS/869551-yeticave/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/juliaJS/869551-yeticave/downloads","issues_url":"https://api.github.com/repos/juliaJS/869551-yeticave/issues{/number}","pulls_url":"https://api.github.com/repos/juliaJS/869551-yeticave/pulls{/number}","milestones_url":"https://api.github.com/repos/juliaJS/869551-yeticave/milestones{/number}","notifications_url":"https://api.github.com/repos/juliaJS/869551-yeticave/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/juliaJS/869551-yeticave/labels{/name}","releases_url":"https://api.github.com/repos/juliaJS/869551-yeticave/releases{/id}","deployments_url":"https://api.github.com/repos/juliaJS/869551-yeticave/deployments","created_at":"2018-11-15T16:51:56Z","updated_at":"2018-11-17T03:31:09Z","pushed_at":"2018-12-09T12:02:15Z","git_url":"git://github.com/juliaJS/869551-yeticave.git","ssh_url":"git@github.com:juliaJS/869551-yeticave.git","clone_url":"https://github.com/juliaJS/869551-yeticave.git","svn_url":"https://github.com/juliaJS/869551-yeticave","homepage":null,"size":581,"stargazers_count":0,"watchers_count":0,"language":"HTML","has_issues":false,"has_projects":true,"has_downloads":false,"has_wiki":false,"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":"htmlacademy-php:master","ref":"master","sha":"d27e413d32dc8d4edfd1eab6b599833bb607b304","user":{"login":"htmlacademy-php","id":27206120,"node_id":"MDEyOk9yZ2FuaXphdGlvbjI3MjA2MTIw","avatar_url":"https://avatars1.githubusercontent.com/u/27206120?v=4","gravatar_id":"","url":"https://api.github.com/users/htmlacademy-php","html_url":"https://github.com/htmlacademy-php","followers_url":"https://api.github.com/users/htmlacademy-php/followers","following_url":"https://api.github.com/users/htmlacademy-php/following{/other_user}","gists_url":"https://api.github.com/users/htmlacademy-php/gists{/gist_id}","starred_url":"https://api.github.com/users/htmlacademy-php/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/htmlacademy-php/subscriptions","organizations_url":"https://api.github.com/users/htmlacademy-php/orgs","repos_url":"https://api.github.com/users/htmlacademy-php/repos","events_url":"https://api.github.com/users/htmlacademy-php/events{/privacy}","received_events_url":"https://api.github.com/users/htmlacademy-php/received_events","type":"Organization","site_admin":false},"repo":{"id":157741772,"node_id":"MDEwOlJlcG9zaXRvcnkxNTc3NDE3NzI=","name":"869551-yeticave","full_name":"htmlacademy-php/869551-yeticave","private":false,"owner":{"login":"htmlacademy-php","id":27206120,"node_id":"MDEyOk9yZ2FuaXphdGlvbjI3MjA2MTIw","avatar_url":"https://avatars1.githubusercontent.com/u/27206120?v=4","gravatar_id":"","url":"https://api.github.com/users/htmlacademy-php","html_url":"https://github.com/htmlacademy-php","followers_url":"https://api.github.com/users/htmlacademy-php/followers","following_url":"https://api.github.com/users/htmlacademy-php/following{/other_user}","gists_url":"https://api.github.com/users/htmlacademy-php/gists{/gist_id}","starred_url":"https://api.github.com/users/htmlacademy-php/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/htmlacademy-php/subscriptions","organizations_url":"https://api.github.com/users/htmlacademy-php/orgs","repos_url":"https://api.github.com/users/htmlacademy-php/repos","events_url":"https://api.github.com/users/htmlacademy-php/events{/privacy}","received_events_url":"https://api.github.com/users/htmlacademy-php/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/htmlacademy-php/869551-yeticave","description":"Iuliia Kiseleva","fork":false,"url":"https://api.github.com/repos/htmlacademy-php/869551-yeticave","forks_url":"https://api.github.com/repos/htmlacademy-php/869551-yeticave/forks","keys_url":"https://api.github.com/repos/htmlacademy-php/869551-yeticave/keys{/key_id}","collaborators_url":"https://api.github.com/repos/htmlacademy-php/869551-yeticave/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/htmlacademy-php/869551-yeticave/teams","hooks_url":"https://api.github.com/repos/htmlacademy-php/869551-yeticave/hooks","issue_events_url":"https://api.github.com/repos/htmlacademy-php/869551-yeticave/issues/events{/number}","events_url":"https://api.github.com/repos/htmlacademy-php/869551-yeticave/events","assignees_url":"https://api.github.com/repos/htmlacademy-php/869551-yeticave/assignees{/user}","branches_url":"https://api.github.com/repos/htmlacademy-php/869551-yeticave/branches{/branch}","tags_url":"https://api.github.com/repos/htmlacademy-php/869551-yeticave/tags","blobs_url":"https://api.github.com/repos/htmlacademy-php/869551-yeticave/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/htmlacademy-php/869551-yeticave/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/htmlacademy-php/869551-yeticave/git/refs{/sha}","trees_url":"https://api.github.com/repos/htmlacademy-php/869551-yeticave/git/trees{/sha}","statuses_url":"https://api.github.com/repos/htmlacademy-php/869551-yeticave/statuses/{sha}","languages_url":"https://api.github.com/repos/htmlacademy-php/869551-yeticave/languages","stargazers_url":"https://api.github.com/repos/htmlacademy-php/869551-yeticave/stargazers","contributors_url":"https://api.github.com/repos/htmlacademy-php/869551-yeticave/contributors","subscribers_url":"https://api.github.com/repos/htmlacademy-php/869551-yeticave/subscribers","subscription_url":"https://api.github.com/repos/htmlacademy-php/869551-yeticave/subscription","commits_url":"https://api.github.com/repos/htmlacademy-php/869551-yeticave/commits{/sha}","git_commits_url":"https://api.github.com/repos/htmlacademy-php/869551-yeticave/git/commits{/sha}","comments_url":"https://api.github.com/repos/htmlacademy-php/869551-yeticave/comments{/number}","issue_comment_url":"https://api.github.com/repos/htmlacademy-php/869551-yeticave/issues/comments{/number}","contents_url":"https://api.github.com/repos/htmlacademy-php/869551-yeticave/contents/{+path}","compare_url":"https://api.github.com/repos/htmlacademy-php/869551-yeticave/compare/{base}...{head}","merges_url":"https://api.github.com/repos/htmlacademy-php/869551-yeticave/merges","archive_url":"https://api.github.com/repos/htmlacademy-php/869551-yeticave/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/htmlacademy-php/869551-yeticave/downloads","issues_url":"https://api.github.com/repos/htmlacademy-php/869551-yeticave/issues{/number}","pulls_url":"https://api.github.com/repos/htmlacademy-php/869551-yeticave/pulls{/number}","milestones_url":"https://api.github.com/repos/htmlacademy-php/869551-yeticave/milestones{/number}","notifications_url":"https://api.github.com/repos/htmlacademy-php/869551-yeticave/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/htmlacademy-php/869551-yeticave/labels{/name}","releases_url":"https://api.github.com/repos/htmlacademy-php/869551-yeticave/releases{/id}","deployments_url":"https://api.github.com/repos/htmlacademy-php/869551-yeticave/deployments","created_at":"2018-11-15T16:35:46Z","updated_at":"2018-12-04T19:21:18Z","pushed_at":"2018-12-09T12:02:16Z","git_url":"git://github.com/htmlacademy-php/869551-yeticave.git","ssh_url":"git@github.com:htmlacademy-php/869551-yeticave.git","clone_url":"https://github.com/htmlacademy-php/869551-yeticave.git","svn_url":"https://github.com/htmlacademy-php/869551-yeticave","homepage":"https://github.com/juliaJS/869551-yeticave","size":580,"stargazers_count":0,"watchers_count":0,"language":"HTML","has_issues":false,"has_projects":false,"has_downloads":false,"has_wiki":false,"has_pages":false,"forks_count":1,"mirror_url":null,"archived":false,"open_issues_count":1,"license":null,"forks":1,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/htmlacademy-php/869551-yeticave/pulls/7"},"html":{"href":"https://github.com/htmlacademy-php/869551-yeticave/pull/7"},"issue":{"href":"https://api.github.com/repos/htmlacademy-php/869551-yeticave/issues/7"},"comments":{"href":"https://api.github.com/repos/htmlacademy-php/869551-yeticave/issues/7/comments"},"review_comments":{"href":"https://api.github.com/repos/htmlacademy-php/869551-yeticave/pulls/7/comments"},"review_comment":{"href":"https://api.github.com/repos/htmlacademy-php/869551-yeticave/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/htmlacademy-php/869551-yeticave/pulls/7/commits"},"statuses":{"href":"https://api.github.com/repos/htmlacademy-php/869551-yeticave/statuses/138accd581262495d77660f3a7942662a1f5f3bb"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"sergeivl"}}