mirror of https://github.com/requarks/wiki
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.
15 lines
441 B
15 lines
441 B
5 years ago
|
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 => { }
|