CREATE OR REPLACE FUNCTION
    workspaces_message_update(
        workspace_id bigint,
        workspace_message text
,
        message_type text,
        message_id bigint,
        message_text text,
        message_type_id bigint,
        message_text_id bigint,
        message_type_text text,
        message_type_id_text bigint,