···11+create table "public"."leaflets_to_documents" (
22+ "leaflet" uuid not null,
33+ "document" text not null,
44+ "created_at" timestamp with time zone not null default now(),
55+ "title" text not null default ''::text,
66+ "description" text not null default ''::text
77+);
88+99+alter table "public"."leaflets_to_documents" enable row level security;
1010+1111+CREATE UNIQUE INDEX leaflets_to_documents_pkey ON public.leaflets_to_documents USING btree (leaflet, document);
1212+1313+alter table "public"."leaflets_to_documents" add constraint "leaflets_to_documents_pkey" PRIMARY KEY using index "leaflets_to_documents_pkey";
1414+1515+alter table "public"."leaflets_to_documents" add constraint "leaflets_to_documents_document_fkey" FOREIGN KEY (document) REFERENCES documents(uri) ON UPDATE CASCADE ON DELETE CASCADE not valid;
1616+1717+alter table "public"."leaflets_to_documents" validate constraint "leaflets_to_documents_document_fkey";
1818+1919+alter table "public"."leaflets_to_documents" add constraint "leaflets_to_documents_leaflet_fkey" FOREIGN KEY (leaflet) REFERENCES permission_tokens(id) ON UPDATE CASCADE ON DELETE CASCADE not valid;
2020+2121+alter table "public"."leaflets_to_documents" validate constraint "leaflets_to_documents_leaflet_fkey";
2222+2323+grant delete on table "public"."leaflets_to_documents" to "anon";
2424+2525+grant insert on table "public"."leaflets_to_documents" to "anon";
2626+2727+grant references on table "public"."leaflets_to_documents" to "anon";
2828+2929+grant select on table "public"."leaflets_to_documents" to "anon";
3030+3131+grant trigger on table "public"."leaflets_to_documents" to "anon";
3232+3333+grant truncate on table "public"."leaflets_to_documents" to "anon";
3434+3535+grant update on table "public"."leaflets_to_documents" to "anon";
3636+3737+grant delete on table "public"."leaflets_to_documents" to "authenticated";
3838+3939+grant insert on table "public"."leaflets_to_documents" to "authenticated";
4040+4141+grant references on table "public"."leaflets_to_documents" to "authenticated";
4242+4343+grant select on table "public"."leaflets_to_documents" to "authenticated";
4444+4545+grant trigger on table "public"."leaflets_to_documents" to "authenticated";
4646+4747+grant truncate on table "public"."leaflets_to_documents" to "authenticated";
4848+4949+grant update on table "public"."leaflets_to_documents" to "authenticated";
5050+5151+grant delete on table "public"."leaflets_to_documents" to "service_role";
5252+5353+grant insert on table "public"."leaflets_to_documents" to "service_role";
5454+5555+grant references on table "public"."leaflets_to_documents" to "service_role";
5656+5757+grant select on table "public"."leaflets_to_documents" to "service_role";
5858+5959+grant trigger on table "public"."leaflets_to_documents" to "service_role";
6060+6161+grant truncate on table "public"."leaflets_to_documents" to "service_role";
6262+6363+grant update on table "public"."leaflets_to_documents" to "service_role";