mirror of
https://github.com/n8n-io/n8n.git
synced 2026-08-28 17:22:01 +08:00
73 lines
3.0 KiB
Markdown
73 lines
3.0 KiB
Markdown
# public.instance_ai_run_snapshots
|
|
|
|
## Columns
|
|
|
|
| Name | Type | Default | Nullable | Children | Parents | Comment |
|
|
| ---- | ---- | ------- | -------- | -------- | ------- | ------- |
|
|
| createdAt | timestamp(3) with time zone | CURRENT_TIMESTAMP(3) | false | | | |
|
|
| langsmithRunId | varchar(36) | | true | | | LangSmith run ID (UUID v4, e.g. "f47ac10b-58cc-4372-a567-0e02b2c3d479"). |
|
|
| langsmithTraceId | varchar(36) | | true | | | LangSmith trace ID (UUID v4, e.g. "f47ac10b-58cc-4372-a567-0e02b2c3d479"). |
|
|
| messageGroupId | varchar(36) | | true | | | |
|
|
| runId | varchar(36) | | false | | | |
|
|
| runIds | json | | true | | | |
|
|
| spanId | varchar(64) | | true | | | OpenTelemetry span ID for the root Instance AI run. |
|
|
| threadId | uuid | | false | | [public.instance_ai_threads](public.instance_ai_threads.md) | |
|
|
| traceId | varchar(64) | | true | | | OpenTelemetry trace ID for the root Instance AI run. |
|
|
| tree | text | | false | | | |
|
|
| updatedAt | timestamp(3) with time zone | CURRENT_TIMESTAMP(3) | false | | | |
|
|
|
|
## Constraints
|
|
|
|
| Name | Type | Definition |
|
|
| ---- | ---- | ---------- |
|
|
| FK_2f63fa21d09d7918f347ddbdf70 | FOREIGN KEY | FOREIGN KEY ("threadId") REFERENCES instance_ai_threads(id) ON DELETE CASCADE |
|
|
| PK_0a5fc9690a84950ebf1416fb146 | PRIMARY KEY | PRIMARY KEY ("threadId", "runId") |
|
|
| instance_ai_run_snapshots_createdAt_not_null | n | NOT NULL "createdAt" |
|
|
| instance_ai_run_snapshots_runId_not_null | n | NOT NULL "runId" |
|
|
| instance_ai_run_snapshots_threadId_not_null | n | NOT NULL "threadId" |
|
|
| instance_ai_run_snapshots_tree_not_null | n | NOT NULL tree |
|
|
| instance_ai_run_snapshots_updatedAt_not_null | n | NOT NULL "updatedAt" |
|
|
|
|
## Indexes
|
|
|
|
| Name | Definition |
|
|
| ---- | ---------- |
|
|
| IDX_d3a2bc880e7a8626802e5474ad | CREATE INDEX "IDX_d3a2bc880e7a8626802e5474ad" ON public.instance_ai_run_snapshots USING btree ("threadId", "createdAt") |
|
|
| IDX_d926c16c2ad9728cb9a81790c0 | CREATE INDEX "IDX_d926c16c2ad9728cb9a81790c0" ON public.instance_ai_run_snapshots USING btree ("threadId", "messageGroupId") |
|
|
| PK_0a5fc9690a84950ebf1416fb146 | CREATE UNIQUE INDEX "PK_0a5fc9690a84950ebf1416fb146" ON public.instance_ai_run_snapshots USING btree ("threadId", "runId") |
|
|
|
|
## Relations
|
|
|
|
```mermaid
|
|
erDiagram
|
|
|
|
"public.instance_ai_run_snapshots" }o--|| "public.instance_ai_threads" : "FOREIGN KEY (#quot;threadId#quot;) REFERENCES instance_ai_threads(id) ON DELETE CASCADE"
|
|
|
|
"public.instance_ai_run_snapshots" {
|
|
timestamp_3__with_time_zone createdAt
|
|
varchar_36_ langsmithRunId
|
|
varchar_36_ langsmithTraceId
|
|
varchar_36_ messageGroupId
|
|
varchar_36_ runId
|
|
json runIds
|
|
varchar_64_ spanId
|
|
uuid threadId FK
|
|
varchar_64_ traceId
|
|
text tree
|
|
timestamp_3__with_time_zone updatedAt
|
|
}
|
|
"public.instance_ai_threads" {
|
|
timestamp_3__with_time_zone createdAt
|
|
uuid id
|
|
json metadata
|
|
varchar_36_ projectId FK
|
|
varchar_255_ resourceId
|
|
text title
|
|
timestamp_3__with_time_zone updatedAt
|
|
}
|
|
```
|
|
|
|
---
|
|
|
|
> Generated by [tbls](https://github.com/k1LoW/tbls)
|