Table: activities
Ce contenu n’est pas encore disponible dans votre langue.
Connected to
Section titled “Connected to”Referenced by:
federation_inbox— columncorrelation_activity_idfederation_outbox— columnactivity_idfederation_shares— columnsgranted_activity_id,revoked_activity_id
Columns
Section titled “Columns”| Column | Type | Nullable | Notes |
|---|---|---|---|
id | uuid | no | Default gen_random_uuid() |
activity_uri | text | no | — |
activity_type | text | no | — |
actor_uri | text | no | — |
actor_user_ref | bigint | yes | — |
object_uri | text | yes | — |
object_kind | text | yes | — |
object_local_id | text | yes | — |
target_uri | text | yes | — |
to_uris | jsonb | no | Default '[]'::jsonb |
cc_uris | jsonb | no | Default '[]'::jsonb |
bto_uris | jsonb | no | Default '[]'::jsonb |
bcc_uris | jsonb | no | Default '[]'::jsonb |
audience_uris | jsonb | no | Default '[]'::jsonb |
payload | jsonb | no | — |
signature_value | text | yes | — |
signature_pubkey | text | yes | — |
source | text | no | Default 'local'::text |
published_at | timestamp | no | Default now() |
created_at | timestamp | no | Default now() |
Constraints
Section titled “Constraints”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)))
Full DDL
Section titled “Full DDL”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.