Ir al contenido

Table: federation_peers

Esta página aún no está disponible en tu idioma.

Referenced by:

ColumnTypeNullableNotes
iduuidnoDefault gen_random_uuid()
instance_urltextno
display_nametextno
instance_public_keytextno
trust_tiertextnoDefault 'connected'::text
encryption_policytextnoDefault 'plaintext'::text
enabledbooleannoDefault true
statustextnoDefault 'connected'::text
handshake_attimestampnoDefault now()
handshake_by_user_refbigintno
last_seen_attimestampyes
notestextnoDefault ''::text
share_in_visible_listbooleannoDefault false
created_attimestampnoDefault now()
updated_attimestampnoDefault now()
capabilitiesjsonbnoDefault '[]'::jsonb
capabilities_negotiated_attimestampyes
  • CONSTRAINT federation_peers_encryption_policy_check CHECK ((encryption_policy = ANY (ARRAY['plaintext'::text, 'e2e-encrypted'::text])))
  • CONSTRAINT federation_peers_status_check CHECK ((status = ANY (ARRAY['pending_outbound'::text, 'pending_inbound'::text, 'connected'::text])))
  • CONSTRAINT federation_peers_trust_tier_check CHECK ((trust_tier = ANY (ARRAY['connected'::text, 'directory-listed'::text, 'auto-sync'::text])))
CREATE TABLE public.federation_peers (
id uuid DEFAULT gen_random_uuid() NOT NULL,
instance_url text NOT NULL,
display_name text NOT NULL,
instance_public_key text NOT NULL,
trust_tier text DEFAULT 'connected'::text NOT NULL,
encryption_policy text DEFAULT 'plaintext'::text NOT NULL,
enabled boolean DEFAULT true NOT NULL,
status text DEFAULT 'connected'::text NOT NULL,
handshake_at timestamp with time zone DEFAULT now() NOT NULL,
handshake_by_user_ref bigint NOT NULL,
last_seen_at timestamp with time zone,
notes text DEFAULT ''::text NOT NULL,
share_in_visible_list boolean DEFAULT false NOT NULL,
created_at timestamp with time zone DEFAULT now() NOT NULL,
updated_at timestamp with time zone DEFAULT now() NOT NULL,
capabilities jsonb DEFAULT '[]'::jsonb NOT NULL,
capabilities_negotiated_at timestamp with time zone,
CONSTRAINT federation_peers_encryption_policy_check CHECK ((encryption_policy = ANY (ARRAY['plaintext'::text, 'e2e-encrypted'::text]))),
CONSTRAINT federation_peers_status_check CHECK ((status = ANY (ARRAY['pending_outbound'::text, 'pending_inbound'::text, 'connected'::text]))),
CONSTRAINT federation_peers_trust_tier_check CHECK ((trust_tier = ANY (ARRAY['connected'::text, 'directory-listed'::text, 'auto-sync'::text])))
);

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