backend/migrations/2025-06-03-103311_remove_email_tokens/down.sql
Radical b223dff4ba feat: move email tokens to valkey
No need to have them in permanent DB storage when they are temporary
2025-06-03 11:01:33 +00:00

7 lines
240 B
SQL

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