exports.up = function(knex) { return knex.schema.createTable('manual_journals', (table) => { table.increments(); table.string('journal_number').index(); table.string('reference').index(); table.string('journal_type').index(); table.decimal('amount', 13, 3); table.date('date').index(); table.boolean('status').defaultTo(false).index(); table.string('description'); table.string('attachment_file'); table.integer('user_id').unsigned().index(); table.timestamps(); }).raw('ALTER TABLE `MANUAL_JOURNALS` AUTO_INCREMENT = 1000'); }; exports.down = function(knex) { return knex.schema.dropTableIfExists('manual_journals'); };