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