fix: expose same-name FK candidates from the controlled DWH stub

This commit is contained in:
2026-08-11 19:42:17 +02:00
parent 82ba3c7db7
commit c44b70e77e
+3 -1
View File
@@ -566,7 +566,9 @@ async function startServers(ctx) {
column,
type: inferColumnType(first[column]),
nullable: false,
pk: column === "id",
// `patient_id` is marked as a primary key so the same-name FK heuristic can discover
// joins from every table that carries it, giving the full-run FK checkpoint candidates.
pk: column === "id" || column === "patient_id",
default: null,
})));
return;