CREATE TABLE user_devices_history (
    history_event_id SERIAL PRIMARY KEY,
    history_user_id uuid NOT NULL,
    history_originator_id text,
    history_action text NOT NULL,
    history_timestamp integer NOT NULL,
    history_comment text,
    
    user_id uuid NOT NULL,
    device_id text NOT NULL,
    token text,
    verified boolean,
    enabled boolean,
    description jsonb,
    phone character varying(24),
    advertising_token text,
    advertising_token_type text,
    advertising_token_timestamp integer
);
