all repos

onasty @ d74a3878064113aa2c096f346d96468bd51c4338

a one-time notes service

onasty/migrations/20250509131258_password_reset_tokens.up.sql (view raw)

Smirnov Oleksandr Smirnov Oleksandr
ss2316544@gmail.com
feat: reset password (#110)..., 1 year ago
1
CREATE TABLE password_reset_tokens (
2
    id uuid PRIMARY KEY DEFAULT uuid_generate_v4 (),
3
    user_id uuid NOT NULL REFERENCES users (id),
4
    token varchar(255) NOT NULL UNIQUE,
5
    created_at timestamptz NOT NULL DEFAULT now(),
6
    expires_at timestamptz NOT NULL,
7
    used_at timestamptz DEFAULT NULL
8
);