create table if not exists records ( id uuid primary key, title text not null, updated_at timestamptz not null ); insert into records (id, title, updated_at) select '00000000-0000-0000-0000-000000000001'::uuid, 'Erster Datensatz', now() where not exists (select 1 from records);