mirror of
https://github.com/pocket-id/pocket-id.git
synced 2026-09-24 20:09:03 +02:00
11 lines
364 B
SQL
11 lines
364 B
SQL
CREATE TABLE email_verification_tokens
|
|
(
|
|
id UUID PRIMARY KEY,
|
|
created_at TIMESTAMPTZ NOT NULL,
|
|
token TEXT NOT NULL UNIQUE,
|
|
expires_at TIMESTAMPTZ NOT NULL,
|
|
user_id UUID NOT NULL REFERENCES users ON DELETE CASCADE
|
|
);
|
|
|
|
CREATE INDEX idx_email_verification_tokens_expires_at ON email_verification_tokens (expires_at);
|