跳转至

public.agent_eval_rating

列

名称 类型 默认值 可空 子表 父表 备注
comment text true
correction json true 评分者提供的可选修正/编辑后输出
createdAt timestamp(3) with time zone CURRENT_TIMESTAMP(3) false
id varchar(36) false
ratedById uuid true public.user
resultId varchar(36) false public.agent_eval_result
updatedAt timestamp(3) with time zone CURRENT_TIMESTAMP(3) false
vote varchar(8) false 人工反馈方向

约束

名称 类型 定义
CHK_agent_eval_rating_vote CHECK CHECK (((vote)::text = ANY ((ARRAY['up'::character varying, 'down'::character varying])::text[])))
FK_9cadae6591c64498f1b58a2cef FOREIGN KEY FOREIGN KEY ("resultId") REFERENCES agent_eval_result(id) ON DELETE CASCADE
FK_e06a7408573a3e152e673977d2c FOREIGN KEY FOREIGN KEY ("ratedById") REFERENCES "user"(id) ON DELETE SET NULL
PK_04b7709a435e0c07520ceb37393 PRIMARY KEY PRIMARY KEY (id)
agent_eval_rating_createdAt_not_null n NOT NULL "createdAt"
agent_eval_rating_id_not_null n NOT NULL id
agent_eval_rating_resultId_not_null n NOT NULL "resultId"
agent_eval_rating_updatedAt_not_null n NOT NULL "updatedAt"
agent_eval_rating_vote_not_null n NOT NULL vote

索引

名称 定义
IDX_9cadae6591c64498f1b58a2cef CREATE INDEX "IDX_9cadae6591c64498f1b58a2cef" ON public.agent_eval_rating USING btree ("resultId")
PK_04b7709a435e0c07520ceb37393 CREATE UNIQUE INDEX "PK_04b7709a435e0c07520ceb37393" ON public.agent_eval_rating USING btree (id)

关系

erDiagram

"public.agent_eval_rating" }o--o| "public.user" : "FOREIGN KEY (#quot;ratedById#quot;) REFERENCES #quot;user#quot;(id) ON DELETE SET NULL"
"public.agent_eval_rating" }o--|| "public.agent_eval_result" : "FOREIGN KEY (#quot;resultId#quot;) REFERENCES agent_eval_result(id) ON DELETE CASCADE"

"public.agent_eval_rating" {
  text comment
  json correction
  timestamp_3__with_time_zone createdAt
  varchar_36_ id
  uuid ratedById FK
  varchar_36_ resultId FK
  timestamp_3__with_time_zone updatedAt
  varchar_8_ vote
}
"public.user" {
  timestamp_3__with_time_zone createdAt
  boolean disabled
  varchar_255_ email
  varchar_32_ firstName
  uuid id
  varchar_16_ kind
  date lastActiveAt
  varchar_32_ lastName
  boolean mfaEnabled
  text mfaRecoveryCodes
  text mfaSecret
  varchar_255_ password
  json personalizationAnswers
  varchar_128_ roleSlug FK
  json settings
  timestamp_3__with_time_zone updatedAt
}
"public.agent_eval_result" {
  timestamp_3__with_time_zone completedAt
  timestamp_3__with_time_zone createdAt
  varchar_255_ errorCode
  json errorDetails
  varchar_36_ id
  json input
  json metrics
  json output
  timestamp_3__with_time_zone runAt
  varchar_36_ runId FK
  integer runIndex
  varchar_255_ sourceRowId
  varchar status
  json toolCalls
  timestamp_3__with_time_zone updatedAt
  json verdict
}

由 tbls 生成

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