Add password reset token database migrations

This commit is contained in:
Maciej Ziarkowski 2019-08-21 14:20:53 +01:00
parent 54bd565cc8
commit 9c67b46f02
2 changed files with 7 additions and 0 deletions

View File

@ -0,0 +1 @@
DROP TABLE IF EXISTS user_password_reset_tokens;

View File

@ -0,0 +1,6 @@
CREATE TABLE IF NOT EXISTS user_password_reset_tokens (
token uuid PRIMARY KEY DEFAULT gen_random_uuid(),
user_id uuid,
expires_on timestamp NOT NULL,
used boolean NOT NULL DEFAULT false
)