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.
 
 
 

21 line
469 B

  1. exports.up = function(knex) {
  2. return knex.schema
  3. .createTable('users', async function (table) {
  4. table.increments('id');
  5. table.string('email');
  6. table.string('pwd');
  7. table.datetime('regdate').defaultTo(knex.fn.now());
  8. table.string('regcode');
  9. table.boolean('validated');
  10. table.string('firstName');
  11. table.string('lastName');
  12. })
  13. };
  14. exports.down = function(knex) {
  15. return knex.schema
  16. .dropTable('users')
  17. };