Aller au contenu

Table: api_tokens

Ce contenu n’est pas encore disponible dans votre langue.

ColumnTypeNullableNotes
iduuidnoDefault gen_random_uuid()
user_refbigintno
nametextno
token_hashbyteano
scopestext[]noDefault '{}'::text[]
expires_attimestampyes
last_used_attimestampyes
revoked_attimestampyes
created_attimestampnoDefault now()
origin_server_iduuidyes
CREATE TABLE public.api_tokens (
id uuid DEFAULT gen_random_uuid() NOT NULL,
user_ref bigint NOT NULL,
name text NOT NULL,
token_hash bytea NOT NULL,
scopes text[] DEFAULT '{}'::text[] NOT NULL,
expires_at timestamp with time zone,
last_used_at timestamp with time zone,
revoked_at timestamp with time zone,
created_at timestamp with time zone DEFAULT now() NOT NULL,
origin_server_id uuid
);

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