public.instance_ai_observation_cursors¶
Columns¶
| Name | Type | Default | Nullable | Children | Parents | Comment |
|---|---|---|---|---|---|---|
| createdAt | timestamp(3) with time zone | CURRENT_TIMESTAMP(3) | false | |||
| lastModelId | varchar(255) | true | Model id of the last model request | |||
| lastObservedAt | timestamp(3) with time zone | false | ||||
| lastObservedMessageId | varchar(36) | false | ||||
| lastRequestTokens | integer | true | Input tokens the provider reported for the last model request | |||
| observationScopeId | uuid | false | public.instance_ai_threads | instance_ai_threads.id source stream checkpointed by this cursor | ||
| resumeFromAt | timestamp(3) with time zone | true | Creation time of resumeFromMessageId | |||
| resumeFromMessageId | varchar(36) | true | Last message replaced by resumeNotes; later requests start after it | |||
| resumeNotes | text | true | Observation notes as sent to the model at the resume point | |||
| updatedAt | timestamp(3) with time zone | CURRENT_TIMESTAMP(3) | false | |||
| workingSet | text | true | Plan checklist and working commands the Observer last wrote; each write replaces it |
Constraints¶
| Name | Type | Definition |
|---|---|---|
| FK_5b6319b2e9a37c1064a72428f9a | FOREIGN KEY | FOREIGN KEY ("observationScopeId") REFERENCES instance_ai_threads(id) ON DELETE CASCADE |
| PK_5b6319b2e9a37c1064a72428f9a | PRIMARY KEY | PRIMARY KEY ("observationScopeId") |
| instance_ai_observation_cursors_createdAt_not_null | n | NOT NULL "createdAt" |
| instance_ai_observation_cursors_lastObservedAt_not_null | n | NOT NULL "lastObservedAt" |
| instance_ai_observation_cursors_lastObservedMessageId_not_null | n | NOT NULL "lastObservedMessageId" |
| instance_ai_observation_cursors_observationScopeId_not_null | n | NOT NULL "observationScopeId" |
| instance_ai_observation_cursors_updatedAt_not_null | n | NOT NULL "updatedAt" |
Indexes¶
| Name | Definition |
|---|---|
| PK_5b6319b2e9a37c1064a72428f9a | CREATE UNIQUE INDEX "PK_5b6319b2e9a37c1064a72428f9a" ON public.instance_ai_observation_cursors USING btree ("observationScopeId") |
Relations¶
erDiagram
"public.instance_ai_observation_cursors" |o--|| "public.instance_ai_threads" : "FOREIGN KEY (#quot;observationScopeId#quot;) REFERENCES instance_ai_threads(id) ON DELETE CASCADE"
"public.instance_ai_observation_cursors" {
timestamp_3__with_time_zone createdAt
varchar_255_ lastModelId
timestamp_3__with_time_zone lastObservedAt
varchar_36_ lastObservedMessageId
integer lastRequestTokens
uuid observationScopeId FK
timestamp_3__with_time_zone resumeFromAt
varchar_36_ resumeFromMessageId
text resumeNotes
timestamp_3__with_time_zone updatedAt
text workingSet
}
"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
Markdown source: View on AtomGit·Content from the open-source project n8/n8n