BrainMinder/assets/migrations/000003_create_password_resets_table.up.sql

8 lines
209 B
MySQL
Raw Normal View History

2024-08-22 10:13:16 +02:00
CREATE TABLE password_resets (
hashed_token TEXT NOT NULL PRIMARY KEY,
user_id INTEGER NOT NULL,
expiry TIMESTAMP NOT NULL
);
CREATE INDEX idx_password_resets_user_id ON password_resets(user_id);