跳转至

public.agents_memory_entry_locks

列

名称 类型 默认值 可空 子表 父表 注释
agentId varchar(36) false public.agents 拥有此锁的智能体
createdAt timestamp(3) with time zone CURRENT_TIMESTAMP(3) false
heldUntil timestamp(3) with time zone false
holderId varchar(64) false 临时后台任务锁的所有者令牌
resourceId varchar(255) false public.agents_resources 为情景索引锁定的 agents_resources.id 分区
updatedAt timestamp(3) with time zone CURRENT_TIMESTAMP(3) false

约束

名称 类型 定义
FK_0ccf6d9ea6f44fa1c264fc2f795 FOREIGN KEY FOREIGN KEY ("agentId") REFERENCES agents(id) ON DELETE CASCADE
FK_9594c0983cfee1c8ff49b05848 FOREIGN KEY FOREIGN KEY ("resourceId") REFERENCES agents_resources(id) ON DELETE CASCADE
PK_a8e0f570d04a174292bea104ae6 PRIMARY KEY PRIMARY KEY ("agentId", "resourceId")
agents_memory_entry_locks_agentId_not_null n NOT NULL "agentId"
agents_memory_entry_locks_createdAt_not_null n NOT NULL "createdAt"
agents_memory_entry_locks_heldUntil_not_null n NOT NULL "heldUntil"
agents_memory_entry_locks_holderId_not_null n NOT NULL "holderId"
agents_memory_entry_locks_resourceId_not_null n NOT NULL "resourceId"
agents_memory_entry_locks_updatedAt_not_null n NOT NULL "updatedAt"

索引

名称 定义
IDX_9594c0983cfee1c8ff49b05848 CREATE INDEX "IDX_9594c0983cfee1c8ff49b05848" ON public.agents_memory_entry_locks USING btree ("resourceId")
PK_a8e0f570d04a174292bea104ae6 CREATE UNIQUE INDEX "PK_a8e0f570d04a174292bea104ae6" ON public.agents_memory_entry_locks USING btree ("agentId", "resourceId")

关系

erDiagram

"public.agents_memory_entry_locks" }o--|| "public.agents" : "FOREIGN KEY (#quot;agentId#quot;) REFERENCES agents(id) ON DELETE CASCADE"
"public.agents_memory_entry_locks" }o--|| "public.agents_resources" : "FOREIGN KEY (#quot;resourceId#quot;) REFERENCES agents_resources(id) ON DELETE CASCADE"

"public.agents_memory_entry_locks" {
  varchar_36_ agentId FK
  timestamp_3__with_time_zone createdAt
  timestamp_3__with_time_zone heldUntil
  varchar_64_ holderId
  varchar_255_ resourceId FK
  timestamp_3__with_time_zone updatedAt
}
"public.agents" {
  varchar_36_ activeVersionId FK
  varchar_36_ approvalWorkflowId FK
  boolean availableInMCP
  timestamp_3__with_time_zone createdAt
  varchar_36_ id
  uuid identityId FK
  json integrations
  boolean isArchived
  varchar_128_ name
  varchar_36_ parentFolderId FK
  varchar_255_ projectId FK
  integer publicationRevision
  integer revision
  json schema
  varchar_16_ scope
  timestamp_3__with_time_zone setupCompletedAt
  json skills
  json tools
  timestamp_3__with_time_zone updatedAt
  varchar_36_ versionId
}
"public.agents_resources" {
  timestamp_3__with_time_zone createdAt
  varchar_255_ id
  text metadata
  timestamp_3__with_time_zone updatedAt
}

由 tbls 生成

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