{
  "version": "7",
  "dialect": "sqlite",
  "id": "232df45a-1499-431b-b110-66ec0540ea1a",
  "prevIds": [
    "00000000-0000-0000-0000-000000000000"
  ],
  "ddl": [
    {
      "name": "adr_relations",
      "entityType": "tables"
    },
    {
      "name": "adr_task_links",
      "entityType": "tables"
    },
    {
      "name": "agent_error_log",
      "entityType": "tables"
    },
    {
      "name": "agent_instances",
      "entityType": "tables"
    },
    {
      "name": "architecture_decisions",
      "entityType": "tables"
    },
    {
      "name": "attachment_refs",
      "entityType": "tables"
    },
    {
      "name": "attachments",
      "entityType": "tables"
    },
    {
      "name": "audit_log",
      "entityType": "tables"
    },
    {
      "name": "background_jobs",
      "entityType": "tables"
    },
    {
      "name": "experiments",
      "entityType": "tables"
    },
    {
      "name": "external_task_links",
      "entityType": "tables"
    },
    {
      "name": "lifecycle_evidence",
      "entityType": "tables"
    },
    {
      "name": "lifecycle_gate_results",
      "entityType": "tables"
    },
    {
      "name": "lifecycle_pipelines",
      "entityType": "tables"
    },
    {
      "name": "lifecycle_stages",
      "entityType": "tables"
    },
    {
      "name": "lifecycle_transitions",
      "entityType": "tables"
    },
    {
      "name": "manifest_entries",
      "entityType": "tables"
    },
    {
      "name": "pipeline_manifest",
      "entityType": "tables"
    },
    {
      "name": "release_manifests",
      "entityType": "tables"
    },
    {
      "name": "schema_meta",
      "entityType": "tables"
    },
    {
      "name": "sessions",
      "entityType": "tables"
    },
    {
      "name": "status_registry",
      "entityType": "tables"
    },
    {
      "name": "task_dependencies",
      "entityType": "tables"
    },
    {
      "name": "task_relations",
      "entityType": "tables"
    },
    {
      "name": "task_work_history",
      "entityType": "tables"
    },
    {
      "name": "tasks",
      "entityType": "tables"
    },
    {
      "name": "token_usage",
      "entityType": "tables"
    },
    {
      "name": "warp_chain_instances",
      "entityType": "tables"
    },
    {
      "name": "warp_chains",
      "entityType": "tables"
    },
    {
      "type": "text",
      "notNull": true,
      "autoincrement": false,
      "default": null,
      "generated": null,
      "name": "from_adr_id",
      "entityType": "columns",
      "table": "adr_relations"
    },
    {
      "type": "text",
      "notNull": true,
      "autoincrement": false,
      "default": null,
      "generated": null,
      "name": "to_adr_id",
      "entityType": "columns",
      "table": "adr_relations"
    },
    {
      "type": "text",
      "notNull": true,
      "autoincrement": false,
      "default": null,
      "generated": null,
      "name": "relation_type",
      "entityType": "columns",
      "table": "adr_relations"
    },
    {
      "type": "text",
      "notNull": true,
      "autoincrement": false,
      "default": null,
      "generated": null,
      "name": "adr_id",
      "entityType": "columns",
      "table": "adr_task_links"
    },
    {
      "type": "text",
      "notNull": true,
      "autoincrement": false,
      "default": null,
      "generated": null,
      "name": "task_id",
      "entityType": "columns",
      "table": "adr_task_links"
    },
    {
      "type": "text",
      "notNull": true,
      "autoincrement": false,
      "default": "'related'",
      "generated": null,
      "name": "link_type",
      "entityType": "columns",
      "table": "adr_task_links"
    },
    {
      "type": "integer",
      "notNull": false,
      "autoincrement": true,
      "default": null,
      "generated": null,
      "name": "id",
      "entityType": "columns",
      "table": "agent_error_log"
    },
    {
      "type": "text",
      "notNull": true,
      "autoincrement": false,
      "default": null,
      "generated": null,
      "name": "agent_id",
      "entityType": "columns",
      "table": "agent_error_log"
    },
    {
      "type": "text",
      "notNull": true,
      "autoincrement": false,
      "default": null,
      "generated": null,
      "name": "error_type",
      "entityType": "columns",
      "table": "agent_error_log"
    },
    {
      "type": "text",
      "notNull": true,
      "autoincrement": false,
      "default": null,
      "generated": null,
      "name": "message",
      "entityType": "columns",
      "table": "agent_error_log"
    },
    {
      "type": "text",
      "notNull": false,
      "autoincrement": false,
      "default": null,
      "generated": null,
      "name": "stack",
      "entityType": "columns",
      "table": "agent_error_log"
    },
    {
      "type": "text",
      "notNull": true,
      "autoincrement": false,
      "default": "(datetime('now'))",
      "generated": null,
      "name": "occurred_at",
      "entityType": "columns",
      "table": "agent_error_log"
    },
    {
      "type": "integer",
      "notNull": true,
      "autoincrement": false,
      "default": "false",
      "generated": null,
      "name": "resolved",
      "entityType": "columns",
      "table": "agent_error_log"
    },
    {
      "type": "text",
      "notNull": false,
      "autoincrement": false,
      "default": null,
      "generated": null,
      "name": "id",
      "entityType": "columns",
      "table": "agent_instances"
    },
    {
      "type": "text",
      "notNull": true,
      "autoincrement": false,
      "default": null,
      "generated": null,
      "name": "agent_type",
      "entityType": "columns",
      "table": "agent_instances"
    },
    {
      "type": "text",
      "notNull": true,
      "autoincrement": false,
      "default": "'starting'",
      "generated": null,
      "name": "status",
      "entityType": "columns",
      "table": "agent_instances"
    },
    {
      "type": "text",
      "notNull": false,
      "autoincrement": false,
      "default": null,
      "generated": null,
      "name": "session_id",
      "entityType": "columns",
      "table": "agent_instances"
    },
    {
      "type": "text",
      "notNull": false,
      "autoincrement": false,
      "default": null,
      "generated": null,
      "name": "task_id",
      "entityType": "columns",
      "table": "agent_instances"
    },
    {
      "type": "text",
      "notNull": true,
      "autoincrement": false,
      "default": "(datetime('now'))",
      "generated": null,
      "name": "started_at",
      "entityType": "columns",
      "table": "agent_instances"
    },
    {
      "type": "text",
      "notNull": true,
      "autoincrement": false,
      "default": "(datetime('now'))",
      "generated": null,
      "name": "last_heartbeat",
      "entityType": "columns",
      "table": "agent_instances"
    },
    {
      "type": "text",
      "notNull": false,
      "autoincrement": false,
      "default": null,
      "generated": null,
      "name": "stopped_at",
      "entityType": "columns",
      "table": "agent_instances"
    },
    {
      "type": "integer",
      "notNull": true,
      "autoincrement": false,
      "default": "0",
      "generated": null,
      "name": "error_count",
      "entityType": "columns",
      "table": "agent_instances"
    },
    {
      "type": "integer",
      "notNull": true,
      "autoincrement": false,
      "default": "0",
      "generated": null,
      "name": "total_tasks_completed",
      "entityType": "columns",
      "table": "agent_instances"
    },
    {
      "type": "text",
      "notNull": true,
      "autoincrement": false,
      "default": "'1.0'",
      "generated": null,
      "name": "capacity",
      "entityType": "columns",
      "table": "agent_instances"
    },
    {
      "type": "text",
      "notNull": false,
      "autoincrement": false,
      "default": "'{}'",
      "generated": null,
      "name": "metadata_json",
      "entityType": "columns",
      "table": "agent_instances"
    },
    {
      "type": "text",
      "notNull": false,
      "autoincrement": false,
      "default": null,
      "generated": null,
      "name": "parent_agent_id",
      "entityType": "columns",
      "table": "agent_instances"
    },
    {
      "type": "text",
      "notNull": false,
      "autoincrement": false,
      "default": null,
      "generated": null,
      "name": "id",
      "entityType": "columns",
      "table": "architecture_decisions"
    },
    {
      "type": "text",
      "notNull": true,
      "autoincrement": false,
      "default": null,
      "generated": null,
      "name": "title",
      "entityType": "columns",
      "table": "architecture_decisions"
    },
    {
      "type": "text",
      "notNull": true,
      "autoincrement": false,
      "default": "'proposed'",
      "generated": null,
      "name": "status",
      "entityType": "columns",
      "table": "architecture_decisions"
    },
    {
      "type": "text",
      "notNull": false,
      "autoincrement": false,
      "default": null,
      "generated": null,
      "name": "supersedes_id",
      "entityType": "columns",
      "table": "architecture_decisions"
    },
    {
      "type": "text",
      "notNull": false,
      "autoincrement": false,
      "default": null,
      "generated": null,
      "name": "superseded_by_id",
      "entityType": "columns",
      "table": "architecture_decisions"
    },
    {
      "type": "text",
      "notNull": false,
      "autoincrement": false,
      "default": null,
      "generated": null,
      "name": "consensus_manifest_id",
      "entityType": "columns",
      "table": "architecture_decisions"
    },
    {
      "type": "text",
      "notNull": true,
      "autoincrement": false,
      "default": null,
      "generated": null,
      "name": "content",
      "entityType": "columns",
      "table": "architecture_decisions"
    },
    {
      "type": "text",
      "notNull": true,
      "autoincrement": false,
      "default": "(datetime('now'))",
      "generated": null,
      "name": "created_at",
      "entityType": "columns",
      "table": "architecture_decisions"
    },
    {
      "type": "text",
      "notNull": false,
      "autoincrement": false,
      "default": null,
      "generated": null,
      "name": "updated_at",
      "entityType": "columns",
      "table": "architecture_decisions"
    },
    {
      "type": "text",
      "notNull": true,
      "autoincrement": false,
      "default": "''",
      "generated": null,
      "name": "date",
      "entityType": "columns",
      "table": "architecture_decisions"
    },
    {
      "type": "text",
      "notNull": false,
      "autoincrement": false,
      "default": null,
      "generated": null,
      "name": "accepted_at",
      "entityType": "columns",
      "table": "architecture_decisions"
    },
    {
      "type": "text",
      "notNull": false,
      "autoincrement": false,
      "default": null,
      "generated": null,
      "name": "gate",
      "entityType": "columns",
      "table": "architecture_decisions"
    },
    {
      "type": "text",
      "notNull": false,
      "autoincrement": false,
      "default": null,
      "generated": null,
      "name": "gate_status",
      "entityType": "columns",
      "table": "architecture_decisions"
    },
    {
      "type": "text",
      "notNull": false,
      "autoincrement": false,
      "default": null,
      "generated": null,
      "name": "amends_id",
      "entityType": "columns",
      "table": "architecture_decisions"
    },
    {
      "type": "text",
      "notNull": true,
      "autoincrement": false,
      "default": "''",
      "generated": null,
      "name": "file_path",
      "entityType": "columns",
      "table": "architecture_decisions"
    },
    {
      "type": "text",
      "notNull": false,
      "autoincrement": false,
      "default": null,
      "generated": null,
      "name": "summary",
      "entityType": "columns",
      "table": "architecture_decisions"
    },
    {
      "type": "text",
      "notNull": false,
      "autoincrement": false,
      "default": null,
      "generated": null,
      "name": "keywords",
      "entityType": "columns",
      "table": "architecture_decisions"
    },
    {
      "type": "text",
      "notNull": false,
      "autoincrement": false,
      "default": null,
      "generated": null,
      "name": "topics",
      "entityType": "columns",
      "table": "architecture_decisions"
    },
    {
      "type": "text",
      "notNull": true,
      "autoincrement": false,
      "default": null,
      "generated": null,
      "name": "attachment_id",
      "entityType": "columns",
      "table": "attachment_refs"
    },
    {
      "type": "text",
      "notNull": true,
      "autoincrement": false,
      "default": null,
      "generated": null,
      "name": "owner_type",
      "entityType": "columns",
      "table": "attachment_refs"
    },
    {
      "type": "text",
      "notNull": true,
      "autoincrement": false,
      "default": null,
      "generated": null,
      "name": "owner_id",
      "entityType": "columns",
      "table": "attachment_refs"
    },
    {
      "type": "text",
      "notNull": true,
      "autoincrement": false,
      "default": null,
      "generated": null,
      "name": "attached_at",
      "entityType": "columns",
      "table": "attachment_refs"
    },
    {
      "type": "text",
      "notNull": false,
      "autoincrement": false,
      "default": null,
      "generated": null,
      "name": "attached_by",
      "entityType": "columns",
      "table": "attachment_refs"
    },
    {
      "type": "text",
      "notNull": false,
      "autoincrement": false,
      "default": null,
      "generated": null,
      "name": "id",
      "entityType": "columns",
      "table": "attachments"
    },
    {
      "type": "text",
      "notNull": true,
      "autoincrement": false,
      "default": null,
      "generated": null,
      "name": "sha256",
      "entityType": "columns",
      "table": "attachments"
    },
    {
      "type": "text",
      "notNull": true,
      "autoincrement": false,
      "default": null,
      "generated": null,
      "name": "attachment_json",
      "entityType": "columns",
      "table": "attachments"
    },
    {
      "type": "text",
      "notNull": true,
      "autoincrement": false,
      "default": null,
      "generated": null,
      "name": "created_at",
      "entityType": "columns",
      "table": "attachments"
    },
    {
      "type": "integer",
      "notNull": true,
      "autoincrement": false,
      "default": "0",
      "generated": null,
      "name": "ref_count",
      "entityType": "columns",
      "table": "attachments"
    },
    {
      "type": "text",
      "notNull": false,
      "autoincrement": false,
      "default": null,
      "generated": null,
      "name": "id",
      "entityType": "columns",
      "table": "audit_log"
    },
    {
      "type": "text",
      "notNull": true,
      "autoincrement": false,
      "default": "(datetime('now'))",
      "generated": null,
      "name": "timestamp",
      "entityType": "columns",
      "table": "audit_log"
    },
    {
      "type": "text",
      "notNull": true,
      "autoincrement": false,
      "default": null,
      "generated": null,
      "name": "action",
      "entityType": "columns",
      "table": "audit_log"
    },
    {
      "type": "text",
      "notNull": true,
      "autoincrement": false,
      "default": null,
      "generated": null,
      "name": "task_id",
      "entityType": "columns",
      "table": "audit_log"
    },
    {
      "type": "text",
      "notNull": true,
      "autoincrement": false,
      "default": "'system'",
      "generated": null,
      "name": "actor",
      "entityType": "columns",
      "table": "audit_log"
    },
    {
      "type": "text",
      "notNull": false,
      "autoincrement": false,
      "default": "'{}'",
      "generated": null,
      "name": "details_json",
      "entityType": "columns",
      "table": "audit_log"
    },
    {
      "type": "text",
      "notNull": false,
      "autoincrement": false,
      "default": null,
      "generated": null,
      "name": "before_json",
      "entityType": "columns",
      "table": "audit_log"
    },
    {
      "type": "text",
      "notNull": false,
      "autoincrement": false,
      "default": null,
      "generated": null,
      "name": "after_json",
      "entityType": "columns",
      "table": "audit_log"
    },
    {
      "type": "text",
      "notNull": false,
      "autoincrement": false,
      "default": null,
      "generated": null,
      "name": "domain",
      "entityType": "columns",
      "table": "audit_log"
    },
    {
      "type": "text",
      "notNull": false,
      "autoincrement": false,
      "default": null,
      "generated": null,
      "name": "operation",
      "entityType": "columns",
      "table": "audit_log"
    },
    {
      "type": "text",
      "notNull": false,
      "autoincrement": false,
      "default": null,
      "generated": null,
      "name": "session_id",
      "entityType": "columns",
      "table": "audit_log"
    },
    {
      "type": "text",
      "notNull": false,
      "autoincrement": false,
      "default": null,
      "generated": null,
      "name": "request_id",
      "entityType": "columns",
      "table": "audit_log"
    },
    {
      "type": "integer",
      "notNull": false,
      "autoincrement": false,
      "default": null,
      "generated": null,
      "name": "duration_ms",
      "entityType": "columns",
      "table": "audit_log"
    },
    {
      "type": "integer",
      "notNull": false,
      "autoincrement": false,
      "default": null,
      "generated": null,
      "name": "success",
      "entityType": "columns",
      "table": "audit_log"
    },
    {
      "type": "text",
      "notNull": false,
      "autoincrement": false,
      "default": null,
      "generated": null,
      "name": "source",
      "entityType": "columns",
      "table": "audit_log"
    },
    {
      "type": "text",
      "notNull": false,
      "autoincrement": false,
      "default": null,
      "generated": null,
      "name": "gateway",
      "entityType": "columns",
      "table": "audit_log"
    },
    {
      "type": "text",
      "notNull": false,
      "autoincrement": false,
      "default": null,
      "generated": null,
      "name": "error_message",
      "entityType": "columns",
      "table": "audit_log"
    },
    {
      "type": "text",
      "notNull": false,
      "autoincrement": false,
      "default": null,
      "generated": null,
      "name": "project_hash",
      "entityType": "columns",
      "table": "audit_log"
    },
    {
      "type": "text",
      "notNull": false,
      "autoincrement": false,
      "default": null,
      "generated": null,
      "name": "id",
      "entityType": "columns",
      "table": "background_jobs"
    },
    {
      "type": "text",
      "notNull": true,
      "autoincrement": false,
      "default": null,
      "generated": null,
      "name": "operation",
      "entityType": "columns",
      "table": "background_jobs"
    },
    {
      "type": "text",
      "notNull": true,
      "autoincrement": false,
      "default": "'pending'",
      "generated": null,
      "name": "status",
      "entityType": "columns",
      "table": "background_jobs"
    },
    {
      "type": "integer",
      "notNull": true,
      "autoincrement": false,
      "default": null,
      "generated": null,
      "name": "started_at",
      "entityType": "columns",
      "table": "background_jobs"
    },
    {
      "type": "integer",
      "notNull": false,
      "autoincrement": false,
      "default": null,
      "generated": null,
      "name": "completed_at",
      "entityType": "columns",
      "table": "background_jobs"
    },
    {
      "type": "text",
      "notNull": false,
      "autoincrement": false,
      "default": null,
      "generated": null,
      "name": "result",
      "entityType": "columns",
      "table": "background_jobs"
    },
    {
      "type": "text",
      "notNull": false,
      "autoincrement": false,
      "default": null,
      "generated": null,
      "name": "error",
      "entityType": "columns",
      "table": "background_jobs"
    },
    {
      "type": "integer",
      "notNull": false,
      "autoincrement": false,
      "default": null,
      "generated": null,
      "name": "progress",
      "entityType": "columns",
      "table": "background_jobs"
    },
    {
      "type": "integer",
      "notNull": true,
      "autoincrement": false,
      "default": null,
      "generated": null,
      "name": "heartbeat_at",
      "entityType": "columns",
      "table": "background_jobs"
    },
    {
      "type": "text",
      "notNull": false,
      "autoincrement": false,
      "default": null,
      "generated": null,
      "name": "claimed_by",
      "entityType": "columns",
      "table": "background_jobs"
    },
    {
      "type": "text",
      "notNull": false,
      "autoincrement": false,
      "default": null,
      "generated": null,
      "name": "task_id",
      "entityType": "columns",
      "table": "experiments"
    },
    {
      "type": "text",
      "notNull": false,
      "autoincrement": false,
      "default": null,
      "generated": null,
      "name": "sandbox_branch",
      "entityType": "columns",
      "table": "experiments"
    },
    {
      "type": "text",
      "notNull": false,
      "autoincrement": false,
      "default": null,
      "generated": null,
      "name": "baseline_commit",
      "entityType": "columns",
      "table": "experiments"
    },
    {
      "type": "text",
      "notNull": false,
      "autoincrement": false,
      "default": null,
      "generated": null,
      "name": "merged_at",
      "entityType": "columns",
      "table": "experiments"
    },
    {
      "type": "text",
      "notNull": false,
      "autoincrement": false,
      "default": null,
      "generated": null,
      "name": "receipt_id",
      "entityType": "columns",
      "table": "experiments"
    },
    {
      "type": "text",
      "notNull": false,
      "autoincrement": false,
      "default": null,
      "generated": null,
      "name": "metrics_delta_json",
      "entityType": "columns",
      "table": "experiments"
    },
    {
      "type": "text",
      "notNull": true,
      "autoincrement": false,
      "default": null,
      "generated": null,
      "name": "created_at",
      "entityType": "columns",
      "table": "experiments"
    },
    {
      "type": "text",
      "notNull": true,
      "autoincrement": false,
      "default": null,
      "generated": null,
      "name": "updated_at",
      "entityType": "columns",
      "table": "experiments"
    },
    {
      "type": "text",
      "notNull": false,
      "autoincrement": false,
      "default": null,
      "generated": null,
      "name": "id",
      "entityType": "columns",
      "table": "external_task_links"
    },
    {
      "type": "text",
      "notNull": true,
      "autoincrement": false,
      "default": null,
      "generated": null,
      "name": "task_id",
      "entityType": "columns",
      "table": "external_task_links"
    },
    {
      "type": "text",
      "notNull": true,
      "autoincrement": false,
      "default": null,
      "generated": null,
      "name": "provider_id",
      "entityType": "columns",
      "table": "external_task_links"
    },
    {
      "type": "text",
      "notNull": true,
      "autoincrement": false,
      "default": null,
      "generated": null,
      "name": "external_id",
      "entityType": "columns",
      "table": "external_task_links"
    },
    {
      "type": "text",
      "notNull": false,
      "autoincrement": false,
      "default": null,
      "generated": null,
      "name": "external_url",
      "entityType": "columns",
      "table": "external_task_links"
    },
    {
      "type": "text",
      "notNull": false,
      "autoincrement": false,
      "default": null,
      "generated": null,
      "name": "external_title",
      "entityType": "columns",
      "table": "external_task_links"
    },
    {
      "type": "text",
      "notNull": true,
      "autoincrement": false,
      "default": null,
      "generated": null,
      "name": "link_type",
      "entityType": "columns",
      "table": "external_task_links"
    },
    {
      "type": "text",
      "notNull": true,
      "autoincrement": false,
      "default": "'inbound'",
      "generated": null,
      "name": "sync_direction",
      "entityType": "columns",
      "table": "external_task_links"
    },
    {
      "type": "text",
      "notNull": false,
      "autoincrement": false,
      "default": "'{}'",
      "generated": null,
      "name": "metadata_json",
      "entityType": "columns",
      "table": "external_task_links"
    },
    {
      "type": "text",
      "notNull": true,
      "autoincrement": false,
      "default": "(datetime('now'))",
      "generated": null,
      "name": "linked_at",
      "entityType": "columns",
      "table": "external_task_links"
    },
    {
      "type": "text",
      "notNull": false,
      "autoincrement": false,
      "default": null,
      "generated": null,
      "name": "last_sync_at",
      "entityType": "columns",
      "table": "external_task_links"
    },
    {
      "type": "text",
      "notNull": false,
      "autoincrement": false,
      "default": null,
      "generated": null,
      "name": "id",
      "entityType": "columns",
      "table": "lifecycle_evidence"
    },
    {
      "type": "text",
      "notNull": true,
      "autoincrement": false,
      "default": null,
      "generated": null,
      "name": "stage_id",
      "entityType": "columns",
      "table": "lifecycle_evidence"
    },
    {
      "type": "text",
      "notNull": true,
      "autoincrement": false,
      "default": null,
      "generated": null,
      "name": "uri",
      "entityType": "columns",
      "table": "lifecycle_evidence"
    },
    {
      "type": "text",
      "notNull": true,
      "autoincrement": false,
      "default": null,
      "generated": null,
      "name": "type",
      "entityType": "columns",
      "table": "lifecycle_evidence"
    },
    {
      "type": "text",
      "notNull": true,
      "autoincrement": false,
      "default": "(datetime('now'))",
      "generated": null,
      "name": "recorded_at",
      "entityType": "columns",
      "table": "lifecycle_evidence"
    },
    {
      "type": "text",
      "notNull": false,
      "autoincrement": false,
      "default": null,
      "generated": null,
      "name": "recorded_by",
      "entityType": "columns",
      "table": "lifecycle_evidence"
    },
    {
      "type": "text",
      "notNull": false,
      "autoincrement": false,
      "default": null,
      "generated": null,
      "name": "description",
      "entityType": "columns",
      "table": "lifecycle_evidence"
    },
    {
      "type": "text",
      "notNull": false,
      "autoincrement": false,
      "default": null,
      "generated": null,
      "name": "id",
      "entityType": "columns",
      "table": "lifecycle_gate_results"
    },
    {
      "type": "text",
      "notNull": true,
      "autoincrement": false,
      "default": null,
      "generated": null,
      "name": "stage_id",
      "entityType": "columns",
      "table": "lifecycle_gate_results"
    },
    {
      "type": "text",
      "notNull": true,
      "autoincrement": false,
      "default": null,
      "generated": null,
      "name": "gate_name",
      "entityType": "columns",
      "table": "lifecycle_gate_results"
    },
    {
      "type": "text",
      "notNull": true,
      "autoincrement": false,
      "default": null,
      "generated": null,
      "name": "result",
      "entityType": "columns",
      "table": "lifecycle_gate_results"
    },
    {
      "type": "text",
      "notNull": true,
      "autoincrement": false,
      "default": "(datetime('now'))",
      "generated": null,
      "name": "checked_at",
      "entityType": "columns",
      "table": "lifecycle_gate_results"
    },
    {
      "type": "text",
      "notNull": true,
      "autoincrement": false,
      "default": null,
      "generated": null,
      "name": "checked_by",
      "entityType": "columns",
      "table": "lifecycle_gate_results"
    },
    {
      "type": "text",
      "notNull": false,
      "autoincrement": false,
      "default": null,
      "generated": null,
      "name": "details",
      "entityType": "columns",
      "table": "lifecycle_gate_results"
    },
    {
      "type": "text",
      "notNull": false,
      "autoincrement": false,
      "default": null,
      "generated": null,
      "name": "reason",
      "entityType": "columns",
      "table": "lifecycle_gate_results"
    },
    {
      "type": "text",
      "notNull": false,
      "autoincrement": false,
      "default": null,
      "generated": null,
      "name": "id",
      "entityType": "columns",
      "table": "lifecycle_pipelines"
    },
    {
      "type": "text",
      "notNull": true,
      "autoincrement": false,
      "default": null,
      "generated": null,
      "name": "task_id",
      "entityType": "columns",
      "table": "lifecycle_pipelines"
    },
    {
      "type": "text",
      "notNull": true,
      "autoincrement": false,
      "default": "'active'",
      "generated": null,
      "name": "status",
      "entityType": "columns",
      "table": "lifecycle_pipelines"
    },
    {
      "type": "text",
      "notNull": false,
      "autoincrement": false,
      "default": null,
      "generated": null,
      "name": "current_stage_id",
      "entityType": "columns",
      "table": "lifecycle_pipelines"
    },
    {
      "type": "text",
      "notNull": true,
      "autoincrement": false,
      "default": "(datetime('now'))",
      "generated": null,
      "name": "started_at",
      "entityType": "columns",
      "table": "lifecycle_pipelines"
    },
    {
      "type": "text",
      "notNull": false,
      "autoincrement": false,
      "default": null,
      "generated": null,
      "name": "completed_at",
      "entityType": "columns",
      "table": "lifecycle_pipelines"
    },
    {
      "type": "text",
      "notNull": false,
      "autoincrement": false,
      "default": "(datetime('now'))",
      "generated": null,
      "name": "updated_at",
      "entityType": "columns",
      "table": "lifecycle_pipelines"
    },
    {
      "type": "integer",
      "notNull": true,
      "autoincrement": false,
      "default": "1",
      "generated": null,
      "name": "version",
      "entityType": "columns",
      "table": "lifecycle_pipelines"
    },
    {
      "type": "text",
      "notNull": false,
      "autoincrement": false,
      "default": null,
      "generated": null,
      "name": "id",
      "entityType": "columns",
      "table": "lifecycle_stages"
    },
    {
      "type": "text",
      "notNull": true,
      "autoincrement": false,
      "default": null,
      "generated": null,
      "name": "pipeline_id",
      "entityType": "columns",
      "table": "lifecycle_stages"
    },
    {
      "type": "text",
      "notNull": true,
      "autoincrement": false,
      "default": null,
      "generated": null,
      "name": "stage_name",
      "entityType": "columns",
      "table": "lifecycle_stages"
    },
    {
      "type": "text",
      "notNull": true,
      "autoincrement": false,
      "default": "'not_started'",
      "generated": null,
      "name": "status",
      "entityType": "columns",
      "table": "lifecycle_stages"
    },
    {
      "type": "integer",
      "notNull": true,
      "autoincrement": false,
      "default": null,
      "generated": null,
      "name": "sequence",
      "entityType": "columns",
      "table": "lifecycle_stages"
    },
    {
      "type": "text",
      "notNull": false,
      "autoincrement": false,
      "default": null,
      "generated": null,
      "name": "started_at",
      "entityType": "columns",
      "table": "lifecycle_stages"
    },
    {
      "type": "text",
      "notNull": false,
      "autoincrement": false,
      "default": null,
      "generated": null,
      "name": "completed_at",
      "entityType": "columns",
      "table": "lifecycle_stages"
    },
    {
      "type": "text",
      "notNull": false,
      "autoincrement": false,
      "default": null,
      "generated": null,
      "name": "blocked_at",
      "entityType": "columns",
      "table": "lifecycle_stages"
    },
    {
      "type": "text",
      "notNull": false,
      "autoincrement": false,
      "default": null,
      "generated": null,
      "name": "block_reason",
      "entityType": "columns",
      "table": "lifecycle_stages"
    },
    {
      "type": "text",
      "notNull": false,
      "autoincrement": false,
      "default": null,
      "generated": null,
      "name": "skipped_at",
      "entityType": "columns",
      "table": "lifecycle_stages"
    },
    {
      "type": "text",
      "notNull": false,
      "autoincrement": false,
      "default": null,
      "generated": null,
      "name": "skip_reason",
      "entityType": "columns",
      "table": "lifecycle_stages"
    },
    {
      "type": "text",
      "notNull": false,
      "autoincrement": false,
      "default": "'[]'",
      "generated": null,
      "name": "notes_json",
      "entityType": "columns",
      "table": "lifecycle_stages"
    },
    {
      "type": "text",
      "notNull": false,
      "autoincrement": false,
      "default": "'{}'",
      "generated": null,
      "name": "metadata_json",
      "entityType": "columns",
      "table": "lifecycle_stages"
    },
    {
      "type": "text",
      "notNull": false,
      "autoincrement": false,
      "default": null,
      "generated": null,
      "name": "output_file",
      "entityType": "columns",
      "table": "lifecycle_stages"
    },
    {
      "type": "text",
      "notNull": false,
      "autoincrement": false,
      "default": null,
      "generated": null,
      "name": "created_by",
      "entityType": "columns",
      "table": "lifecycle_stages"
    },
    {
      "type": "text",
      "notNull": false,
      "autoincrement": false,
      "default": null,
      "generated": null,
      "name": "validated_by",
      "entityType": "columns",
      "table": "lifecycle_stages"
    },
    {
      "type": "text",
      "notNull": false,
      "autoincrement": false,
      "default": null,
      "generated": null,
      "name": "validated_at",
      "entityType": "columns",
      "table": "lifecycle_stages"
    },
    {
      "type": "text",
      "notNull": false,
      "autoincrement": false,
      "default": null,
      "generated": null,
      "name": "validation_status",
      "entityType": "columns",
      "table": "lifecycle_stages"
    },
    {
      "type": "text",
      "notNull": false,
      "autoincrement": false,
      "default": null,
      "generated": null,
      "name": "provenance_chain_json",
      "entityType": "columns",
      "table": "lifecycle_stages"
    },
    {
      "type": "text",
      "notNull": false,
      "autoincrement": false,
      "default": null,
      "generated": null,
      "name": "id",
      "entityType": "columns",
      "table": "lifecycle_transitions"
    },
    {
      "type": "text",
      "notNull": true,
      "autoincrement": false,
      "default": null,
      "generated": null,
      "name": "pipeline_id",
      "entityType": "columns",
      "table": "lifecycle_transitions"
    },
    {
      "type": "text",
      "notNull": true,
      "autoincrement": false,
      "default": null,
      "generated": null,
      "name": "from_stage_id",
      "entityType": "columns",
      "table": "lifecycle_transitions"
    },
    {
      "type": "text",
      "notNull": true,
      "autoincrement": false,
      "default": null,
      "generated": null,
      "name": "to_stage_id",
      "entityType": "columns",
      "table": "lifecycle_transitions"
    },
    {
      "type": "text",
      "notNull": true,
      "autoincrement": false,
      "default": "'automatic'",
      "generated": null,
      "name": "transition_type",
      "entityType": "columns",
      "table": "lifecycle_transitions"
    },
    {
      "type": "text",
      "notNull": false,
      "autoincrement": false,
      "default": null,
      "generated": null,
      "name": "transitioned_by",
      "entityType": "columns",
      "table": "lifecycle_transitions"
    },
    {
      "type": "text",
      "notNull": true,
      "autoincrement": false,
      "default": "(datetime('now'))",
      "generated": null,
      "name": "created_at",
      "entityType": "columns",
      "table": "lifecycle_transitions"
    },
    {
      "type": "text",
      "notNull": false,
      "autoincrement": false,
      "default": null,
      "generated": null,
      "name": "id",
      "entityType": "columns",
      "table": "manifest_entries"
    },
    {
      "type": "text",
      "notNull": false,
      "autoincrement": false,
      "default": null,
      "generated": null,
      "name": "pipeline_id",
      "entityType": "columns",
      "table": "manifest_entries"
    },
    {
      "type": "text",
      "notNull": false,
      "autoincrement": false,
      "default": null,
      "generated": null,
      "name": "stage_id",
      "entityType": "columns",
      "table": "manifest_entries"
    },
    {
      "type": "text",
      "notNull": true,
      "autoincrement": false,
      "default": null,
      "generated": null,
      "name": "title",
      "entityType": "columns",
      "table": "manifest_entries"
    },
    {
      "type": "text",
      "notNull": true,
      "autoincrement": false,
      "default": null,
      "generated": null,
      "name": "date",
      "entityType": "columns",
      "table": "manifest_entries"
    },
    {
      "type": "text",
      "notNull": true,
      "autoincrement": false,
      "default": null,
      "generated": null,
      "name": "status",
      "entityType": "columns",
      "table": "manifest_entries"
    },
    {
      "type": "text",
      "notNull": false,
      "autoincrement": false,
      "default": null,
      "generated": null,
      "name": "agent_type",
      "entityType": "columns",
      "table": "manifest_entries"
    },
    {
      "type": "text",
      "notNull": false,
      "autoincrement": false,
      "default": null,
      "generated": null,
      "name": "output_file",
      "entityType": "columns",
      "table": "manifest_entries"
    },
    {
      "type": "text",
      "notNull": false,
      "autoincrement": false,
      "default": "'[]'",
      "generated": null,
      "name": "topics_json",
      "entityType": "columns",
      "table": "manifest_entries"
    },
    {
      "type": "text",
      "notNull": false,
      "autoincrement": false,
      "default": "'[]'",
      "generated": null,
      "name": "findings_json",
      "entityType": "columns",
      "table": "manifest_entries"
    },
    {
      "type": "text",
      "notNull": false,
      "autoincrement": false,
      "default": "'[]'",
      "generated": null,
      "name": "linked_tasks_json",
      "entityType": "columns",
      "table": "manifest_entries"
    },
    {
      "type": "text",
      "notNull": false,
      "autoincrement": false,
      "default": null,
      "generated": null,
      "name": "created_by",
      "entityType": "columns",
      "table": "manifest_entries"
    },
    {
      "type": "text",
      "notNull": true,
      "autoincrement": false,
      "default": "(datetime('now'))",
      "generated": null,
      "name": "created_at",
      "entityType": "columns",
      "table": "manifest_entries"
    },
    {
      "type": "text",
      "notNull": false,
      "autoincrement": false,
      "default": null,
      "generated": null,
      "name": "id",
      "entityType": "columns",
      "table": "pipeline_manifest"
    },
    {
      "type": "text",
      "notNull": false,
      "autoincrement": false,
      "default": null,
      "generated": null,
      "name": "session_id",
      "entityType": "columns",
      "table": "pipeline_manifest"
    },
    {
      "type": "text",
      "notNull": false,
      "autoincrement": false,
      "default": null,
      "generated": null,
      "name": "task_id",
      "entityType": "columns",
      "table": "pipeline_manifest"
    },
    {
      "type": "text",
      "notNull": false,
      "autoincrement": false,
      "default": null,
      "generated": null,
      "name": "epic_id",
      "entityType": "columns",
      "table": "pipeline_manifest"
    },
    {
      "type": "text",
      "notNull": true,
      "autoincrement": false,
      "default": null,
      "generated": null,
      "name": "type",
      "entityType": "columns",
      "table": "pipeline_manifest"
    },
    {
      "type": "text",
      "notNull": true,
      "autoincrement": false,
      "default": null,
      "generated": null,
      "name": "content",
      "entityType": "columns",
      "table": "pipeline_manifest"
    },
    {
      "type": "text",
      "notNull": false,
      "autoincrement": false,
      "default": null,
      "generated": null,
      "name": "content_hash",
      "entityType": "columns",
      "table": "pipeline_manifest"
    },
    {
      "type": "text",
      "notNull": true,
      "autoincrement": false,
      "default": "'active'",
      "generated": null,
      "name": "status",
      "entityType": "columns",
      "table": "pipeline_manifest"
    },
    {
      "type": "integer",
      "notNull": true,
      "autoincrement": false,
      "default": "false",
      "generated": null,
      "name": "distilled",
      "entityType": "columns",
      "table": "pipeline_manifest"
    },
    {
      "type": "text",
      "notNull": false,
      "autoincrement": false,
      "default": null,
      "generated": null,
      "name": "brain_obs_id",
      "entityType": "columns",
      "table": "pipeline_manifest"
    },
    {
      "type": "text",
      "notNull": false,
      "autoincrement": false,
      "default": null,
      "generated": null,
      "name": "source_file",
      "entityType": "columns",
      "table": "pipeline_manifest"
    },
    {
      "type": "text",
      "notNull": false,
      "autoincrement": false,
      "default": null,
      "generated": null,
      "name": "metadata_json",
      "entityType": "columns",
      "table": "pipeline_manifest"
    },
    {
      "type": "text",
      "notNull": true,
      "autoincrement": false,
      "default": null,
      "generated": null,
      "name": "created_at",
      "entityType": "columns",
      "table": "pipeline_manifest"
    },
    {
      "type": "text",
      "notNull": false,
      "autoincrement": false,
      "default": null,
      "generated": null,
      "name": "archived_at",
      "entityType": "columns",
      "table": "pipeline_manifest"
    },
    {
      "type": "text",
      "notNull": false,
      "autoincrement": false,
      "default": null,
      "generated": null,
      "name": "id",
      "entityType": "columns",
      "table": "release_manifests"
    },
    {
      "type": "text",
      "notNull": true,
      "autoincrement": false,
      "default": null,
      "generated": null,
      "name": "version",
      "entityType": "columns",
      "table": "release_manifests"
    },
    {
      "type": "text",
      "notNull": true,
      "autoincrement": false,
      "default": "'draft'",
      "generated": null,
      "name": "status",
      "entityType": "columns",
      "table": "release_manifests"
    },
    {
      "type": "text",
      "notNull": false,
      "autoincrement": false,
      "default": null,
      "generated": null,
      "name": "pipeline_id",
      "entityType": "columns",
      "table": "release_manifests"
    },
    {
      "type": "text",
      "notNull": false,
      "autoincrement": false,
      "default": null,
      "generated": null,
      "name": "epic_id",
      "entityType": "columns",
      "table": "release_manifests"
    },
    {
      "type": "text",
      "notNull": true,
      "autoincrement": false,
      "default": "'[]'",
      "generated": null,
      "name": "tasks_json",
      "entityType": "columns",
      "table": "release_manifests"
    },
    {
      "type": "text",
      "notNull": false,
      "autoincrement": false,
      "default": null,
      "generated": null,
      "name": "changelog",
      "entityType": "columns",
      "table": "release_manifests"
    },
    {
      "type": "text",
      "notNull": false,
      "autoincrement": false,
      "default": null,
      "generated": null,
      "name": "notes",
      "entityType": "columns",
      "table": "release_manifests"
    },
    {
      "type": "text",
      "notNull": false,
      "autoincrement": false,
      "default": null,
      "generated": null,
      "name": "previous_version",
      "entityType": "columns",
      "table": "release_manifests"
    },
    {
      "type": "text",
      "notNull": false,
      "autoincrement": false,
      "default": null,
      "generated": null,
      "name": "commit_sha",
      "entityType": "columns",
      "table": "release_manifests"
    },
    {
      "type": "text",
      "notNull": false,
      "autoincrement": false,
      "default": null,
      "generated": null,
      "name": "git_tag",
      "entityType": "columns",
      "table": "release_manifests"
    },
    {
      "type": "text",
      "notNull": false,
      "autoincrement": false,
      "default": null,
      "generated": null,
      "name": "npm_dist_tag",
      "entityType": "columns",
      "table": "release_manifests"
    },
    {
      "type": "text",
      "notNull": true,
      "autoincrement": false,
      "default": null,
      "generated": null,
      "name": "created_at",
      "entityType": "columns",
      "table": "release_manifests"
    },
    {
      "type": "text",
      "notNull": false,
      "autoincrement": false,
      "default": null,
      "generated": null,
      "name": "prepared_at",
      "entityType": "columns",
      "table": "release_manifests"
    },
    {
      "type": "text",
      "notNull": false,
      "autoincrement": false,
      "default": null,
      "generated": null,
      "name": "committed_at",
      "entityType": "columns",
      "table": "release_manifests"
    },
    {
      "type": "text",
      "notNull": false,
      "autoincrement": false,
      "default": null,
      "generated": null,
      "name": "tagged_at",
      "entityType": "columns",
      "table": "release_manifests"
    },
    {
      "type": "text",
      "notNull": false,
      "autoincrement": false,
      "default": null,
      "generated": null,
      "name": "pushed_at",
      "entityType": "columns",
      "table": "release_manifests"
    },
    {
      "type": "text",
      "notNull": false,
      "autoincrement": false,
      "default": null,
      "generated": null,
      "name": "key",
      "entityType": "columns",
      "table": "schema_meta"
    },
    {
      "type": "text",
      "notNull": true,
      "autoincrement": false,
      "default": null,
      "generated": null,
      "name": "value",
      "entityType": "columns",
      "table": "schema_meta"
    },
    {
      "type": "text",
      "notNull": false,
      "autoincrement": false,
      "default": null,
      "generated": null,
      "name": "id",
      "entityType": "columns",
      "table": "sessions"
    },
    {
      "type": "text",
      "notNull": true,
      "autoincrement": false,
      "default": null,
      "generated": null,
      "name": "name",
      "entityType": "columns",
      "table": "sessions"
    },
    {
      "type": "text",
      "notNull": true,
      "autoincrement": false,
      "default": "'active'",
      "generated": null,
      "name": "status",
      "entityType": "columns",
      "table": "sessions"
    },
    {
      "type": "text",
      "notNull": true,
      "autoincrement": false,
      "default": "'{}'",
      "generated": null,
      "name": "scope_json",
      "entityType": "columns",
      "table": "sessions"
    },
    {
      "type": "text",
      "notNull": false,
      "autoincrement": false,
      "default": null,
      "generated": null,
      "name": "current_task",
      "entityType": "columns",
      "table": "sessions"
    },
    {
      "type": "text",
      "notNull": false,
      "autoincrement": false,
      "default": null,
      "generated": null,
      "name": "task_started_at",
      "entityType": "columns",
      "table": "sessions"
    },
    {
      "type": "text",
      "notNull": false,
      "autoincrement": false,
      "default": null,
      "generated": null,
      "name": "agent",
      "entityType": "columns",
      "table": "sessions"
    },
    {
      "type": "text",
      "notNull": false,
      "autoincrement": false,
      "default": "'[]'",
      "generated": null,
      "name": "notes_json",
      "entityType": "columns",
      "table": "sessions"
    },
    {
      "type": "text",
      "notNull": false,
      "autoincrement": false,
      "default": "'[]'",
      "generated": null,
      "name": "tasks_completed_json",
      "entityType": "columns",
      "table": "sessions"
    },
    {
      "type": "text",
      "notNull": false,
      "autoincrement": false,
      "default": "'[]'",
      "generated": null,
      "name": "tasks_created_json",
      "entityType": "columns",
      "table": "sessions"
    },
    {
      "type": "text",
      "notNull": false,
      "autoincrement": false,
      "default": null,
      "generated": null,
      "name": "handoff_json",
      "entityType": "columns",
      "table": "sessions"
    },
    {
      "type": "text",
      "notNull": true,
      "autoincrement": false,
      "default": "(datetime('now'))",
      "generated": null,
      "name": "started_at",
      "entityType": "columns",
      "table": "sessions"
    },
    {
      "type": "text",
      "notNull": false,
      "autoincrement": false,
      "default": null,
      "generated": null,
      "name": "ended_at",
      "entityType": "columns",
      "table": "sessions"
    },
    {
      "type": "text",
      "notNull": false,
      "autoincrement": false,
      "default": null,
      "generated": null,
      "name": "previous_session_id",
      "entityType": "columns",
      "table": "sessions"
    },
    {
      "type": "text",
      "notNull": false,
      "autoincrement": false,
      "default": null,
      "generated": null,
      "name": "next_session_id",
      "entityType": "columns",
      "table": "sessions"
    },
    {
      "type": "text",
      "notNull": false,
      "autoincrement": false,
      "default": null,
      "generated": null,
      "name": "agent_identifier",
      "entityType": "columns",
      "table": "sessions"
    },
    {
      "type": "text",
      "notNull": false,
      "autoincrement": false,
      "default": null,
      "generated": null,
      "name": "handoff_consumed_at",
      "entityType": "columns",
      "table": "sessions"
    },
    {
      "type": "text",
      "notNull": false,
      "autoincrement": false,
      "default": null,
      "generated": null,
      "name": "handoff_consumed_by",
      "entityType": "columns",
      "table": "sessions"
    },
    {
      "type": "text",
      "notNull": false,
      "autoincrement": false,
      "default": null,
      "generated": null,
      "name": "debrief_json",
      "entityType": "columns",
      "table": "sessions"
    },
    {
      "type": "text",
      "notNull": false,
      "autoincrement": false,
      "default": null,
      "generated": null,
      "name": "provider_id",
      "entityType": "columns",
      "table": "sessions"
    },
    {
      "type": "text",
      "notNull": false,
      "autoincrement": false,
      "default": null,
      "generated": null,
      "name": "stats_json",
      "entityType": "columns",
      "table": "sessions"
    },
    {
      "type": "integer",
      "notNull": false,
      "autoincrement": false,
      "default": null,
      "generated": null,
      "name": "resume_count",
      "entityType": "columns",
      "table": "sessions"
    },
    {
      "type": "integer",
      "notNull": false,
      "autoincrement": false,
      "default": null,
      "generated": null,
      "name": "grade_mode",
      "entityType": "columns",
      "table": "sessions"
    },
    {
      "type": "text",
      "notNull": false,
      "autoincrement": false,
      "default": null,
      "generated": null,
      "name": "owner_auth_token",
      "entityType": "columns",
      "table": "sessions"
    },
    {
      "type": "text",
      "notNull": true,
      "autoincrement": false,
      "default": null,
      "generated": null,
      "name": "name",
      "entityType": "columns",
      "table": "status_registry"
    },
    {
      "type": "text",
      "notNull": true,
      "autoincrement": false,
      "default": null,
      "generated": null,
      "name": "entity_type",
      "entityType": "columns",
      "table": "status_registry"
    },
    {
      "type": "text",
      "notNull": true,
      "autoincrement": false,
      "default": null,
      "generated": null,
      "name": "namespace",
      "entityType": "columns",
      "table": "status_registry"
    },
    {
      "type": "text",
      "notNull": true,
      "autoincrement": false,
      "default": null,
      "generated": null,
      "name": "description",
      "entityType": "columns",
      "table": "status_registry"
    },
    {
      "type": "integer",
      "notNull": true,
      "autoincrement": false,
      "default": "false",
      "generated": null,
      "name": "is_terminal",
      "entityType": "columns",
      "table": "status_registry"
    },
    {
      "type": "text",
      "notNull": true,
      "autoincrement": false,
      "default": null,
      "generated": null,
      "name": "task_id",
      "entityType": "columns",
      "table": "task_dependencies"
    },
    {
      "type": "text",
      "notNull": true,
      "autoincrement": false,
      "default": null,
      "generated": null,
      "name": "depends_on",
      "entityType": "columns",
      "table": "task_dependencies"
    },
    {
      "type": "text",
      "notNull": true,
      "autoincrement": false,
      "default": null,
      "generated": null,
      "name": "task_id",
      "entityType": "columns",
      "table": "task_relations"
    },
    {
      "type": "text",
      "notNull": true,
      "autoincrement": false,
      "default": null,
      "generated": null,
      "name": "related_to",
      "entityType": "columns",
      "table": "task_relations"
    },
    {
      "type": "text",
      "notNull": true,
      "autoincrement": false,
      "default": "'related'",
      "generated": null,
      "name": "relation_type",
      "entityType": "columns",
      "table": "task_relations"
    },
    {
      "type": "text",
      "notNull": false,
      "autoincrement": false,
      "default": null,
      "generated": null,
      "name": "reason",
      "entityType": "columns",
      "table": "task_relations"
    },
    {
      "type": "integer",
      "notNull": false,
      "autoincrement": true,
      "default": null,
      "generated": null,
      "name": "id",
      "entityType": "columns",
      "table": "task_work_history"
    },
    {
      "type": "text",
      "notNull": true,
      "autoincrement": false,
      "default": null,
      "generated": null,
      "name": "session_id",
      "entityType": "columns",
      "table": "task_work_history"
    },
    {
      "type": "text",
      "notNull": true,
      "autoincrement": false,
      "default": null,
      "generated": null,
      "name": "task_id",
      "entityType": "columns",
      "table": "task_work_history"
    },
    {
      "type": "text",
      "notNull": true,
      "autoincrement": false,
      "default": "(datetime('now'))",
      "generated": null,
      "name": "set_at",
      "entityType": "columns",
      "table": "task_work_history"
    },
    {
      "type": "text",
      "notNull": false,
      "autoincrement": false,
      "default": null,
      "generated": null,
      "name": "cleared_at",
      "entityType": "columns",
      "table": "task_work_history"
    },
    {
      "type": "text",
      "notNull": false,
      "autoincrement": false,
      "default": null,
      "generated": null,
      "name": "id",
      "entityType": "columns",
      "table": "tasks"
    },
    {
      "type": "text",
      "notNull": true,
      "autoincrement": false,
      "default": null,
      "generated": null,
      "name": "title",
      "entityType": "columns",
      "table": "tasks"
    },
    {
      "type": "text",
      "notNull": false,
      "autoincrement": false,
      "default": null,
      "generated": null,
      "name": "description",
      "entityType": "columns",
      "table": "tasks"
    },
    {
      "type": "text",
      "notNull": true,
      "autoincrement": false,
      "default": "'pending'",
      "generated": null,
      "name": "status",
      "entityType": "columns",
      "table": "tasks"
    },
    {
      "type": "text",
      "notNull": true,
      "autoincrement": false,
      "default": "'medium'",
      "generated": null,
      "name": "priority",
      "entityType": "columns",
      "table": "tasks"
    },
    {
      "type": "text",
      "notNull": false,
      "autoincrement": false,
      "default": null,
      "generated": null,
      "name": "type",
      "entityType": "columns",
      "table": "tasks"
    },
    {
      "type": "text",
      "notNull": true,
      "autoincrement": false,
      "default": "'work'",
      "generated": null,
      "name": "role",
      "entityType": "columns",
      "table": "tasks"
    },
    {
      "type": "text",
      "notNull": true,
      "autoincrement": false,
      "default": "'feature'",
      "generated": null,
      "name": "scope",
      "entityType": "columns",
      "table": "tasks"
    },
    {
      "type": "text",
      "notNull": false,
      "autoincrement": false,
      "default": null,
      "generated": null,
      "name": "severity",
      "entityType": "columns",
      "table": "tasks"
    },
    {
      "type": "text",
      "notNull": false,
      "autoincrement": false,
      "default": null,
      "generated": null,
      "name": "parent_id",
      "entityType": "columns",
      "table": "tasks"
    },
    {
      "type": "text",
      "notNull": false,
      "autoincrement": false,
      "default": null,
      "generated": null,
      "name": "phase",
      "entityType": "columns",
      "table": "tasks"
    },
    {
      "type": "text",
      "notNull": false,
      "autoincrement": false,
      "default": null,
      "generated": null,
      "name": "size",
      "entityType": "columns",
      "table": "tasks"
    },
    {
      "type": "integer",
      "notNull": false,
      "autoincrement": false,
      "default": null,
      "generated": null,
      "name": "position",
      "entityType": "columns",
      "table": "tasks"
    },
    {
      "type": "integer",
      "notNull": false,
      "autoincrement": false,
      "default": "0",
      "generated": null,
      "name": "position_version",
      "entityType": "columns",
      "table": "tasks"
    },
    {
      "type": "text",
      "notNull": false,
      "autoincrement": false,
      "default": "'[]'",
      "generated": null,
      "name": "labels_json",
      "entityType": "columns",
      "table": "tasks"
    },
    {
      "type": "text",
      "notNull": false,
      "autoincrement": false,
      "default": "'[]'",
      "generated": null,
      "name": "notes_json",
      "entityType": "columns",
      "table": "tasks"
    },
    {
      "type": "text",
      "notNull": false,
      "autoincrement": false,
      "default": "'[]'",
      "generated": null,
      "name": "acceptance_json",
      "entityType": "columns",
      "table": "tasks"
    },
    {
      "type": "text",
      "notNull": false,
      "autoincrement": false,
      "default": "'[]'",
      "generated": null,
      "name": "files_json",
      "entityType": "columns",
      "table": "tasks"
    },
    {
      "type": "text",
      "notNull": false,
      "autoincrement": false,
      "default": null,
      "generated": null,
      "name": "origin",
      "entityType": "columns",
      "table": "tasks"
    },
    {
      "type": "text",
      "notNull": false,
      "autoincrement": false,
      "default": null,
      "generated": null,
      "name": "blocked_by",
      "entityType": "columns",
      "table": "tasks"
    },
    {
      "type": "text",
      "notNull": false,
      "autoincrement": false,
      "default": null,
      "generated": null,
      "name": "epic_lifecycle",
      "entityType": "columns",
      "table": "tasks"
    },
    {
      "type": "integer",
      "notNull": false,
      "autoincrement": false,
      "default": null,
      "generated": null,
      "name": "no_auto_complete",
      "entityType": "columns",
      "table": "tasks"
    },
    {
      "type": "text",
      "notNull": true,
      "autoincrement": false,
      "default": "(datetime('now'))",
      "generated": null,
      "name": "created_at",
      "entityType": "columns",
      "table": "tasks"
    },
    {
      "type": "text",
      "notNull": false,
      "autoincrement": false,
      "default": null,
      "generated": null,
      "name": "updated_at",
      "entityType": "columns",
      "table": "tasks"
    },
    {
      "type": "text",
      "notNull": false,
      "autoincrement": false,
      "default": null,
      "generated": null,
      "name": "completed_at",
      "entityType": "columns",
      "table": "tasks"
    },
    {
      "type": "text",
      "notNull": false,
      "autoincrement": false,
      "default": null,
      "generated": null,
      "name": "cancelled_at",
      "entityType": "columns",
      "table": "tasks"
    },
    {
      "type": "text",
      "notNull": false,
      "autoincrement": false,
      "default": null,
      "generated": null,
      "name": "cancellation_reason",
      "entityType": "columns",
      "table": "tasks"
    },
    {
      "type": "text",
      "notNull": false,
      "autoincrement": false,
      "default": null,
      "generated": null,
      "name": "archived_at",
      "entityType": "columns",
      "table": "tasks"
    },
    {
      "type": "text",
      "notNull": false,
      "autoincrement": false,
      "default": null,
      "generated": null,
      "name": "archive_reason",
      "entityType": "columns",
      "table": "tasks"
    },
    {
      "type": "integer",
      "notNull": false,
      "autoincrement": false,
      "default": null,
      "generated": null,
      "name": "cycle_time_days",
      "entityType": "columns",
      "table": "tasks"
    },
    {
      "type": "text",
      "notNull": false,
      "autoincrement": false,
      "default": null,
      "generated": null,
      "name": "verification_json",
      "entityType": "columns",
      "table": "tasks"
    },
    {
      "type": "text",
      "notNull": false,
      "autoincrement": false,
      "default": null,
      "generated": null,
      "name": "created_by",
      "entityType": "columns",
      "table": "tasks"
    },
    {
      "type": "text",
      "notNull": false,
      "autoincrement": false,
      "default": null,
      "generated": null,
      "name": "modified_by",
      "entityType": "columns",
      "table": "tasks"
    },
    {
      "type": "text",
      "notNull": false,
      "autoincrement": false,
      "default": null,
      "generated": null,
      "name": "session_id",
      "entityType": "columns",
      "table": "tasks"
    },
    {
      "type": "text",
      "notNull": false,
      "autoincrement": false,
      "default": null,
      "generated": null,
      "name": "pipeline_stage",
      "entityType": "columns",
      "table": "tasks"
    },
    {
      "type": "text",
      "notNull": false,
      "autoincrement": false,
      "default": null,
      "generated": null,
      "name": "assignee",
      "entityType": "columns",
      "table": "tasks"
    },
    {
      "type": "text",
      "notNull": false,
      "autoincrement": false,
      "default": null,
      "generated": null,
      "name": "ivtr_state",
      "entityType": "columns",
      "table": "tasks"
    },
    {
      "type": "text",
      "notNull": false,
      "autoincrement": false,
      "default": null,
      "generated": null,
      "name": "id",
      "entityType": "columns",
      "table": "token_usage"
    },
    {
      "type": "text",
      "notNull": true,
      "autoincrement": false,
      "default": "(datetime('now'))",
      "generated": null,
      "name": "created_at",
      "entityType": "columns",
      "table": "token_usage"
    },
    {
      "type": "text",
      "notNull": true,
      "autoincrement": false,
      "default": "'unknown'",
      "generated": null,
      "name": "provider",
      "entityType": "columns",
      "table": "token_usage"
    },
    {
      "type": "text",
      "notNull": false,
      "autoincrement": false,
      "default": null,
      "generated": null,
      "name": "model",
      "entityType": "columns",
      "table": "token_usage"
    },
    {
      "type": "text",
      "notNull": true,
      "autoincrement": false,
      "default": "'unknown'",
      "generated": null,
      "name": "transport",
      "entityType": "columns",
      "table": "token_usage"
    },
    {
      "type": "text",
      "notNull": false,
      "autoincrement": false,
      "default": null,
      "generated": null,
      "name": "gateway",
      "entityType": "columns",
      "table": "token_usage"
    },
    {
      "type": "text",
      "notNull": false,
      "autoincrement": false,
      "default": null,
      "generated": null,
      "name": "domain",
      "entityType": "columns",
      "table": "token_usage"
    },
    {
      "type": "text",
      "notNull": false,
      "autoincrement": false,
      "default": null,
      "generated": null,
      "name": "operation",
      "entityType": "columns",
      "table": "token_usage"
    },
    {
      "type": "text",
      "notNull": false,
      "autoincrement": false,
      "default": null,
      "generated": null,
      "name": "session_id",
      "entityType": "columns",
      "table": "token_usage"
    },
    {
      "type": "text",
      "notNull": false,
      "autoincrement": false,
      "default": null,
      "generated": null,
      "name": "task_id",
      "entityType": "columns",
      "table": "token_usage"
    },
    {
      "type": "text",
      "notNull": false,
      "autoincrement": false,
      "default": null,
      "generated": null,
      "name": "request_id",
      "entityType": "columns",
      "table": "token_usage"
    },
    {
      "type": "integer",
      "notNull": true,
      "autoincrement": false,
      "default": "0",
      "generated": null,
      "name": "input_chars",
      "entityType": "columns",
      "table": "token_usage"
    },
    {
      "type": "integer",
      "notNull": true,
      "autoincrement": false,
      "default": "0",
      "generated": null,
      "name": "output_chars",
      "entityType": "columns",
      "table": "token_usage"
    },
    {
      "type": "integer",
      "notNull": true,
      "autoincrement": false,
      "default": "0",
      "generated": null,
      "name": "input_tokens",
      "entityType": "columns",
      "table": "token_usage"
    },
    {
      "type": "integer",
      "notNull": true,
      "autoincrement": false,
      "default": "0",
      "generated": null,
      "name": "output_tokens",
      "entityType": "columns",
      "table": "token_usage"
    },
    {
      "type": "integer",
      "notNull": true,
      "autoincrement": false,
      "default": "0",
      "generated": null,
      "name": "total_tokens",
      "entityType": "columns",
      "table": "token_usage"
    },
    {
      "type": "text",
      "notNull": true,
      "autoincrement": false,
      "default": "'heuristic'",
      "generated": null,
      "name": "method",
      "entityType": "columns",
      "table": "token_usage"
    },
    {
      "type": "text",
      "notNull": true,
      "autoincrement": false,
      "default": "'coarse'",
      "generated": null,
      "name": "confidence",
      "entityType": "columns",
      "table": "token_usage"
    },
    {
      "type": "text",
      "notNull": false,
      "autoincrement": false,
      "default": null,
      "generated": null,
      "name": "request_hash",
      "entityType": "columns",
      "table": "token_usage"
    },
    {
      "type": "text",
      "notNull": false,
      "autoincrement": false,
      "default": null,
      "generated": null,
      "name": "response_hash",
      "entityType": "columns",
      "table": "token_usage"
    },
    {
      "type": "text",
      "notNull": true,
      "autoincrement": false,
      "default": "'{}'",
      "generated": null,
      "name": "metadata_json",
      "entityType": "columns",
      "table": "token_usage"
    },
    {
      "type": "text",
      "notNull": false,
      "autoincrement": false,
      "default": null,
      "generated": null,
      "name": "id",
      "entityType": "columns",
      "table": "warp_chain_instances"
    },
    {
      "type": "text",
      "notNull": true,
      "autoincrement": false,
      "default": null,
      "generated": null,
      "name": "chain_id",
      "entityType": "columns",
      "table": "warp_chain_instances"
    },
    {
      "type": "text",
      "notNull": true,
      "autoincrement": false,
      "default": null,
      "generated": null,
      "name": "epic_id",
      "entityType": "columns",
      "table": "warp_chain_instances"
    },
    {
      "type": "text",
      "notNull": false,
      "autoincrement": false,
      "default": null,
      "generated": null,
      "name": "variables",
      "entityType": "columns",
      "table": "warp_chain_instances"
    },
    {
      "type": "text",
      "notNull": false,
      "autoincrement": false,
      "default": null,
      "generated": null,
      "name": "stage_to_task",
      "entityType": "columns",
      "table": "warp_chain_instances"
    },
    {
      "type": "text",
      "notNull": true,
      "autoincrement": false,
      "default": "'pending'",
      "generated": null,
      "name": "status",
      "entityType": "columns",
      "table": "warp_chain_instances"
    },
    {
      "type": "text",
      "notNull": false,
      "autoincrement": false,
      "default": null,
      "generated": null,
      "name": "current_stage",
      "entityType": "columns",
      "table": "warp_chain_instances"
    },
    {
      "type": "text",
      "notNull": false,
      "autoincrement": false,
      "default": null,
      "generated": null,
      "name": "gate_results",
      "entityType": "columns",
      "table": "warp_chain_instances"
    },
    {
      "type": "text",
      "notNull": false,
      "autoincrement": false,
      "default": "(datetime('now'))",
      "generated": null,
      "name": "created_at",
      "entityType": "columns",
      "table": "warp_chain_instances"
    },
    {
      "type": "text",
      "notNull": false,
      "autoincrement": false,
      "default": "(datetime('now'))",
      "generated": null,
      "name": "updated_at",
      "entityType": "columns",
      "table": "warp_chain_instances"
    },
    {
      "type": "text",
      "notNull": false,
      "autoincrement": false,
      "default": null,
      "generated": null,
      "name": "id",
      "entityType": "columns",
      "table": "warp_chains"
    },
    {
      "type": "text",
      "notNull": true,
      "autoincrement": false,
      "default": null,
      "generated": null,
      "name": "name",
      "entityType": "columns",
      "table": "warp_chains"
    },
    {
      "type": "text",
      "notNull": true,
      "autoincrement": false,
      "default": null,
      "generated": null,
      "name": "version",
      "entityType": "columns",
      "table": "warp_chains"
    },
    {
      "type": "text",
      "notNull": false,
      "autoincrement": false,
      "default": null,
      "generated": null,
      "name": "description",
      "entityType": "columns",
      "table": "warp_chains"
    },
    {
      "type": "text",
      "notNull": true,
      "autoincrement": false,
      "default": null,
      "generated": null,
      "name": "definition",
      "entityType": "columns",
      "table": "warp_chains"
    },
    {
      "type": "integer",
      "notNull": false,
      "autoincrement": false,
      "default": "false",
      "generated": null,
      "name": "validated",
      "entityType": "columns",
      "table": "warp_chains"
    },
    {
      "type": "text",
      "notNull": false,
      "autoincrement": false,
      "default": "(datetime('now'))",
      "generated": null,
      "name": "created_at",
      "entityType": "columns",
      "table": "warp_chains"
    },
    {
      "type": "text",
      "notNull": false,
      "autoincrement": false,
      "default": "(datetime('now'))",
      "generated": null,
      "name": "updated_at",
      "entityType": "columns",
      "table": "warp_chains"
    },
    {
      "columns": [
        "from_adr_id"
      ],
      "tableTo": "architecture_decisions",
      "columnsTo": [
        "id"
      ],
      "onUpdate": "NO ACTION",
      "onDelete": "CASCADE",
      "nameExplicit": false,
      "name": "fk_adr_relations_from_adr_id_architecture_decisions_id_fk",
      "entityType": "fks",
      "table": "adr_relations"
    },
    {
      "columns": [
        "to_adr_id"
      ],
      "tableTo": "architecture_decisions",
      "columnsTo": [
        "id"
      ],
      "onUpdate": "NO ACTION",
      "onDelete": "CASCADE",
      "nameExplicit": false,
      "name": "fk_adr_relations_to_adr_id_architecture_decisions_id_fk",
      "entityType": "fks",
      "table": "adr_relations"
    },
    {
      "columns": [
        "adr_id"
      ],
      "tableTo": "architecture_decisions",
      "columnsTo": [
        "id"
      ],
      "onUpdate": "NO ACTION",
      "onDelete": "CASCADE",
      "nameExplicit": false,
      "name": "fk_adr_task_links_adr_id_architecture_decisions_id_fk",
      "entityType": "fks",
      "table": "adr_task_links"
    },
    {
      "columns": [
        "task_id"
      ],
      "tableTo": "tasks",
      "columnsTo": [
        "id"
      ],
      "onUpdate": "NO ACTION",
      "onDelete": "CASCADE",
      "nameExplicit": false,
      "name": "fk_adr_task_links_task_id_tasks_id_fk",
      "entityType": "fks",
      "table": "adr_task_links"
    },
    {
      "columns": [
        "supersedes_id"
      ],
      "tableTo": "architecture_decisions",
      "columnsTo": [
        "id"
      ],
      "onUpdate": "NO ACTION",
      "onDelete": "SET NULL",
      "nameExplicit": false,
      "name": "fk_architecture_decisions_supersedes_id_architecture_decisions_id_fk",
      "entityType": "fks",
      "table": "architecture_decisions"
    },
    {
      "columns": [
        "superseded_by_id"
      ],
      "tableTo": "architecture_decisions",
      "columnsTo": [
        "id"
      ],
      "onUpdate": "NO ACTION",
      "onDelete": "SET NULL",
      "nameExplicit": false,
      "name": "fk_architecture_decisions_superseded_by_id_architecture_decisions_id_fk",
      "entityType": "fks",
      "table": "architecture_decisions"
    },
    {
      "columns": [
        "consensus_manifest_id"
      ],
      "tableTo": "manifest_entries",
      "columnsTo": [
        "id"
      ],
      "onUpdate": "NO ACTION",
      "onDelete": "SET NULL",
      "nameExplicit": false,
      "name": "fk_architecture_decisions_consensus_manifest_id_manifest_entries_id_fk",
      "entityType": "fks",
      "table": "architecture_decisions"
    },
    {
      "columns": [
        "amends_id"
      ],
      "tableTo": "architecture_decisions",
      "columnsTo": [
        "id"
      ],
      "onUpdate": "NO ACTION",
      "onDelete": "SET NULL",
      "nameExplicit": false,
      "name": "fk_architecture_decisions_amends_id_architecture_decisions_id_fk",
      "entityType": "fks",
      "table": "architecture_decisions"
    },
    {
      "columns": [
        "task_id"
      ],
      "tableTo": "tasks",
      "columnsTo": [
        "id"
      ],
      "onUpdate": "NO ACTION",
      "onDelete": "CASCADE",
      "nameExplicit": false,
      "name": "fk_experiments_task_id_tasks_id_fk",
      "entityType": "fks",
      "table": "experiments"
    },
    {
      "columns": [
        "task_id"
      ],
      "tableTo": "tasks",
      "columnsTo": [
        "id"
      ],
      "onUpdate": "NO ACTION",
      "onDelete": "CASCADE",
      "nameExplicit": false,
      "name": "fk_external_task_links_task_id_tasks_id_fk",
      "entityType": "fks",
      "table": "external_task_links"
    },
    {
      "columns": [
        "stage_id"
      ],
      "tableTo": "lifecycle_stages",
      "columnsTo": [
        "id"
      ],
      "onUpdate": "NO ACTION",
      "onDelete": "CASCADE",
      "nameExplicit": false,
      "name": "fk_lifecycle_evidence_stage_id_lifecycle_stages_id_fk",
      "entityType": "fks",
      "table": "lifecycle_evidence"
    },
    {
      "columns": [
        "stage_id"
      ],
      "tableTo": "lifecycle_stages",
      "columnsTo": [
        "id"
      ],
      "onUpdate": "NO ACTION",
      "onDelete": "CASCADE",
      "nameExplicit": false,
      "name": "fk_lifecycle_gate_results_stage_id_lifecycle_stages_id_fk",
      "entityType": "fks",
      "table": "lifecycle_gate_results"
    },
    {
      "columns": [
        "task_id"
      ],
      "tableTo": "tasks",
      "columnsTo": [
        "id"
      ],
      "onUpdate": "NO ACTION",
      "onDelete": "CASCADE",
      "nameExplicit": false,
      "name": "fk_lifecycle_pipelines_task_id_tasks_id_fk",
      "entityType": "fks",
      "table": "lifecycle_pipelines"
    },
    {
      "columns": [
        "pipeline_id"
      ],
      "tableTo": "lifecycle_pipelines",
      "columnsTo": [
        "id"
      ],
      "onUpdate": "NO ACTION",
      "onDelete": "CASCADE",
      "nameExplicit": false,
      "name": "fk_lifecycle_stages_pipeline_id_lifecycle_pipelines_id_fk",
      "entityType": "fks",
      "table": "lifecycle_stages"
    },
    {
      "columns": [
        "pipeline_id"
      ],
      "tableTo": "lifecycle_pipelines",
      "columnsTo": [
        "id"
      ],
      "onUpdate": "NO ACTION",
      "onDelete": "CASCADE",
      "nameExplicit": false,
      "name": "fk_lifecycle_transitions_pipeline_id_lifecycle_pipelines_id_fk",
      "entityType": "fks",
      "table": "lifecycle_transitions"
    },
    {
      "columns": [
        "from_stage_id"
      ],
      "tableTo": "lifecycle_stages",
      "columnsTo": [
        "id"
      ],
      "onUpdate": "NO ACTION",
      "onDelete": "CASCADE",
      "nameExplicit": false,
      "name": "fk_lifecycle_transitions_from_stage_id_lifecycle_stages_id_fk",
      "entityType": "fks",
      "table": "lifecycle_transitions"
    },
    {
      "columns": [
        "to_stage_id"
      ],
      "tableTo": "lifecycle_stages",
      "columnsTo": [
        "id"
      ],
      "onUpdate": "NO ACTION",
      "onDelete": "CASCADE",
      "nameExplicit": false,
      "name": "fk_lifecycle_transitions_to_stage_id_lifecycle_stages_id_fk",
      "entityType": "fks",
      "table": "lifecycle_transitions"
    },
    {
      "columns": [
        "pipeline_id"
      ],
      "tableTo": "lifecycle_pipelines",
      "columnsTo": [
        "id"
      ],
      "onUpdate": "NO ACTION",
      "onDelete": "CASCADE",
      "nameExplicit": false,
      "name": "fk_manifest_entries_pipeline_id_lifecycle_pipelines_id_fk",
      "entityType": "fks",
      "table": "manifest_entries"
    },
    {
      "columns": [
        "stage_id"
      ],
      "tableTo": "lifecycle_stages",
      "columnsTo": [
        "id"
      ],
      "onUpdate": "NO ACTION",
      "onDelete": "CASCADE",
      "nameExplicit": false,
      "name": "fk_manifest_entries_stage_id_lifecycle_stages_id_fk",
      "entityType": "fks",
      "table": "manifest_entries"
    },
    {
      "columns": [
        "session_id"
      ],
      "tableTo": "sessions",
      "columnsTo": [
        "id"
      ],
      "onUpdate": "NO ACTION",
      "onDelete": "SET NULL",
      "nameExplicit": false,
      "name": "fk_pipeline_manifest_session_id_sessions_id_fk",
      "entityType": "fks",
      "table": "pipeline_manifest"
    },
    {
      "columns": [
        "task_id"
      ],
      "tableTo": "tasks",
      "columnsTo": [
        "id"
      ],
      "onUpdate": "NO ACTION",
      "onDelete": "SET NULL",
      "nameExplicit": false,
      "name": "fk_pipeline_manifest_task_id_tasks_id_fk",
      "entityType": "fks",
      "table": "pipeline_manifest"
    },
    {
      "columns": [
        "epic_id"
      ],
      "tableTo": "tasks",
      "columnsTo": [
        "id"
      ],
      "onUpdate": "NO ACTION",
      "onDelete": "SET NULL",
      "nameExplicit": false,
      "name": "fk_pipeline_manifest_epic_id_tasks_id_fk",
      "entityType": "fks",
      "table": "pipeline_manifest"
    },
    {
      "columns": [
        "pipeline_id"
      ],
      "tableTo": "lifecycle_pipelines",
      "columnsTo": [
        "id"
      ],
      "onUpdate": "NO ACTION",
      "onDelete": "SET NULL",
      "nameExplicit": false,
      "name": "fk_release_manifests_pipeline_id_lifecycle_pipelines_id_fk",
      "entityType": "fks",
      "table": "release_manifests"
    },
    {
      "columns": [
        "epic_id"
      ],
      "tableTo": "tasks",
      "columnsTo": [
        "id"
      ],
      "onUpdate": "NO ACTION",
      "onDelete": "SET NULL",
      "nameExplicit": false,
      "name": "fk_release_manifests_epic_id_tasks_id_fk",
      "entityType": "fks",
      "table": "release_manifests"
    },
    {
      "columns": [
        "current_task"
      ],
      "tableTo": "tasks",
      "columnsTo": [
        "id"
      ],
      "onUpdate": "NO ACTION",
      "onDelete": "SET NULL",
      "nameExplicit": false,
      "name": "fk_sessions_current_task_tasks_id_fk",
      "entityType": "fks",
      "table": "sessions"
    },
    {
      "columns": [
        "previous_session_id"
      ],
      "tableTo": "sessions",
      "columnsTo": [
        "id"
      ],
      "onUpdate": "NO ACTION",
      "onDelete": "SET NULL",
      "nameExplicit": false,
      "name": "fk_sessions_previous_session_id_sessions_id_fk",
      "entityType": "fks",
      "table": "sessions"
    },
    {
      "columns": [
        "next_session_id"
      ],
      "tableTo": "sessions",
      "columnsTo": [
        "id"
      ],
      "onUpdate": "NO ACTION",
      "onDelete": "SET NULL",
      "nameExplicit": false,
      "name": "fk_sessions_next_session_id_sessions_id_fk",
      "entityType": "fks",
      "table": "sessions"
    },
    {
      "columns": [
        "task_id"
      ],
      "tableTo": "tasks",
      "columnsTo": [
        "id"
      ],
      "onUpdate": "NO ACTION",
      "onDelete": "CASCADE",
      "nameExplicit": false,
      "name": "fk_task_dependencies_task_id_tasks_id_fk",
      "entityType": "fks",
      "table": "task_dependencies"
    },
    {
      "columns": [
        "depends_on"
      ],
      "tableTo": "tasks",
      "columnsTo": [
        "id"
      ],
      "onUpdate": "NO ACTION",
      "onDelete": "CASCADE",
      "nameExplicit": false,
      "name": "fk_task_dependencies_depends_on_tasks_id_fk",
      "entityType": "fks",
      "table": "task_dependencies"
    },
    {
      "columns": [
        "task_id"
      ],
      "tableTo": "tasks",
      "columnsTo": [
        "id"
      ],
      "onUpdate": "NO ACTION",
      "onDelete": "CASCADE",
      "nameExplicit": false,
      "name": "fk_task_relations_task_id_tasks_id_fk",
      "entityType": "fks",
      "table": "task_relations"
    },
    {
      "columns": [
        "related_to"
      ],
      "tableTo": "tasks",
      "columnsTo": [
        "id"
      ],
      "onUpdate": "NO ACTION",
      "onDelete": "CASCADE",
      "nameExplicit": false,
      "name": "fk_task_relations_related_to_tasks_id_fk",
      "entityType": "fks",
      "table": "task_relations"
    },
    {
      "columns": [
        "session_id"
      ],
      "tableTo": "sessions",
      "columnsTo": [
        "id"
      ],
      "onUpdate": "NO ACTION",
      "onDelete": "CASCADE",
      "nameExplicit": false,
      "name": "fk_task_work_history_session_id_sessions_id_fk",
      "entityType": "fks",
      "table": "task_work_history"
    },
    {
      "columns": [
        "task_id"
      ],
      "tableTo": "tasks",
      "columnsTo": [
        "id"
      ],
      "onUpdate": "NO ACTION",
      "onDelete": "CASCADE",
      "nameExplicit": false,
      "name": "fk_task_work_history_task_id_tasks_id_fk",
      "entityType": "fks",
      "table": "task_work_history"
    },
    {
      "columns": [
        "parent_id"
      ],
      "tableTo": "tasks",
      "columnsTo": [
        "id"
      ],
      "onUpdate": "NO ACTION",
      "onDelete": "SET NULL",
      "nameExplicit": false,
      "name": "fk_tasks_parent_id_tasks_id_fk",
      "entityType": "fks",
      "table": "tasks"
    },
    {
      "columns": [
        "session_id"
      ],
      "tableTo": "sessions",
      "columnsTo": [
        "id"
      ],
      "onUpdate": "NO ACTION",
      "onDelete": "SET NULL",
      "nameExplicit": false,
      "name": "fk_tasks_session_id_sessions_id_fk",
      "entityType": "fks",
      "table": "tasks"
    },
    {
      "columns": [
        "session_id"
      ],
      "tableTo": "sessions",
      "columnsTo": [
        "id"
      ],
      "onUpdate": "NO ACTION",
      "onDelete": "SET NULL",
      "nameExplicit": false,
      "name": "fk_token_usage_session_id_sessions_id_fk",
      "entityType": "fks",
      "table": "token_usage"
    },
    {
      "columns": [
        "task_id"
      ],
      "tableTo": "tasks",
      "columnsTo": [
        "id"
      ],
      "onUpdate": "NO ACTION",
      "onDelete": "SET NULL",
      "nameExplicit": false,
      "name": "fk_token_usage_task_id_tasks_id_fk",
      "entityType": "fks",
      "table": "token_usage"
    },
    {
      "columns": [
        "chain_id"
      ],
      "tableTo": "warp_chains",
      "columnsTo": [
        "id"
      ],
      "onUpdate": "NO ACTION",
      "onDelete": "CASCADE",
      "nameExplicit": false,
      "name": "fk_warp_chain_instances_chain_id_warp_chains_id_fk",
      "entityType": "fks",
      "table": "warp_chain_instances"
    },
    {
      "columns": [
        "from_adr_id",
        "to_adr_id",
        "relation_type"
      ],
      "nameExplicit": false,
      "name": "adr_relations_pk",
      "entityType": "pks",
      "table": "adr_relations"
    },
    {
      "columns": [
        "adr_id",
        "task_id"
      ],
      "nameExplicit": false,
      "name": "adr_task_links_pk",
      "entityType": "pks",
      "table": "adr_task_links"
    },
    {
      "columns": [
        "attachment_id",
        "owner_type",
        "owner_id"
      ],
      "nameExplicit": false,
      "name": "attachment_refs_pk",
      "entityType": "pks",
      "table": "attachment_refs"
    },
    {
      "columns": [
        "name",
        "entity_type"
      ],
      "nameExplicit": false,
      "name": "status_registry_pk",
      "entityType": "pks",
      "table": "status_registry"
    },
    {
      "columns": [
        "task_id",
        "depends_on"
      ],
      "nameExplicit": false,
      "name": "task_dependencies_pk",
      "entityType": "pks",
      "table": "task_dependencies"
    },
    {
      "columns": [
        "task_id",
        "related_to"
      ],
      "nameExplicit": false,
      "name": "task_relations_pk",
      "entityType": "pks",
      "table": "task_relations"
    },
    {
      "columns": [
        "id"
      ],
      "nameExplicit": false,
      "name": "agent_error_log_pk",
      "table": "agent_error_log",
      "entityType": "pks"
    },
    {
      "columns": [
        "id"
      ],
      "nameExplicit": false,
      "name": "agent_instances_pk",
      "table": "agent_instances",
      "entityType": "pks"
    },
    {
      "columns": [
        "id"
      ],
      "nameExplicit": false,
      "name": "architecture_decisions_pk",
      "table": "architecture_decisions",
      "entityType": "pks"
    },
    {
      "columns": [
        "id"
      ],
      "nameExplicit": false,
      "name": "attachments_pk",
      "table": "attachments",
      "entityType": "pks"
    },
    {
      "columns": [
        "id"
      ],
      "nameExplicit": false,
      "name": "audit_log_pk",
      "table": "audit_log",
      "entityType": "pks"
    },
    {
      "columns": [
        "id"
      ],
      "nameExplicit": false,
      "name": "background_jobs_pk",
      "table": "background_jobs",
      "entityType": "pks"
    },
    {
      "columns": [
        "task_id"
      ],
      "nameExplicit": false,
      "name": "experiments_pk",
      "table": "experiments",
      "entityType": "pks"
    },
    {
      "columns": [
        "id"
      ],
      "nameExplicit": false,
      "name": "external_task_links_pk",
      "table": "external_task_links",
      "entityType": "pks"
    },
    {
      "columns": [
        "id"
      ],
      "nameExplicit": false,
      "name": "lifecycle_evidence_pk",
      "table": "lifecycle_evidence",
      "entityType": "pks"
    },
    {
      "columns": [
        "id"
      ],
      "nameExplicit": false,
      "name": "lifecycle_gate_results_pk",
      "table": "lifecycle_gate_results",
      "entityType": "pks"
    },
    {
      "columns": [
        "id"
      ],
      "nameExplicit": false,
      "name": "lifecycle_pipelines_pk",
      "table": "lifecycle_pipelines",
      "entityType": "pks"
    },
    {
      "columns": [
        "id"
      ],
      "nameExplicit": false,
      "name": "lifecycle_stages_pk",
      "table": "lifecycle_stages",
      "entityType": "pks"
    },
    {
      "columns": [
        "id"
      ],
      "nameExplicit": false,
      "name": "lifecycle_transitions_pk",
      "table": "lifecycle_transitions",
      "entityType": "pks"
    },
    {
      "columns": [
        "id"
      ],
      "nameExplicit": false,
      "name": "manifest_entries_pk",
      "table": "manifest_entries",
      "entityType": "pks"
    },
    {
      "columns": [
        "id"
      ],
      "nameExplicit": false,
      "name": "pipeline_manifest_pk",
      "table": "pipeline_manifest",
      "entityType": "pks"
    },
    {
      "columns": [
        "id"
      ],
      "nameExplicit": false,
      "name": "release_manifests_pk",
      "table": "release_manifests",
      "entityType": "pks"
    },
    {
      "columns": [
        "key"
      ],
      "nameExplicit": false,
      "name": "schema_meta_pk",
      "table": "schema_meta",
      "entityType": "pks"
    },
    {
      "columns": [
        "id"
      ],
      "nameExplicit": false,
      "name": "sessions_pk",
      "table": "sessions",
      "entityType": "pks"
    },
    {
      "columns": [
        "id"
      ],
      "nameExplicit": false,
      "name": "task_work_history_pk",
      "table": "task_work_history",
      "entityType": "pks"
    },
    {
      "columns": [
        "id"
      ],
      "nameExplicit": false,
      "name": "tasks_pk",
      "table": "tasks",
      "entityType": "pks"
    },
    {
      "columns": [
        "id"
      ],
      "nameExplicit": false,
      "name": "token_usage_pk",
      "table": "token_usage",
      "entityType": "pks"
    },
    {
      "columns": [
        "id"
      ],
      "nameExplicit": false,
      "name": "warp_chain_instances_pk",
      "table": "warp_chain_instances",
      "entityType": "pks"
    },
    {
      "columns": [
        "id"
      ],
      "nameExplicit": false,
      "name": "warp_chains_pk",
      "table": "warp_chains",
      "entityType": "pks"
    },
    {
      "columns": [
        {
          "value": "task_id",
          "isExpression": false
        }
      ],
      "isUnique": false,
      "where": null,
      "origin": "manual",
      "name": "idx_adr_task_links_task_id",
      "entityType": "indexes",
      "table": "adr_task_links"
    },
    {
      "columns": [
        {
          "value": "agent_id",
          "isExpression": false
        }
      ],
      "isUnique": false,
      "where": null,
      "origin": "manual",
      "name": "idx_agent_error_log_agent_id",
      "entityType": "indexes",
      "table": "agent_error_log"
    },
    {
      "columns": [
        {
          "value": "error_type",
          "isExpression": false
        }
      ],
      "isUnique": false,
      "where": null,
      "origin": "manual",
      "name": "idx_agent_error_log_error_type",
      "entityType": "indexes",
      "table": "agent_error_log"
    },
    {
      "columns": [
        {
          "value": "occurred_at",
          "isExpression": false
        }
      ],
      "isUnique": false,
      "where": null,
      "origin": "manual",
      "name": "idx_agent_error_log_occurred_at",
      "entityType": "indexes",
      "table": "agent_error_log"
    },
    {
      "columns": [
        {
          "value": "status",
          "isExpression": false
        }
      ],
      "isUnique": false,
      "where": null,
      "origin": "manual",
      "name": "idx_agent_instances_status",
      "entityType": "indexes",
      "table": "agent_instances"
    },
    {
      "columns": [
        {
          "value": "agent_type",
          "isExpression": false
        }
      ],
      "isUnique": false,
      "where": null,
      "origin": "manual",
      "name": "idx_agent_instances_agent_type",
      "entityType": "indexes",
      "table": "agent_instances"
    },
    {
      "columns": [
        {
          "value": "session_id",
          "isExpression": false
        }
      ],
      "isUnique": false,
      "where": null,
      "origin": "manual",
      "name": "idx_agent_instances_session_id",
      "entityType": "indexes",
      "table": "agent_instances"
    },
    {
      "columns": [
        {
          "value": "task_id",
          "isExpression": false
        }
      ],
      "isUnique": false,
      "where": null,
      "origin": "manual",
      "name": "idx_agent_instances_task_id",
      "entityType": "indexes",
      "table": "agent_instances"
    },
    {
      "columns": [
        {
          "value": "parent_agent_id",
          "isExpression": false
        }
      ],
      "isUnique": false,
      "where": null,
      "origin": "manual",
      "name": "idx_agent_instances_parent_agent_id",
      "entityType": "indexes",
      "table": "agent_instances"
    },
    {
      "columns": [
        {
          "value": "last_heartbeat",
          "isExpression": false
        }
      ],
      "isUnique": false,
      "where": null,
      "origin": "manual",
      "name": "idx_agent_instances_last_heartbeat",
      "entityType": "indexes",
      "table": "agent_instances"
    },
    {
      "columns": [
        {
          "value": "status",
          "isExpression": false
        }
      ],
      "isUnique": false,
      "where": null,
      "origin": "manual",
      "name": "idx_arch_decisions_status",
      "entityType": "indexes",
      "table": "architecture_decisions"
    },
    {
      "columns": [
        {
          "value": "amends_id",
          "isExpression": false
        }
      ],
      "isUnique": false,
      "where": null,
      "origin": "manual",
      "name": "idx_arch_decisions_amends_id",
      "entityType": "indexes",
      "table": "architecture_decisions"
    },
    {
      "columns": [
        {
          "value": "attachment_id",
          "isExpression": false
        }
      ],
      "isUnique": false,
      "where": null,
      "origin": "manual",
      "name": "idx_attachment_refs_attachment_id",
      "entityType": "indexes",
      "table": "attachment_refs"
    },
    {
      "columns": [
        {
          "value": "owner_type",
          "isExpression": false
        },
        {
          "value": "owner_id",
          "isExpression": false
        }
      ],
      "isUnique": false,
      "where": null,
      "origin": "manual",
      "name": "idx_attachment_refs_owner",
      "entityType": "indexes",
      "table": "attachment_refs"
    },
    {
      "columns": [
        {
          "value": "sha256",
          "isExpression": false
        }
      ],
      "isUnique": false,
      "where": null,
      "origin": "manual",
      "name": "idx_attachments_sha256",
      "entityType": "indexes",
      "table": "attachments"
    },
    {
      "columns": [
        {
          "value": "task_id",
          "isExpression": false
        }
      ],
      "isUnique": false,
      "where": null,
      "origin": "manual",
      "name": "idx_audit_log_task_id",
      "entityType": "indexes",
      "table": "audit_log"
    },
    {
      "columns": [
        {
          "value": "action",
          "isExpression": false
        }
      ],
      "isUnique": false,
      "where": null,
      "origin": "manual",
      "name": "idx_audit_log_action",
      "entityType": "indexes",
      "table": "audit_log"
    },
    {
      "columns": [
        {
          "value": "timestamp",
          "isExpression": false
        }
      ],
      "isUnique": false,
      "where": null,
      "origin": "manual",
      "name": "idx_audit_log_timestamp",
      "entityType": "indexes",
      "table": "audit_log"
    },
    {
      "columns": [
        {
          "value": "domain",
          "isExpression": false
        }
      ],
      "isUnique": false,
      "where": null,
      "origin": "manual",
      "name": "idx_audit_log_domain",
      "entityType": "indexes",
      "table": "audit_log"
    },
    {
      "columns": [
        {
          "value": "request_id",
          "isExpression": false
        }
      ],
      "isUnique": false,
      "where": null,
      "origin": "manual",
      "name": "idx_audit_log_request_id",
      "entityType": "indexes",
      "table": "audit_log"
    },
    {
      "columns": [
        {
          "value": "project_hash",
          "isExpression": false
        }
      ],
      "isUnique": false,
      "where": null,
      "origin": "manual",
      "name": "idx_audit_log_project_hash",
      "entityType": "indexes",
      "table": "audit_log"
    },
    {
      "columns": [
        {
          "value": "actor",
          "isExpression": false
        }
      ],
      "isUnique": false,
      "where": null,
      "origin": "manual",
      "name": "idx_audit_log_actor",
      "entityType": "indexes",
      "table": "audit_log"
    },
    {
      "columns": [
        {
          "value": "session_id",
          "isExpression": false
        },
        {
          "value": "timestamp",
          "isExpression": false
        }
      ],
      "isUnique": false,
      "where": null,
      "origin": "manual",
      "name": "idx_audit_log_session_timestamp",
      "entityType": "indexes",
      "table": "audit_log"
    },
    {
      "columns": [
        {
          "value": "domain",
          "isExpression": false
        },
        {
          "value": "operation",
          "isExpression": false
        }
      ],
      "isUnique": false,
      "where": null,
      "origin": "manual",
      "name": "idx_audit_log_domain_operation",
      "entityType": "indexes",
      "table": "audit_log"
    },
    {
      "columns": [
        {
          "value": "status",
          "isExpression": false
        }
      ],
      "isUnique": false,
      "where": null,
      "origin": "manual",
      "name": "idx_background_jobs_status",
      "entityType": "indexes",
      "table": "background_jobs"
    },
    {
      "columns": [
        {
          "value": "operation",
          "isExpression": false
        }
      ],
      "isUnique": false,
      "where": null,
      "origin": "manual",
      "name": "idx_background_jobs_operation",
      "entityType": "indexes",
      "table": "background_jobs"
    },
    {
      "columns": [
        {
          "value": "claimed_by",
          "isExpression": false
        }
      ],
      "isUnique": false,
      "where": null,
      "origin": "manual",
      "name": "idx_background_jobs_claimed_by",
      "entityType": "indexes",
      "table": "background_jobs"
    },
    {
      "columns": [
        {
          "value": "started_at",
          "isExpression": false
        }
      ],
      "isUnique": false,
      "where": null,
      "origin": "manual",
      "name": "idx_background_jobs_started_at",
      "entityType": "indexes",
      "table": "background_jobs"
    },
    {
      "columns": [
        {
          "value": "merged_at",
          "isExpression": false
        }
      ],
      "isUnique": false,
      "where": null,
      "origin": "manual",
      "name": "idx_experiments_merged",
      "entityType": "indexes",
      "table": "experiments"
    },
    {
      "columns": [
        {
          "value": "task_id",
          "isExpression": false
        }
      ],
      "isUnique": false,
      "where": null,
      "origin": "manual",
      "name": "idx_ext_links_task_id",
      "entityType": "indexes",
      "table": "external_task_links"
    },
    {
      "columns": [
        {
          "value": "provider_id",
          "isExpression": false
        },
        {
          "value": "external_id",
          "isExpression": false
        }
      ],
      "isUnique": false,
      "where": null,
      "origin": "manual",
      "name": "idx_ext_links_provider_external",
      "entityType": "indexes",
      "table": "external_task_links"
    },
    {
      "columns": [
        {
          "value": "provider_id",
          "isExpression": false
        }
      ],
      "isUnique": false,
      "where": null,
      "origin": "manual",
      "name": "idx_ext_links_provider_id",
      "entityType": "indexes",
      "table": "external_task_links"
    },
    {
      "columns": [
        {
          "value": "stage_id",
          "isExpression": false
        }
      ],
      "isUnique": false,
      "where": null,
      "origin": "manual",
      "name": "idx_lifecycle_evidence_stage_id",
      "entityType": "indexes",
      "table": "lifecycle_evidence"
    },
    {
      "columns": [
        {
          "value": "stage_id",
          "isExpression": false
        }
      ],
      "isUnique": false,
      "where": null,
      "origin": "manual",
      "name": "idx_lifecycle_gate_results_stage_id",
      "entityType": "indexes",
      "table": "lifecycle_gate_results"
    },
    {
      "columns": [
        {
          "value": "task_id",
          "isExpression": false
        }
      ],
      "isUnique": false,
      "where": null,
      "origin": "manual",
      "name": "idx_lifecycle_pipelines_task_id",
      "entityType": "indexes",
      "table": "lifecycle_pipelines"
    },
    {
      "columns": [
        {
          "value": "status",
          "isExpression": false
        }
      ],
      "isUnique": false,
      "where": null,
      "origin": "manual",
      "name": "idx_lifecycle_pipelines_status",
      "entityType": "indexes",
      "table": "lifecycle_pipelines"
    },
    {
      "columns": [
        {
          "value": "pipeline_id",
          "isExpression": false
        }
      ],
      "isUnique": false,
      "where": null,
      "origin": "manual",
      "name": "idx_lifecycle_stages_pipeline_id",
      "entityType": "indexes",
      "table": "lifecycle_stages"
    },
    {
      "columns": [
        {
          "value": "stage_name",
          "isExpression": false
        }
      ],
      "isUnique": false,
      "where": null,
      "origin": "manual",
      "name": "idx_lifecycle_stages_stage_name",
      "entityType": "indexes",
      "table": "lifecycle_stages"
    },
    {
      "columns": [
        {
          "value": "status",
          "isExpression": false
        }
      ],
      "isUnique": false,
      "where": null,
      "origin": "manual",
      "name": "idx_lifecycle_stages_status",
      "entityType": "indexes",
      "table": "lifecycle_stages"
    },
    {
      "columns": [
        {
          "value": "validated_by",
          "isExpression": false
        }
      ],
      "isUnique": false,
      "where": null,
      "origin": "manual",
      "name": "idx_lifecycle_stages_validated_by",
      "entityType": "indexes",
      "table": "lifecycle_stages"
    },
    {
      "columns": [
        {
          "value": "pipeline_id",
          "isExpression": false
        }
      ],
      "isUnique": false,
      "where": null,
      "origin": "manual",
      "name": "idx_lifecycle_transitions_pipeline_id",
      "entityType": "indexes",
      "table": "lifecycle_transitions"
    },
    {
      "columns": [
        {
          "value": "pipeline_id",
          "isExpression": false
        }
      ],
      "isUnique": false,
      "where": null,
      "origin": "manual",
      "name": "idx_manifest_entries_pipeline_id",
      "entityType": "indexes",
      "table": "manifest_entries"
    },
    {
      "columns": [
        {
          "value": "stage_id",
          "isExpression": false
        }
      ],
      "isUnique": false,
      "where": null,
      "origin": "manual",
      "name": "idx_manifest_entries_stage_id",
      "entityType": "indexes",
      "table": "manifest_entries"
    },
    {
      "columns": [
        {
          "value": "status",
          "isExpression": false
        }
      ],
      "isUnique": false,
      "where": null,
      "origin": "manual",
      "name": "idx_manifest_entries_status",
      "entityType": "indexes",
      "table": "manifest_entries"
    },
    {
      "columns": [
        {
          "value": "task_id",
          "isExpression": false
        }
      ],
      "isUnique": false,
      "where": null,
      "origin": "manual",
      "name": "idx_pipeline_manifest_task_id",
      "entityType": "indexes",
      "table": "pipeline_manifest"
    },
    {
      "columns": [
        {
          "value": "session_id",
          "isExpression": false
        }
      ],
      "isUnique": false,
      "where": null,
      "origin": "manual",
      "name": "idx_pipeline_manifest_session_id",
      "entityType": "indexes",
      "table": "pipeline_manifest"
    },
    {
      "columns": [
        {
          "value": "distilled",
          "isExpression": false
        }
      ],
      "isUnique": false,
      "where": null,
      "origin": "manual",
      "name": "idx_pipeline_manifest_distilled",
      "entityType": "indexes",
      "table": "pipeline_manifest"
    },
    {
      "columns": [
        {
          "value": "status",
          "isExpression": false
        }
      ],
      "isUnique": false,
      "where": null,
      "origin": "manual",
      "name": "idx_pipeline_manifest_status",
      "entityType": "indexes",
      "table": "pipeline_manifest"
    },
    {
      "columns": [
        {
          "value": "content_hash",
          "isExpression": false
        }
      ],
      "isUnique": false,
      "where": null,
      "origin": "manual",
      "name": "idx_pipeline_manifest_content_hash",
      "entityType": "indexes",
      "table": "pipeline_manifest"
    },
    {
      "columns": [
        {
          "value": "status",
          "isExpression": false
        }
      ],
      "isUnique": false,
      "where": null,
      "origin": "manual",
      "name": "idx_release_manifests_status",
      "entityType": "indexes",
      "table": "release_manifests"
    },
    {
      "columns": [
        {
          "value": "version",
          "isExpression": false
        }
      ],
      "isUnique": false,
      "where": null,
      "origin": "manual",
      "name": "idx_release_manifests_version",
      "entityType": "indexes",
      "table": "release_manifests"
    },
    {
      "columns": [
        {
          "value": "status",
          "isExpression": false
        }
      ],
      "isUnique": false,
      "where": null,
      "origin": "manual",
      "name": "idx_sessions_status",
      "entityType": "indexes",
      "table": "sessions"
    },
    {
      "columns": [
        {
          "value": "previous_session_id",
          "isExpression": false
        }
      ],
      "isUnique": false,
      "where": null,
      "origin": "manual",
      "name": "idx_sessions_previous",
      "entityType": "indexes",
      "table": "sessions"
    },
    {
      "columns": [
        {
          "value": "agent_identifier",
          "isExpression": false
        }
      ],
      "isUnique": false,
      "where": null,
      "origin": "manual",
      "name": "idx_sessions_agent_identifier",
      "entityType": "indexes",
      "table": "sessions"
    },
    {
      "columns": [
        {
          "value": "started_at",
          "isExpression": false
        }
      ],
      "isUnique": false,
      "where": null,
      "origin": "manual",
      "name": "idx_sessions_started_at",
      "entityType": "indexes",
      "table": "sessions"
    },
    {
      "columns": [
        {
          "value": "status",
          "isExpression": false
        },
        {
          "value": "started_at",
          "isExpression": false
        }
      ],
      "isUnique": false,
      "where": null,
      "origin": "manual",
      "name": "idx_sessions_status_started_at",
      "entityType": "indexes",
      "table": "sessions"
    },
    {
      "columns": [
        {
          "value": "entity_type",
          "isExpression": false
        }
      ],
      "isUnique": false,
      "where": null,
      "origin": "manual",
      "name": "idx_status_registry_entity_type",
      "entityType": "indexes",
      "table": "status_registry"
    },
    {
      "columns": [
        {
          "value": "namespace",
          "isExpression": false
        }
      ],
      "isUnique": false,
      "where": null,
      "origin": "manual",
      "name": "idx_status_registry_namespace",
      "entityType": "indexes",
      "table": "status_registry"
    },
    {
      "columns": [
        {
          "value": "depends_on",
          "isExpression": false
        }
      ],
      "isUnique": false,
      "where": null,
      "origin": "manual",
      "name": "idx_deps_depends_on",
      "entityType": "indexes",
      "table": "task_dependencies"
    },
    {
      "columns": [
        {
          "value": "related_to",
          "isExpression": false
        }
      ],
      "isUnique": false,
      "where": null,
      "origin": "manual",
      "name": "idx_task_relations_related_to",
      "entityType": "indexes",
      "table": "task_relations"
    },
    {
      "columns": [
        {
          "value": "session_id",
          "isExpression": false
        }
      ],
      "isUnique": false,
      "where": null,
      "origin": "manual",
      "name": "idx_work_history_session",
      "entityType": "indexes",
      "table": "task_work_history"
    },
    {
      "columns": [
        {
          "value": "status",
          "isExpression": false
        }
      ],
      "isUnique": false,
      "where": null,
      "origin": "manual",
      "name": "idx_tasks_status",
      "entityType": "indexes",
      "table": "tasks"
    },
    {
      "columns": [
        {
          "value": "parent_id",
          "isExpression": false
        }
      ],
      "isUnique": false,
      "where": null,
      "origin": "manual",
      "name": "idx_tasks_parent_id",
      "entityType": "indexes",
      "table": "tasks"
    },
    {
      "columns": [
        {
          "value": "phase",
          "isExpression": false
        }
      ],
      "isUnique": false,
      "where": null,
      "origin": "manual",
      "name": "idx_tasks_phase",
      "entityType": "indexes",
      "table": "tasks"
    },
    {
      "columns": [
        {
          "value": "type",
          "isExpression": false
        }
      ],
      "isUnique": false,
      "where": null,
      "origin": "manual",
      "name": "idx_tasks_type",
      "entityType": "indexes",
      "table": "tasks"
    },
    {
      "columns": [
        {
          "value": "priority",
          "isExpression": false
        }
      ],
      "isUnique": false,
      "where": null,
      "origin": "manual",
      "name": "idx_tasks_priority",
      "entityType": "indexes",
      "table": "tasks"
    },
    {
      "columns": [
        {
          "value": "session_id",
          "isExpression": false
        }
      ],
      "isUnique": false,
      "where": null,
      "origin": "manual",
      "name": "idx_tasks_session_id",
      "entityType": "indexes",
      "table": "tasks"
    },
    {
      "columns": [
        {
          "value": "pipeline_stage",
          "isExpression": false
        }
      ],
      "isUnique": false,
      "where": null,
      "origin": "manual",
      "name": "idx_tasks_pipeline_stage",
      "entityType": "indexes",
      "table": "tasks"
    },
    {
      "columns": [
        {
          "value": "assignee",
          "isExpression": false
        }
      ],
      "isUnique": false,
      "where": null,
      "origin": "manual",
      "name": "idx_tasks_assignee",
      "entityType": "indexes",
      "table": "tasks"
    },
    {
      "columns": [
        {
          "value": "parent_id",
          "isExpression": false
        },
        {
          "value": "status",
          "isExpression": false
        }
      ],
      "isUnique": false,
      "where": null,
      "origin": "manual",
      "name": "idx_tasks_parent_status",
      "entityType": "indexes",
      "table": "tasks"
    },
    {
      "columns": [
        {
          "value": "status",
          "isExpression": false
        },
        {
          "value": "priority",
          "isExpression": false
        }
      ],
      "isUnique": false,
      "where": null,
      "origin": "manual",
      "name": "idx_tasks_status_priority",
      "entityType": "indexes",
      "table": "tasks"
    },
    {
      "columns": [
        {
          "value": "type",
          "isExpression": false
        },
        {
          "value": "phase",
          "isExpression": false
        }
      ],
      "isUnique": false,
      "where": null,
      "origin": "manual",
      "name": "idx_tasks_type_phase",
      "entityType": "indexes",
      "table": "tasks"
    },
    {
      "columns": [
        {
          "value": "status",
          "isExpression": false
        },
        {
          "value": "archive_reason",
          "isExpression": false
        }
      ],
      "isUnique": false,
      "where": null,
      "origin": "manual",
      "name": "idx_tasks_status_archive_reason",
      "entityType": "indexes",
      "table": "tasks"
    },
    {
      "columns": [
        {
          "value": "role",
          "isExpression": false
        }
      ],
      "isUnique": false,
      "where": null,
      "origin": "manual",
      "name": "idx_tasks_role",
      "entityType": "indexes",
      "table": "tasks"
    },
    {
      "columns": [
        {
          "value": "scope",
          "isExpression": false
        }
      ],
      "isUnique": false,
      "where": null,
      "origin": "manual",
      "name": "idx_tasks_scope",
      "entityType": "indexes",
      "table": "tasks"
    },
    {
      "columns": [
        {
          "value": "role",
          "isExpression": false
        },
        {
          "value": "status",
          "isExpression": false
        }
      ],
      "isUnique": false,
      "where": null,
      "origin": "manual",
      "name": "idx_tasks_role_status",
      "entityType": "indexes",
      "table": "tasks"
    },
    {
      "columns": [
        {
          "value": "created_at",
          "isExpression": false
        }
      ],
      "isUnique": false,
      "where": null,
      "origin": "manual",
      "name": "idx_token_usage_created_at",
      "entityType": "indexes",
      "table": "token_usage"
    },
    {
      "columns": [
        {
          "value": "request_id",
          "isExpression": false
        }
      ],
      "isUnique": false,
      "where": null,
      "origin": "manual",
      "name": "idx_token_usage_request_id",
      "entityType": "indexes",
      "table": "token_usage"
    },
    {
      "columns": [
        {
          "value": "session_id",
          "isExpression": false
        }
      ],
      "isUnique": false,
      "where": null,
      "origin": "manual",
      "name": "idx_token_usage_session_id",
      "entityType": "indexes",
      "table": "token_usage"
    },
    {
      "columns": [
        {
          "value": "task_id",
          "isExpression": false
        }
      ],
      "isUnique": false,
      "where": null,
      "origin": "manual",
      "name": "idx_token_usage_task_id",
      "entityType": "indexes",
      "table": "token_usage"
    },
    {
      "columns": [
        {
          "value": "provider",
          "isExpression": false
        }
      ],
      "isUnique": false,
      "where": null,
      "origin": "manual",
      "name": "idx_token_usage_provider",
      "entityType": "indexes",
      "table": "token_usage"
    },
    {
      "columns": [
        {
          "value": "transport",
          "isExpression": false
        }
      ],
      "isUnique": false,
      "where": null,
      "origin": "manual",
      "name": "idx_token_usage_transport",
      "entityType": "indexes",
      "table": "token_usage"
    },
    {
      "columns": [
        {
          "value": "domain",
          "isExpression": false
        },
        {
          "value": "operation",
          "isExpression": false
        }
      ],
      "isUnique": false,
      "where": null,
      "origin": "manual",
      "name": "idx_token_usage_domain_operation",
      "entityType": "indexes",
      "table": "token_usage"
    },
    {
      "columns": [
        {
          "value": "method",
          "isExpression": false
        }
      ],
      "isUnique": false,
      "where": null,
      "origin": "manual",
      "name": "idx_token_usage_method",
      "entityType": "indexes",
      "table": "token_usage"
    },
    {
      "columns": [
        {
          "value": "gateway",
          "isExpression": false
        }
      ],
      "isUnique": false,
      "where": null,
      "origin": "manual",
      "name": "idx_token_usage_gateway",
      "entityType": "indexes",
      "table": "token_usage"
    },
    {
      "columns": [
        {
          "value": "chain_id",
          "isExpression": false
        }
      ],
      "isUnique": false,
      "where": null,
      "origin": "manual",
      "name": "idx_warp_instances_chain",
      "entityType": "indexes",
      "table": "warp_chain_instances"
    },
    {
      "columns": [
        {
          "value": "epic_id",
          "isExpression": false
        }
      ],
      "isUnique": false,
      "where": null,
      "origin": "manual",
      "name": "idx_warp_instances_epic",
      "entityType": "indexes",
      "table": "warp_chain_instances"
    },
    {
      "columns": [
        {
          "value": "status",
          "isExpression": false
        }
      ],
      "isUnique": false,
      "where": null,
      "origin": "manual",
      "name": "idx_warp_instances_status",
      "entityType": "indexes",
      "table": "warp_chain_instances"
    },
    {
      "columns": [
        {
          "value": "name",
          "isExpression": false
        }
      ],
      "isUnique": false,
      "where": null,
      "origin": "manual",
      "name": "idx_warp_chains_name",
      "entityType": "indexes",
      "table": "warp_chains"
    },
    {
      "columns": [
        "task_id",
        "provider_id",
        "external_id"
      ],
      "nameExplicit": true,
      "name": "uq_ext_links_task_provider_external",
      "entityType": "uniques",
      "table": "external_task_links"
    }
  ],
  "renames": []
}