feat: move email tokens to valkey
No need to have them in permanent DB storage when they are temporary
This commit is contained in:
parent
4cbe551061
commit
b223dff4ba
5 changed files with 27 additions and 53 deletions
|
@ -0,0 +1,7 @@
|
|||
-- This file should undo anything in `up.sql`
|
||||
CREATE TABLE email_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)
|
||||
);
|
2
migrations/2025-06-03-103311_remove_email_tokens/up.sql
Normal file
2
migrations/2025-06-03-103311_remove_email_tokens/up.sql
Normal file
|
@ -0,0 +1,2 @@
|
|||
-- Your SQL goes here
|
||||
DROP TABLE email_tokens;
|
Loading…
Add table
Add a link
Reference in a new issue