CREATE TABLE external_access_tokens_history (
    history_event_id BIGSERIAL PRIMARY KEY,
    history_user_id text NOT NULL,
    history_originator_id text,
    history_action text NOT NULL,
    history_timestamp integer NOT NULL,
    history_comment text,

    token TEXT,
    ip_whitelist JSON,
    user_id UUID,
    scope text
);
