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.

14 lines
441 B

  1. exports.up = knex => {
  2. return knex.schema
  3. .createTable('apiKeys', table => {
  4. table.increments('id').primary()
  5. table.string('name').notNullable()
  6. table.text('key').notNullable()
  7. table.string('expiration').notNullable()
  8. table.boolean('isRevoked').notNullable().defaultTo(false)
  9. table.string('createdAt').notNullable()
  10. table.string('updatedAt').notNullable()
  11. })
  12. }
  13. exports.down = knex => { }