···11+create table "public"."notif_comments" (
22+ "comment" text not null,
33+ "created_at" timestamp with time zone not null default now(),
44+ "identity" uuid not null,
55+ "reason" text not null,
66+ "read" boolean not null default false
77+);
88+99+1010+alter table "public"."notif_comments" enable row level security;
1111+1212+CREATE UNIQUE INDEX notif_comments_pkey ON public.notif_comments USING btree (comment, identity);
1313+1414+alter table "public"."notif_comments" add constraint "notif_comments_pkey" PRIMARY KEY using index "notif_comments_pkey";
1515+1616+alter table "public"."notif_comments" add constraint "notif_comments_comment_fkey" FOREIGN KEY (comment) REFERENCES comments_on_documents(uri) ON UPDATE CASCADE ON DELETE CASCADE not valid;
1717+1818+alter table "public"."notif_comments" validate constraint "notif_comments_comment_fkey";
1919+2020+alter table "public"."notif_comments" add constraint "notif_comments_identity_fkey" FOREIGN KEY (identity) REFERENCES identities(id) ON UPDATE CASCADE ON DELETE CASCADE not valid;
2121+2222+alter table "public"."notif_comments" validate constraint "notif_comments_identity_fkey";
2323+2424+grant delete on table "public"."notif_comments" to "anon";
2525+2626+grant insert on table "public"."notif_comments" to "anon";
2727+2828+grant references on table "public"."notif_comments" to "anon";
2929+3030+grant select on table "public"."notif_comments" to "anon";
3131+3232+grant trigger on table "public"."notif_comments" to "anon";
3333+3434+grant truncate on table "public"."notif_comments" to "anon";
3535+3636+grant update on table "public"."notif_comments" to "anon";
3737+3838+grant delete on table "public"."notif_comments" to "authenticated";
3939+4040+grant insert on table "public"."notif_comments" to "authenticated";
4141+4242+grant references on table "public"."notif_comments" to "authenticated";
4343+4444+grant select on table "public"."notif_comments" to "authenticated";
4545+4646+grant trigger on table "public"."notif_comments" to "authenticated";
4747+4848+grant truncate on table "public"."notif_comments" to "authenticated";
4949+5050+grant update on table "public"."notif_comments" to "authenticated";
5151+5252+grant delete on table "public"."notif_comments" to "service_role";
5353+5454+grant insert on table "public"."notif_comments" to "service_role";
5555+5656+grant references on table "public"."notif_comments" to "service_role";
5757+5858+grant select on table "public"."notif_comments" to "service_role";
5959+6060+grant trigger on table "public"."notif_comments" to "service_role";
6161+6262+grant truncate on table "public"."notif_comments" to "service_role";
6363+6464+grant update on table "public"."notif_comments" to "service_role";
6565+6666+drop table "notifications"."comment_notifications";
6767+drop schema if exists "notifications";