This makes each crew member's personal app link work on only their phone. One paste, one Run, done forever.
create table if not exists public.link_claims ( member_id uuid primary key, store_id uuid not null, device_token text not null, claimed_at timestamptz not null default now() ); alter table public.link_claims enable row level security; grant select, insert, update, delete on public.link_claims to authenticated; grant select, insert, update, delete on public.link_claims to anon; drop policy if exists "link claims app access" on public.link_claims; create policy "link claims app access" on public.link_claims for all to authenticated using (true) with check (true);
Safe to run more than once. It only creates the claims list — it doesn't change anything else in the app.