import type { PikkuSchema } from './pikku-schema.types.js'; /** * Workflow runs, their steps, per-step history and the versioned graphs. * * Two things from the boot-time DDL are deliberately not carried over. The * primary keys had `defaultTo(sql.raw("'" + crypto.randomUUID() + "'"))`, which * evaluates once while the statement is built — every row would have taken the * same default, so it was never a generator; the services supply the id. And * `workflowStep.fromStepName`, `workflowStep.currentAttempt` and * `workflowStepHistory.attempt` were each backfilled by an * `alterTable(...).catch(() => {})` bolted on after the fact, which is the job a * migration does — they are declared here and nowhere else. * * `KyselyWorkflowMirror` created these same four tables separately. There is one * declaration now, and both services read it. */ export declare const workflowSchema: PikkuSchema;