You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

17 lines
437 B

exports.up = function(knex) {
return knex.schema
.createTable('users', function (table) {
table.increments('id').primary().notNullable();
table.string('email', 255).notNullable();
table.string('password_hash').notNullable();
table.string('username', 255).notNullable();
table.timestamps(true, true);
})
};
exports.down = function(knex) {
return knex.schema
.dropTable("users");
};