feat: move password reset tokens to valkey
Also just as useless to keep in DB
This commit is contained in:
parent
b223dff4ba
commit
419f37b108
5 changed files with 37 additions and 62 deletions
|
@ -0,0 +1,7 @@
|
|||
-- This file should undo anything in `up.sql`
|
||||
CREATE TABLE password_reset_tokens (
|
||||
token VARCHAR(64) NOT NULL,
|
||||
user_uuid uuid UNIQUE NOT NULL REFERENCES users(uuid),
|
||||
created_at TIMESTAMPTZ NOT NULL,
|
||||
PRIMARY KEY (token, user_uuid)
|
||||
);
|
|
@ -0,0 +1,2 @@
|
|||
-- Your SQL goes here
|
||||
DROP TABLE password_reset_tokens;
|
Loading…
Add table
Add a link
Reference in a new issue