Zones
Table for storing geometric regions with associated actions for spatial triggers
| Column Name | Data Type | Constraints |
|---|---|---|
| id | bigint | NOT NULL |
| inserted_at | timestamp with time zone | DEFAULT now() NOT NULL |
| region | extensions.geometry | NOT NULL |
| herd_id | bigint | NOT NULL |
Security Policies (RLS)
RLS enabled. Herd scope: Herd from zones.herd_id.
| Operation | has_herd_ability ability key | Other paths |
|---|---|---|
| SELECT | map.read | Device API keys in herd |
| INSERT | map.write | Device API keys in herd |
| UPDATE | map.write | Device API keys in herd |
| DELETE | map.write | Device API keys in herd |
Platform superadmin: FOR ALL bypass where defined.