跳转至

public.instance_ai_observation_cursors

列

名称 类型 默认值 可空 子表 父表 注释
createdAt timestamp(3) with time zone CURRENT_TIMESTAMP(3) false
lastModelId varchar(255) true 最后一次模型请求的模型 ID
lastObservedAt timestamp(3) with time zone false
lastObservedMessageId varchar(36) false
lastRequestTokens integer true 提供方为最后一次模型请求报告的输入 Token 数
observationScopeId uuid false public.instance_ai_threads instance_ai_threads.id:由此游标设置检查点的源流
resumeFromAt timestamp(3) with time zone true resumeFromMessageId 的创建时间
resumeFromMessageId varchar(36) true 由 resumeNotes 替换的最后一条消息;后续请求从它之后开始
resumeNotes text true 在恢复点发送给模型的观察笔记
updatedAt timestamp(3) with time zone CURRENT_TIMESTAMP(3) false
workingSet text true Observer 上次写入的计划清单和工作命令;每次写入都会替换它

约束

名称 类型 定义
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"

索引

名称 定义
PK_5b6319b2e9a37c1064a72428f9a CREATE UNIQUE INDEX "PK_5b6319b2e9a37c1064a72428f9a" ON public.instance_ai_observation_cursors USING btree ("observationScopeId")

关系

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
}

由 tbls 生成

本页原文 Markdown:在 AtomGit 查看·内容源自开源项目 n8/n8n