email recovery
This commit is contained in:
@@ -24,6 +24,14 @@ exports.up = async knex => {
|
||||
.notNullable()
|
||||
.index();
|
||||
|
||||
table.string('recover_token', 64)
|
||||
.notNullable()
|
||||
.index();
|
||||
|
||||
table.timestamp('recover_token_expiry')
|
||||
.notNullable()
|
||||
.defaultTo(knex.fn.now());
|
||||
|
||||
table.bool('confirmed')
|
||||
.notNullable()
|
||||
.defaultTo(false);
|
||||
|
||||
Reference in New Issue
Block a user