email recovery

This commit is contained in:
ntr
2019-08-26 14:28:46 +10:00
parent b75edcda66
commit 6ff292ff3c
5 changed files with 261 additions and 41 deletions
+8
View File
@@ -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);