{"action":"created","comment":{"url":"https://api.github.com/repos/Project-ODE/FeatureService/pulls/comments/200289085","pull_request_review_id":134573330,"id":200289085,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIwMDI4OTA4NQ==","diff_hunk":"@@ -0,0 +1,322 @@\n+'use strict';\n+\n+exports.up = knex => {\n+    return knex.schema\n+        .createTable('users', table => {\n+            table.increments('id').primary();\n+            table.string('email');\n+            table.string('password');\n+        })\n+        .createTable('dataset_types', table => {\n+            table.increments('id').primary();\n+            table.string('name');\n+            table.text('desc');\n+        })\n+        .createTable('geo_metadata', table => {\n+            table.increments('id').primary();\n+            table.string('name');\n+            table.text('desc');\n+            table.specificType('location', 'point');\n+            table.specificType('region', 'geography');\n+        })\n+        .createTable('tabular_metadata', table => {\n+            table.increments('id').primary();\n+            table.string('name');\n+            table.text('desc');\n+            table.integer('dimension_count');\n+            table.integer('variable_count');\n+        })\n+        .createTable('tabular_metadata_variables', table => {\n+            table.increments('id').primary();\n+            table\n+                .integer('tabular_metadata_id')\n+                .unsigned()\n+                .references('id')\n+                .inTable('tabular_metadata')\n+                .onDelete('CASCADE');\n+            table.string('name');\n+            table.text('desc');\n+            table.string('data_type');\n+            table.integer('dimension_size');\n+            table.integer('variable_position');\n+        })\n+        .createTable('tabular_metadata_shapes', table => {\n+            table.increments('id').primary();\n+            table\n+                .integer('tabular_metadata_variable_id')\n+                .unsigned()\n+                .references('id')\n+                .inTable('tabular_metadata_variables')\n+                .onDelete('CASCADE');\n+            table\n+                .integer('tabular_metadata_dimension_id')\n+                .unsigned()\n+                .references('id')\n+                .inTable('tabular_metadata_variables')\n+                .onDelete('CASCADE');\n+            table.integer('dimension_position');\n+        })\n+        .createTable('audio_metadata', table => {\n+            table.increments('id').primary();\n+            table.dateTime('start');\n+            table.dateTime('end');\n+            table.integer('num_channels');\n+            table.double('sample_rate_khz');\n+            table.integer('total_samples');\n+            table.integer('sample_bits');\n+            table.double('gain_db');\n+            table.double('gain_rel');\n+            table.double('dutycycle_rdm');\n+            table.double('dutycycle_rim');\n+        })\n+        .createTable('datasets', table => {\n+            table.increments('id').primary();\n+            table.string('name');\n+            table.string('dataset_path');\n+            table.integer('status');\n+            table\n+                .integer('dataset_type_id')\n+                .unsigned()\n+                .references('id')\n+                .inTable('dataset_types')\n+                .onDelete('CASCADE');\n+            table.string('files_type');\n+            table.date('start_date');\n+            table.date('end_date');\n+            table\n+                .integer('geo_metadata_id')\n+                .unsigned()\n+                .references('id')\n+                .inTable('geo_metadata')\n+                .onDelete('CASCADE');\n+            table\n+                .integer('tabular_metadata_id')\n+                .unsigned()\n+                .references('id')\n+                .inTable('tabular_metadata')\n+                .onDelete('CASCADE');\n+            table\n+                .integer('audio_metadata_id')\n+                .unsigned()\n+                .references('id')\n+                .inTable('audio_metadata')\n+                .onDelete('CASCADE');\n+            table\n+                .integer('owner_id')\n+                .unsigned()\n+                .references('id')\n+                .inTable('users')\n+                .onDelete('CASCADE');\n+        })\n+        .createTable('dataset_files', table => {\n+            table.increments('id').primary();\n+            table\n+                .integer('dataset_id')\n+                .unsigned()\n+                .references('id')\n+                .inTable('datasets')\n+                .onDelete('CASCADE');\n+            table.string('filename');\n+            table.string('filepath');\n+            table.bigInteger('size');\n+            table\n+                .integer('tabular_metadata_id')\n+                .unsigned()\n+                .references('id')\n+                .inTable('tabular_metadata')\n+                .onDelete('CASCADE');\n+            table\n+                .integer('audio_metadata_id')\n+                .unsigned()\n+                .references('id')\n+                .inTable('audio_metadata')\n+                .onDelete('CASCADE');\n+        })\n+        .createTable('collections', table => {\n+            table.increments('id').primary();\n+            table.string('name');\n+            table.text('desc');\n+            table\n+                .integer('owner_id')","path":"db/migrations/20180613172939_initial_schema.js","position":142,"original_position":140,"commit_id":"d5353f72dd9821249ea1477b97255ef4faa541bb","original_commit_id":"ae2a4e0300a08aba036cddaf2c55e6728d3676d4","user":{"login":"ixio","id":5647930,"node_id":"MDQ6VXNlcjU2NDc5MzA=","avatar_url":"https://avatars2.githubusercontent.com/u/5647930?v=4","gravatar_id":"","url":"https://api.github.com/users/ixio","html_url":"https://github.com/ixio","followers_url":"https://api.github.com/users/ixio/followers","following_url":"https://api.github.com/users/ixio/following{/other_user}","gists_url":"https://api.github.com/users/ixio/gists{/gist_id}","starred_url":"https://api.github.com/users/ixio/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ixio/subscriptions","organizations_url":"https://api.github.com/users/ixio/orgs","repos_url":"https://api.github.com/users/ixio/repos","events_url":"https://api.github.com/users/ixio/events{/privacy}","received_events_url":"https://api.github.com/users/ixio/received_events","type":"User","site_admin":false},"body":"Done","created_at":"2018-07-05T09:31:29Z","updated_at":"2018-07-05T09:31:29Z","html_url":"https://github.com/Project-ODE/FeatureService/pull/17#discussion_r200289085","pull_request_url":"https://api.github.com/repos/Project-ODE/FeatureService/pulls/17","author_association":"CONTRIBUTOR","_links":{"self":{"href":"https://api.github.com/repos/Project-ODE/FeatureService/pulls/comments/200289085"},"html":{"href":"https://github.com/Project-ODE/FeatureService/pull/17#discussion_r200289085"},"pull_request":{"href":"https://api.github.com/repos/Project-ODE/FeatureService/pulls/17"}},"in_reply_to_id":200098650},"pull_request":{"url":"https://api.github.com/repos/Project-ODE/FeatureService/pulls/17","id":198261261,"node_id":"MDExOlB1bGxSZXF1ZXN0MTk4MjYxMjYx","html_url":"https://github.com/Project-ODE/FeatureService/pull/17","diff_url":"https://github.com/Project-ODE/FeatureService/pull/17.diff","patch_url":"https://github.com/Project-ODE/FeatureService/pull/17.patch","issue_url":"https://api.github.com/repos/Project-ODE/FeatureService/issues/17","number":17,"state":"open","locked":false,"title":"Add db","user":{"login":"ixio","id":5647930,"node_id":"MDQ6VXNlcjU2NDc5MzA=","avatar_url":"https://avatars2.githubusercontent.com/u/5647930?v=4","gravatar_id":"","url":"https://api.github.com/users/ixio","html_url":"https://github.com/ixio","followers_url":"https://api.github.com/users/ixio/followers","following_url":"https://api.github.com/users/ixio/following{/other_user}","gists_url":"https://api.github.com/users/ixio/gists{/gist_id}","starred_url":"https://api.github.com/users/ixio/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ixio/subscriptions","organizations_url":"https://api.github.com/users/ixio/orgs","repos_url":"https://api.github.com/users/ixio/repos","events_url":"https://api.github.com/users/ixio/events{/privacy}","received_events_url":"https://api.github.com/users/ixio/received_events","type":"User","site_admin":false},"body":"","created_at":"2018-06-29T09:22:10Z","updated_at":"2018-07-05T09:31:29Z","closed_at":null,"merged_at":null,"merge_commit_sha":"8f621536443a33328b3063fdc763ca7240da380f","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/Project-ODE/FeatureService/pulls/17/commits","review_comments_url":"https://api.github.com/repos/Project-ODE/FeatureService/pulls/17/comments","review_comment_url":"https://api.github.com/repos/Project-ODE/FeatureService/pulls/comments{/number}","comments_url":"https://api.github.com/repos/Project-ODE/FeatureService/issues/17/comments","statuses_url":"https://api.github.com/repos/Project-ODE/FeatureService/statuses/d5353f72dd9821249ea1477b97255ef4faa541bb","head":{"label":"ixio:add-db","ref":"add-db","sha":"d5353f72dd9821249ea1477b97255ef4faa541bb","user":{"login":"ixio","id":5647930,"node_id":"MDQ6VXNlcjU2NDc5MzA=","avatar_url":"https://avatars2.githubusercontent.com/u/5647930?v=4","gravatar_id":"","url":"https://api.github.com/users/ixio","html_url":"https://github.com/ixio","followers_url":"https://api.github.com/users/ixio/followers","following_url":"https://api.github.com/users/ixio/following{/other_user}","gists_url":"https://api.github.com/users/ixio/gists{/gist_id}","starred_url":"https://api.github.com/users/ixio/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ixio/subscriptions","organizations_url":"https://api.github.com/users/ixio/orgs","repos_url":"https://api.github.com/users/ixio/repos","events_url":"https://api.github.com/users/ixio/events{/privacy}","received_events_url":"https://api.github.com/users/ixio/received_events","type":"User","site_admin":false},"repo":{"id":119045438,"node_id":"MDEwOlJlcG9zaXRvcnkxMTkwNDU0Mzg=","name":"FeatureService","full_name":"ixio/FeatureService","owner":{"login":"ixio","id":5647930,"node_id":"MDQ6VXNlcjU2NDc5MzA=","avatar_url":"https://avatars2.githubusercontent.com/u/5647930?v=4","gravatar_id":"","url":"https://api.github.com/users/ixio","html_url":"https://github.com/ixio","followers_url":"https://api.github.com/users/ixio/followers","following_url":"https://api.github.com/users/ixio/following{/other_user}","gists_url":"https://api.github.com/users/ixio/gists{/gist_id}","starred_url":"https://api.github.com/users/ixio/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ixio/subscriptions","organizations_url":"https://api.github.com/users/ixio/orgs","repos_url":"https://api.github.com/users/ixio/repos","events_url":"https://api.github.com/users/ixio/events{/privacy}","received_events_url":"https://api.github.com/users/ixio/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/ixio/FeatureService","description":null,"fork":true,"url":"https://api.github.com/repos/ixio/FeatureService","forks_url":"https://api.github.com/repos/ixio/FeatureService/forks","keys_url":"https://api.github.com/repos/ixio/FeatureService/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ixio/FeatureService/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ixio/FeatureService/teams","hooks_url":"https://api.github.com/repos/ixio/FeatureService/hooks","issue_events_url":"https://api.github.com/repos/ixio/FeatureService/issues/events{/number}","events_url":"https://api.github.com/repos/ixio/FeatureService/events","assignees_url":"https://api.github.com/repos/ixio/FeatureService/assignees{/user}","branches_url":"https://api.github.com/repos/ixio/FeatureService/branches{/branch}","tags_url":"https://api.github.com/repos/ixio/FeatureService/tags","blobs_url":"https://api.github.com/repos/ixio/FeatureService/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ixio/FeatureService/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ixio/FeatureService/git/refs{/sha}","trees_url":"https://api.github.com/repos/ixio/FeatureService/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ixio/FeatureService/statuses/{sha}","languages_url":"https://api.github.com/repos/ixio/FeatureService/languages","stargazers_url":"https://api.github.com/repos/ixio/FeatureService/stargazers","contributors_url":"https://api.github.com/repos/ixio/FeatureService/contributors","subscribers_url":"https://api.github.com/repos/ixio/FeatureService/subscribers","subscription_url":"https://api.github.com/repos/ixio/FeatureService/subscription","commits_url":"https://api.github.com/repos/ixio/FeatureService/commits{/sha}","git_commits_url":"https://api.github.com/repos/ixio/FeatureService/git/commits{/sha}","comments_url":"https://api.github.com/repos/ixio/FeatureService/comments{/number}","issue_comment_url":"https://api.github.com/repos/ixio/FeatureService/issues/comments{/number}","contents_url":"https://api.github.com/repos/ixio/FeatureService/contents/{+path}","compare_url":"https://api.github.com/repos/ixio/FeatureService/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ixio/FeatureService/merges","archive_url":"https://api.github.com/repos/ixio/FeatureService/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ixio/FeatureService/downloads","issues_url":"https://api.github.com/repos/ixio/FeatureService/issues{/number}","pulls_url":"https://api.github.com/repos/ixio/FeatureService/pulls{/number}","milestones_url":"https://api.github.com/repos/ixio/FeatureService/milestones{/number}","notifications_url":"https://api.github.com/repos/ixio/FeatureService/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ixio/FeatureService/labels{/name}","releases_url":"https://api.github.com/repos/ixio/FeatureService/releases{/id}","deployments_url":"https://api.github.com/repos/ixio/FeatureService/deployments","created_at":"2018-01-26T11:44:25Z","updated_at":"2018-06-14T13:56:58Z","pushed_at":"2018-07-05T09:29:24Z","git_url":"git://github.com/ixio/FeatureService.git","ssh_url":"git@github.com:ixio/FeatureService.git","clone_url":"https://github.com/ixio/FeatureService.git","svn_url":"https://github.com/ixio/FeatureService","homepage":null,"size":4629,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":0,"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":0,"watchers":0,"default_branch":"master"}},"base":{"label":"Project-ODE:master","ref":"master","sha":"eab912fe5df84b10691e7e540b34ec053308d142","user":{"login":"Project-ODE","id":32296801,"node_id":"MDEyOk9yZ2FuaXphdGlvbjMyMjk2ODAx","avatar_url":"https://avatars3.githubusercontent.com/u/32296801?v=4","gravatar_id":"","url":"https://api.github.com/users/Project-ODE","html_url":"https://github.com/Project-ODE","followers_url":"https://api.github.com/users/Project-ODE/followers","following_url":"https://api.github.com/users/Project-ODE/following{/other_user}","gists_url":"https://api.github.com/users/Project-ODE/gists{/gist_id}","starred_url":"https://api.github.com/users/Project-ODE/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Project-ODE/subscriptions","organizations_url":"https://api.github.com/users/Project-ODE/orgs","repos_url":"https://api.github.com/users/Project-ODE/repos","events_url":"https://api.github.com/users/Project-ODE/events{/privacy}","received_events_url":"https://api.github.com/users/Project-ODE/received_events","type":"Organization","site_admin":false},"repo":{"id":105141993,"node_id":"MDEwOlJlcG9zaXRvcnkxMDUxNDE5OTM=","name":"FeatureService","full_name":"Project-ODE/FeatureService","owner":{"login":"Project-ODE","id":32296801,"node_id":"MDEyOk9yZ2FuaXphdGlvbjMyMjk2ODAx","avatar_url":"https://avatars3.githubusercontent.com/u/32296801?v=4","gravatar_id":"","url":"https://api.github.com/users/Project-ODE","html_url":"https://github.com/Project-ODE","followers_url":"https://api.github.com/users/Project-ODE/followers","following_url":"https://api.github.com/users/Project-ODE/following{/other_user}","gists_url":"https://api.github.com/users/Project-ODE/gists{/gist_id}","starred_url":"https://api.github.com/users/Project-ODE/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Project-ODE/subscriptions","organizations_url":"https://api.github.com/users/Project-ODE/orgs","repos_url":"https://api.github.com/users/Project-ODE/repos","events_url":"https://api.github.com/users/Project-ODE/events{/privacy}","received_events_url":"https://api.github.com/users/Project-ODE/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/Project-ODE/FeatureService","description":null,"fork":false,"url":"https://api.github.com/repos/Project-ODE/FeatureService","forks_url":"https://api.github.com/repos/Project-ODE/FeatureService/forks","keys_url":"https://api.github.com/repos/Project-ODE/FeatureService/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Project-ODE/FeatureService/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Project-ODE/FeatureService/teams","hooks_url":"https://api.github.com/repos/Project-ODE/FeatureService/hooks","issue_events_url":"https://api.github.com/repos/Project-ODE/FeatureService/issues/events{/number}","events_url":"https://api.github.com/repos/Project-ODE/FeatureService/events","assignees_url":"https://api.github.com/repos/Project-ODE/FeatureService/assignees{/user}","branches_url":"https://api.github.com/repos/Project-ODE/FeatureService/branches{/branch}","tags_url":"https://api.github.com/repos/Project-ODE/FeatureService/tags","blobs_url":"https://api.github.com/repos/Project-ODE/FeatureService/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Project-ODE/FeatureService/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Project-ODE/FeatureService/git/refs{/sha}","trees_url":"https://api.github.com/repos/Project-ODE/FeatureService/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Project-ODE/FeatureService/statuses/{sha}","languages_url":"https://api.github.com/repos/Project-ODE/FeatureService/languages","stargazers_url":"https://api.github.com/repos/Project-ODE/FeatureService/stargazers","contributors_url":"https://api.github.com/repos/Project-ODE/FeatureService/contributors","subscribers_url":"https://api.github.com/repos/Project-ODE/FeatureService/subscribers","subscription_url":"https://api.github.com/repos/Project-ODE/FeatureService/subscription","commits_url":"https://api.github.com/repos/Project-ODE/FeatureService/commits{/sha}","git_commits_url":"https://api.github.com/repos/Project-ODE/FeatureService/git/commits{/sha}","comments_url":"https://api.github.com/repos/Project-ODE/FeatureService/comments{/number}","issue_comment_url":"https://api.github.com/repos/Project-ODE/FeatureService/issues/comments{/number}","contents_url":"https://api.github.com/repos/Project-ODE/FeatureService/contents/{+path}","compare_url":"https://api.github.com/repos/Project-ODE/FeatureService/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Project-ODE/FeatureService/merges","archive_url":"https://api.github.com/repos/Project-ODE/FeatureService/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Project-ODE/FeatureService/downloads","issues_url":"https://api.github.com/repos/Project-ODE/FeatureService/issues{/number}","pulls_url":"https://api.github.com/repos/Project-ODE/FeatureService/pulls{/number}","milestones_url":"https://api.github.com/repos/Project-ODE/FeatureService/milestones{/number}","notifications_url":"https://api.github.com/repos/Project-ODE/FeatureService/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Project-ODE/FeatureService/labels{/name}","releases_url":"https://api.github.com/repos/Project-ODE/FeatureService/releases{/id}","deployments_url":"https://api.github.com/repos/Project-ODE/FeatureService/deployments","created_at":"2017-09-28T11:49:40Z","updated_at":"2018-06-14T13:43:35Z","pushed_at":"2018-07-05T09:29:26Z","git_url":"git://github.com/Project-ODE/FeatureService.git","ssh_url":"git@github.com:Project-ODE/FeatureService.git","clone_url":"https://github.com/Project-ODE/FeatureService.git","svn_url":"https://github.com/Project-ODE/FeatureService","homepage":null,"size":4569,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":5,"mirror_url":null,"archived":false,"open_issues_count":1,"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":5,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/Project-ODE/FeatureService/pulls/17"},"html":{"href":"https://github.com/Project-ODE/FeatureService/pull/17"},"issue":{"href":"https://api.github.com/repos/Project-ODE/FeatureService/issues/17"},"comments":{"href":"https://api.github.com/repos/Project-ODE/FeatureService/issues/17/comments"},"review_comments":{"href":"https://api.github.com/repos/Project-ODE/FeatureService/pulls/17/comments"},"review_comment":{"href":"https://api.github.com/repos/Project-ODE/FeatureService/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/Project-ODE/FeatureService/pulls/17/commits"},"statuses":{"href":"https://api.github.com/repos/Project-ODE/FeatureService/statuses/d5353f72dd9821249ea1477b97255ef4faa541bb"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"ixio"}}