exports.up = function (knex, Promise) { return knex.schema.createTable('indique', t => { t.increments('Id') t.string('NomeTitular').notNullable() t.string('CpfTitular').notNullable() t.string('TelefoneTitular').notNullable() t.string('NomeIndicado').notNullable() t.string('TelefoneIndicado').notNullable() t.timestamp('DataCadastro').notNullable().defaultTo(knex.raw('CURRENT_TIMESTAMP')) t.integer('Status').notNullable() }) }; exports.down = function (knex, Promise) { return knex.schema.dropTable('indique') };