CREATE TABLE chat_views_history (
    history_event_id SERIAL PRIMARY KEY,
    history_user_id character varying(36) NOT NULL,
    history_originator_id text,
    history_action text NOT NULL,
    history_timestamp integer NOT NULL,
    history_comment text,

    chat_id integer not null,
    user_id uuid not null,
    last_viewed_message_id integer
);
