Table: scheduled_actions
Ce contenu n’est pas encore disponible dans votre langue.
Columns
Section titled “Columns”| Column | Type | Nullable | Notes |
|---|---|---|---|
id | uuid | no | Default gen_random_uuid() |
action | text | no | — |
target_kind | text | no | — |
target_id | text | no | — |
params | jsonb | no | Default '{}'::jsonb |
scheduled_for | timestamp | no | — |
state | text | no | Default 'pending'::text |
error | text | yes | — |
created_by | bigint | yes | — |
created_at | timestamp | no | Default now() |
executed_at | timestamp | yes | — |
Constraints
Section titled “Constraints”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])))
Full DDL
Section titled “Full DDL”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.