Aller au contenu

Table: scheduled_actions

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

ColumnTypeNullableNotes
iduuidnoDefault gen_random_uuid()
actiontextno
target_kindtextno
target_idtextno
paramsjsonbnoDefault '{}'::jsonb
scheduled_fortimestampno
statetextnoDefault 'pending'::text
errortextyes
created_bybigintyes
created_attimestampnoDefault now()
executed_attimestampyes
  • CONSTRAINT scheduled_actions_action_check CHECK ((action = ANY (ARRAY['restrict'::text, 'delete'::text, 'change_state'::text, 'change_sensitivity'::text, 'notify'::text])))
  • CONSTRAINT scheduled_actions_state_check CHECK ((state = ANY (ARRAY['pending'::text, 'done'::text, 'cancelled'::text, 'failed'::text])))
  • CONSTRAINT scheduled_actions_target_kind_check CHECK ((target_kind = ANY (ARRAY['asset'::text, 'post'::text, 'collection'::text, 'user'::text])))
CREATE TABLE public.scheduled_actions (
id uuid DEFAULT gen_random_uuid() NOT NULL,
action text NOT NULL,
target_kind text NOT NULL,
target_id text NOT NULL,
params jsonb DEFAULT '{}'::jsonb NOT NULL,
scheduled_for timestamp with time zone NOT NULL,
state text DEFAULT 'pending'::text NOT NULL,
error text,
created_by bigint,
created_at timestamp with time zone DEFAULT now() NOT NULL,
executed_at timestamp with time zone,
CONSTRAINT scheduled_actions_action_check CHECK ((action = ANY (ARRAY['restrict'::text, 'delete'::text, 'change_state'::text, 'change_sensitivity'::text, 'notify'::text]))),
CONSTRAINT scheduled_actions_state_check CHECK ((state = ANY (ARRAY['pending'::text, 'done'::text, 'cancelled'::text, 'failed'::text]))),
CONSTRAINT scheduled_actions_target_kind_check CHECK ((target_kind = ANY (ARRAY['asset'::text, 'post'::text, 'collection'::text, 'user'::text])))
);

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