drop policy if exists "Client updates own company" on public.companies;
create policy "Client updates own company" on public.companies
  for update
  using (id = get_my_company_id())
  with check (id = get_my_company_id());

drop policy if exists "Client updates own company projects" on public.projects;
create policy "Client updates own company projects" on public.projects
  for update
  using (company_id = get_my_company_id())
  with check (company_id = get_my_company_id());
