Skip to content

public.agent_attention_flags

Columns

Name Type Default Nullable Children Parents Comment
createdAt timestamp(3) with time zone CURRENT_TIMESTAMP(3) false
id uuid false UUIDv7 returned to clients for explicit dismissal
sessionId varchar(128) false public.agent_execution_threads Session that needs administrator attention
type varchar(32) false Attention reason: session-error
updatedAt timestamp(3) with time zone CURRENT_TIMESTAMP(3) false

Constraints

Name Type Definition
CHK_agent_attention_flags_type CHECK CHECK (((type)::text = 'session-error'::text))
FK_c4a1e0092b90219a7c4b951d7eb FOREIGN KEY FOREIGN KEY ("sessionId") REFERENCES agent_execution_threads(id) ON DELETE CASCADE
PK_1ffaef9b58ace90e2e2f817c04e PRIMARY KEY PRIMARY KEY (id)
agent_attention_flags_createdAt_not_null n NOT NULL "createdAt"
agent_attention_flags_id_not_null n NOT NULL id
agent_attention_flags_sessionId_not_null n NOT NULL "sessionId"
agent_attention_flags_type_not_null n NOT NULL type
agent_attention_flags_updatedAt_not_null n NOT NULL "updatedAt"

Indexes

Name Definition
IDX_b9b809f51859fe693ada9a29dd CREATE UNIQUE INDEX "IDX_b9b809f51859fe693ada9a29dd" ON public.agent_attention_flags USING btree ("sessionId", type)
PK_1ffaef9b58ace90e2e2f817c04e CREATE UNIQUE INDEX "PK_1ffaef9b58ace90e2e2f817c04e" ON public.agent_attention_flags USING btree (id)

Relations

erDiagram

"public.agent_attention_flags" }o--|| "public.agent_execution_threads" : "FOREIGN KEY (#quot;sessionId#quot;) REFERENCES agent_execution_threads(id) ON DELETE CASCADE"

"public.agent_attention_flags" {
  timestamp_3__with_time_zone createdAt
  uuid id
  varchar_128_ sessionId FK
  varchar_32_ type
  timestamp_3__with_time_zone updatedAt
}
"public.agent_execution_threads" {
  varchar_16_ accessScope
  varchar_36_ agentId FK
  varchar_255_ agentName
  timestamp_3__with_time_zone createdAt
  varchar_8_ emoji
  varchar_128_ id
  boolean isTestChat
  uuid ownerId FK
  varchar_36_ parentAgentId
  varchar_128_ parentThreadId
  varchar_255_ projectId FK
  integer sessionNumber
  varchar_32_ taskId
  json taskStop
  varchar_36_ taskVersionId FK
  varchar_255_ title
  integer totalCompletionTokens
  double_precision totalCost
  integer totalDuration
  integer totalPromptTokens
  timestamp_3__with_time_zone updatedAt
}

Generated by tbls

Markdown source: View on AtomGit·Content from the open-source project n8/n8n