-- Your SQL goes here
create table versioned_data
(
    id         varchar   not null primary key unique,
    ref_id     varchar   not null,
    ref_type   varchar   not null,
    created_at timestamp not null,
    create_by  varchar   not null,
    data_type  varchar   not null,
    from_data  jsonb,
    to_data    jsonb
);

