CREATE TABLE queries ( id uuid primary key DEFAULT gen_random_uuid(), latestVersion int not null default 1, activeVersion int not null default 1, type queryType not null );