token expiry"

"
This commit is contained in:
ntr
2019-06-16 15:06:43 +10:00
parent 2b06c83ea0
commit 9fcdbeb370
5 changed files with 57 additions and 50 deletions
@@ -4,7 +4,8 @@ exports.up = async knex => {
table.timestamps(true, true);
table.string('name', 42).notNullable().unique();
table.string('password').notNullable();
table.string('token', 64).notNullable();
table.string('token', 64);
table.timestamp('token_expiry');
table.index('name');
table.index('id');