···1+create table "public"."publication_domains" (
2+ "publication" text not null,
3+ "domain" text not null,
4+ "created_at" timestamp with time zone not null default now()
5+);
6+alter table "public"."publication_domains" enable row level security;
7+CREATE UNIQUE INDEX publication_domains_pkey ON public.publication_domains USING btree (publication, domain);
8+alter table "public"."publication_domains" add constraint "publication_domains_pkey" PRIMARY KEY using index "publication_domains_pkey";
9+alter table "public"."publication_domains" add constraint "publication_domains_domain_fkey" FOREIGN KEY (domain) REFERENCES custom_domains(domain) ON DELETE CASCADE not valid;
10+alter table "public"."publication_domains" validate constraint "publication_domains_domain_fkey";
11+alter table "public"."publication_domains" add constraint "publication_domains_publication_fkey" FOREIGN KEY (publication) REFERENCES publications(uri) ON DELETE CASCADE not valid;
12+alter table "public"."publication_domains" validate constraint "publication_domains_publication_fkey";
13+grant delete on table "public"."publication_domains" to "anon";
14+grant insert on table "public"."publication_domains" to "anon";
15+grant references on table "public"."publication_domains" to "anon";
16+grant select on table "public"."publication_domains" to "anon";
17+grant trigger on table "public"."publication_domains" to "anon";
18+grant truncate on table "public"."publication_domains" to "anon";
19+grant update on table "public"."publication_domains" to "anon";
20+grant delete on table "public"."publication_domains" to "authenticated";
21+grant insert on table "public"."publication_domains" to "authenticated";
22+grant references on table "public"."publication_domains" to "authenticated";
23+grant select on table "public"."publication_domains" to "authenticated";
24+grant trigger on table "public"."publication_domains" to "authenticated";
25+grant truncate on table "public"."publication_domains" to "authenticated";
26+grant update on table "public"."publication_domains" to "authenticated";
27+grant delete on table "public"."publication_domains" to "service_role";
28+grant insert on table "public"."publication_domains" to "service_role";
29+grant references on table "public"."publication_domains" to "service_role";
30+grant select on table "public"."publication_domains" to "service_role";
31+grant trigger on table "public"."publication_domains" to "service_role";
32+grant truncate on table "public"."publication_domains" to "service_role";
33+grant update on table "public"."publication_domains" to "service_role";