Aller au contenu

Table: federation_shares

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

This table references:

ColumnTypeNullableNotes
iduuidnoDefault gen_random_uuid()
grantor_user_refbigintno
object_kindtextno
object_iduuidno
peer_iduuidnoReferences federation_peers(id)
target_user_urltextyes
scopetextnoDefault 'view'::text
expires_attimestampyes
notestextnoDefault ''::text
granted_activity_iduuidnoReferences activities(id)
granted_attimestampnoDefault now()
revoked_attimestampyes
revoked_activity_iduuidyesReferences activities(id)
created_attimestampnoDefault now()
updated_attimestampnoDefault now()
  • CONSTRAINT federation_shares_object_kind_check CHECK ((object_kind = ANY (ARRAY['asset'::text, 'post'::text, 'collection'::text, 'workspace'::text, 'brand_kit'::text, 'user'::text])))
  • CONSTRAINT federation_shares_scope_check CHECK ((scope = ANY (ARRAY['view'::text, 'comment'::text, 'annotate'::text, 'remix'::text])))
CREATE TABLE public.federation_shares (
id uuid DEFAULT gen_random_uuid() NOT NULL,
grantor_user_ref bigint NOT NULL,
object_kind text NOT NULL,
object_id uuid NOT NULL,
peer_id uuid NOT NULL,
target_user_url text,
scope text DEFAULT 'view'::text NOT NULL,
expires_at timestamp with time zone,
notes text DEFAULT ''::text NOT NULL,
granted_activity_id uuid NOT NULL,
granted_at timestamp with time zone DEFAULT now() NOT NULL,
revoked_at timestamp with time zone,
revoked_activity_id uuid,
created_at timestamp with time zone DEFAULT now() NOT NULL,
updated_at timestamp with time zone DEFAULT now() NOT NULL,
CONSTRAINT federation_shares_object_kind_check CHECK ((object_kind = ANY (ARRAY['asset'::text, 'post'::text, 'collection'::text, 'workspace'::text, 'brand_kit'::text, 'user'::text]))),
CONSTRAINT federation_shares_scope_check CHECK ((scope = ANY (ARRAY['view'::text, 'comment'::text, 'annotate'::text, 'remix'::text])))
);

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