CREATE TABLE IF NOT EXISTS agent_conversation (
    id UUID PRIMARY KEY DEFAULT gen_random_uuid(),
    session UUID NOT NULL,
    title TEXT NOT NULL DEFAULT '',
    created_by UUID NOT NULL,
    last_message_at TIMESTAMPTZ,
    archived_at TIMESTAMPTZ,
    created_at TIMESTAMPTZ NOT NULL DEFAULT now(),
    updated_at TIMESTAMPTZ NOT NULL DEFAULT now(),
    deleted_at TIMESTAMPTZ
);
