{"action":"created","comment":{"url":"https://api.github.com/repos/PerfectWeek/web-api/pulls/comments/237363948","pull_request_review_id":179639005,"id":237363948,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIzNzM2Mzk0OA==","diff_hunk":"@@ -0,0 +1,175 @@\n+import { Entity, PrimaryGeneratedColumn, OneToMany, Column, ManyToOne, Repository } from \"typeorm\";\n+import { User } from \"./User\";\n+import { Calendar } from \"./Calendar\";\n+import { type } from \"os\";\n+import { EventToAttendees } from \"./EventToAttendees\";\n+\n+@Entity(\"events\")\n+export class Event {\n+\n+    @PrimaryGeneratedColumn()\n+    id: number;\n+\n+    @Column({length: 256})\n+    name: string\n+\n+    @Column()\n+    description: string\n+\n+    @Column()\n+    location: string\n+\n+    @ManyToOne(type => Calendar, calendar => calendar.events)\n+    calendar: Calendar\n+    \n+    @Column({name: \"start_time\", type: \"timestamp with time zone\"})\n+    startTime: Date\n+\n+    @Column({name: \"end_time\", type: \"timestamp with time zone\"})\n+    endTime: Date\n+\n+    attendees: User[] = []\n+\n+    @Column({name: \"created_at\", type: \"timestamp with time zone\", default: () => \"CURRENT_TIMESTAMP\"})\n+    createdAt: Date;\n+\n+    @Column({name: \"updated_at\", type: \"timestamp with time zone\", default: () => \"CURRENT_TIMESTAMP\"})\n+    updatedAt: Date;\n+\n+    public constructor(name: string, description:string, location: string,","path":"sources/model/entity/Event.ts","position":39,"original_position":39,"commit_id":"c240de3820b2e10c1ef230540412e3dbff3b2ceb","original_commit_id":"c240de3820b2e10c1ef230540412e3dbff3b2ceb","user":{"login":"benard-g","id":29625052,"node_id":"MDQ6VXNlcjI5NjI1MDUy","avatar_url":"https://avatars0.githubusercontent.com/u/29625052?v=4","gravatar_id":"","url":"https://api.github.com/users/benard-g","html_url":"https://github.com/benard-g","followers_url":"https://api.github.com/users/benard-g/followers","following_url":"https://api.github.com/users/benard-g/following{/other_user}","gists_url":"https://api.github.com/users/benard-g/gists{/gist_id}","starred_url":"https://api.github.com/users/benard-g/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/benard-g/subscriptions","organizations_url":"https://api.github.com/users/benard-g/orgs","repos_url":"https://api.github.com/users/benard-g/repos","events_url":"https://api.github.com/users/benard-g/events{/privacy}","received_events_url":"https://api.github.com/users/benard-g/received_events","type":"User","site_admin":false},"body":"Missed a space\r\n\r\n```\r\ndesciprtion: string\r\n```","created_at":"2018-11-29T06:14:13Z","updated_at":"2018-11-29T06:33:03Z","html_url":"https://github.com/PerfectWeek/web-api/pull/87#discussion_r237363948","pull_request_url":"https://api.github.com/repos/PerfectWeek/web-api/pulls/87","author_association":"MEMBER","_links":{"self":{"href":"https://api.github.com/repos/PerfectWeek/web-api/pulls/comments/237363948"},"html":{"href":"https://github.com/PerfectWeek/web-api/pull/87#discussion_r237363948"},"pull_request":{"href":"https://api.github.com/repos/PerfectWeek/web-api/pulls/87"}}},"pull_request":{"url":"https://api.github.com/repos/PerfectWeek/web-api/pulls/87","id":234489164,"node_id":"MDExOlB1bGxSZXF1ZXN0MjM0NDg5MTY0","html_url":"https://github.com/PerfectWeek/web-api/pull/87","diff_url":"https://github.com/PerfectWeek/web-api/pull/87.diff","patch_url":"https://github.com/PerfectWeek/web-api/pull/87.patch","issue_url":"https://api.github.com/repos/PerfectWeek/web-api/issues/87","number":87,"state":"open","locked":false,"title":"Feature/77 calendar events entities","user":{"login":"alifdev","id":21305744,"node_id":"MDQ6VXNlcjIxMzA1NzQ0","avatar_url":"https://avatars0.githubusercontent.com/u/21305744?v=4","gravatar_id":"","url":"https://api.github.com/users/alifdev","html_url":"https://github.com/alifdev","followers_url":"https://api.github.com/users/alifdev/followers","following_url":"https://api.github.com/users/alifdev/following{/other_user}","gists_url":"https://api.github.com/users/alifdev/gists{/gist_id}","starred_url":"https://api.github.com/users/alifdev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alifdev/subscriptions","organizations_url":"https://api.github.com/users/alifdev/orgs","repos_url":"https://api.github.com/users/alifdev/repos","events_url":"https://api.github.com/users/alifdev/events{/privacy}","received_events_url":"https://api.github.com/users/alifdev/received_events","type":"User","site_admin":false},"body":"","created_at":"2018-11-29T02:33:25Z","updated_at":"2018-11-29T06:33:03Z","closed_at":null,"merged_at":null,"merge_commit_sha":"2be24c2c5a5a8c14f05a04122504a071637db5da","assignee":{"login":"alifdev","id":21305744,"node_id":"MDQ6VXNlcjIxMzA1NzQ0","avatar_url":"https://avatars0.githubusercontent.com/u/21305744?v=4","gravatar_id":"","url":"https://api.github.com/users/alifdev","html_url":"https://github.com/alifdev","followers_url":"https://api.github.com/users/alifdev/followers","following_url":"https://api.github.com/users/alifdev/following{/other_user}","gists_url":"https://api.github.com/users/alifdev/gists{/gist_id}","starred_url":"https://api.github.com/users/alifdev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alifdev/subscriptions","organizations_url":"https://api.github.com/users/alifdev/orgs","repos_url":"https://api.github.com/users/alifdev/repos","events_url":"https://api.github.com/users/alifdev/events{/privacy}","received_events_url":"https://api.github.com/users/alifdev/received_events","type":"User","site_admin":false},"assignees":[{"login":"alifdev","id":21305744,"node_id":"MDQ6VXNlcjIxMzA1NzQ0","avatar_url":"https://avatars0.githubusercontent.com/u/21305744?v=4","gravatar_id":"","url":"https://api.github.com/users/alifdev","html_url":"https://github.com/alifdev","followers_url":"https://api.github.com/users/alifdev/followers","following_url":"https://api.github.com/users/alifdev/following{/other_user}","gists_url":"https://api.github.com/users/alifdev/gists{/gist_id}","starred_url":"https://api.github.com/users/alifdev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alifdev/subscriptions","organizations_url":"https://api.github.com/users/alifdev/orgs","repos_url":"https://api.github.com/users/alifdev/repos","events_url":"https://api.github.com/users/alifdev/events{/privacy}","received_events_url":"https://api.github.com/users/alifdev/received_events","type":"User","site_admin":false}],"requested_reviewers":[],"requested_teams":[],"labels":[{"id":1049566152,"node_id":"MDU6TGFiZWwxMDQ5NTY2MTUy","url":"https://api.github.com/repos/PerfectWeek/web-api/labels/Priority:%20High","name":"Priority: High","color":"eb6420","default":false}],"milestone":{"url":"https://api.github.com/repos/PerfectWeek/web-api/milestones/6","html_url":"https://github.com/PerfectWeek/web-api/milestone/6","labels_url":"https://api.github.com/repos/PerfectWeek/web-api/milestones/6/labels","id":3833115,"node_id":"MDk6TWlsZXN0b25lMzgzMzExNQ==","number":6,"title":"2018-12 Follow Up","description":null,"creator":{"login":"benard-g","id":29625052,"node_id":"MDQ6VXNlcjI5NjI1MDUy","avatar_url":"https://avatars0.githubusercontent.com/u/29625052?v=4","gravatar_id":"","url":"https://api.github.com/users/benard-g","html_url":"https://github.com/benard-g","followers_url":"https://api.github.com/users/benard-g/followers","following_url":"https://api.github.com/users/benard-g/following{/other_user}","gists_url":"https://api.github.com/users/benard-g/gists{/gist_id}","starred_url":"https://api.github.com/users/benard-g/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/benard-g/subscriptions","organizations_url":"https://api.github.com/users/benard-g/orgs","repos_url":"https://api.github.com/users/benard-g/repos","events_url":"https://api.github.com/users/benard-g/events{/privacy}","received_events_url":"https://api.github.com/users/benard-g/received_events","type":"User","site_admin":false},"open_issues":9,"closed_issues":14,"state":"open","created_at":"2018-11-19T22:39:49Z","updated_at":"2018-11-29T03:15:51Z","due_on":null,"closed_at":null},"commits_url":"https://api.github.com/repos/PerfectWeek/web-api/pulls/87/commits","review_comments_url":"https://api.github.com/repos/PerfectWeek/web-api/pulls/87/comments","review_comment_url":"https://api.github.com/repos/PerfectWeek/web-api/pulls/comments{/number}","comments_url":"https://api.github.com/repos/PerfectWeek/web-api/issues/87/comments","statuses_url":"https://api.github.com/repos/PerfectWeek/web-api/statuses/c240de3820b2e10c1ef230540412e3dbff3b2ceb","head":{"label":"PerfectWeek:feature/77-calendar-events-entities","ref":"feature/77-calendar-events-entities","sha":"c240de3820b2e10c1ef230540412e3dbff3b2ceb","user":{"login":"PerfectWeek","id":38836857,"node_id":"MDEyOk9yZ2FuaXphdGlvbjM4ODM2ODU3","avatar_url":"https://avatars3.githubusercontent.com/u/38836857?v=4","gravatar_id":"","url":"https://api.github.com/users/PerfectWeek","html_url":"https://github.com/PerfectWeek","followers_url":"https://api.github.com/users/PerfectWeek/followers","following_url":"https://api.github.com/users/PerfectWeek/following{/other_user}","gists_url":"https://api.github.com/users/PerfectWeek/gists{/gist_id}","starred_url":"https://api.github.com/users/PerfectWeek/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/PerfectWeek/subscriptions","organizations_url":"https://api.github.com/users/PerfectWeek/orgs","repos_url":"https://api.github.com/users/PerfectWeek/repos","events_url":"https://api.github.com/users/PerfectWeek/events{/privacy}","received_events_url":"https://api.github.com/users/PerfectWeek/received_events","type":"Organization","site_admin":false},"repo":{"id":133144975,"node_id":"MDEwOlJlcG9zaXRvcnkxMzMxNDQ5NzU=","name":"web-api","full_name":"PerfectWeek/web-api","private":false,"owner":{"login":"PerfectWeek","id":38836857,"node_id":"MDEyOk9yZ2FuaXphdGlvbjM4ODM2ODU3","avatar_url":"https://avatars3.githubusercontent.com/u/38836857?v=4","gravatar_id":"","url":"https://api.github.com/users/PerfectWeek","html_url":"https://github.com/PerfectWeek","followers_url":"https://api.github.com/users/PerfectWeek/followers","following_url":"https://api.github.com/users/PerfectWeek/following{/other_user}","gists_url":"https://api.github.com/users/PerfectWeek/gists{/gist_id}","starred_url":"https://api.github.com/users/PerfectWeek/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/PerfectWeek/subscriptions","organizations_url":"https://api.github.com/users/PerfectWeek/orgs","repos_url":"https://api.github.com/users/PerfectWeek/repos","events_url":"https://api.github.com/users/PerfectWeek/events{/privacy}","received_events_url":"https://api.github.com/users/PerfectWeek/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/PerfectWeek/web-api","description":"The Perfect Week API","fork":false,"url":"https://api.github.com/repos/PerfectWeek/web-api","forks_url":"https://api.github.com/repos/PerfectWeek/web-api/forks","keys_url":"https://api.github.com/repos/PerfectWeek/web-api/keys{/key_id}","collaborators_url":"https://api.github.com/repos/PerfectWeek/web-api/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/PerfectWeek/web-api/teams","hooks_url":"https://api.github.com/repos/PerfectWeek/web-api/hooks","issue_events_url":"https://api.github.com/repos/PerfectWeek/web-api/issues/events{/number}","events_url":"https://api.github.com/repos/PerfectWeek/web-api/events","assignees_url":"https://api.github.com/repos/PerfectWeek/web-api/assignees{/user}","branches_url":"https://api.github.com/repos/PerfectWeek/web-api/branches{/branch}","tags_url":"https://api.github.com/repos/PerfectWeek/web-api/tags","blobs_url":"https://api.github.com/repos/PerfectWeek/web-api/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/PerfectWeek/web-api/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/PerfectWeek/web-api/git/refs{/sha}","trees_url":"https://api.github.com/repos/PerfectWeek/web-api/git/trees{/sha}","statuses_url":"https://api.github.com/repos/PerfectWeek/web-api/statuses/{sha}","languages_url":"https://api.github.com/repos/PerfectWeek/web-api/languages","stargazers_url":"https://api.github.com/repos/PerfectWeek/web-api/stargazers","contributors_url":"https://api.github.com/repos/PerfectWeek/web-api/contributors","subscribers_url":"https://api.github.com/repos/PerfectWeek/web-api/subscribers","subscription_url":"https://api.github.com/repos/PerfectWeek/web-api/subscription","commits_url":"https://api.github.com/repos/PerfectWeek/web-api/commits{/sha}","git_commits_url":"https://api.github.com/repos/PerfectWeek/web-api/git/commits{/sha}","comments_url":"https://api.github.com/repos/PerfectWeek/web-api/comments{/number}","issue_comment_url":"https://api.github.com/repos/PerfectWeek/web-api/issues/comments{/number}","contents_url":"https://api.github.com/repos/PerfectWeek/web-api/contents/{+path}","compare_url":"https://api.github.com/repos/PerfectWeek/web-api/compare/{base}...{head}","merges_url":"https://api.github.com/repos/PerfectWeek/web-api/merges","archive_url":"https://api.github.com/repos/PerfectWeek/web-api/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/PerfectWeek/web-api/downloads","issues_url":"https://api.github.com/repos/PerfectWeek/web-api/issues{/number}","pulls_url":"https://api.github.com/repos/PerfectWeek/web-api/pulls{/number}","milestones_url":"https://api.github.com/repos/PerfectWeek/web-api/milestones{/number}","notifications_url":"https://api.github.com/repos/PerfectWeek/web-api/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/PerfectWeek/web-api/labels{/name}","releases_url":"https://api.github.com/repos/PerfectWeek/web-api/releases{/id}","deployments_url":"https://api.github.com/repos/PerfectWeek/web-api/deployments","created_at":"2018-05-12T12:41:10Z","updated_at":"2018-11-28T04:20:22Z","pushed_at":"2018-11-29T04:23:53Z","git_url":"git://github.com/PerfectWeek/web-api.git","ssh_url":"git@github.com:PerfectWeek/web-api.git","clone_url":"https://github.com/PerfectWeek/web-api.git","svn_url":"https://github.com/PerfectWeek/web-api","homepage":"","size":336,"stargazers_count":2,"watchers_count":2,"language":"TypeScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":11,"license":{"key":"gpl-3.0","name":"GNU General Public License v3.0","spdx_id":"GPL-3.0","url":"https://api.github.com/licenses/gpl-3.0","node_id":"MDc6TGljZW5zZTk="},"forks":0,"open_issues":11,"watchers":2,"default_branch":"dev"}},"base":{"label":"PerfectWeek:dev","ref":"dev","sha":"e373860c12597fd0ad91e8ffadd50f79ae0638db","user":{"login":"PerfectWeek","id":38836857,"node_id":"MDEyOk9yZ2FuaXphdGlvbjM4ODM2ODU3","avatar_url":"https://avatars3.githubusercontent.com/u/38836857?v=4","gravatar_id":"","url":"https://api.github.com/users/PerfectWeek","html_url":"https://github.com/PerfectWeek","followers_url":"https://api.github.com/users/PerfectWeek/followers","following_url":"https://api.github.com/users/PerfectWeek/following{/other_user}","gists_url":"https://api.github.com/users/PerfectWeek/gists{/gist_id}","starred_url":"https://api.github.com/users/PerfectWeek/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/PerfectWeek/subscriptions","organizations_url":"https://api.github.com/users/PerfectWeek/orgs","repos_url":"https://api.github.com/users/PerfectWeek/repos","events_url":"https://api.github.com/users/PerfectWeek/events{/privacy}","received_events_url":"https://api.github.com/users/PerfectWeek/received_events","type":"Organization","site_admin":false},"repo":{"id":133144975,"node_id":"MDEwOlJlcG9zaXRvcnkxMzMxNDQ5NzU=","name":"web-api","full_name":"PerfectWeek/web-api","private":false,"owner":{"login":"PerfectWeek","id":38836857,"node_id":"MDEyOk9yZ2FuaXphdGlvbjM4ODM2ODU3","avatar_url":"https://avatars3.githubusercontent.com/u/38836857?v=4","gravatar_id":"","url":"https://api.github.com/users/PerfectWeek","html_url":"https://github.com/PerfectWeek","followers_url":"https://api.github.com/users/PerfectWeek/followers","following_url":"https://api.github.com/users/PerfectWeek/following{/other_user}","gists_url":"https://api.github.com/users/PerfectWeek/gists{/gist_id}","starred_url":"https://api.github.com/users/PerfectWeek/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/PerfectWeek/subscriptions","organizations_url":"https://api.github.com/users/PerfectWeek/orgs","repos_url":"https://api.github.com/users/PerfectWeek/repos","events_url":"https://api.github.com/users/PerfectWeek/events{/privacy}","received_events_url":"https://api.github.com/users/PerfectWeek/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/PerfectWeek/web-api","description":"The Perfect Week API","fork":false,"url":"https://api.github.com/repos/PerfectWeek/web-api","forks_url":"https://api.github.com/repos/PerfectWeek/web-api/forks","keys_url":"https://api.github.com/repos/PerfectWeek/web-api/keys{/key_id}","collaborators_url":"https://api.github.com/repos/PerfectWeek/web-api/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/PerfectWeek/web-api/teams","hooks_url":"https://api.github.com/repos/PerfectWeek/web-api/hooks","issue_events_url":"https://api.github.com/repos/PerfectWeek/web-api/issues/events{/number}","events_url":"https://api.github.com/repos/PerfectWeek/web-api/events","assignees_url":"https://api.github.com/repos/PerfectWeek/web-api/assignees{/user}","branches_url":"https://api.github.com/repos/PerfectWeek/web-api/branches{/branch}","tags_url":"https://api.github.com/repos/PerfectWeek/web-api/tags","blobs_url":"https://api.github.com/repos/PerfectWeek/web-api/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/PerfectWeek/web-api/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/PerfectWeek/web-api/git/refs{/sha}","trees_url":"https://api.github.com/repos/PerfectWeek/web-api/git/trees{/sha}","statuses_url":"https://api.github.com/repos/PerfectWeek/web-api/statuses/{sha}","languages_url":"https://api.github.com/repos/PerfectWeek/web-api/languages","stargazers_url":"https://api.github.com/repos/PerfectWeek/web-api/stargazers","contributors_url":"https://api.github.com/repos/PerfectWeek/web-api/contributors","subscribers_url":"https://api.github.com/repos/PerfectWeek/web-api/subscribers","subscription_url":"https://api.github.com/repos/PerfectWeek/web-api/subscription","commits_url":"https://api.github.com/repos/PerfectWeek/web-api/commits{/sha}","git_commits_url":"https://api.github.com/repos/PerfectWeek/web-api/git/commits{/sha}","comments_url":"https://api.github.com/repos/PerfectWeek/web-api/comments{/number}","issue_comment_url":"https://api.github.com/repos/PerfectWeek/web-api/issues/comments{/number}","contents_url":"https://api.github.com/repos/PerfectWeek/web-api/contents/{+path}","compare_url":"https://api.github.com/repos/PerfectWeek/web-api/compare/{base}...{head}","merges_url":"https://api.github.com/repos/PerfectWeek/web-api/merges","archive_url":"https://api.github.com/repos/PerfectWeek/web-api/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/PerfectWeek/web-api/downloads","issues_url":"https://api.github.com/repos/PerfectWeek/web-api/issues{/number}","pulls_url":"https://api.github.com/repos/PerfectWeek/web-api/pulls{/number}","milestones_url":"https://api.github.com/repos/PerfectWeek/web-api/milestones{/number}","notifications_url":"https://api.github.com/repos/PerfectWeek/web-api/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/PerfectWeek/web-api/labels{/name}","releases_url":"https://api.github.com/repos/PerfectWeek/web-api/releases{/id}","deployments_url":"https://api.github.com/repos/PerfectWeek/web-api/deployments","created_at":"2018-05-12T12:41:10Z","updated_at":"2018-11-28T04:20:22Z","pushed_at":"2018-11-29T04:23:53Z","git_url":"git://github.com/PerfectWeek/web-api.git","ssh_url":"git@github.com:PerfectWeek/web-api.git","clone_url":"https://github.com/PerfectWeek/web-api.git","svn_url":"https://github.com/PerfectWeek/web-api","homepage":"","size":336,"stargazers_count":2,"watchers_count":2,"language":"TypeScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":11,"license":{"key":"gpl-3.0","name":"GNU General Public License v3.0","spdx_id":"GPL-3.0","url":"https://api.github.com/licenses/gpl-3.0","node_id":"MDc6TGljZW5zZTk="},"forks":0,"open_issues":11,"watchers":2,"default_branch":"dev"}},"_links":{"self":{"href":"https://api.github.com/repos/PerfectWeek/web-api/pulls/87"},"html":{"href":"https://github.com/PerfectWeek/web-api/pull/87"},"issue":{"href":"https://api.github.com/repos/PerfectWeek/web-api/issues/87"},"comments":{"href":"https://api.github.com/repos/PerfectWeek/web-api/issues/87/comments"},"review_comments":{"href":"https://api.github.com/repos/PerfectWeek/web-api/pulls/87/comments"},"review_comment":{"href":"https://api.github.com/repos/PerfectWeek/web-api/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/PerfectWeek/web-api/pulls/87/commits"},"statuses":{"href":"https://api.github.com/repos/PerfectWeek/web-api/statuses/c240de3820b2e10c1ef230540412e3dbff3b2ceb"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"benard-g"}}