create table if not exists public.fourge_passwords ( id uuid default gen_random_uuid() primary key, service_name text not null, service_url text default '', username text not null default '', encrypted_password text not null, password_iv text not null, notes text default '', created_by uuid references public.profiles(id) on delete set null, created_at timestamptz not null default now(), updated_at timestamptz not null default now() ); alter table public.fourge_passwords enable row level security; create policy "Team all fourge_passwords" on public.fourge_passwords for all using (get_my_role() = 'team') with check (get_my_role() = 'team');