Appearance
intelligence database schema
Generated from the EF Core model of Cadence.Modules.Intelligence.Infrastructure.Persistence.IntelligenceDbContext, not from a live database. Unqualified tables live in the public schema.
| Table | Entity | Columns |
|---|---|---|
intelligence.agent_controls | AgentControl | 9 |
intelligence.agent_runs | AgentRun | 27 |
intelligence.evaluation_runs | EvaluationRun | 21 |
intelligence.task_qualifications | TaskQualification | 20 |
intelligence.agent_controls
Entity: AgentControl
| Column | Type | Null | Default | Key |
|---|---|---|---|---|
id | uuid | no | PK | |
created_at | timestamp with time zone | no | ||
created_by | character varying(255) | no | ||
enabled | boolean | no | ||
monthly_token_limit | bigint | yes | ||
reason_for_change | character varying(1000) | no | ||
scope | character varying(96) | no | ||
tenant_id | uuid | no | ||
version_index | bigint | no |
Indexes:
ux_agent_controls_scope: unique (tenant_id,scope)
intelligence.agent_runs
Entity: AgentRun
| Column | Type | Null | Default | Key |
|---|---|---|---|---|
id | uuid | no | PK | |
completed_at | timestamp with time zone | yes | ||
configuration_hash | character varying(71) | no | ||
content_hash | character varying(64) | yes | ||
cost_usd | numeric(18,6) | yes | ||
created_at | timestamp with time zone | no | ||
created_by | character varying(255) | no | ||
failure_reason | character varying(2000) | yes | ||
inference_locality | character varying(16) | yes | ||
inference_policy | character varying(16) | yes | ||
inference_residency | character varying(8) | yes | ||
inference_supplier | character varying(64) | yes | ||
input_tokens | bigint | no | ||
model | character varying(200) | no | ||
output_tokens | bigint | no | ||
provider | character varying(64) | no | ||
reason_for_change | character varying(1000) | no | ||
request_json | text | no | ||
requested_by | character varying(255) | no | ||
response_text | text | yes | ||
scrub_counts | text | yes | ||
started_at | timestamp with time zone | no | ||
status | character varying(16) | no | ||
task_key | character varying(96) | no | ||
task_version | integer | no | ||
tenant_id | uuid | no | ||
version_index | bigint | no |
Indexes:
ix_agent_runs_requester: (tenant_id,requested_by,started_at)ix_agent_runs_task: (tenant_id,task_key,started_at)
intelligence.evaluation_runs
Entity: EvaluationRun
| Column | Type | Null | Default | Key |
|---|---|---|---|---|
id | uuid | no | PK | |
accepted | boolean | no | ||
completed_at | timestamp with time zone | no | ||
configuration_hash | character varying(71) | no | ||
created_at | timestamp with time zone | no | ||
created_by | character varying(255) | no | ||
evaluation_set_hash | character varying(71) | no | ||
evaluation_set_id | character varying(96) | no | ||
evaluation_set_version | integer | no | ||
model | character varying(200) | no | ||
provider | character varying(64) | no | ||
reason_for_change | character varying(1000) | no | ||
record_hash | character varying(71) | no | ||
record_json | text | no | ||
run_id | uuid | no | ||
started_at | timestamp with time zone | no | ||
summary_json | text | no | ||
task_key | character varying(96) | no | ||
task_version | integer | no | ||
tenant_id | uuid | no | ||
version_index | bigint | no |
Indexes:
ix_evaluation_runs_task: (tenant_id,task_key,task_version,completed_at)ux_evaluation_runs_run: unique (tenant_id,run_id)
intelligence.task_qualifications
Entity: TaskQualification
| Column | Type | Null | Default | Key |
|---|---|---|---|---|
id | uuid | no | PK | |
attestation_id | uuid | no | ||
configuration_hash | character varying(71) | no | ||
created_at | timestamp with time zone | no | ||
created_by | character varying(255) | no | ||
evaluation_run_hash | character varying(71) | no | ||
evaluation_run_reference | character varying(200) | no | ||
evaluation_set_hash | character varying(71) | no | ||
evaluation_summary_json | text | no | ||
qualified_at | timestamp with time zone | no | ||
qualified_by | character varying(255) | no | ||
reason_for_change | character varying(1000) | no | ||
risk_class | character varying(16) | no | ||
status | character varying(16) | no | ||
suspended_at | timestamp with time zone | yes | ||
suspension_reason | character varying(1000) | yes | ||
task_key | character varying(96) | no | ||
task_version | integer | no | ||
tenant_id | uuid | no | ||
version_index | bigint | no |
Indexes:
ux_task_qualifications_version: unique (tenant_id,task_key,task_version)