Observations
Session observations with optional action tracking
| Column Name | Data Type | Constraints |
|---|---|---|
| id | bigint | NOT NULL |
| session_id | bigint | NOT NULL |
| description | text | NOT NULL |
| action_required | text | |
| action_complete | boolean | DEFAULT false NOT NULL |
| timestamp | timestamp with time zone | |
| inserted_at | timestamp with time zone | DEFAULT clock_timestamp() NOT NULL |
| updated_at | timestamp with time zone | DEFAULT now() |
Security Policies (RLS)
RLS enabled. Herd scope: Herd from observations.session_id → get_herd_id_by_session_id.
| Operation | has_herd_ability ability key | Other paths |
|---|---|---|
| SELECT | sessions.read | — |
| INSERT | sessions.write | — |
| UPDATE | sessions.write | — |
| DELETE | sessions.write | — |
Platform superadmin: FOR ALL bypass where defined.