Add payloads schema

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

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();