feat: move email tokens to valkey

No need to have them in permanent DB storage when they are temporary
This commit is contained in:
Radical 2025-06-03 11:01:33 +00:00
parent 4cbe551061
commit b223dff4ba
5 changed files with 27 additions and 53 deletions

View file

@ -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)
);

View file

@ -0,0 +1,2 @@
-- Your SQL goes here
DROP TABLE email_tokens;