Connect your Supabase database so data syncs across all your devices and your whole team.
Step 1 โ Create your Supabase project
Go to supabase.com โ New project. Wait for it to spin up (about 60 seconds).
Step 2 โ Run this SQL
Go to SQL Editor in Supabase and paste and run this entire block:
create table if not exists users (
id uuid primary key default gen_random_uuid(),
name text not null,
role text not null default 'team'
check (role in ('owner','manager','team')),
color text default '#7c3aed',
created_at timestamptz default now()
);
create table if not exists launch (
id text primary key default 'main',
restaurant_name text default 'My Restaurant',
opening_date text default '2026-06-19',
categories jsonb default '[]'::jsonb,
updated_at timestamptz default now()
);
create table if not exists push_subscriptions (
id uuid primary key default gen_random_uuid(),
user_id uuid references users(id) on delete cascade,
subscription jsonb not null,
unique(user_id)
);
alter table users enable row level security;
alter table launch enable row level security;
alter table push_subscriptions enable row level security;
create policy "open" on users for all using (true) with check (true);
create policy "open" on launch for all using (true) with check (true);
create policy "open" on push_subscriptions for all using (true) with check (true);
alter publication supabase_realtime add table launch;
alter publication supabase_realtime add table users;
insert into launch (id) values ('main') on conflict (id) do nothing;
Step 3 โ Paste your API credentials
Go to Settings โ API in Supabase and copy your Project URL and anon key.
Could not connect. Double-check your URL and key, and make sure you ran the SQL above.