CREATE TABLE thing ( id serial primary key, modified timestamp with time zone not null default now(), type text, data jsonb );