folio-app. Choose US East. Wait ~2 minutes for it to load.create table profiles (
id uuid references auth.users on delete cascade,
name text, role text, api_key text, primary key (id)
);
create table clients (
id uuid default gen_random_uuid() primary key,
advisor_id uuid references profiles(id) on delete cascade,
name text not null, email text, age integer,
risk_level text, account_value numeric,
tickers text[], notes text,
created_at timestamp default now()
);
alter table profiles enable row level security;
alter table clients enable row level security;
create policy "own profile" on profiles for all using (auth.uid()=id);
create policy "own clients" on clients for all using (auth.uid()=advisor_id);