Files
2026-11-16 17:26:44 -08:00

2155 lines
53 KiB
JSON

{
"id": "da389024-9040-4892-b6de-e80cfb1a9edf",
"prevId": "07b096a4-2cf8-498e-90d7-9dd3b045669c",
"version": "7",
"dialect": "postgresql",
"tables": {
"public.evidence_capture_events": {
"name": "evidence_capture_events",
"schema": "",
"columns": {
"id": {
"name": "id",
"type": "text",
"primaryKey": true,
"notNull": true
},
"target_type": {
"name": "target_type",
"type": "text",
"primaryKey": false,
"notNull": true
},
"target_id": {
"name": "target_id",
"type": "text",
"primaryKey": false,
"notNull": true
},
"node_id": {
"name": "node_id",
"type": "text",
"primaryKey": false,
"notNull": false
},
"capture_id": {
"name": "capture_id",
"type": "text",
"primaryKey": false,
"notNull": true
},
"event": {
"name": "event",
"type": "text",
"primaryKey": false,
"notNull": true
},
"out": {
"name": "out",
"type": "text",
"primaryKey": false,
"notNull": false
},
"phase": {
"name": "phase",
"type": "text",
"primaryKey": false,
"notNull": false
},
"round": {
"name": "round",
"type": "text",
"primaryKey": false,
"notNull": false
},
"kind": {
"name": "kind",
"type": "text",
"primaryKey": false,
"notNull": false
},
"device": {
"name": "device",
"type": "text",
"primaryKey": false,
"notNull": false
},
"intent": {
"name": "intent",
"type": "text",
"primaryKey": false,
"notNull": false
},
"expect_moment": {
"name": "expect_moment",
"type": "text",
"primaryKey": false,
"notNull": false
},
"verdict": {
"name": "verdict",
"type": "text",
"primaryKey": false,
"notNull": false
},
"issues": {
"name": "issues",
"type": "text",
"primaryKey": false,
"notNull": false
},
"criteria_version": {
"name": "criteria_version",
"type": "bigint",
"primaryKey": false,
"notNull": false
},
"duration_s": {
"name": "duration_s",
"type": "double precision",
"primaryKey": false,
"notNull": false
},
"file_bytes": {
"name": "file_bytes",
"type": "bigint",
"primaryKey": false,
"notNull": false
},
"probe": {
"name": "probe",
"type": "text",
"primaryKey": false,
"notNull": false
},
"attempt": {
"name": "attempt",
"type": "bigint",
"primaryKey": false,
"notNull": false
},
"retry_allowed": {
"name": "retry_allowed",
"type": "bigint",
"primaryKey": false,
"notNull": false
},
"reason": {
"name": "reason",
"type": "text",
"primaryKey": false,
"notNull": false
},
"stderr_tail": {
"name": "stderr_tail",
"type": "text",
"primaryKey": false,
"notNull": false
},
"ts": {
"name": "ts",
"type": "bigint",
"primaryKey": false,
"notNull": true
},
"ingested_at": {
"name": "ingested_at",
"type": "bigint",
"primaryKey": false,
"notNull": true
}
},
"indexes": {},
"foreignKeys": {},
"compositePrimaryKeys": {},
"uniqueConstraints": {},
"policies": {},
"checkConstraints": {},
"isRLSEnabled": false
},
"public.evidence_media": {
"name": "evidence_media",
"schema": "",
"columns": {
"owner_kind": {
"name": "owner_kind",
"type": "text",
"primaryKey": false,
"notNull": true
},
"owner_id": {
"name": "owner_id",
"type": "text",
"primaryKey": false,
"notNull": true
},
"name": {
"name": "name",
"type": "text",
"primaryKey": false,
"notNull": true
},
"url": {
"name": "url",
"type": "text",
"primaryKey": false,
"notNull": true
},
"content_type": {
"name": "content_type",
"type": "text",
"primaryKey": false,
"notNull": false
},
"size": {
"name": "size",
"type": "bigint",
"primaryKey": false,
"notNull": false
},
"uploaded_at": {
"name": "uploaded_at",
"type": "bigint",
"primaryKey": false,
"notNull": true
}
},
"indexes": {},
"foreignKeys": {},
"compositePrimaryKeys": {
"evidence_media_owner_kind_owner_id_name_pk": {
"name": "evidence_media_owner_kind_owner_id_name_pk",
"columns": [
"owner_kind",
"owner_id",
"name"
]
}
},
"uniqueConstraints": {},
"policies": {},
"checkConstraints": {},
"isRLSEnabled": false
},
"public.evidmon_criteria": {
"name": "evidmon_criteria",
"schema": "",
"columns": {
"version": {
"name": "version",
"type": "bigint",
"primaryKey": true,
"notNull": true
},
"label": {
"name": "label",
"type": "text",
"primaryKey": false,
"notNull": true
},
"config": {
"name": "config",
"type": "text",
"primaryKey": false,
"notNull": true
},
"note": {
"name": "note",
"type": "text",
"primaryKey": false,
"notNull": false
},
"strategy_id": {
"name": "strategy_id",
"type": "text",
"primaryKey": false,
"notNull": false
},
"active": {
"name": "active",
"type": "bigint",
"primaryKey": false,
"notNull": true
},
"created_at": {
"name": "created_at",
"type": "bigint",
"primaryKey": false,
"notNull": true
},
"activated_at": {
"name": "activated_at",
"type": "bigint",
"primaryKey": false,
"notNull": false
}
},
"indexes": {},
"foreignKeys": {},
"compositePrimaryKeys": {},
"uniqueConstraints": {},
"policies": {},
"checkConstraints": {},
"isRLSEnabled": false
},
"public.evidmon_findings": {
"name": "evidmon_findings",
"schema": "",
"columns": {
"id": {
"name": "id",
"type": "text",
"primaryKey": true,
"notNull": true
},
"day": {
"name": "day",
"type": "text",
"primaryKey": false,
"notNull": true
},
"title": {
"name": "title",
"type": "text",
"primaryKey": false,
"notNull": true
},
"summary": {
"name": "summary",
"type": "text",
"primaryKey": false,
"notNull": true
},
"highlights": {
"name": "highlights",
"type": "text",
"primaryKey": false,
"notNull": false
},
"findings": {
"name": "findings",
"type": "text",
"primaryKey": false,
"notNull": false
},
"metrics_snapshot": {
"name": "metrics_snapshot",
"type": "text",
"primaryKey": false,
"notNull": false
},
"deltas": {
"name": "deltas",
"type": "text",
"primaryKey": false,
"notNull": false
},
"author": {
"name": "author",
"type": "text",
"primaryKey": false,
"notNull": true
},
"created_at": {
"name": "created_at",
"type": "bigint",
"primaryKey": false,
"notNull": true
}
},
"indexes": {},
"foreignKeys": {},
"compositePrimaryKeys": {},
"uniqueConstraints": {},
"policies": {},
"checkConstraints": {},
"isRLSEnabled": false
},
"public.evidmon_metrics_daily": {
"name": "evidmon_metrics_daily",
"schema": "",
"columns": {
"day": {
"name": "day",
"type": "text",
"primaryKey": true,
"notNull": true
},
"generated_at": {
"name": "generated_at",
"type": "bigint",
"primaryKey": false,
"notNull": true
},
"metrics": {
"name": "metrics",
"type": "text",
"primaryKey": false,
"notNull": true
}
},
"indexes": {},
"foreignKeys": {},
"compositePrimaryKeys": {},
"uniqueConstraints": {},
"policies": {},
"checkConstraints": {},
"isRLSEnabled": false
},
"public.evidmon_strategies": {
"name": "evidmon_strategies",
"schema": "",
"columns": {
"id": {
"name": "id",
"type": "text",
"primaryKey": true,
"notNull": true
},
"finding_id": {
"name": "finding_id",
"type": "text",
"primaryKey": false,
"notNull": false
},
"day": {
"name": "day",
"type": "text",
"primaryKey": false,
"notNull": true
},
"code": {
"name": "code",
"type": "text",
"primaryKey": false,
"notNull": true
},
"title": {
"name": "title",
"type": "text",
"primaryKey": false,
"notNull": true
},
"rationale": {
"name": "rationale",
"type": "text",
"primaryKey": false,
"notNull": true
},
"knob": {
"name": "knob",
"type": "text",
"primaryKey": false,
"notNull": true
},
"metric_key": {
"name": "metric_key",
"type": "text",
"primaryKey": false,
"notNull": true
},
"baseline_value": {
"name": "baseline_value",
"type": "double precision",
"primaryKey": false,
"notNull": false
},
"target_value": {
"name": "target_value",
"type": "double precision",
"primaryKey": false,
"notNull": false
},
"payload": {
"name": "payload",
"type": "text",
"primaryKey": false,
"notNull": false
},
"replay": {
"name": "replay",
"type": "text",
"primaryKey": false,
"notNull": false
},
"status": {
"name": "status",
"type": "text",
"primaryKey": false,
"notNull": true
},
"decided_by": {
"name": "decided_by",
"type": "text",
"primaryKey": false,
"notNull": false
},
"decided_at": {
"name": "decided_at",
"type": "bigint",
"primaryKey": false,
"notNull": false
},
"decision_note": {
"name": "decision_note",
"type": "text",
"primaryKey": false,
"notNull": false
},
"effective_at": {
"name": "effective_at",
"type": "bigint",
"primaryKey": false,
"notNull": false
},
"before_value": {
"name": "before_value",
"type": "double precision",
"primaryKey": false,
"notNull": false
},
"after_value": {
"name": "after_value",
"type": "double precision",
"primaryKey": false,
"notNull": false
},
"created_at": {
"name": "created_at",
"type": "bigint",
"primaryKey": false,
"notNull": true
}
},
"indexes": {},
"foreignKeys": {},
"compositePrimaryKeys": {},
"uniqueConstraints": {},
"policies": {},
"checkConstraints": {},
"isRLSEnabled": false
},
"public.features": {
"name": "features",
"schema": "",
"columns": {
"id": {
"name": "id",
"type": "text",
"primaryKey": true,
"notNull": true
},
"title": {
"name": "title",
"type": "text",
"primaryKey": false,
"notNull": true
},
"description": {
"name": "description",
"type": "text",
"primaryKey": false,
"notNull": true,
"default": "''"
},
"platform": {
"name": "platform",
"type": "text",
"primaryKey": false,
"notNull": true
},
"remark": {
"name": "remark",
"type": "text",
"primaryKey": false,
"notNull": false
},
"review_feedback": {
"name": "review_feedback",
"type": "text",
"primaryKey": false,
"notNull": false
},
"execution_plan": {
"name": "execution_plan",
"type": "text",
"primaryKey": false,
"notNull": false
},
"regen_context": {
"name": "regen_context",
"type": "text",
"primaryKey": false,
"notNull": false
},
"workspace_path": {
"name": "workspace_path",
"type": "text",
"primaryKey": false,
"notNull": false
},
"pinned": {
"name": "pinned",
"type": "bigint",
"primaryKey": false,
"notNull": true,
"default": 0
},
"status": {
"name": "status",
"type": "text",
"primaryKey": false,
"notNull": true,
"default": "'initializing'"
},
"priority_key": {
"name": "priority_key",
"type": "double precision",
"primaryKey": false,
"notNull": true
},
"watchers": {
"name": "watchers",
"type": "text",
"primaryKey": false,
"notNull": false
},
"created_at": {
"name": "created_at",
"type": "bigint",
"primaryKey": false,
"notNull": true
},
"started_at": {
"name": "started_at",
"type": "bigint",
"primaryKey": false,
"notNull": false
},
"finished_at": {
"name": "finished_at",
"type": "bigint",
"primaryKey": false,
"notNull": false
},
"duration_ms": {
"name": "duration_ms",
"type": "bigint",
"primaryKey": false,
"notNull": false
},
"total_duration_ms": {
"name": "total_duration_ms",
"type": "bigint",
"primaryKey": false,
"notNull": false
},
"branch_name": {
"name": "branch_name",
"type": "text",
"primaryKey": false,
"notNull": false
},
"mr_url": {
"name": "mr_url",
"type": "text",
"primaryKey": false,
"notNull": false
},
"log_path": {
"name": "log_path",
"type": "text",
"primaryKey": false,
"notNull": false
},
"eval_log_path": {
"name": "eval_log_path",
"type": "text",
"primaryKey": false,
"notNull": false
},
"before_evidence_path": {
"name": "before_evidence_path",
"type": "text",
"primaryKey": false,
"notNull": false
},
"after_evidence_path": {
"name": "after_evidence_path",
"type": "text",
"primaryKey": false,
"notNull": false
},
"failure_reason": {
"name": "failure_reason",
"type": "text",
"primaryKey": false,
"notNull": false
},
"attempts": {
"name": "attempts",
"type": "bigint",
"primaryKey": false,
"notNull": true,
"default": 0
},
"executor_node_id": {
"name": "executor_node_id",
"type": "text",
"primaryKey": false,
"notNull": false
},
"status_changed_at": {
"name": "status_changed_at",
"type": "bigint",
"primaryKey": false,
"notNull": false
},
"review_history": {
"name": "review_history",
"type": "text",
"primaryKey": false,
"notNull": false
},
"creator_email": {
"name": "creator_email",
"type": "text",
"primaryKey": false,
"notNull": false
},
"readable_report_html": {
"name": "readable_report_html",
"type": "text",
"primaryKey": false,
"notNull": false
},
"readable_report_generated_at": {
"name": "readable_report_generated_at",
"type": "bigint",
"primaryKey": false,
"notNull": false
},
"readable_report_error": {
"name": "readable_report_error",
"type": "text",
"primaryKey": false,
"notNull": false
},
"readable_report_prompt_id": {
"name": "readable_report_prompt_id",
"type": "text",
"primaryKey": false,
"notNull": false
},
"readable_report_prompt_name": {
"name": "readable_report_prompt_name",
"type": "text",
"primaryKey": false,
"notNull": false
},
"clusters": {
"name": "clusters",
"type": "text",
"primaryKey": false,
"notNull": false
},
"lang": {
"name": "lang",
"type": "text",
"primaryKey": false,
"notNull": false
},
"linked_feature_id": {
"name": "linked_feature_id",
"type": "text",
"primaryKey": false,
"notNull": false
},
"port_source_id": {
"name": "port_source_id",
"type": "text",
"primaryKey": false,
"notNull": false
},
"attachments": {
"name": "attachments",
"type": "text",
"primaryKey": false,
"notNull": false
}
},
"indexes": {},
"foreignKeys": {},
"compositePrimaryKeys": {},
"uniqueConstraints": {},
"policies": {},
"checkConstraints": {},
"isRLSEnabled": false
},
"public.fix_report_versions": {
"name": "fix_report_versions",
"schema": "",
"columns": {
"task_id": {
"name": "task_id",
"type": "text",
"primaryKey": false,
"notNull": true
},
"round": {
"name": "round",
"type": "bigint",
"primaryKey": false,
"notNull": true
},
"markdown": {
"name": "markdown",
"type": "text",
"primaryKey": false,
"notNull": true
},
"created_at": {
"name": "created_at",
"type": "bigint",
"primaryKey": false,
"notNull": true
}
},
"indexes": {},
"foreignKeys": {
"fix_report_versions_task_id_tasks_id_fk": {
"name": "fix_report_versions_task_id_tasks_id_fk",
"tableFrom": "fix_report_versions",
"tableTo": "tasks",
"columnsFrom": [
"task_id"
],
"columnsTo": [
"id"
],
"onDelete": "cascade",
"onUpdate": "no action"
}
},
"compositePrimaryKeys": {
"fix_report_versions_task_id_round_pk": {
"name": "fix_report_versions_task_id_round_pk",
"columns": [
"task_id",
"round"
]
}
},
"uniqueConstraints": {},
"policies": {},
"checkConstraints": {},
"isRLSEnabled": false
},
"public.lark_users": {
"name": "lark_users",
"schema": "",
"columns": {
"lark_user_id": {
"name": "lark_user_id",
"type": "text",
"primaryKey": true,
"notNull": true
},
"email": {
"name": "email",
"type": "text",
"primaryKey": false,
"notNull": false
},
"name": {
"name": "name",
"type": "text",
"primaryKey": false,
"notNull": false
},
"created_at": {
"name": "created_at",
"type": "bigint",
"primaryKey": false,
"notNull": true
},
"updated_at": {
"name": "updated_at",
"type": "bigint",
"primaryKey": false,
"notNull": true
}
},
"indexes": {},
"foreignKeys": {},
"compositePrimaryKeys": {},
"uniqueConstraints": {},
"policies": {},
"checkConstraints": {},
"isRLSEnabled": false
},
"public.logs": {
"name": "logs",
"schema": "",
"columns": {
"id": {
"name": "id",
"type": "bigint",
"primaryKey": true,
"notNull": true,
"identity": {
"type": "byDefault",
"name": "logs_id_seq",
"schema": "public",
"increment": "1",
"startWith": "1",
"minValue": "1",
"maxValue": "9223372036854775807",
"cache": "1",
"cycle": false
}
},
"task_id": {
"name": "task_id",
"type": "text",
"primaryKey": false,
"notNull": true
},
"ts": {
"name": "ts",
"type": "bigint",
"primaryKey": false,
"notNull": true
},
"level": {
"name": "level",
"type": "text",
"primaryKey": false,
"notNull": true
},
"stage": {
"name": "stage",
"type": "text",
"primaryKey": false,
"notNull": true,
"default": "''"
},
"message": {
"name": "message",
"type": "text",
"primaryKey": false,
"notNull": true
}
},
"indexes": {},
"foreignKeys": {
"logs_task_id_tasks_id_fk": {
"name": "logs_task_id_tasks_id_fk",
"tableFrom": "logs",
"tableTo": "tasks",
"columnsFrom": [
"task_id"
],
"columnsTo": [
"id"
],
"onDelete": "cascade",
"onUpdate": "no action"
}
},
"compositePrimaryKeys": {},
"uniqueConstraints": {},
"policies": {},
"checkConstraints": {},
"isRLSEnabled": false
},
"public.node_clusters": {
"name": "node_clusters",
"schema": "",
"columns": {
"node_id": {
"name": "node_id",
"type": "text",
"primaryKey": false,
"notNull": true
},
"cluster": {
"name": "cluster",
"type": "text",
"primaryKey": false,
"notNull": true
}
},
"indexes": {},
"foreignKeys": {},
"compositePrimaryKeys": {
"node_clusters_node_id_cluster_pk": {
"name": "node_clusters_node_id_cluster_pk",
"columns": [
"node_id",
"cluster"
]
}
},
"uniqueConstraints": {},
"policies": {},
"checkConstraints": {},
"isRLSEnabled": false
},
"public.nodes": {
"name": "nodes",
"schema": "",
"columns": {
"id": {
"name": "id",
"type": "text",
"primaryKey": true,
"notNull": true
},
"base_url": {
"name": "base_url",
"type": "text",
"primaryKey": false,
"notNull": true
},
"platform": {
"name": "platform",
"type": "text",
"primaryKey": false,
"notNull": true
},
"status": {
"name": "status",
"type": "text",
"primaryKey": false,
"notNull": true,
"default": "'online'"
},
"last_seen_at": {
"name": "last_seen_at",
"type": "bigint",
"primaryKey": false,
"notNull": true
},
"eval_in_flight": {
"name": "eval_in_flight",
"type": "bigint",
"primaryKey": false,
"notNull": true,
"default": 0
},
"eval_capacity": {
"name": "eval_capacity",
"type": "bigint",
"primaryKey": false,
"notNull": true,
"default": 0
},
"fix_in_flight": {
"name": "fix_in_flight",
"type": "bigint",
"primaryKey": false,
"notNull": true,
"default": 0
},
"fix_capacity": {
"name": "fix_capacity",
"type": "bigint",
"primaryKey": false,
"notNull": true,
"default": 0
},
"version": {
"name": "version",
"type": "text",
"primaryKey": false,
"notNull": false
},
"created_at": {
"name": "created_at",
"type": "bigint",
"primaryKey": false,
"notNull": true
},
"boot_id": {
"name": "boot_id",
"type": "text",
"primaryKey": false,
"notNull": false
}
},
"indexes": {},
"foreignKeys": {},
"compositePrimaryKeys": {},
"uniqueConstraints": {},
"policies": {},
"checkConstraints": {},
"isRLSEnabled": false
},
"public.readable_batch_jobs": {
"name": "readable_batch_jobs",
"schema": "",
"columns": {
"id": {
"name": "id",
"type": "text",
"primaryKey": true,
"notNull": true
},
"status": {
"name": "status",
"type": "text",
"primaryKey": false,
"notNull": true,
"default": "'running'"
},
"prompt_id": {
"name": "prompt_id",
"type": "text",
"primaryKey": false,
"notNull": false
},
"prompt_name": {
"name": "prompt_name",
"type": "text",
"primaryKey": false,
"notNull": false
},
"prompt_template": {
"name": "prompt_template",
"type": "text",
"primaryKey": false,
"notNull": true
},
"items": {
"name": "items",
"type": "text",
"primaryKey": false,
"notNull": true
},
"total": {
"name": "total",
"type": "bigint",
"primaryKey": false,
"notNull": true,
"default": 0
},
"processed": {
"name": "processed",
"type": "bigint",
"primaryKey": false,
"notNull": true,
"default": 0
},
"succeeded": {
"name": "succeeded",
"type": "bigint",
"primaryKey": false,
"notNull": true,
"default": 0
},
"failed": {
"name": "failed",
"type": "bigint",
"primaryKey": false,
"notNull": true,
"default": 0
},
"error": {
"name": "error",
"type": "text",
"primaryKey": false,
"notNull": false
},
"created_by": {
"name": "created_by",
"type": "text",
"primaryKey": false,
"notNull": false
},
"started_at": {
"name": "started_at",
"type": "bigint",
"primaryKey": false,
"notNull": true
},
"finished_at": {
"name": "finished_at",
"type": "bigint",
"primaryKey": false,
"notNull": false
}
},
"indexes": {},
"foreignKeys": {},
"compositePrimaryKeys": {},
"uniqueConstraints": {},
"policies": {},
"checkConstraints": {},
"isRLSEnabled": false
},
"public.readable_prompts": {
"name": "readable_prompts",
"schema": "",
"columns": {
"id": {
"name": "id",
"type": "text",
"primaryKey": true,
"notNull": true
},
"name": {
"name": "name",
"type": "text",
"primaryKey": false,
"notNull": true
},
"template": {
"name": "template",
"type": "text",
"primaryKey": false,
"notNull": true
},
"notes": {
"name": "notes",
"type": "text",
"primaryKey": false,
"notNull": false
},
"kind": {
"name": "kind",
"type": "text",
"primaryKey": false,
"notNull": true,
"default": "'both'"
},
"created_at": {
"name": "created_at",
"type": "bigint",
"primaryKey": false,
"notNull": true
},
"created_by": {
"name": "created_by",
"type": "text",
"primaryKey": false,
"notNull": false
},
"archived": {
"name": "archived",
"type": "bigint",
"primaryKey": false,
"notNull": true,
"default": 0
}
},
"indexes": {},
"foreignKeys": {},
"compositePrimaryKeys": {},
"uniqueConstraints": {},
"policies": {},
"checkConstraints": {},
"isRLSEnabled": false
},
"public.readable_report_runs": {
"name": "readable_report_runs",
"schema": "",
"columns": {
"id": {
"name": "id",
"type": "text",
"primaryKey": true,
"notNull": true
},
"target_type": {
"name": "target_type",
"type": "text",
"primaryKey": false,
"notNull": true
},
"target_id": {
"name": "target_id",
"type": "text",
"primaryKey": false,
"notNull": true
},
"prompt_id": {
"name": "prompt_id",
"type": "text",
"primaryKey": false,
"notNull": false
},
"prompt_name": {
"name": "prompt_name",
"type": "text",
"primaryKey": false,
"notNull": false
},
"prompt_template": {
"name": "prompt_template",
"type": "text",
"primaryKey": false,
"notNull": true
},
"status": {
"name": "status",
"type": "text",
"primaryKey": false,
"notNull": true,
"default": "'running'"
},
"html": {
"name": "html",
"type": "text",
"primaryKey": false,
"notNull": false
},
"error": {
"name": "error",
"type": "text",
"primaryKey": false,
"notNull": false
},
"model": {
"name": "model",
"type": "text",
"primaryKey": false,
"notNull": false
},
"node_id": {
"name": "node_id",
"type": "text",
"primaryKey": false,
"notNull": false
},
"duration_ms": {
"name": "duration_ms",
"type": "bigint",
"primaryKey": false,
"notNull": false
},
"created_by": {
"name": "created_by",
"type": "text",
"primaryKey": false,
"notNull": false
},
"created_at": {
"name": "created_at",
"type": "bigint",
"primaryKey": false,
"notNull": true
},
"finished_at": {
"name": "finished_at",
"type": "bigint",
"primaryKey": false,
"notNull": false
},
"is_current": {
"name": "is_current",
"type": "bigint",
"primaryKey": false,
"notNull": true,
"default": 0
},
"batch_id": {
"name": "batch_id",
"type": "text",
"primaryKey": false,
"notNull": false
}
},
"indexes": {},
"foreignKeys": {},
"compositePrimaryKeys": {},
"uniqueConstraints": {},
"policies": {},
"checkConstraints": {},
"isRLSEnabled": false
},
"public.readable_sources": {
"name": "readable_sources",
"schema": "",
"columns": {
"target_type": {
"name": "target_type",
"type": "text",
"primaryKey": false,
"notNull": true
},
"target_id": {
"name": "target_id",
"type": "text",
"primaryKey": false,
"notNull": true
},
"markdown": {
"name": "markdown",
"type": "text",
"primaryKey": false,
"notNull": true
},
"fetched_at": {
"name": "fetched_at",
"type": "bigint",
"primaryKey": false,
"notNull": true
}
},
"indexes": {},
"foreignKeys": {},
"compositePrimaryKeys": {
"readable_sources_target_type_target_id_pk": {
"name": "readable_sources_target_type_target_id_pk",
"columns": [
"target_type",
"target_id"
]
}
},
"uniqueConstraints": {},
"policies": {},
"checkConstraints": {},
"isRLSEnabled": false
},
"public.security": {
"name": "security",
"schema": "",
"columns": {
"id": {
"name": "id",
"type": "text",
"primaryKey": true,
"notNull": true
},
"title": {
"name": "title",
"type": "text",
"primaryKey": false,
"notNull": true
},
"description": {
"name": "description",
"type": "text",
"primaryKey": false,
"notNull": true,
"default": "''"
},
"review_spec": {
"name": "review_spec",
"type": "text",
"primaryKey": false,
"notNull": true,
"default": "''"
},
"repro_spec": {
"name": "repro_spec",
"type": "text",
"primaryKey": false,
"notNull": true,
"default": "''"
},
"target_ref": {
"name": "target_ref",
"type": "text",
"primaryKey": false,
"notNull": false
},
"platform": {
"name": "platform",
"type": "text",
"primaryKey": false,
"notNull": true
},
"remark": {
"name": "remark",
"type": "text",
"primaryKey": false,
"notNull": false
},
"review_feedback": {
"name": "review_feedback",
"type": "text",
"primaryKey": false,
"notNull": false
},
"review_history": {
"name": "review_history",
"type": "text",
"primaryKey": false,
"notNull": false
},
"execution_plan": {
"name": "execution_plan",
"type": "text",
"primaryKey": false,
"notNull": false
},
"regen_context": {
"name": "regen_context",
"type": "text",
"primaryKey": false,
"notNull": false
},
"workspace_path": {
"name": "workspace_path",
"type": "text",
"primaryKey": false,
"notNull": false
},
"pinned": {
"name": "pinned",
"type": "bigint",
"primaryKey": false,
"notNull": true,
"default": 0
},
"status": {
"name": "status",
"type": "text",
"primaryKey": false,
"notNull": true,
"default": "'initializing'"
},
"priority_key": {
"name": "priority_key",
"type": "double precision",
"primaryKey": false,
"notNull": true
},
"watchers": {
"name": "watchers",
"type": "text",
"primaryKey": false,
"notNull": false
},
"creator_email": {
"name": "creator_email",
"type": "text",
"primaryKey": false,
"notNull": false
},
"created_at": {
"name": "created_at",
"type": "bigint",
"primaryKey": false,
"notNull": true
},
"started_at": {
"name": "started_at",
"type": "bigint",
"primaryKey": false,
"notNull": false
},
"finished_at": {
"name": "finished_at",
"type": "bigint",
"primaryKey": false,
"notNull": false
},
"duration_ms": {
"name": "duration_ms",
"type": "bigint",
"primaryKey": false,
"notNull": false
},
"total_duration_ms": {
"name": "total_duration_ms",
"type": "bigint",
"primaryKey": false,
"notNull": false
},
"branch_name": {
"name": "branch_name",
"type": "text",
"primaryKey": false,
"notNull": false
},
"mr_url": {
"name": "mr_url",
"type": "text",
"primaryKey": false,
"notNull": false
},
"log_path": {
"name": "log_path",
"type": "text",
"primaryKey": false,
"notNull": false
},
"eval_log_path": {
"name": "eval_log_path",
"type": "text",
"primaryKey": false,
"notNull": false
},
"before_evidence_path": {
"name": "before_evidence_path",
"type": "text",
"primaryKey": false,
"notNull": false
},
"after_evidence_path": {
"name": "after_evidence_path",
"type": "text",
"primaryKey": false,
"notNull": false
},
"failure_reason": {
"name": "failure_reason",
"type": "text",
"primaryKey": false,
"notNull": false
},
"attempts": {
"name": "attempts",
"type": "bigint",
"primaryKey": false,
"notNull": true,
"default": 0
},
"executor_node_id": {
"name": "executor_node_id",
"type": "text",
"primaryKey": false,
"notNull": false
},
"readable_report_html": {
"name": "readable_report_html",
"type": "text",
"primaryKey": false,
"notNull": false
},
"readable_report_generated_at": {
"name": "readable_report_generated_at",
"type": "bigint",
"primaryKey": false,
"notNull": false
},
"readable_report_error": {
"name": "readable_report_error",
"type": "text",
"primaryKey": false,
"notNull": false
},
"clusters": {
"name": "clusters",
"type": "text",
"primaryKey": false,
"notNull": false
},
"status_changed_at": {
"name": "status_changed_at",
"type": "bigint",
"primaryKey": false,
"notNull": false
},
"readable_report_prompt_id": {
"name": "readable_report_prompt_id",
"type": "text",
"primaryKey": false,
"notNull": false
},
"readable_report_prompt_name": {
"name": "readable_report_prompt_name",
"type": "text",
"primaryKey": false,
"notNull": false
},
"lang": {
"name": "lang",
"type": "text",
"primaryKey": false,
"notNull": false
}
},
"indexes": {},
"foreignKeys": {},
"compositePrimaryKeys": {},
"uniqueConstraints": {},
"policies": {},
"checkConstraints": {},
"isRLSEnabled": false
},
"public.settings": {
"name": "settings",
"schema": "",
"columns": {
"key": {
"name": "key",
"type": "text",
"primaryKey": true,
"notNull": true
},
"value": {
"name": "value",
"type": "text",
"primaryKey": false,
"notNull": true
},
"updated_at": {
"name": "updated_at",
"type": "bigint",
"primaryKey": false,
"notNull": true
}
},
"indexes": {},
"foreignKeys": {},
"compositePrimaryKeys": {},
"uniqueConstraints": {},
"policies": {},
"checkConstraints": {},
"isRLSEnabled": false
},
"public.task_transitions": {
"name": "task_transitions",
"schema": "",
"columns": {
"id": {
"name": "id",
"type": "text",
"primaryKey": true,
"notNull": true
},
"kind": {
"name": "kind",
"type": "text",
"primaryKey": false,
"notNull": true
},
"target_id": {
"name": "target_id",
"type": "text",
"primaryKey": false,
"notNull": true
},
"from_status": {
"name": "from_status",
"type": "text",
"primaryKey": false,
"notNull": false
},
"to_status": {
"name": "to_status",
"type": "text",
"primaryKey": false,
"notNull": true
},
"round": {
"name": "round",
"type": "bigint",
"primaryKey": false,
"notNull": false
},
"node_id": {
"name": "node_id",
"type": "text",
"primaryKey": false,
"notNull": false
},
"source": {
"name": "source",
"type": "text",
"primaryKey": false,
"notNull": true
},
"ts": {
"name": "ts",
"type": "bigint",
"primaryKey": false,
"notNull": true
}
},
"indexes": {},
"foreignKeys": {},
"compositePrimaryKeys": {},
"uniqueConstraints": {},
"policies": {},
"checkConstraints": {},
"isRLSEnabled": false
},
"public.tasks": {
"name": "tasks",
"schema": "",
"columns": {
"id": {
"name": "id",
"type": "text",
"primaryKey": true,
"notNull": true
},
"meego_id": {
"name": "meego_id",
"type": "text",
"primaryKey": false,
"notNull": true
},
"meego_url": {
"name": "meego_url",
"type": "text",
"primaryKey": false,
"notNull": true
},
"title": {
"name": "title",
"type": "text",
"primaryKey": false,
"notNull": true
},
"description": {
"name": "description",
"type": "text",
"primaryKey": false,
"notNull": true,
"default": "''"
},
"repro_steps": {
"name": "repro_steps",
"type": "text",
"primaryKey": false,
"notNull": true,
"default": "''"
},
"bug_type": {
"name": "bug_type",
"type": "text",
"primaryKey": false,
"notNull": true
},
"platform": {
"name": "platform",
"type": "text",
"primaryKey": false,
"notNull": true
},
"difficulty": {
"name": "difficulty",
"type": "text",
"primaryKey": false,
"notNull": true
},
"steps_clarity": {
"name": "steps_clarity",
"type": "text",
"primaryKey": false,
"notNull": true
},
"remark": {
"name": "remark",
"type": "text",
"primaryKey": false,
"notNull": false
},
"review_feedback": {
"name": "review_feedback",
"type": "text",
"primaryKey": false,
"notNull": false
},
"execution_plan": {
"name": "execution_plan",
"type": "text",
"primaryKey": false,
"notNull": false
},
"regen_context": {
"name": "regen_context",
"type": "text",
"primaryKey": false,
"notNull": false
},
"workspace_path": {
"name": "workspace_path",
"type": "text",
"primaryKey": false,
"notNull": false
},
"pinned": {
"name": "pinned",
"type": "bigint",
"primaryKey": false,
"notNull": true,
"default": 0
},
"status": {
"name": "status",
"type": "text",
"primaryKey": false,
"notNull": true,
"default": "'initializing'"
},
"priority_key": {
"name": "priority_key",
"type": "double precision",
"primaryKey": false,
"notNull": true
},
"created_at": {
"name": "created_at",
"type": "bigint",
"primaryKey": false,
"notNull": true
},
"started_at": {
"name": "started_at",
"type": "bigint",
"primaryKey": false,
"notNull": false
},
"finished_at": {
"name": "finished_at",
"type": "bigint",
"primaryKey": false,
"notNull": false
},
"duration_ms": {
"name": "duration_ms",
"type": "bigint",
"primaryKey": false,
"notNull": false
},
"branch_name": {
"name": "branch_name",
"type": "text",
"primaryKey": false,
"notNull": false
},
"mr_url": {
"name": "mr_url",
"type": "text",
"primaryKey": false,
"notNull": false
},
"log_path": {
"name": "log_path",
"type": "text",
"primaryKey": false,
"notNull": false
},
"before_evidence_path": {
"name": "before_evidence_path",
"type": "text",
"primaryKey": false,
"notNull": false
},
"after_evidence_path": {
"name": "after_evidence_path",
"type": "text",
"primaryKey": false,
"notNull": false
},
"failure_reason": {
"name": "failure_reason",
"type": "text",
"primaryKey": false,
"notNull": false
},
"attempts": {
"name": "attempts",
"type": "bigint",
"primaryKey": false,
"notNull": true,
"default": 0
},
"total_duration_ms": {
"name": "total_duration_ms",
"type": "bigint",
"primaryKey": false,
"notNull": false
},
"creator_email": {
"name": "creator_email",
"type": "text",
"primaryKey": false,
"notNull": false
},
"creator_lark_id": {
"name": "creator_lark_id",
"type": "text",
"primaryKey": false,
"notNull": false
},
"creator_name": {
"name": "creator_name",
"type": "text",
"primaryKey": false,
"notNull": false
},
"creator_avatar": {
"name": "creator_avatar",
"type": "text",
"primaryKey": false,
"notNull": false
},
"eval_log_path": {
"name": "eval_log_path",
"type": "text",
"primaryKey": false,
"notNull": false
},
"watchers": {
"name": "watchers",
"type": "text",
"primaryKey": false,
"notNull": false
},
"executor_node_id": {
"name": "executor_node_id",
"type": "text",
"primaryKey": false,
"notNull": false
},
"mr_state": {
"name": "mr_state",
"type": "text",
"primaryKey": false,
"notNull": false
},
"mr_merged_at": {
"name": "mr_merged_at",
"type": "bigint",
"primaryKey": false,
"notNull": false
},
"meego_state": {
"name": "meego_state",
"type": "text",
"primaryKey": false,
"notNull": false
},
"mr_synced_at": {
"name": "mr_synced_at",
"type": "bigint",
"primaryKey": false,
"notNull": false
},
"status_changed_at": {
"name": "status_changed_at",
"type": "bigint",
"primaryKey": false,
"notNull": false
},
"lang": {
"name": "lang",
"type": "text",
"primaryKey": false,
"notNull": true,
"default": "'zh'"
},
"attachments": {
"name": "attachments",
"type": "text",
"primaryKey": false,
"notNull": false
},
"review_history": {
"name": "review_history",
"type": "text",
"primaryKey": false,
"notNull": false
},
"fixed_risk": {
"name": "fixed_risk",
"type": "bigint",
"primaryKey": false,
"notNull": false
},
"readable_report_html": {
"name": "readable_report_html",
"type": "text",
"primaryKey": false,
"notNull": false
},
"readable_report_generated_at": {
"name": "readable_report_generated_at",
"type": "bigint",
"primaryKey": false,
"notNull": false
},
"readable_report_error": {
"name": "readable_report_error",
"type": "text",
"primaryKey": false,
"notNull": false
},
"readable_report_prompt_id": {
"name": "readable_report_prompt_id",
"type": "text",
"primaryKey": false,
"notNull": false
},
"readable_report_prompt_name": {
"name": "readable_report_prompt_name",
"type": "text",
"primaryKey": false,
"notNull": false
},
"clusters": {
"name": "clusters",
"type": "text",
"primaryKey": false,
"notNull": false
}
},
"indexes": {},
"foreignKeys": {},
"compositePrimaryKeys": {},
"uniqueConstraints": {
"tasks_meego_id_unique": {
"name": "tasks_meego_id_unique",
"nullsNotDistinct": false,
"columns": [
"meego_id"
]
}
},
"policies": {},
"checkConstraints": {},
"isRLSEnabled": false
},
"public.watcher_names": {
"name": "watcher_names",
"schema": "",
"columns": {
"wkey": {
"name": "wkey",
"type": "text",
"primaryKey": true,
"notNull": true
},
"name": {
"name": "name",
"type": "text",
"primaryKey": false,
"notNull": true
},
"updated_at": {
"name": "updated_at",
"type": "bigint",
"primaryKey": false,
"notNull": true
}
},
"indexes": {},
"foreignKeys": {},
"compositePrimaryKeys": {},
"uniqueConstraints": {},
"policies": {},
"checkConstraints": {},
"isRLSEnabled": false
}
},
"enums": {},
"schemas": {},
"sequences": {},
"roles": {},
"policies": {},
"views": {},
"_meta": {
"columns": {},
"schemas": {},
"tables": {}
}
}