alter table "app"."accounts" enable row level security;

create policy "Deny All Access"
on "app"."accounts"
as permissive
for all
to public
using (false);



set check_function_bodies = off;

CREATE OR REPLACE FUNCTION public.auto_add_account()
 RETURNS trigger
 LANGUAGE plpgsql
 SECURITY DEFINER
 SET search_path TO ''
AS $function$
begin
    insert into app.accounts (id) values (new.id);
    return new;
end;
$function$
;


