Strategies

One-time database setup required

Setup Required

Run this SQL in your Supabase SQL Editor, then refresh:

create table if not exists strategies (
  id uuid primary key default gen_random_uuid(),
  user_id uuid references auth.users(id) on delete cascade not null,
  name text not null,
  description text,
  rules text,
  color text not null default '#8b5cf6',
  created_at timestamptz default now() not null
);
alter table strategies enable row level security;
create policy "Users manage own strategies" on strategies
  for all using (auth.uid() = user_id) with check (auth.uid() = user_id);