CREATE TABLE messages_history (
    history_event_id SERIAL 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,

    text text,
    chat_id integer NOT NULL,
    icon text,
    link text,
    type integer,
    operated_id integer,
    traits integer,
    external_id text,
    meta text
);
