backend/migrations/2025-05-28-175918_create_password_reset_tokens/up.sql
2025-05-28 23:13:41 +02:00

7 lines
225 B
SQL

-- Your SQL goes here
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)
);