Não pode escolher mais do que 25 tópicos Os tópicos devem começar com uma letra ou um número, podem incluir traços ('-') e podem ter até 35 caracteres.
 
 
 

28 linhas
717 B

  1. exports.up = async function up(knex) {
  2. await knex.schema.createTable('users', table => {
  3. table
  4. .increments('id')
  5. .unsigned()
  6. .notNullable()
  7. .primary(['user_job_pkey']);
  8. table.string('email', 60).notNullable();
  9. table.string('name', 60).notNullable();
  10. table.string('password', 60).notNullable();
  11. table.timestamp('email_verified_at').defaultTo(knex.fn.now());
  12. table
  13. .timestamp('created_at')
  14. .notNullable()
  15. .defaultTo(knex.fn.now());
  16. table
  17. .timestamp('updated_at')
  18. .notNullable()
  19. .defaultTo(knex.fn.now());
  20. table.unique('email');
  21. });
  22. };
  23. exports.down = async function down(knex) {
  24. await knex.schema.dropTable('users');
  25. };