{"action":"created","comment":{"url":"https://api.github.com/repos/CodeForPoznan/codeforpoznan.pl_v3/pulls/comments/237191740","pull_request_review_id":179427584,"id":237191740,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIzNzE5MTc0MA==","diff_hunk":"@@ -0,0 +1,54 @@\n+from sqlalchemy import Column\n+from sqlalchemy.types import Integer\n+from sqlalchemy.types import String\n+from sqlalchemy.types import Boolean\n+from flask_sqlalchemy import SQLAlchemy\n+\n+db = SQLAlchemy()\n+\n+class User(db.Model):\n+    \"\"\"\n+    User model - for admin\n+    \"\"\"\n+    __tablename__ = 'user'\n+    id = Column(Integer, autoincrement=True, primary_key=True)\n+    username = Column(String(20), unique=True)\n+    hashed_password = Column(String(100))\n+\n+    def get_id(self):\n+        return str(self.id)\n+\n+    def get(self):\n+        return self\n+\n+\n+class Participant(db.Model):\n+    \"\"\"\n+    Participant model\n+    \"\"\"\n+    __tablename__ = 'participant'\n+    id = Column(Integer, autoincrement=True, primary_key=True)\n+    name = Column(String(20))","path":"backend/models.py","position":31,"original_position":31,"commit_id":"bcf4033710f13602159ec46f2f1081a3dd923c1e","original_commit_id":"bcf4033710f13602159ec46f2f1081a3dd923c1e","user":{"login":"magul","id":1165138,"node_id":"MDQ6VXNlcjExNjUxMzg=","avatar_url":"https://avatars0.githubusercontent.com/u/1165138?v=4","gravatar_id":"","url":"https://api.github.com/users/magul","html_url":"https://github.com/magul","followers_url":"https://api.github.com/users/magul/followers","following_url":"https://api.github.com/users/magul/following{/other_user}","gists_url":"https://api.github.com/users/magul/gists{/gist_id}","starred_url":"https://api.github.com/users/magul/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/magul/subscriptions","organizations_url":"https://api.github.com/users/magul/orgs","repos_url":"https://api.github.com/users/magul/repos","events_url":"https://api.github.com/users/magul/events{/privacy}","received_events_url":"https://api.github.com/users/magul/received_events","type":"User","site_admin":false},"body":"`String(50)`","created_at":"2018-11-28T17:45:32Z","updated_at":"2018-11-28T17:57:01Z","html_url":"https://github.com/CodeForPoznan/codeforpoznan.pl_v3/pull/18#discussion_r237191740","pull_request_url":"https://api.github.com/repos/CodeForPoznan/codeforpoznan.pl_v3/pulls/18","author_association":"MEMBER","_links":{"self":{"href":"https://api.github.com/repos/CodeForPoznan/codeforpoznan.pl_v3/pulls/comments/237191740"},"html":{"href":"https://github.com/CodeForPoznan/codeforpoznan.pl_v3/pull/18#discussion_r237191740"},"pull_request":{"href":"https://api.github.com/repos/CodeForPoznan/codeforpoznan.pl_v3/pulls/18"}}},"pull_request":{"url":"https://api.github.com/repos/CodeForPoznan/codeforpoznan.pl_v3/pulls/18","id":234364269,"node_id":"MDExOlB1bGxSZXF1ZXN0MjM0MzY0MjY5","html_url":"https://github.com/CodeForPoznan/codeforpoznan.pl_v3/pull/18","diff_url":"https://github.com/CodeForPoznan/codeforpoznan.pl_v3/pull/18.diff","patch_url":"https://github.com/CodeForPoznan/codeforpoznan.pl_v3/pull/18.patch","issue_url":"https://api.github.com/repos/CodeForPoznan/codeforpoznan.pl_v3/issues/18","number":18,"state":"open","locked":false,"title":"Models in database: user, participant, hacknight","user":{"login":"dagaaaaa","id":33626572,"node_id":"MDQ6VXNlcjMzNjI2NTcy","avatar_url":"https://avatars0.githubusercontent.com/u/33626572?v=4","gravatar_id":"","url":"https://api.github.com/users/dagaaaaa","html_url":"https://github.com/dagaaaaa","followers_url":"https://api.github.com/users/dagaaaaa/followers","following_url":"https://api.github.com/users/dagaaaaa/following{/other_user}","gists_url":"https://api.github.com/users/dagaaaaa/gists{/gist_id}","starred_url":"https://api.github.com/users/dagaaaaa/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dagaaaaa/subscriptions","organizations_url":"https://api.github.com/users/dagaaaaa/orgs","repos_url":"https://api.github.com/users/dagaaaaa/repos","events_url":"https://api.github.com/users/dagaaaaa/events{/privacy}","received_events_url":"https://api.github.com/users/dagaaaaa/received_events","type":"User","site_admin":false},"body":"","created_at":"2018-11-28T17:31:41Z","updated_at":"2018-11-28T17:57:00Z","closed_at":null,"merged_at":null,"merge_commit_sha":"0c6a4acbc096f06fc8f08dc22e1b2c76123c0e85","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/CodeForPoznan/codeforpoznan.pl_v3/pulls/18/commits","review_comments_url":"https://api.github.com/repos/CodeForPoznan/codeforpoznan.pl_v3/pulls/18/comments","review_comment_url":"https://api.github.com/repos/CodeForPoznan/codeforpoznan.pl_v3/pulls/comments{/number}","comments_url":"https://api.github.com/repos/CodeForPoznan/codeforpoznan.pl_v3/issues/18/comments","statuses_url":"https://api.github.com/repos/CodeForPoznan/codeforpoznan.pl_v3/statuses/bcf4033710f13602159ec46f2f1081a3dd923c1e","head":{"label":"dagaaaaa:database","ref":"database","sha":"bcf4033710f13602159ec46f2f1081a3dd923c1e","user":{"login":"dagaaaaa","id":33626572,"node_id":"MDQ6VXNlcjMzNjI2NTcy","avatar_url":"https://avatars0.githubusercontent.com/u/33626572?v=4","gravatar_id":"","url":"https://api.github.com/users/dagaaaaa","html_url":"https://github.com/dagaaaaa","followers_url":"https://api.github.com/users/dagaaaaa/followers","following_url":"https://api.github.com/users/dagaaaaa/following{/other_user}","gists_url":"https://api.github.com/users/dagaaaaa/gists{/gist_id}","starred_url":"https://api.github.com/users/dagaaaaa/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dagaaaaa/subscriptions","organizations_url":"https://api.github.com/users/dagaaaaa/orgs","repos_url":"https://api.github.com/users/dagaaaaa/repos","events_url":"https://api.github.com/users/dagaaaaa/events{/privacy}","received_events_url":"https://api.github.com/users/dagaaaaa/received_events","type":"User","site_admin":false},"repo":{"id":158584121,"node_id":"MDEwOlJlcG9zaXRvcnkxNTg1ODQxMjE=","name":"codeforpoznan.pl_v3","full_name":"dagaaaaa/codeforpoznan.pl_v3","private":false,"owner":{"login":"dagaaaaa","id":33626572,"node_id":"MDQ6VXNlcjMzNjI2NTcy","avatar_url":"https://avatars0.githubusercontent.com/u/33626572?v=4","gravatar_id":"","url":"https://api.github.com/users/dagaaaaa","html_url":"https://github.com/dagaaaaa","followers_url":"https://api.github.com/users/dagaaaaa/followers","following_url":"https://api.github.com/users/dagaaaaa/following{/other_user}","gists_url":"https://api.github.com/users/dagaaaaa/gists{/gist_id}","starred_url":"https://api.github.com/users/dagaaaaa/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dagaaaaa/subscriptions","organizations_url":"https://api.github.com/users/dagaaaaa/orgs","repos_url":"https://api.github.com/users/dagaaaaa/repos","events_url":"https://api.github.com/users/dagaaaaa/events{/privacy}","received_events_url":"https://api.github.com/users/dagaaaaa/received_events","type":"User","site_admin":false},"html_url":"https://github.com/dagaaaaa/codeforpoznan.pl_v3","description":null,"fork":true,"url":"https://api.github.com/repos/dagaaaaa/codeforpoznan.pl_v3","forks_url":"https://api.github.com/repos/dagaaaaa/codeforpoznan.pl_v3/forks","keys_url":"https://api.github.com/repos/dagaaaaa/codeforpoznan.pl_v3/keys{/key_id}","collaborators_url":"https://api.github.com/repos/dagaaaaa/codeforpoznan.pl_v3/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/dagaaaaa/codeforpoznan.pl_v3/teams","hooks_url":"https://api.github.com/repos/dagaaaaa/codeforpoznan.pl_v3/hooks","issue_events_url":"https://api.github.com/repos/dagaaaaa/codeforpoznan.pl_v3/issues/events{/number}","events_url":"https://api.github.com/repos/dagaaaaa/codeforpoznan.pl_v3/events","assignees_url":"https://api.github.com/repos/dagaaaaa/codeforpoznan.pl_v3/assignees{/user}","branches_url":"https://api.github.com/repos/dagaaaaa/codeforpoznan.pl_v3/branches{/branch}","tags_url":"https://api.github.com/repos/dagaaaaa/codeforpoznan.pl_v3/tags","blobs_url":"https://api.github.com/repos/dagaaaaa/codeforpoznan.pl_v3/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/dagaaaaa/codeforpoznan.pl_v3/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/dagaaaaa/codeforpoznan.pl_v3/git/refs{/sha}","trees_url":"https://api.github.com/repos/dagaaaaa/codeforpoznan.pl_v3/git/trees{/sha}","statuses_url":"https://api.github.com/repos/dagaaaaa/codeforpoznan.pl_v3/statuses/{sha}","languages_url":"https://api.github.com/repos/dagaaaaa/codeforpoznan.pl_v3/languages","stargazers_url":"https://api.github.com/repos/dagaaaaa/codeforpoznan.pl_v3/stargazers","contributors_url":"https://api.github.com/repos/dagaaaaa/codeforpoznan.pl_v3/contributors","subscribers_url":"https://api.github.com/repos/dagaaaaa/codeforpoznan.pl_v3/subscribers","subscription_url":"https://api.github.com/repos/dagaaaaa/codeforpoznan.pl_v3/subscription","commits_url":"https://api.github.com/repos/dagaaaaa/codeforpoznan.pl_v3/commits{/sha}","git_commits_url":"https://api.github.com/repos/dagaaaaa/codeforpoznan.pl_v3/git/commits{/sha}","comments_url":"https://api.github.com/repos/dagaaaaa/codeforpoznan.pl_v3/comments{/number}","issue_comment_url":"https://api.github.com/repos/dagaaaaa/codeforpoznan.pl_v3/issues/comments{/number}","contents_url":"https://api.github.com/repos/dagaaaaa/codeforpoznan.pl_v3/contents/{+path}","compare_url":"https://api.github.com/repos/dagaaaaa/codeforpoznan.pl_v3/compare/{base}...{head}","merges_url":"https://api.github.com/repos/dagaaaaa/codeforpoznan.pl_v3/merges","archive_url":"https://api.github.com/repos/dagaaaaa/codeforpoznan.pl_v3/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/dagaaaaa/codeforpoznan.pl_v3/downloads","issues_url":"https://api.github.com/repos/dagaaaaa/codeforpoznan.pl_v3/issues{/number}","pulls_url":"https://api.github.com/repos/dagaaaaa/codeforpoznan.pl_v3/pulls{/number}","milestones_url":"https://api.github.com/repos/dagaaaaa/codeforpoznan.pl_v3/milestones{/number}","notifications_url":"https://api.github.com/repos/dagaaaaa/codeforpoznan.pl_v3/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/dagaaaaa/codeforpoznan.pl_v3/labels{/name}","releases_url":"https://api.github.com/repos/dagaaaaa/codeforpoznan.pl_v3/releases{/id}","deployments_url":"https://api.github.com/repos/dagaaaaa/codeforpoznan.pl_v3/deployments","created_at":"2018-11-21T17:29:34Z","updated_at":"2018-11-28T17:23:45Z","pushed_at":"2018-11-28T17:30:36Z","git_url":"git://github.com/dagaaaaa/codeforpoznan.pl_v3.git","ssh_url":"git@github.com:dagaaaaa/codeforpoznan.pl_v3.git","clone_url":"https://github.com/dagaaaaa/codeforpoznan.pl_v3.git","svn_url":"https://github.com/dagaaaaa/codeforpoznan.pl_v3","homepage":null,"size":0,"stargazers_count":0,"watchers_count":0,"language":"Python","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":"CodeForPoznan:master","ref":"master","sha":"495a7dd0e7c3df0fc3cf19e2a2b7c3439c42d88b","user":{"login":"CodeForPoznan","id":22869943,"node_id":"MDEyOk9yZ2FuaXphdGlvbjIyODY5OTQz","avatar_url":"https://avatars2.githubusercontent.com/u/22869943?v=4","gravatar_id":"","url":"https://api.github.com/users/CodeForPoznan","html_url":"https://github.com/CodeForPoznan","followers_url":"https://api.github.com/users/CodeForPoznan/followers","following_url":"https://api.github.com/users/CodeForPoznan/following{/other_user}","gists_url":"https://api.github.com/users/CodeForPoznan/gists{/gist_id}","starred_url":"https://api.github.com/users/CodeForPoznan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/CodeForPoznan/subscriptions","organizations_url":"https://api.github.com/users/CodeForPoznan/orgs","repos_url":"https://api.github.com/users/CodeForPoznan/repos","events_url":"https://api.github.com/users/CodeForPoznan/events{/privacy}","received_events_url":"https://api.github.com/users/CodeForPoznan/received_events","type":"Organization","site_admin":false},"repo":{"id":156603153,"node_id":"MDEwOlJlcG9zaXRvcnkxNTY2MDMxNTM=","name":"codeforpoznan.pl_v3","full_name":"CodeForPoznan/codeforpoznan.pl_v3","private":false,"owner":{"login":"CodeForPoznan","id":22869943,"node_id":"MDEyOk9yZ2FuaXphdGlvbjIyODY5OTQz","avatar_url":"https://avatars2.githubusercontent.com/u/22869943?v=4","gravatar_id":"","url":"https://api.github.com/users/CodeForPoznan","html_url":"https://github.com/CodeForPoznan","followers_url":"https://api.github.com/users/CodeForPoznan/followers","following_url":"https://api.github.com/users/CodeForPoznan/following{/other_user}","gists_url":"https://api.github.com/users/CodeForPoznan/gists{/gist_id}","starred_url":"https://api.github.com/users/CodeForPoznan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/CodeForPoznan/subscriptions","organizations_url":"https://api.github.com/users/CodeForPoznan/orgs","repos_url":"https://api.github.com/users/CodeForPoznan/repos","events_url":"https://api.github.com/users/CodeForPoznan/events{/privacy}","received_events_url":"https://api.github.com/users/CodeForPoznan/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/CodeForPoznan/codeforpoznan.pl_v3","description":null,"fork":false,"url":"https://api.github.com/repos/CodeForPoznan/codeforpoznan.pl_v3","forks_url":"https://api.github.com/repos/CodeForPoznan/codeforpoznan.pl_v3/forks","keys_url":"https://api.github.com/repos/CodeForPoznan/codeforpoznan.pl_v3/keys{/key_id}","collaborators_url":"https://api.github.com/repos/CodeForPoznan/codeforpoznan.pl_v3/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/CodeForPoznan/codeforpoznan.pl_v3/teams","hooks_url":"https://api.github.com/repos/CodeForPoznan/codeforpoznan.pl_v3/hooks","issue_events_url":"https://api.github.com/repos/CodeForPoznan/codeforpoznan.pl_v3/issues/events{/number}","events_url":"https://api.github.com/repos/CodeForPoznan/codeforpoznan.pl_v3/events","assignees_url":"https://api.github.com/repos/CodeForPoznan/codeforpoznan.pl_v3/assignees{/user}","branches_url":"https://api.github.com/repos/CodeForPoznan/codeforpoznan.pl_v3/branches{/branch}","tags_url":"https://api.github.com/repos/CodeForPoznan/codeforpoznan.pl_v3/tags","blobs_url":"https://api.github.com/repos/CodeForPoznan/codeforpoznan.pl_v3/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/CodeForPoznan/codeforpoznan.pl_v3/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/CodeForPoznan/codeforpoznan.pl_v3/git/refs{/sha}","trees_url":"https://api.github.com/repos/CodeForPoznan/codeforpoznan.pl_v3/git/trees{/sha}","statuses_url":"https://api.github.com/repos/CodeForPoznan/codeforpoznan.pl_v3/statuses/{sha}","languages_url":"https://api.github.com/repos/CodeForPoznan/codeforpoznan.pl_v3/languages","stargazers_url":"https://api.github.com/repos/CodeForPoznan/codeforpoznan.pl_v3/stargazers","contributors_url":"https://api.github.com/repos/CodeForPoznan/codeforpoznan.pl_v3/contributors","subscribers_url":"https://api.github.com/repos/CodeForPoznan/codeforpoznan.pl_v3/subscribers","subscription_url":"https://api.github.com/repos/CodeForPoznan/codeforpoznan.pl_v3/subscription","commits_url":"https://api.github.com/repos/CodeForPoznan/codeforpoznan.pl_v3/commits{/sha}","git_commits_url":"https://api.github.com/repos/CodeForPoznan/codeforpoznan.pl_v3/git/commits{/sha}","comments_url":"https://api.github.com/repos/CodeForPoznan/codeforpoznan.pl_v3/comments{/number}","issue_comment_url":"https://api.github.com/repos/CodeForPoznan/codeforpoznan.pl_v3/issues/comments{/number}","contents_url":"https://api.github.com/repos/CodeForPoznan/codeforpoznan.pl_v3/contents/{+path}","compare_url":"https://api.github.com/repos/CodeForPoznan/codeforpoznan.pl_v3/compare/{base}...{head}","merges_url":"https://api.github.com/repos/CodeForPoznan/codeforpoznan.pl_v3/merges","archive_url":"https://api.github.com/repos/CodeForPoznan/codeforpoznan.pl_v3/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/CodeForPoznan/codeforpoznan.pl_v3/downloads","issues_url":"https://api.github.com/repos/CodeForPoznan/codeforpoznan.pl_v3/issues{/number}","pulls_url":"https://api.github.com/repos/CodeForPoznan/codeforpoznan.pl_v3/pulls{/number}","milestones_url":"https://api.github.com/repos/CodeForPoznan/codeforpoznan.pl_v3/milestones{/number}","notifications_url":"https://api.github.com/repos/CodeForPoznan/codeforpoznan.pl_v3/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/CodeForPoznan/codeforpoznan.pl_v3/labels{/name}","releases_url":"https://api.github.com/repos/CodeForPoznan/codeforpoznan.pl_v3/releases{/id}","deployments_url":"https://api.github.com/repos/CodeForPoznan/codeforpoznan.pl_v3/deployments","created_at":"2018-11-07T20:18:38Z","updated_at":"2018-11-21T18:37:05Z","pushed_at":"2018-11-28T17:31:42Z","git_url":"git://github.com/CodeForPoznan/codeforpoznan.pl_v3.git","ssh_url":"git@github.com:CodeForPoznan/codeforpoznan.pl_v3.git","clone_url":"https://github.com/CodeForPoznan/codeforpoznan.pl_v3.git","svn_url":"https://github.com/CodeForPoznan/codeforpoznan.pl_v3","homepage":null,"size":129,"stargazers_count":0,"watchers_count":0,"language":"Vue","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":8,"mirror_url":null,"archived":false,"open_issues_count":15,"license":null,"forks":8,"open_issues":15,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/CodeForPoznan/codeforpoznan.pl_v3/pulls/18"},"html":{"href":"https://github.com/CodeForPoznan/codeforpoznan.pl_v3/pull/18"},"issue":{"href":"https://api.github.com/repos/CodeForPoznan/codeforpoznan.pl_v3/issues/18"},"comments":{"href":"https://api.github.com/repos/CodeForPoznan/codeforpoznan.pl_v3/issues/18/comments"},"review_comments":{"href":"https://api.github.com/repos/CodeForPoznan/codeforpoznan.pl_v3/pulls/18/comments"},"review_comment":{"href":"https://api.github.com/repos/CodeForPoznan/codeforpoznan.pl_v3/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/CodeForPoznan/codeforpoznan.pl_v3/pulls/18/commits"},"statuses":{"href":"https://api.github.com/repos/CodeForPoznan/codeforpoznan.pl_v3/statuses/bcf4033710f13602159ec46f2f1081a3dd923c1e"}},"author_association":"NONE"}}
{"actor":{"display_login":"magul"}}