Add password reset token database migrations
This commit is contained in:
parent
54bd565cc8
commit
9c67b46f02
1
migrations/010.password-reset.down.sql
Normal file
1
migrations/010.password-reset.down.sql
Normal file
@ -0,0 +1 @@
|
||||
DROP TABLE IF EXISTS user_password_reset_tokens;
|
6
migrations/010.password-reset.up.sql
Normal file
6
migrations/010.password-reset.up.sql
Normal 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
|
||||
)
|
Loading…
Reference in New Issue
Block a user