exports.up = function(knex, Promise) { return knex.schema.createTable('usuario', t => { t.increments('Id') t.string('Nome').notNullable() t.string('Login').notNullable() t.string('Senha').notNullable() t.integer('Ativo').notNullable() t.integer('Nivel').notNullable() t.integer('Setor').notNullable() t.datetime('UltimoLogin') }) }; exports.down = function(knex, Promise) { return knex.schema.dropTable('usuario') };