all repos

onasty @ 0afb97f

a one-time notes service

onasty/migrations/20240729115827_verification_tokens.up.sql (view raw)

Smirnov Oleksandr Smirnov Oleksandr
ss2316544@gmail.com
run pg_format on all sql files (#45), 1 year ago
1
CREATE TABLE verification_tokens (
2
    id uuid PRIMARY KEY DEFAULT uuid_generate_v4(),
3
    user_id uuid NOT NULL UNIQUE 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
);