···11+create table "public"."custom_domain_routes" (
22+ "id" uuid not null default gen_random_uuid(),
33+ "domain" text not null,
44+ "route" text not null
55+);
66+77+88+create table "public"."custom_domains" (
99+ "domain" text not null,
1010+ "identity" text not null default ''::text,
1111+ "confirmed" boolean not null
1212+);
1313+1414+1515+alter table "public"."custom_domains" enable row level security;
1616+1717+alter table "public"."phone_rsvps_to_entity" add column "plus_ones" smallint not null default '0'::smallint;
1818+1919+CREATE UNIQUE INDEX custom_domain_routes_domain_route_key ON public.custom_domain_routes USING btree (domain, route);
2020+2121+CREATE UNIQUE INDEX custom_domain_routes_pkey ON public.custom_domain_routes USING btree (id);
2222+2323+CREATE UNIQUE INDEX custom_domains_pkey ON public.custom_domains USING btree (domain);
2424+2525+CREATE UNIQUE INDEX identities_email_key ON public.identities USING btree (email);
2626+2727+alter table "public"."custom_domain_routes" add constraint "custom_domain_routes_pkey" PRIMARY KEY using index "custom_domain_routes_pkey";
2828+2929+alter table "public"."custom_domains" add constraint "custom_domains_pkey" PRIMARY KEY using index "custom_domains_pkey";
3030+3131+alter table "public"."custom_domain_routes" add constraint "custom_domain_routes_domain_fkey" FOREIGN KEY (domain) REFERENCES custom_domains(domain) not valid;
3232+3333+alter table "public"."custom_domain_routes" validate constraint "custom_domain_routes_domain_fkey";
3434+3535+alter table "public"."custom_domain_routes" add constraint "custom_domain_routes_domain_route_key" UNIQUE using index "custom_domain_routes_domain_route_key";
3636+3737+alter table "public"."custom_domains" add constraint "custom_domains_identity_fkey" FOREIGN KEY (identity) REFERENCES identities(email) ON UPDATE CASCADE ON DELETE CASCADE not valid;
3838+3939+alter table "public"."custom_domains" validate constraint "custom_domains_identity_fkey";
4040+4141+alter table "public"."identities" add constraint "identities_email_key" UNIQUE using index "identities_email_key";
4242+4343+grant delete on table "public"."custom_domain_routes" to "anon";
4444+4545+grant insert on table "public"."custom_domain_routes" to "anon";
4646+4747+grant references on table "public"."custom_domain_routes" to "anon";
4848+4949+grant select on table "public"."custom_domain_routes" to "anon";
5050+5151+grant trigger on table "public"."custom_domain_routes" to "anon";
5252+5353+grant truncate on table "public"."custom_domain_routes" to "anon";
5454+5555+grant update on table "public"."custom_domain_routes" to "anon";
5656+5757+grant delete on table "public"."custom_domain_routes" to "authenticated";
5858+5959+grant insert on table "public"."custom_domain_routes" to "authenticated";
6060+6161+grant references on table "public"."custom_domain_routes" to "authenticated";
6262+6363+grant select on table "public"."custom_domain_routes" to "authenticated";
6464+6565+grant trigger on table "public"."custom_domain_routes" to "authenticated";
6666+6767+grant truncate on table "public"."custom_domain_routes" to "authenticated";
6868+6969+grant update on table "public"."custom_domain_routes" to "authenticated";
7070+7171+grant delete on table "public"."custom_domain_routes" to "service_role";
7272+7373+grant insert on table "public"."custom_domain_routes" to "service_role";
7474+7575+grant references on table "public"."custom_domain_routes" to "service_role";
7676+7777+grant select on table "public"."custom_domain_routes" to "service_role";
7878+7979+grant trigger on table "public"."custom_domain_routes" to "service_role";
8080+8181+grant truncate on table "public"."custom_domain_routes" to "service_role";
8282+8383+grant update on table "public"."custom_domain_routes" to "service_role";
8484+8585+grant delete on table "public"."custom_domains" to "anon";
8686+8787+grant insert on table "public"."custom_domains" to "anon";
8888+8989+grant references on table "public"."custom_domains" to "anon";
9090+9191+grant select on table "public"."custom_domains" to "anon";
9292+9393+grant trigger on table "public"."custom_domains" to "anon";
9494+9595+grant truncate on table "public"."custom_domains" to "anon";
9696+9797+grant update on table "public"."custom_domains" to "anon";
9898+9999+grant delete on table "public"."custom_domains" to "authenticated";
100100+101101+grant insert on table "public"."custom_domains" to "authenticated";
102102+103103+grant references on table "public"."custom_domains" to "authenticated";
104104+105105+grant select on table "public"."custom_domains" to "authenticated";
106106+107107+grant trigger on table "public"."custom_domains" to "authenticated";
108108+109109+grant truncate on table "public"."custom_domains" to "authenticated";
110110+111111+grant update on table "public"."custom_domains" to "authenticated";
112112+113113+grant delete on table "public"."custom_domains" to "service_role";
114114+115115+grant insert on table "public"."custom_domains" to "service_role";
116116+117117+grant references on table "public"."custom_domains" to "service_role";
118118+119119+grant select on table "public"."custom_domains" to "service_role";
120120+121121+grant trigger on table "public"."custom_domains" to "service_role";
122122+123123+grant truncate on table "public"."custom_domains" to "service_role";
124124+125125+grant update on table "public"."custom_domains" to "service_role";