Adventure Labs Logo
Scout Docs

Actions

Table for storing automated actions triggered by zone events

Column NameData TypeConstraints
idbigintNOT NULL
inserted_attimestamp with time zoneDEFAULT now() NOT NULL
zone_idbigintNOT NULL
triggertext[]NOT NULL
opcodeintegerNOT NULL

Security Policies (RLS)

RLS enabled. Herd scope: Herd from zones.herd_id via get_herd_by_zone_id(zone_id).

Operationhas_herd_ability ability keyOther paths
SELECTmap.readDevice API key in herd (via zone)
INSERTmap.writeDevice API key in herd (via zone)
UPDATEmap.writeDevice API key in herd (via zone)
DELETEmap.writeDevice API key in herd (via zone)

Platform superadmin: FOR ALL bypass where defined.

On this page