···11+create table "public"."poll_votes_on_entity" (
22+ "id" uuid not null default gen_random_uuid(),
33+ "created_at" timestamp with time zone not null default now(),
44+ "poll_entity" uuid not null,
55+ "option_entity" uuid not null,
66+ "voter_token" uuid not null
77+);
88+99+1010+alter table "public"."poll_votes_on_entity" enable row level security;
1111+1212+CREATE UNIQUE INDEX poll_votes_on_entity_pkey ON public.poll_votes_on_entity USING btree (id);
1313+1414+alter table "public"."poll_votes_on_entity" add constraint "poll_votes_on_entity_pkey" PRIMARY KEY using index "poll_votes_on_entity_pkey";
1515+1616+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;
1717+1818+alter table "public"."poll_votes_on_entity" validate constraint "poll_votes_on_entity_option_entity_fkey";
1919+2020+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;
2121+2222+alter table "public"."poll_votes_on_entity" validate constraint "poll_votes_on_entity_poll_entity_fkey";
2323+2424+grant delete on table "public"."poll_votes_on_entity" to "anon";
2525+2626+grant insert on table "public"."poll_votes_on_entity" to "anon";
2727+2828+grant references on table "public"."poll_votes_on_entity" to "anon";
2929+3030+grant select on table "public"."poll_votes_on_entity" to "anon";
3131+3232+grant trigger on table "public"."poll_votes_on_entity" to "anon";
3333+3434+grant truncate on table "public"."poll_votes_on_entity" to "anon";
3535+3636+grant update on table "public"."poll_votes_on_entity" to "anon";
3737+3838+grant delete on table "public"."poll_votes_on_entity" to "authenticated";
3939+4040+grant insert on table "public"."poll_votes_on_entity" to "authenticated";
4141+4242+grant references on table "public"."poll_votes_on_entity" to "authenticated";
4343+4444+grant select on table "public"."poll_votes_on_entity" to "authenticated";
4545+4646+grant trigger on table "public"."poll_votes_on_entity" to "authenticated";
4747+4848+grant truncate on table "public"."poll_votes_on_entity" to "authenticated";
4949+5050+grant update on table "public"."poll_votes_on_entity" to "authenticated";
5151+5252+grant delete on table "public"."poll_votes_on_entity" to "service_role";
5353+5454+grant insert on table "public"."poll_votes_on_entity" to "service_role";
5555+5656+grant references on table "public"."poll_votes_on_entity" to "service_role";
5757+5858+grant select on table "public"."poll_votes_on_entity" to "service_role";
5959+6060+grant trigger on table "public"."poll_votes_on_entity" to "service_role";
6161+6262+grant truncate on table "public"."poll_votes_on_entity" to "service_role";
6363+6464+grant update on table "public"."poll_votes_on_entity" to "service_role";