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