1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 | 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 2x | exports.up = function(knex) { return knex.schema.createTable('users', table => { table.increments('id').primary(); table.string('name'); table.string('email'); table.string('password'); table.string('resetPasswordToken'); table.string('resetPasswordExp'); table.timestamps(); }); }; exports.down = function(knex) { return knex.schema.dropTableIfExists('users'); }; |