Heartbeats
Table for recording device heartbeat timestamps to monitor device connectivity
| Column Name | Data Type | Constraints |
|---|---|---|
| id | bigint | NOT NULL |
| created_at | timestamp with time zone | DEFAULT now() NOT NULL |
| timestamp | timestamp with time zone | NOT NULL |
| device_id | bigint | NOT NULL |
Security Policies (RLS)
This table has Row Level Security (RLS) enabled with the following policies:
- Read Access: Device API key that owns the heartbeat OR users with view role in same herd
- Create/Update/Delete: Device API key that owns the heartbeat OR users with edit role in same herd