Add payloads schema

This commit is contained in:
Zalmoxisus committed 2016-11-09 18:45:41 +02:00
1 parent 9c048e66ef
commit 6f202e7715
2 files changed
+28 -6

No files matched your search

+10
View File
@@ -20,6 +20,16 @@ exports.up = function(knex, Promise) {
.references('id')
.inTable('remotedev_apps');
}),
knex.schema.createTable('remotedev_payloads', function(table){
table.uuid('id').primary();
table.text('state');
table.text('action');
table.timestamp('added');
table.uuid('reportId')
.references('id')
.inTable('remotedev_reports');
}),
knex.schema.createTable('remotedev_apps', function(table){
table.uuid('id').primary();