Service sessions (new slot semantics): - Sidecar maps isServiceSession OR isPlenumSession -> service_session (Excel path also matches 'plenum' in Session Format). - checkin_attendee rejects service sessions; Scan check-in dropdown excludes them. - New _assign_service_session_speakers helper links every registered staff member as a speaker of a service session; both sync RPCs call it (and the API sync now actually types slots from is_service_session). - No material requirement + no mic emoji for service sessions. Home redesign: - Now/Next cards show all concurrent sessions as sub-sections when there's no pick (1/2/3 sessions -> 1/2/3 sub-sections), with a "Nothing scheduled" fallback for empty slots. - My picks today lists every pick (slot order) + empty state. - Demo clock EVENT_DATE fixed to 2026-02-20 (matches seed) so a slot is live at 10:20. Feedback loop: - Attendee pending-feedback pill on Home (checked into an over session, not its speaker, no feedback yet); clears on submit. - Speaker sees rating + AI summary for their own session in the Agenda sheet only after it's over. Migration 20260833000000_service_sessions_feedback.sql. Docs updated.
512 lines
22 KiB
PL/PgSQL
512 lines
22 KiB
PL/PgSQL
-- =============================================================================
|
||
-- Convivo — Service sessions + feedback semantics
|
||
--
|
||
-- A "service session" (slot_type = 'service_session') is a full-hall agenda
|
||
-- item: a break, lunch, closing, or a plenum (Sessionize's isPlenumSession).
|
||
-- The sidecar now maps isServiceSession OR isPlenumSession to it. This
|
||
-- migration gives service sessions their distinct semantics:
|
||
--
|
||
-- 1. No check-in. `checkin_attendee` rejects a service session outright
|
||
-- (there is nothing to check into — everyone is in the room).
|
||
-- 2. All registered staff are automatically the speakers. A helper
|
||
-- `_assign_service_session_speakers` links every 'staff' registration to
|
||
-- the session; both sync RPCs call it for service sessions.
|
||
-- 3. No material requirement. (Handled in the UI: service sessions are
|
||
-- excluded from the pending-material list and the mic/material affordances.)
|
||
--
|
||
-- The two Sessionize sync RPCs are re-created (append-only migrations can't
|
||
-- edit the originals):
|
||
-- * sync_sessionize_event — now reads is_service_session so API-synced slots
|
||
-- get the correct type/name (previously always 'session'), and assigns
|
||
-- staff speakers to service sessions.
|
||
-- * sync_sessionize_excel — already typed slots from is_service_session; now
|
||
-- also assigns staff speakers to service sessions.
|
||
-- =============================================================================
|
||
|
||
-- -----------------------------------------------------------------------------
|
||
-- 1. HELPER: link every registered staff member to a service session.
|
||
-- Idempotent (on conflict do nothing). Returns the number of rows affected.
|
||
-- -----------------------------------------------------------------------------
|
||
create or replace function public._assign_service_session_speakers(p_session_id uuid, p_event_id uuid)
|
||
returns integer
|
||
language plpgsql security definer set search_path = public as $$
|
||
declare
|
||
v_count integer := 0;
|
||
begin
|
||
insert into public.session_speakers (session_id, contact_email)
|
||
select p_session_id, r.contact_email
|
||
from public.registrations r
|
||
where r.event_id = p_event_id and r.type = 'staff'
|
||
on conflict (session_id, contact_email) do nothing;
|
||
get diagnostics v_count = row_count;
|
||
return v_count;
|
||
end;
|
||
$$;
|
||
|
||
-- -----------------------------------------------------------------------------
|
||
-- 2. CHECK-IN: block service sessions.
|
||
-- Re-creates checkin_attendee (the 20260826 version) with a guard: a
|
||
-- service session cannot be checked into.
|
||
-- -----------------------------------------------------------------------------
|
||
create or replace function public.checkin_attendee(p_session_id uuid, p_attendee_qr text)
|
||
returns table (checkin_id uuid, attendee_email text, attendee_name text,
|
||
points integer, already boolean)
|
||
language plpgsql security definer set search_path = public as $$
|
||
declare
|
||
v_staff text := public.current_email();
|
||
v_attendee text;
|
||
v_name text;
|
||
v_event_id uuid;
|
||
v_slot_type public.slot_type;
|
||
v_new_id uuid;
|
||
v_points integer;
|
||
v_already boolean := false;
|
||
begin
|
||
if v_staff is null then raise exception 'not authenticated'; end if;
|
||
if not public.is_staff_or_admin() then raise exception 'staff or admin only'; end if;
|
||
select r.contact_email, c.full_name into v_attendee, v_name
|
||
from public.registrations r
|
||
join public.contacts c on c.email = r.contact_email
|
||
where r.qr_token = p_attendee_qr
|
||
and r.event_id = (select id from public.events where is_active limit 1);
|
||
if v_attendee is null then raise exception 'no attendee found for that QR code'; end if;
|
||
select se.event_id, s.type into v_event_id, v_slot_type
|
||
from public.sessions se
|
||
join public.slots s on s.id = se.slot_id
|
||
where se.id = p_session_id;
|
||
if v_event_id is null then raise exception 'session not found'; end if;
|
||
if v_slot_type = 'service_session' then
|
||
raise exception 'service sessions cannot be checked in';
|
||
end if;
|
||
insert into public.checkins (event_id, contact_email, session_id, staff_email)
|
||
values (v_event_id, v_attendee, p_session_id, v_staff)
|
||
on conflict (event_id, contact_email, session_id) do nothing
|
||
returning id into v_new_id;
|
||
if v_new_id is null then
|
||
v_already := true;
|
||
select id into v_new_id from public.checkins
|
||
where event_id = v_event_id and contact_email = v_attendee and session_id = p_session_id;
|
||
else
|
||
perform public._award_points(v_event_id, v_attendee, 10, 'checkin');
|
||
update public.registrations set checked_in = true
|
||
where event_id = v_event_id and contact_email = v_attendee;
|
||
end if;
|
||
select r.points into v_points from public.registrations r
|
||
where r.event_id = v_event_id and r.contact_email = v_attendee;
|
||
return query select v_new_id, v_attendee, v_name, coalesce(v_points, 0), v_already;
|
||
end;
|
||
$$;
|
||
|
||
-- -----------------------------------------------------------------------------
|
||
-- 3. API SYNC: type slots from is_service_session + assign staff speakers.
|
||
-- Re-creates sync_sessionize_event (the 20260831 version). The only changes:
|
||
-- * reads is_service_session from the payload,
|
||
-- * creates the slot with the correct type + name,
|
||
-- * calls _assign_service_session_speakers for service sessions.
|
||
-- -----------------------------------------------------------------------------
|
||
create or replace function public.sync_sessionize_event(p_event_id uuid, p_payload jsonb)
|
||
returns jsonb
|
||
language plpgsql security definer set search_path = public as $$
|
||
declare
|
||
v_run_id uuid;
|
||
v_started timestamptz := now();
|
||
v_item jsonb;
|
||
v_email text;
|
||
v_name text;
|
||
v_ext text;
|
||
v_title text;
|
||
v_desc text;
|
||
v_room text;
|
||
v_date date;
|
||
v_start time;
|
||
v_end time;
|
||
v_service boolean;
|
||
v_slot public.slots;
|
||
v_slot_id integer;
|
||
v_session public.sessions;
|
||
v_existing boolean;
|
||
v_spk text;
|
||
v_speakers_created integer := 0;
|
||
v_speakers_updated integer := 0;
|
||
v_sessions_created integer := 0;
|
||
v_sessions_updated integer := 0;
|
||
v_slots_created integer := 0;
|
||
v_speakers_linked integer := 0;
|
||
v_errors jsonb := '[]'::jsonb;
|
||
v_err text;
|
||
begin
|
||
if coalesce(auth.jwt() ->> 'role', '') <> 'service_role' then
|
||
raise exception 'service_role only';
|
||
end if;
|
||
if not exists (select 1 from public.events where id = p_event_id) then
|
||
raise exception 'event not found';
|
||
end if;
|
||
insert into public.sync_runs (event_id, source, started_at, triggered_by)
|
||
values (p_event_id, 'sessionize', v_started, 'service_role')
|
||
returning id into v_run_id;
|
||
|
||
-- (1) Speakers -> contacts (matched by email).
|
||
for v_item in select * from jsonb_array_elements(coalesce(p_payload -> 'speakers', '[]'::jsonb))
|
||
loop
|
||
begin
|
||
v_email := v_item ->> 'email';
|
||
v_name := v_item ->> 'full_name';
|
||
v_ext := v_item ->> 'external_id';
|
||
if v_email is null or btrim(v_email) = '' or v_name is null or btrim(v_name) = '' then
|
||
continue;
|
||
end if;
|
||
select exists (select 1 from public.contacts where email = v_email) into v_existing;
|
||
insert into public.contacts (email, full_name, external_id)
|
||
values (v_email, v_name, v_ext)
|
||
on conflict (email) do update
|
||
set full_name = excluded.full_name,
|
||
external_id = coalesce(excluded.external_id, public.contacts.external_id);
|
||
perform public._ensure_auth_user_exists(v_email, v_name);
|
||
if v_existing then
|
||
v_speakers_updated := v_speakers_updated + 1;
|
||
else
|
||
v_speakers_created := v_speakers_created + 1;
|
||
end if;
|
||
exception when others then
|
||
v_err := coalesce(v_email, '<no email>') || ': ' || sqlerrm;
|
||
v_errors := v_errors || to_jsonb(v_err);
|
||
end;
|
||
end loop;
|
||
|
||
-- (2) Sessions + (3) agenda (slots + speaker links).
|
||
for v_item in select * from jsonb_array_elements(coalesce(p_payload -> 'sessions', '[]'::jsonb))
|
||
loop
|
||
begin
|
||
v_ext := v_item ->> 'external_id';
|
||
v_title := v_item ->> 'title';
|
||
v_desc := v_item ->> 'description';
|
||
v_room := v_item ->> 'room';
|
||
v_date := (v_item ->> 'date')::date;
|
||
v_start := (v_item ->> 'start_time')::time;
|
||
v_end := (v_item ->> 'end_time')::time;
|
||
v_service := coalesce((v_item ->> 'is_service_session')::boolean, false);
|
||
|
||
if v_ext is null or v_title is null or v_date is null or v_start is null or v_end is null then
|
||
v_errors := v_errors || to_jsonb(coalesce(v_title, '<no title>') || ': missing required field');
|
||
continue;
|
||
end if;
|
||
|
||
-- Find or create the slot by (event, date, start, end).
|
||
select * into v_slot from public.slots
|
||
where event_id = p_event_id and slot_date = v_date
|
||
and start_time = v_start and end_time = v_end
|
||
limit 1;
|
||
if not found then
|
||
select greatest(nextval('public.slots_id_seq'),
|
||
(select coalesce(max(id), 0) from public.slots) + 1)
|
||
into v_slot_id;
|
||
perform setval('public.slots_id_seq', v_slot_id, true);
|
||
insert into public.slots (id, event_id, type, name, slot_date, start_time, end_time)
|
||
values (v_slot_id, p_event_id,
|
||
case when v_service then 'service_session'::public.slot_type
|
||
else 'session'::public.slot_type end,
|
||
case when v_service then 'Service Session'
|
||
else 'Slot ' || to_char(v_start, 'HH24:MI') || '–' || to_char(v_end, 'HH24:MI') end,
|
||
v_date, v_start, v_end)
|
||
returning * into v_slot;
|
||
v_slots_created := v_slots_created + 1;
|
||
end if;
|
||
|
||
-- Upsert the session by external_id.
|
||
select exists (select 1 from public.sessions
|
||
where event_id = p_event_id and external_id = v_ext) into v_existing;
|
||
insert into public.sessions (event_id, slot_id, title, description, room, external_id)
|
||
values (p_event_id, v_slot.id, v_title, v_desc, v_room, v_ext)
|
||
on conflict (external_id) where external_id is not null do update
|
||
set slot_id = excluded.slot_id,
|
||
title = excluded.title,
|
||
description = coalesce(excluded.description, public.sessions.description),
|
||
room = coalesce(excluded.room, public.sessions.room)
|
||
returning * into v_session;
|
||
if v_existing then
|
||
v_sessions_updated := v_sessions_updated + 1;
|
||
else
|
||
v_sessions_created := v_sessions_created + 1;
|
||
end if;
|
||
|
||
-- (3) Speaker links: DIFF (insert the new set, then delete only removed).
|
||
for v_spk in select * from jsonb_array_elements_text(coalesce(v_item -> 'speakers', '[]'::jsonb))
|
||
loop
|
||
if v_spk is null or btrim(v_spk) = '' then
|
||
continue;
|
||
end if;
|
||
insert into public.session_speakers (session_id, contact_email)
|
||
values (v_session.id, v_spk)
|
||
on conflict (session_id, contact_email) do nothing;
|
||
v_speakers_linked := v_speakers_linked + 1;
|
||
end loop;
|
||
if (select count(*) from jsonb_array_elements_text(coalesce(v_item -> 'speakers', '[]'::jsonb))) > 0 then
|
||
delete from public.session_speakers ss
|
||
where ss.session_id = v_session.id
|
||
and not exists (
|
||
select 1 from jsonb_array_elements_text(coalesce(v_item -> 'speakers', '[]'::jsonb)) as e
|
||
where e = ss.contact_email
|
||
);
|
||
end if;
|
||
|
||
-- Service sessions: every registered staff member is a speaker.
|
||
if v_service then
|
||
perform public._assign_service_session_speakers(v_session.id, p_event_id);
|
||
end if;
|
||
exception when others then
|
||
v_err := coalesce(v_title, '<no title>') || ': ' || sqlerrm;
|
||
v_errors := v_errors || to_jsonb(v_err);
|
||
end;
|
||
end loop;
|
||
|
||
update public.sync_runs
|
||
set finished_at = now(),
|
||
created = v_speakers_created + v_sessions_created + v_slots_created,
|
||
updated = v_speakers_updated + v_sessions_updated,
|
||
skipped = 0,
|
||
error = case when jsonb_array_length(v_errors) > 0 then v_errors::text else null end
|
||
where id = v_run_id;
|
||
|
||
update public.events set last_synced_at = now() where id = p_event_id;
|
||
|
||
return jsonb_build_object(
|
||
'speakers_created', v_speakers_created,
|
||
'speakers_updated', v_speakers_updated,
|
||
'sessions_created', v_sessions_created,
|
||
'sessions_updated', v_sessions_updated,
|
||
'slots_created', v_slots_created,
|
||
'speakers_linked', v_speakers_linked,
|
||
'errors', v_errors
|
||
);
|
||
end;
|
||
$$;
|
||
|
||
-- -----------------------------------------------------------------------------
|
||
-- 4. EXCEL SYNC: assign staff speakers to service sessions.
|
||
-- Re-creates sync_sessionize_excel (the 20260832 version). The only change:
|
||
-- after linking the provided speakers, service sessions also get every
|
||
-- registered staff member as a speaker.
|
||
-- -----------------------------------------------------------------------------
|
||
create or replace function public.sync_sessionize_excel(p_event_id uuid, p_payload jsonb)
|
||
returns jsonb
|
||
language plpgsql security definer set search_path = public as $$
|
||
declare
|
||
v_run_id uuid;
|
||
v_started timestamptz := now();
|
||
v_item jsonb;
|
||
v_email text;
|
||
v_name text;
|
||
v_ext text;
|
||
v_linkedin text;
|
||
v_title text;
|
||
v_desc text;
|
||
v_room text;
|
||
v_date date;
|
||
v_start time;
|
||
v_end time;
|
||
v_service boolean;
|
||
v_slot public.slots;
|
||
v_slot_id integer;
|
||
v_session public.sessions;
|
||
v_existing boolean;
|
||
v_spk text;
|
||
v_speakers_created integer := 0;
|
||
v_speakers_updated integer := 0;
|
||
v_sessions_created integer := 0;
|
||
v_sessions_updated integer := 0;
|
||
v_slots_created integer := 0;
|
||
v_speakers_linked integer := 0;
|
||
v_regs_created integer := 0;
|
||
v_regs_updated integer := 0;
|
||
v_errors jsonb := '[]'::jsonb;
|
||
v_err text;
|
||
begin
|
||
if coalesce(auth.jwt() ->> 'role', '') <> 'service_role' then
|
||
raise exception 'service_role only';
|
||
end if;
|
||
if not exists (select 1 from public.events where id = p_event_id) then
|
||
raise exception 'event not found';
|
||
end if;
|
||
insert into public.sync_runs (event_id, source, started_at, triggered_by)
|
||
values (p_event_id, 'sessionize_excel', v_started, 'service_role')
|
||
returning id into v_run_id;
|
||
|
||
-- (1) Speakers -> contacts (matched by email).
|
||
for v_item in select * from jsonb_array_elements(coalesce(p_payload -> 'speakers', '[]'::jsonb))
|
||
loop
|
||
begin
|
||
v_email := v_item ->> 'email';
|
||
v_name := v_item ->> 'full_name';
|
||
v_ext := v_item ->> 'external_id';
|
||
v_linkedin := v_item ->> 'linkedin_url';
|
||
if v_email is null or btrim(v_email) = '' or v_name is null or btrim(v_name) = '' then
|
||
continue;
|
||
end if;
|
||
select exists (select 1 from public.contacts where email = v_email) into v_existing;
|
||
insert into public.contacts (email, full_name, external_id, linkedin_url)
|
||
values (v_email, v_name, v_ext, v_linkedin)
|
||
on conflict (email) do update
|
||
set full_name = excluded.full_name,
|
||
external_id = coalesce(excluded.external_id, public.contacts.external_id),
|
||
linkedin_url = coalesce(excluded.linkedin_url, public.contacts.linkedin_url);
|
||
perform public._ensure_auth_user_exists(v_email, v_name);
|
||
if v_existing then
|
||
v_speakers_updated := v_speakers_updated + 1;
|
||
else
|
||
v_speakers_created := v_speakers_created + 1;
|
||
end if;
|
||
exception when others then
|
||
v_err := coalesce(v_email, '<no email>') || ': ' || sqlerrm;
|
||
v_errors := v_errors || to_jsonb(v_err);
|
||
end;
|
||
end loop;
|
||
|
||
-- (2) Sessions + agenda (slots + speaker links).
|
||
for v_item in select * from jsonb_array_elements(coalesce(p_payload -> 'sessions', '[]'::jsonb))
|
||
loop
|
||
begin
|
||
v_ext := v_item ->> 'external_id';
|
||
v_title := v_item ->> 'title';
|
||
v_desc := v_item ->> 'description';
|
||
v_room := v_item ->> 'room';
|
||
v_date := (v_item ->> 'date')::date;
|
||
v_start := (v_item ->> 'start_time')::time;
|
||
v_end := (v_item ->> 'end_time')::time;
|
||
v_service := coalesce((v_item ->> 'is_service_session')::boolean, false);
|
||
|
||
if v_ext is null or v_title is null or v_date is null or v_start is null or v_end is null then
|
||
v_errors := v_errors || to_jsonb(coalesce(v_title, '<no title>') || ': missing required field');
|
||
continue;
|
||
end if;
|
||
|
||
-- Find or create the slot by (event, date, start, end).
|
||
select * into v_slot from public.slots
|
||
where event_id = p_event_id and slot_date = v_date
|
||
and start_time = v_start and end_time = v_end
|
||
limit 1;
|
||
if not found then
|
||
select greatest(nextval('public.slots_id_seq'),
|
||
(select coalesce(max(id), 0) from public.slots) + 1)
|
||
into v_slot_id;
|
||
perform setval('public.slots_id_seq', v_slot_id, true);
|
||
insert into public.slots (id, event_id, type, name, slot_date, start_time, end_time)
|
||
values (v_slot_id, p_event_id,
|
||
case when v_service then 'service_session'::public.slot_type
|
||
else 'session'::public.slot_type end,
|
||
case when v_service then 'Service Session'
|
||
else 'Slot ' || to_char(v_start, 'HH24:MI') || '–' || to_char(v_end, 'HH24:MI') end,
|
||
v_date, v_start, v_end)
|
||
returning * into v_slot;
|
||
v_slots_created := v_slots_created + 1;
|
||
end if;
|
||
|
||
-- Upsert the session by external_id.
|
||
select exists (select 1 from public.sessions
|
||
where event_id = p_event_id and external_id = v_ext) into v_existing;
|
||
insert into public.sessions (event_id, slot_id, title, description, room, external_id)
|
||
values (p_event_id, v_slot.id, v_title, v_desc, v_room, v_ext)
|
||
on conflict (external_id) where external_id is not null do update
|
||
set slot_id = excluded.slot_id,
|
||
title = excluded.title,
|
||
description = coalesce(excluded.description, public.sessions.description),
|
||
room = coalesce(excluded.room, public.sessions.room)
|
||
returning * into v_session;
|
||
if v_existing then
|
||
v_sessions_updated := v_sessions_updated + 1;
|
||
else
|
||
v_sessions_created := v_sessions_created + 1;
|
||
end if;
|
||
|
||
-- Speaker links: DIFF (insert the new set, then delete only removed).
|
||
for v_spk in select * from jsonb_array_elements_text(coalesce(v_item -> 'speakers', '[]'::jsonb))
|
||
loop
|
||
if v_spk is null or btrim(v_spk) = '' then
|
||
continue;
|
||
end if;
|
||
insert into public.session_speakers (session_id, contact_email)
|
||
values (v_session.id, v_spk)
|
||
on conflict (session_id, contact_email) do nothing;
|
||
v_speakers_linked := v_speakers_linked + 1;
|
||
end loop;
|
||
if (select count(*) from jsonb_array_elements_text(coalesce(v_item -> 'speakers', '[]'::jsonb))) > 0 then
|
||
delete from public.session_speakers ss
|
||
where ss.session_id = v_session.id
|
||
and not exists (
|
||
select 1 from jsonb_array_elements_text(coalesce(v_item -> 'speakers', '[]'::jsonb)) as e
|
||
where e = ss.contact_email
|
||
);
|
||
end if;
|
||
|
||
-- Service sessions: every registered staff member is a speaker.
|
||
if v_service then
|
||
perform public._assign_service_session_speakers(v_session.id, p_event_id);
|
||
end if;
|
||
exception when others then
|
||
v_err := coalesce(v_title, '<no title>') || ': ' || sqlerrm;
|
||
v_errors := v_errors || to_jsonb(v_err);
|
||
end;
|
||
end loop;
|
||
|
||
-- (3) Speaker registrations: create/update to 'speaker' for every speaker.
|
||
for v_item in select * from jsonb_array_elements(coalesce(p_payload -> 'speakers', '[]'::jsonb))
|
||
loop
|
||
begin
|
||
v_email := v_item ->> 'email';
|
||
if v_email is null or btrim(v_email) = '' then
|
||
continue;
|
||
end if;
|
||
if not exists (select 1 from public.contacts where email = v_email) then
|
||
continue;
|
||
end if;
|
||
select exists (select 1 from public.registrations
|
||
where event_id = p_event_id and contact_email = v_email) into v_existing;
|
||
insert into public.registrations (event_id, contact_email, type)
|
||
values (p_event_id, v_email, 'speaker'::public.registration_type)
|
||
on conflict (event_id, contact_email) do update
|
||
set type = case when public.registrations.type in ('staff', 'sponsor')
|
||
then public.registrations.type
|
||
else 'speaker'::public.registration_type end
|
||
where public.registrations.type not in ('staff', 'sponsor');
|
||
if v_existing then
|
||
v_regs_updated := v_regs_updated + 1;
|
||
else
|
||
v_regs_created := v_regs_created + 1;
|
||
end if;
|
||
exception when others then
|
||
v_err := coalesce(v_email, '<no email>') || ': ' || sqlerrm;
|
||
v_errors := v_errors || to_jsonb(v_err);
|
||
end;
|
||
end loop;
|
||
|
||
update public.sync_runs
|
||
set finished_at = now(),
|
||
created = v_speakers_created + v_sessions_created + v_slots_created + v_regs_created,
|
||
updated = v_speakers_updated + v_sessions_updated + v_regs_updated,
|
||
skipped = 0,
|
||
error = case when jsonb_array_length(v_errors) > 0 then v_errors::text else null end
|
||
where id = v_run_id;
|
||
|
||
update public.events set last_synced_at = now() where id = p_event_id;
|
||
|
||
return jsonb_build_object(
|
||
'speakers_created', v_speakers_created,
|
||
'speakers_updated', v_speakers_updated,
|
||
'sessions_created', v_sessions_created,
|
||
'sessions_updated', v_sessions_updated,
|
||
'slots_created', v_slots_created,
|
||
'speakers_linked', v_speakers_linked,
|
||
'registrations_created', v_regs_created,
|
||
'registrations_updated', v_regs_updated,
|
||
'errors', v_errors
|
||
);
|
||
end;
|
||
$$;
|
||
|
||
-- -----------------------------------------------------------------------------
|
||
-- 5. GRANTS
|
||
-- -----------------------------------------------------------------------------
|
||
grant execute on function public._assign_service_session_speakers(uuid, uuid) to service_role;
|
||
grant execute on function public.checkin_attendee(uuid, text) to authenticated;
|
||
grant execute on function public.sync_sessionize_event(uuid, jsonb) to service_role;
|
||
grant execute on function public.sync_sessionize_excel(uuid, jsonb) to service_role;
|