CREATE TABLE IF NOT EXISTS agent_subagent_session (
    id UUID PRIMARY KEY DEFAULT gen_random_uuid(),
    parent_session UUID NOT NULL,
    child_session UUID NOT NULL,
    name TEXT NOT NULL,
    purpose TEXT,
    created_at TIMESTAMPTZ NOT NULL DEFAULT now(),
    ended_at TIMESTAMPTZ
);
