Aller au contenu

Table: activities

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

Referenced by:

ColumnTypeNullableNotes
iduuidnoDefault gen_random_uuid()
activity_uritextno
activity_typetextno
actor_uritextno
actor_user_refbigintyes
object_uritextyes
object_kindtextyes
object_local_idtextyes
target_uritextyes
to_urisjsonbnoDefault '[]'::jsonb
cc_urisjsonbnoDefault '[]'::jsonb
bto_urisjsonbnoDefault '[]'::jsonb
bcc_urisjsonbnoDefault '[]'::jsonb
audience_urisjsonbnoDefault '[]'::jsonb
payloadjsonbno
signature_valuetextyes
signature_pubkeytextyes
sourcetextnoDefault 'local'::text
published_attimestampnoDefault now()
created_attimestampnoDefault now()
  • CONSTRAINT activities_activity_type_check CHECK ((activity_type = ANY (ARRAY['Create'::text, 'Update'::text, 'Delete'::text, 'Follow'::text, 'Accept'::text, 'Reject'::text, 'Undo'::text, 'Like'::text, 'Announce'::text, 'Block'::text, 'Add'::text, 'Remove'::text, 'aa:Share'::text, 'aa:Unshare'::text, 'aa:RevokeShare'::text, 'aa:Approve'::text, 'aa:RequestChanges'::text, 'aa:MarkReviewed'::text, 'aa:Annotation'::text, 'aa:WorkflowTransition'::text, 'aa:AssetVersion'::text, 'aa:Subscribe'::text, 'aa:Mention'::text])))
  • CONSTRAINT activities_object_kind_check CHECK (((object_kind IS NULL) OR (object_kind = ANY (ARRAY['post'::text, 'comment'::text, 'asset'::text, 'user'::text, 'collection'::text, 'workspace'::text, 'brand_kit'::text, 'message'::text, 'activity'::text]))))
  • CONSTRAINT activities_source_check CHECK (((source = 'local'::text) OR (source ~~ 'https://%'::text)))
CREATE TABLE public.activities (
id uuid DEFAULT gen_random_uuid() NOT NULL,
activity_uri text NOT NULL,
activity_type text NOT NULL,
actor_uri text NOT NULL,
actor_user_ref bigint,
object_uri text,
object_kind text,
object_local_id text,
target_uri text,
to_uris jsonb DEFAULT '[]'::jsonb NOT NULL,
cc_uris jsonb DEFAULT '[]'::jsonb NOT NULL,
bto_uris jsonb DEFAULT '[]'::jsonb NOT NULL,
bcc_uris jsonb DEFAULT '[]'::jsonb NOT NULL,
audience_uris jsonb DEFAULT '[]'::jsonb NOT NULL,
payload jsonb NOT NULL,
signature_value text,
signature_pubkey text,
source text DEFAULT 'local'::text NOT NULL,
published_at timestamp with time zone DEFAULT now() NOT NULL,
created_at timestamp with time zone DEFAULT now() NOT NULL,
CONSTRAINT activities_activity_type_check CHECK ((activity_type = ANY (ARRAY['Create'::text, 'Update'::text, 'Delete'::text, 'Follow'::text, 'Accept'::text, 'Reject'::text, 'Undo'::text, 'Like'::text, 'Announce'::text, 'Block'::text, 'Add'::text, 'Remove'::text, 'aa:Share'::text, 'aa:Unshare'::text, 'aa:RevokeShare'::text, 'aa:Approve'::text, 'aa:RequestChanges'::text, 'aa:MarkReviewed'::text, 'aa:Annotation'::text, 'aa:WorkflowTransition'::text, 'aa:AssetVersion'::text, 'aa:Subscribe'::text, 'aa:Mention'::text]))),
CONSTRAINT activities_object_kind_check CHECK (((object_kind IS NULL) OR (object_kind = ANY (ARRAY['post'::text, 'comment'::text, 'asset'::text, 'user'::text, 'collection'::text, 'workspace'::text, 'brand_kit'::text, 'message'::text, 'activity'::text])))),
CONSTRAINT activities_source_check CHECK (((source = 'local'::text) OR (source ~~ 'https://%'::text)))
);

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