Skip to content

Table: email_verification_token

This table references:

  • user(ref) via column user_ref
ColumnTypeNullableNotes
iduuidnoDefault gen_random_uuid()
user_refbigintnoReferences user(ref)
token_hashbyteano
purposetextnoDefault 'register'::text
created_attimestampnoDefault now()
expires_attimestampno
consumed_attimestampyes
  • CONSTRAINT email_verification_token_purpose_check CHECK ((purpose = ANY (ARRAY['register'::text, 'email_change'::text])))
CREATE TABLE public.email_verification_token (
id uuid DEFAULT gen_random_uuid() NOT NULL,
user_ref bigint NOT NULL,
token_hash bytea NOT NULL,
purpose text DEFAULT 'register'::text NOT NULL,
created_at timestamp with time zone DEFAULT now() NOT NULL,
expires_at timestamp with time zone NOT NULL,
consumed_at timestamp with time zone,
CONSTRAINT email_verification_token_purpose_check CHECK ((purpose = ANY (ARRAY['register'::text, 'email_change'::text])))
);

Please see the schema overview for context. This document was last regenerated on 2026-07-26T08:25:29.520Z.