colouring-montreal/migrations/010.password-reset.up.sql
2019-08-21 14:20:53 +01:00

6 lines
204 B
SQL

CREATE TABLE IF NOT EXISTS user_password_reset_tokens (
token uuid PRIMARY KEY DEFAULT gen_random_uuid(),
user_id uuid,
expires_on timestamp NOT NULL,
used boolean NOT NULL DEFAULT false
)