Schema: runs
Part of the generated database reference.
run_events
- Domain:
runsΒ· Feature gate:#[cfg(feature = "agents")]Β· Migration:6.8.5-run-events - Rust source:
botschema/src/runs.rs
| Column | SQL type | Null | Default | Key | References |
|---|---|---|---|---|---|
| id | UUID | no | gen_random_uuid() | PK | β |
| v | SMALLINT | no | 1 | β | β |
| thread_id | TEXT | no | β | β | β |
| run_id | TEXT | no | β | β | β |
| parent_run_id | TEXT | yes | β | β | β |
| seq | BIGINT | no | β | β | β |
| event_type | VARCHAR(48) | no | β | β | β |
| event_id | VARCHAR(64) | no | β | β | β |
| source | VARCHAR(24) | no | β | β | β |
| ts | TIMESTAMPTZ | no | β | β | β |
| payload | JSONB | no | '{}'::jsonb | β | β |
| bot_id | UUID | no | β | β | β |
| user_id | UUID | yes | β | β | β |
| org_id | UUID | yes | β | β | β |
| created_at | TIMESTAMPTZ | no | NOW() | β | β |
Indexes: idx_run_events_bot_thread(bot_id, thread_id, seq), idx_run_events_created(created_at), idx_run_events_run(run_id, seq), idx_run_events_thread_seq(thread_id, seq)