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.

20220901171733_user_authentication.js 379B

123456789101112
  1. exports.up = function (knex) {
  2. return knex.schema.createTable('authentication', function (table) {
  3. table.string('user_email', 90).primary().unique()
  4. table.date('created_at').notNullable()
  5. // table.char('token').notNullable()
  6. table.binary('token')
  7. })
  8. }
  9. exports.down = function (knex) {
  10. return knex.schema.dropTable('authentication')
  11. }