Skip to content

app.automations

TableRow level security on

Automations (Section 7.3, Section 4.5.6 item 20, ADR 0047): when a domain event of the trigger type happens in the org and the conditions hold, the actions run as the owner through the public API. Written only through app.save_automation and its sibling RPCs; readable by holders of org.automations.write.

Primary key: id

Columns of app.automations
ColumnTypeNullableDescription
iduuidNoPrimary key, UUID v7.
org_iduuidNoOwning org. A row never moves to another org.References app.organizations.id
nametextNoName shown in Settings, Automations.
descriptiontextYesWhat the automation is for.
trigger_event_typetextNoDomain event type that starts a run, from the event catalog webhooks use (private.domain_event_types).References private.domain_event_types.code
condition_matchapp.automation_matchNoall when every top-level condition must hold, any when one is enough.
owner_person_iduuidNoPerson the actions run as: whoever last changed what the automation does or turned it on.References app.people.id
enabledbooleanNoTrue while new events start runs.
paused_attimestamp with time zoneYesWhen the engine turned the automation off because a run could not act as the owner (fail closed); null otherwise.
pause_reasontextYesWhy the engine paused it, a rule code such as owner_left_org, owner_lost_capability or owner_access_refused.
failure_notified_attimestamp with time zoneYesWhen the owner was last told a run failed, so failures notify at most once an hour.
created_attimestamp with time zoneNoWhen the row was inserted. Set by the database.
created_byuuidYesPerson who inserted the row, or null for a platform process. Set by the database.References app.people.id
updated_attimestamp with time zoneNoWhen the row last changed. Set by the database.
updated_byuuidYesPerson who last changed the row, or null for a platform process. Set by the database.References app.people.id
deleted_attimestamp with time zoneYesSoft delete time. A row with deleted_at set is ignored by every access helper.