• Nicolas Giard's avatar
    feat: manage / create API keys (#1516) · f72cf664
    Nicolas Giard authored
    * fix: admin api UI update
    
    * feat: admin api - create dialog UI
    
    * feat: admin api - create + list keys
    
    * feat: admin api localization (wip)
    
    * feat: admin api localization
    
    * feat: admin api - toggle state
    
    * feat: process API keys + format gql request errors to json
    f72cf664
2.2.3.js 441 Bytes
exports.up = knex => {
  return knex.schema
    .createTable('apiKeys', table => {
      table.increments('id').primary()
      table.string('name').notNullable()
      table.text('key').notNullable()
      table.string('expiration').notNullable()
      table.boolean('isRevoked').notNullable().defaultTo(false)
      table.string('createdAt').notNullable()
      table.string('updatedAt').notNullable()
    })
}

exports.down = knex => { }