···1+create table "public"."bsky_profiles" (
2+ "did" text not null,
3+ "record" jsonb not null,
4+ "indexed_at" timestamp with time zone not null default now()
5+);
6+7+alter table "public"."bsky_profiles" enable row level security;
8+9+CREATE UNIQUE INDEX bsky_profiles_pkey ON public.bsky_profiles USING btree (did);
10+11+alter table "public"."bsky_profiles" add constraint "bsky_profiles_pkey" PRIMARY KEY using index "bsky_profiles_pkey";
12+13+alter table "public"."bsky_profiles" add constraint "bsky_profiles_did_fkey" FOREIGN KEY (did) REFERENCES identities(atp_did) ON DELETE CASCADE not valid;
14+15+alter table "public"."bsky_profiles" validate constraint "bsky_profiles_did_fkey";
16+17+alter table "public"."publication_subscriptions" add constraint "publication_subscriptions_identity_fkey" FOREIGN KEY (identity) REFERENCES identities(atp_did) ON DELETE CASCADE not valid;
18+19+alter table "public"."publication_subscriptions" validate constraint "publication_subscriptions_identity_fkey";
20+21+grant delete on table "public"."bsky_profiles" to "anon";
22+23+grant insert on table "public"."bsky_profiles" to "anon";
24+25+grant references on table "public"."bsky_profiles" to "anon";
26+27+grant select on table "public"."bsky_profiles" to "anon";
28+29+grant trigger on table "public"."bsky_profiles" to "anon";
30+31+grant truncate on table "public"."bsky_profiles" to "anon";
32+33+grant update on table "public"."bsky_profiles" to "anon";
34+35+grant delete on table "public"."bsky_profiles" to "authenticated";
36+37+grant insert on table "public"."bsky_profiles" to "authenticated";
38+39+grant references on table "public"."bsky_profiles" to "authenticated";
40+41+grant select on table "public"."bsky_profiles" to "authenticated";
42+43+grant trigger on table "public"."bsky_profiles" to "authenticated";
44+45+grant truncate on table "public"."bsky_profiles" to "authenticated";
46+47+grant update on table "public"."bsky_profiles" to "authenticated";
48+49+grant delete on table "public"."bsky_profiles" to "service_role";
50+51+grant insert on table "public"."bsky_profiles" to "service_role";
52+53+grant references on table "public"."bsky_profiles" to "service_role";
54+55+grant select on table "public"."bsky_profiles" to "service_role";
56+57+grant trigger on table "public"."bsky_profiles" to "service_role";
58+59+grant truncate on table "public"."bsky_profiles" to "service_role";
60+61+grant update on table "public"."bsky_profiles" to "service_role";