/**
 * DDL for Ouroboros append-only event log (GitHub #142).
 */
export async function runOuroborosPostgresMigrations(client) {
    await client.query(`
    CREATE TABLE IF NOT EXISTS clawql_ouroboros_events (
      id bigserial PRIMARY KEY,
      root_seed_id text NOT NULL,
      event_type text NOT NULL,
      payload jsonb NOT NULL,
      created_at timestamptz NOT NULL DEFAULT now()
    )
  `);
    await client.query(`
    CREATE INDEX IF NOT EXISTS clawql_ouroboros_events_root_id_idx
    ON clawql_ouroboros_events (root_seed_id, id)
  `);
}
