 ('{"id": "B4444444-4444-4444-4444-444444444444", "prefix": "x0'')));(((''DROP tableb","otherindex": "y4", "tableaId": "A3333333-3333-3333-3333-333333333333"}'),
 ('{"id": "B5555555-5555-4000-8000-000000000000", "prefix": "x5", "tableaId": "A3333333-3333-3333-3333-333333333333"}'),
 ('{"id": "B6666666-6666-4000-8000-000000000000", "prefix": "x6", "tableaId": "A4444444-4444-4444-4444-444444444444", "tablefId": "F1111111-1111-4000-8000-000000000000"}'),
-('{"id": "B7777777-7777-4000-8000-000000000000", "prefix": "x7", "tablejId": "J1111111-1111-1111-1111-111111111111"}');
+('{"id": "B7777777-7777-4000-8000-000000000000", "prefix": "x7", "tablejId": "A1111111-1111-1111-1111-111111111111"}');
 INSERT INTO tableb (jsonb) VALUES (jsonb_build_object('id', md5('b' || generate_series(1, 2000)::text)));
 
 INSERT INTO tablec (jsonb) VALUES

DROP TABLE IF EXISTS tablea, tableb, tablec, tablef;
CREATE EXTENSION IF NOT EXISTS unaccent WITH SCHEMA public;
CREATE OR REPLACE FUNCTION f_unaccent(text) RETURNS text AS $$
  SELECT public.unaccent('public.unaccent', $1);
$$ LANGUAGE sql IMMUTABLE;
CREATE TABLE tablef (id UUID PRIMARY KEY, jsonb JSONB NOT NULL);
CREATE TABLE tablea (id UUID PRIMARY KEY, jsonb JSONB NOT NULL);
CREATE TABLE tableb (id UUID PRIMARY KEY, jsonb JSONB NOT NULL, tableaId UUID references tablea, tablefId UUID references tablef, tablejId UUID references tablej);
CREATE TABLE tablec (id UUID PRIMARY KEY, jsonb JSONB NOT NULL, tablebId UUID references tableb);
CREATE TABLE tablej (id UUID PRIMARY KEY, jsonb JSONB NOT NULL);

CREATE OR REPLACE FUNCTION update_id() RETURNS TRIGGER AS $$
BEGIN

('{"id": "C3333333-3333-3333-3333-333333333333", "cprefix": "x2", "cindex": "z3", "tablebId": "B2222222-2222-2222-2222-222222222222"}'),
('{"id": "C4444444-4444-4444-4444-444444444444", "cprefix": "x4", "cindex": "z4", "tablebId": "B3333333-3333-3333-3333-333333333333"}');
INSERT INTO tablec (jsonb) VALUES (jsonb_build_object('id', md5('c' || generate_series(1, 2000)::text)));
