···11+create table "public"."publication_subscriptions" (
22+ "publication" text not null,
33+ "identity" text not null,
44+ "created_at" timestamp with time zone not null default now(),
55+ "record" jsonb not null,
66+ "uri" text
77+);
88+99+1010+alter table "public"."publication_subscriptions" enable row level security;
1111+1212+CREATE UNIQUE INDEX publication_subscriptions_pkey ON public.publication_subscriptions USING btree (publication, identity);
1313+1414+CREATE UNIQUE INDEX publication_subscriptions_uri_key ON public.publication_subscriptions USING btree (uri);
1515+1616+alter table "public"."publication_subscriptions" add constraint "publication_subscriptions_pkey" PRIMARY KEY using index "publication_subscriptions_pkey";
1717+1818+alter table "public"."publication_subscriptions" add constraint "publication_subscriptions_publication_fkey" FOREIGN KEY (publication) REFERENCES publications(uri) ON DELETE CASCADE not valid;
1919+2020+alter table "public"."publication_subscriptions" validate constraint "publication_subscriptions_publication_fkey";
2121+2222+alter table "public"."publication_subscriptions" add constraint "publication_subscriptions_uri_key" UNIQUE using index "publication_subscriptions_uri_key";
2323+2424+grant delete on table "public"."publication_subscriptions" to "anon";
2525+2626+grant insert on table "public"."publication_subscriptions" to "anon";
2727+2828+grant references on table "public"."publication_subscriptions" to "anon";
2929+3030+grant select on table "public"."publication_subscriptions" to "anon";
3131+3232+grant trigger on table "public"."publication_subscriptions" to "anon";
3333+3434+grant truncate on table "public"."publication_subscriptions" to "anon";
3535+3636+grant update on table "public"."publication_subscriptions" to "anon";
3737+3838+grant delete on table "public"."publication_subscriptions" to "authenticated";
3939+4040+grant insert on table "public"."publication_subscriptions" to "authenticated";
4141+4242+grant references on table "public"."publication_subscriptions" to "authenticated";
4343+4444+grant select on table "public"."publication_subscriptions" to "authenticated";
4545+4646+grant trigger on table "public"."publication_subscriptions" to "authenticated";
4747+4848+grant truncate on table "public"."publication_subscriptions" to "authenticated";
4949+5050+grant update on table "public"."publication_subscriptions" to "authenticated";
5151+5252+grant delete on table "public"."publication_subscriptions" to "service_role";
5353+5454+grant insert on table "public"."publication_subscriptions" to "service_role";
5555+5656+grant references on table "public"."publication_subscriptions" to "service_role";
5757+5858+grant select on table "public"."publication_subscriptions" to "service_role";
5959+6060+grant trigger on table "public"."publication_subscriptions" to "service_role";
6161+6262+grant truncate on table "public"."publication_subscriptions" to "service_role";
6363+6464+grant update on table "public"."publication_subscriptions" to "service_role";