CREATE TABLE if not exists log
(
    id SERIAL PRIMARY KEY,
    relation_name character varying(255),
    record_id integer,
    created_at timestamp without time zone,
    changes jsonb,
    user_info jsonb
);