{"action":"created","comment":{"url":"https://api.github.com/repos/htmlacademy-php/563145-doingsdone/pulls/comments/260638371","pull_request_review_id":208385909,"id":260638371,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDI2MDYzODM3MQ==","diff_hunk":"@@ -0,0 +1,41 @@\n+CREATE DATABASE doingsdone\n+\tDEFAULT CHARACTER SET utf8\n+\tDEFAULT COLLATE utf8_general_ci;\n+\t\n+USE doingsdone;\n+\n+CREATE TABLE project (\n+\tid\t\t\t\tINT AUTO_INCREMENT PRIMARY KEY,\n+\tname\t\t \tCHAR(128),\n+\tuser_id \t\tINT\n+\t);\n+\n+CREATE TABLE task (\n+\tid\t\t\t\tINT AUTO_INCREMENT PRIMARY KEY,\n+\tdata_create\t\tDATETIME,\n+\tdata_finish\t\tDATETIME,\n+\tstatus_task\t\t\tTINYINT,\n+\tname \t\t\tCHAR(128),\n+\tfile_link\t\tCHAR(128),\n+\tterm\t\t\tDATETIME,\n+\tuser_id \t\tINT,\n+\tproject_id\t\tINT\n+\t);\n+\t\n+CREATE TABLE user (\n+\tid\t\t\t\t\tINT AUTO_INCREMENT PRIMARY KEY,\n+\tdata_registered\t\tDATETIME,\n+\temail\t\t\t\tCHAR(128),\n+\tname\t\t \t\tCHAR(128),\n+\tpassword \t\t\tINT\n+\t);\n+\n+CREATE TABLE role (","path":"schema.sql","position":33,"original_position":33,"commit_id":"afafa606d5bab9ce0c8cc0d8dbb63ca191cc6aa8","original_commit_id":"afafa606d5bab9ce0c8cc0d8dbb63ca191cc6aa8","user":{"login":"captain-zsa","id":18168845,"node_id":"MDQ6VXNlcjE4MTY4ODQ1","avatar_url":"https://avatars2.githubusercontent.com/u/18168845?v=4","gravatar_id":"","url":"https://api.github.com/users/captain-zsa","html_url":"https://github.com/captain-zsa","followers_url":"https://api.github.com/users/captain-zsa/followers","following_url":"https://api.github.com/users/captain-zsa/following{/other_user}","gists_url":"https://api.github.com/users/captain-zsa/gists{/gist_id}","starred_url":"https://api.github.com/users/captain-zsa/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/captain-zsa/subscriptions","organizations_url":"https://api.github.com/users/captain-zsa/orgs","repos_url":"https://api.github.com/users/captain-zsa/repos","events_url":"https://api.github.com/users/captain-zsa/events{/privacy}","received_events_url":"https://api.github.com/users/captain-zsa/received_events","type":"User","site_admin":false},"body":"Эм... а это для чего таблица? Роли пользователей - либо зарегистрирован либо нет. Если нет - нам не надо ничего в таблицу заносить. Если человек зарегистрирован - значит он есть в таблице user, если он не зарегистрирован - значит его нет в таблице. Вот и все. Как ты собираешься привязывать несуществующего пользователя к какой-то роли?)) В общем таблица не нужна.","created_at":"2019-02-27T08:34:12Z","updated_at":"2019-02-27T08:35:36Z","html_url":"https://github.com/htmlacademy-php/563145-doingsdone/pull/8#discussion_r260638371","pull_request_url":"https://api.github.com/repos/htmlacademy-php/563145-doingsdone/pulls/8","author_association":"COLLABORATOR","_links":{"self":{"href":"https://api.github.com/repos/htmlacademy-php/563145-doingsdone/pulls/comments/260638371"},"html":{"href":"https://github.com/htmlacademy-php/563145-doingsdone/pull/8#discussion_r260638371"},"pull_request":{"href":"https://api.github.com/repos/htmlacademy-php/563145-doingsdone/pulls/8"}}},"pull_request":{"url":"https://api.github.com/repos/htmlacademy-php/563145-doingsdone/pulls/8","id":256379102,"node_id":"MDExOlB1bGxSZXF1ZXN0MjU2Mzc5MTAy","html_url":"https://github.com/htmlacademy-php/563145-doingsdone/pull/8","diff_url":"https://github.com/htmlacademy-php/563145-doingsdone/pull/8.diff","patch_url":"https://github.com/htmlacademy-php/563145-doingsdone/pull/8.patch","issue_url":"https://api.github.com/repos/htmlacademy-php/563145-doingsdone/issues/8","number":8,"state":"open","locked":false,"title":"Создание схемы БД личного проекта","user":{"login":"blinovigo","id":33605747,"node_id":"MDQ6VXNlcjMzNjA1NzQ3","avatar_url":"https://avatars2.githubusercontent.com/u/33605747?v=4","gravatar_id":"","url":"https://api.github.com/users/blinovigo","html_url":"https://github.com/blinovigo","followers_url":"https://api.github.com/users/blinovigo/followers","following_url":"https://api.github.com/users/blinovigo/following{/other_user}","gists_url":"https://api.github.com/users/blinovigo/gists{/gist_id}","starred_url":"https://api.github.com/users/blinovigo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/blinovigo/subscriptions","organizations_url":"https://api.github.com/users/blinovigo/orgs","repos_url":"https://api.github.com/users/blinovigo/repos","events_url":"https://api.github.com/users/blinovigo/events{/privacy}","received_events_url":"https://api.github.com/users/blinovigo/received_events","type":"User","site_admin":false},"body":"\n\n---\n:mortar_board: [Создание схемы БД личного проекта](https://up.htmlacademy.ru/php/8/user/563145/tasks/9)","created_at":"2019-02-26T17:34:07Z","updated_at":"2019-02-27T08:35:36Z","closed_at":null,"merged_at":null,"merge_commit_sha":"6a0ae67488350879a28f7df16dcefd67b62eca66","assignee":{"login":"captain-zsa","id":18168845,"node_id":"MDQ6VXNlcjE4MTY4ODQ1","avatar_url":"https://avatars2.githubusercontent.com/u/18168845?v=4","gravatar_id":"","url":"https://api.github.com/users/captain-zsa","html_url":"https://github.com/captain-zsa","followers_url":"https://api.github.com/users/captain-zsa/followers","following_url":"https://api.github.com/users/captain-zsa/following{/other_user}","gists_url":"https://api.github.com/users/captain-zsa/gists{/gist_id}","starred_url":"https://api.github.com/users/captain-zsa/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/captain-zsa/subscriptions","organizations_url":"https://api.github.com/users/captain-zsa/orgs","repos_url":"https://api.github.com/users/captain-zsa/repos","events_url":"https://api.github.com/users/captain-zsa/events{/privacy}","received_events_url":"https://api.github.com/users/captain-zsa/received_events","type":"User","site_admin":false},"assignees":[{"login":"captain-zsa","id":18168845,"node_id":"MDQ6VXNlcjE4MTY4ODQ1","avatar_url":"https://avatars2.githubusercontent.com/u/18168845?v=4","gravatar_id":"","url":"https://api.github.com/users/captain-zsa","html_url":"https://github.com/captain-zsa","followers_url":"https://api.github.com/users/captain-zsa/followers","following_url":"https://api.github.com/users/captain-zsa/following{/other_user}","gists_url":"https://api.github.com/users/captain-zsa/gists{/gist_id}","starred_url":"https://api.github.com/users/captain-zsa/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/captain-zsa/subscriptions","organizations_url":"https://api.github.com/users/captain-zsa/orgs","repos_url":"https://api.github.com/users/captain-zsa/repos","events_url":"https://api.github.com/users/captain-zsa/events{/privacy}","received_events_url":"https://api.github.com/users/captain-zsa/received_events","type":"User","site_admin":false}],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/htmlacademy-php/563145-doingsdone/pulls/8/commits","review_comments_url":"https://api.github.com/repos/htmlacademy-php/563145-doingsdone/pulls/8/comments","review_comment_url":"https://api.github.com/repos/htmlacademy-php/563145-doingsdone/pulls/comments{/number}","comments_url":"https://api.github.com/repos/htmlacademy-php/563145-doingsdone/issues/8/comments","statuses_url":"https://api.github.com/repos/htmlacademy-php/563145-doingsdone/statuses/afafa606d5bab9ce0c8cc0d8dbb63ca191cc6aa8","head":{"label":"blinovigo:module4-task1","ref":"module4-task1","sha":"afafa606d5bab9ce0c8cc0d8dbb63ca191cc6aa8","user":{"login":"blinovigo","id":33605747,"node_id":"MDQ6VXNlcjMzNjA1NzQ3","avatar_url":"https://avatars2.githubusercontent.com/u/33605747?v=4","gravatar_id":"","url":"https://api.github.com/users/blinovigo","html_url":"https://github.com/blinovigo","followers_url":"https://api.github.com/users/blinovigo/followers","following_url":"https://api.github.com/users/blinovigo/following{/other_user}","gists_url":"https://api.github.com/users/blinovigo/gists{/gist_id}","starred_url":"https://api.github.com/users/blinovigo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/blinovigo/subscriptions","organizations_url":"https://api.github.com/users/blinovigo/orgs","repos_url":"https://api.github.com/users/blinovigo/repos","events_url":"https://api.github.com/users/blinovigo/events{/privacy}","received_events_url":"https://api.github.com/users/blinovigo/received_events","type":"User","site_admin":false},"repo":{"id":168201051,"node_id":"MDEwOlJlcG9zaXRvcnkxNjgyMDEwNTE=","name":"563145-doingsdone","full_name":"blinovigo/563145-doingsdone","private":false,"owner":{"login":"blinovigo","id":33605747,"node_id":"MDQ6VXNlcjMzNjA1NzQ3","avatar_url":"https://avatars2.githubusercontent.com/u/33605747?v=4","gravatar_id":"","url":"https://api.github.com/users/blinovigo","html_url":"https://github.com/blinovigo","followers_url":"https://api.github.com/users/blinovigo/followers","following_url":"https://api.github.com/users/blinovigo/following{/other_user}","gists_url":"https://api.github.com/users/blinovigo/gists{/gist_id}","starred_url":"https://api.github.com/users/blinovigo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/blinovigo/subscriptions","organizations_url":"https://api.github.com/users/blinovigo/orgs","repos_url":"https://api.github.com/users/blinovigo/repos","events_url":"https://api.github.com/users/blinovigo/events{/privacy}","received_events_url":"https://api.github.com/users/blinovigo/received_events","type":"User","site_admin":false},"html_url":"https://github.com/blinovigo/563145-doingsdone","description":"Игорь Блинов","fork":true,"url":"https://api.github.com/repos/blinovigo/563145-doingsdone","forks_url":"https://api.github.com/repos/blinovigo/563145-doingsdone/forks","keys_url":"https://api.github.com/repos/blinovigo/563145-doingsdone/keys{/key_id}","collaborators_url":"https://api.github.com/repos/blinovigo/563145-doingsdone/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/blinovigo/563145-doingsdone/teams","hooks_url":"https://api.github.com/repos/blinovigo/563145-doingsdone/hooks","issue_events_url":"https://api.github.com/repos/blinovigo/563145-doingsdone/issues/events{/number}","events_url":"https://api.github.com/repos/blinovigo/563145-doingsdone/events","assignees_url":"https://api.github.com/repos/blinovigo/563145-doingsdone/assignees{/user}","branches_url":"https://api.github.com/repos/blinovigo/563145-doingsdone/branches{/branch}","tags_url":"https://api.github.com/repos/blinovigo/563145-doingsdone/tags","blobs_url":"https://api.github.com/repos/blinovigo/563145-doingsdone/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/blinovigo/563145-doingsdone/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/blinovigo/563145-doingsdone/git/refs{/sha}","trees_url":"https://api.github.com/repos/blinovigo/563145-doingsdone/git/trees{/sha}","statuses_url":"https://api.github.com/repos/blinovigo/563145-doingsdone/statuses/{sha}","languages_url":"https://api.github.com/repos/blinovigo/563145-doingsdone/languages","stargazers_url":"https://api.github.com/repos/blinovigo/563145-doingsdone/stargazers","contributors_url":"https://api.github.com/repos/blinovigo/563145-doingsdone/contributors","subscribers_url":"https://api.github.com/repos/blinovigo/563145-doingsdone/subscribers","subscription_url":"https://api.github.com/repos/blinovigo/563145-doingsdone/subscription","commits_url":"https://api.github.com/repos/blinovigo/563145-doingsdone/commits{/sha}","git_commits_url":"https://api.github.com/repos/blinovigo/563145-doingsdone/git/commits{/sha}","comments_url":"https://api.github.com/repos/blinovigo/563145-doingsdone/comments{/number}","issue_comment_url":"https://api.github.com/repos/blinovigo/563145-doingsdone/issues/comments{/number}","contents_url":"https://api.github.com/repos/blinovigo/563145-doingsdone/contents/{+path}","compare_url":"https://api.github.com/repos/blinovigo/563145-doingsdone/compare/{base}...{head}","merges_url":"https://api.github.com/repos/blinovigo/563145-doingsdone/merges","archive_url":"https://api.github.com/repos/blinovigo/563145-doingsdone/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/blinovigo/563145-doingsdone/downloads","issues_url":"https://api.github.com/repos/blinovigo/563145-doingsdone/issues{/number}","pulls_url":"https://api.github.com/repos/blinovigo/563145-doingsdone/pulls{/number}","milestones_url":"https://api.github.com/repos/blinovigo/563145-doingsdone/milestones{/number}","notifications_url":"https://api.github.com/repos/blinovigo/563145-doingsdone/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/blinovigo/563145-doingsdone/labels{/name}","releases_url":"https://api.github.com/repos/blinovigo/563145-doingsdone/releases{/id}","deployments_url":"https://api.github.com/repos/blinovigo/563145-doingsdone/deployments","created_at":"2019-01-29T17:55:15Z","updated_at":"2019-02-26T17:31:37Z","pushed_at":"2019-02-26T17:32:59Z","git_url":"git://github.com/blinovigo/563145-doingsdone.git","ssh_url":"git@github.com:blinovigo/563145-doingsdone.git","clone_url":"https://github.com/blinovigo/563145-doingsdone.git","svn_url":"https://github.com/blinovigo/563145-doingsdone","homepage":null,"size":183,"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":"e5a8e9eb25c6015cfce5fc124074300bbc0fdb25","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":168200983,"node_id":"MDEwOlJlcG9zaXRvcnkxNjgyMDA5ODM=","name":"563145-doingsdone","full_name":"htmlacademy-php/563145-doingsdone","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/563145-doingsdone","description":"Игорь Блинов","fork":false,"url":"https://api.github.com/repos/htmlacademy-php/563145-doingsdone","forks_url":"https://api.github.com/repos/htmlacademy-php/563145-doingsdone/forks","keys_url":"https://api.github.com/repos/htmlacademy-php/563145-doingsdone/keys{/key_id}","collaborators_url":"https://api.github.com/repos/htmlacademy-php/563145-doingsdone/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/htmlacademy-php/563145-doingsdone/teams","hooks_url":"https://api.github.com/repos/htmlacademy-php/563145-doingsdone/hooks","issue_events_url":"https://api.github.com/repos/htmlacademy-php/563145-doingsdone/issues/events{/number}","events_url":"https://api.github.com/repos/htmlacademy-php/563145-doingsdone/events","assignees_url":"https://api.github.com/repos/htmlacademy-php/563145-doingsdone/assignees{/user}","branches_url":"https://api.github.com/repos/htmlacademy-php/563145-doingsdone/branches{/branch}","tags_url":"https://api.github.com/repos/htmlacademy-php/563145-doingsdone/tags","blobs_url":"https://api.github.com/repos/htmlacademy-php/563145-doingsdone/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/htmlacademy-php/563145-doingsdone/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/htmlacademy-php/563145-doingsdone/git/refs{/sha}","trees_url":"https://api.github.com/repos/htmlacademy-php/563145-doingsdone/git/trees{/sha}","statuses_url":"https://api.github.com/repos/htmlacademy-php/563145-doingsdone/statuses/{sha}","languages_url":"https://api.github.com/repos/htmlacademy-php/563145-doingsdone/languages","stargazers_url":"https://api.github.com/repos/htmlacademy-php/563145-doingsdone/stargazers","contributors_url":"https://api.github.com/repos/htmlacademy-php/563145-doingsdone/contributors","subscribers_url":"https://api.github.com/repos/htmlacademy-php/563145-doingsdone/subscribers","subscription_url":"https://api.github.com/repos/htmlacademy-php/563145-doingsdone/subscription","commits_url":"https://api.github.com/repos/htmlacademy-php/563145-doingsdone/commits{/sha}","git_commits_url":"https://api.github.com/repos/htmlacademy-php/563145-doingsdone/git/commits{/sha}","comments_url":"https://api.github.com/repos/htmlacademy-php/563145-doingsdone/comments{/number}","issue_comment_url":"https://api.github.com/repos/htmlacademy-php/563145-doingsdone/issues/comments{/number}","contents_url":"https://api.github.com/repos/htmlacademy-php/563145-doingsdone/contents/{+path}","compare_url":"https://api.github.com/repos/htmlacademy-php/563145-doingsdone/compare/{base}...{head}","merges_url":"https://api.github.com/repos/htmlacademy-php/563145-doingsdone/merges","archive_url":"https://api.github.com/repos/htmlacademy-php/563145-doingsdone/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/htmlacademy-php/563145-doingsdone/downloads","issues_url":"https://api.github.com/repos/htmlacademy-php/563145-doingsdone/issues{/number}","pulls_url":"https://api.github.com/repos/htmlacademy-php/563145-doingsdone/pulls{/number}","milestones_url":"https://api.github.com/repos/htmlacademy-php/563145-doingsdone/milestones{/number}","notifications_url":"https://api.github.com/repos/htmlacademy-php/563145-doingsdone/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/htmlacademy-php/563145-doingsdone/labels{/name}","releases_url":"https://api.github.com/repos/htmlacademy-php/563145-doingsdone/releases{/id}","deployments_url":"https://api.github.com/repos/htmlacademy-php/563145-doingsdone/deployments","created_at":"2019-01-29T17:54:46Z","updated_at":"2019-02-22T08:25:11Z","pushed_at":"2019-02-26T17:34:08Z","git_url":"git://github.com/htmlacademy-php/563145-doingsdone.git","ssh_url":"git@github.com:htmlacademy-php/563145-doingsdone.git","clone_url":"https://github.com/htmlacademy-php/563145-doingsdone.git","svn_url":"https://github.com/htmlacademy-php/563145-doingsdone","homepage":"https://github.com/blinovigo/563145-doingsdone","size":177,"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/563145-doingsdone/pulls/8"},"html":{"href":"https://github.com/htmlacademy-php/563145-doingsdone/pull/8"},"issue":{"href":"https://api.github.com/repos/htmlacademy-php/563145-doingsdone/issues/8"},"comments":{"href":"https://api.github.com/repos/htmlacademy-php/563145-doingsdone/issues/8/comments"},"review_comments":{"href":"https://api.github.com/repos/htmlacademy-php/563145-doingsdone/pulls/8/comments"},"review_comment":{"href":"https://api.github.com/repos/htmlacademy-php/563145-doingsdone/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/htmlacademy-php/563145-doingsdone/pulls/8/commits"},"statuses":{"href":"https://api.github.com/repos/htmlacademy-php/563145-doingsdone/statuses/afafa606d5bab9ce0c8cc0d8dbb63ca191cc6aa8"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"captain-zsa"}}