feat: save last auth attempt per customer

This commit is contained in:
Rafael Taranto 2024-05-29 09:24:18 +01:00
parent 5ae9b76c3b
commit 4743f7f62c
5 changed files with 34 additions and 8 deletions

View file

@ -0,0 +1,13 @@
const db = require('./db')
exports.up = function (next) {
let sql = [
'ALTER TABLE customers ADD COLUMN last_auth_attempt timestamptz'
]
db.multi(sql, next)
}
exports.down = function (next) {
next()
}