exports.up = function(knex, Promise) { return knex.schema.createTable('files', function (table) { table.increments() table.integer('folder_id') table.string('username') table.string('name') table.string('url') table.string('mime') table.string('datatype') table.float('duration') table.text('analysis') table.integer('size') table.integer('stars').defaultTo(0) table.string('activity') table.string('module') table.string('checkpoint') table.string('dataset') table.integer('epoch') table.json('opt') table.boolean('processed') table.boolean('generated') table.timestamps() }) }; exports.down = function(knex, Promise) { return knex.schema.dropTable('files') };