CREATE OR REPLACE FUNCTION public.fn_schedule_delete_exception(p_exception_id integer)
 RETURNS jsonb
 LANGUAGE sql
AS $function$
  DELETE FROM public.session_schedule_exceptions WHERE exception_id = p_exception_id
  RETURNING jsonb_build_object('deleted', true);
$function$
;
