···1+create table "public"."notif_comments" (
2+ "comment" text not null,
3+ "created_at" timestamp with time zone not null default now(),
4+ "identity" uuid not null,
5+ "reason" text not null,
6+ "read" boolean not null default false
7+);
8+9+10+alter table "public"."notif_comments" enable row level security;
11+12+CREATE UNIQUE INDEX notif_comments_pkey ON public.notif_comments USING btree (comment, identity);
13+14+alter table "public"."notif_comments" add constraint "notif_comments_pkey" PRIMARY KEY using index "notif_comments_pkey";
15+16+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;
17+18+alter table "public"."notif_comments" validate constraint "notif_comments_comment_fkey";
19+20+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;
21+22+alter table "public"."notif_comments" validate constraint "notif_comments_identity_fkey";
23+24+grant delete on table "public"."notif_comments" to "anon";
25+26+grant insert on table "public"."notif_comments" to "anon";
27+28+grant references on table "public"."notif_comments" to "anon";
29+30+grant select on table "public"."notif_comments" to "anon";
31+32+grant trigger on table "public"."notif_comments" to "anon";
33+34+grant truncate on table "public"."notif_comments" to "anon";
35+36+grant update on table "public"."notif_comments" to "anon";
37+38+grant delete on table "public"."notif_comments" to "authenticated";
39+40+grant insert on table "public"."notif_comments" to "authenticated";
41+42+grant references on table "public"."notif_comments" to "authenticated";
43+44+grant select on table "public"."notif_comments" to "authenticated";
45+46+grant trigger on table "public"."notif_comments" to "authenticated";
47+48+grant truncate on table "public"."notif_comments" to "authenticated";
49+50+grant update on table "public"."notif_comments" to "authenticated";
51+52+grant delete on table "public"."notif_comments" to "service_role";
53+54+grant insert on table "public"."notif_comments" to "service_role";
55+56+grant references on table "public"."notif_comments" to "service_role";
57+58+grant select on table "public"."notif_comments" to "service_role";
59+60+grant trigger on table "public"."notif_comments" to "service_role";
61+62+grant truncate on table "public"."notif_comments" to "service_role";
63+64+grant update on table "public"."notif_comments" to "service_role";
65+66+drop table "notifications"."comment_notifications";
67+drop schema if exists "notifications";