Once connected, all users, spots, and bookings are stored permanently in your database.
Found in your Supabase project → Settings → API
Public anon key — safe to use in the browser
Quick setup:
1. Go to
supabase.com → New project
2. Copy your URL and Anon key above
3. In the SQL editor, run the setup script below
4. Click Connect
-- Run this in Supabase SQL Editor
create table profiles (
id uuid references auth.users primary key,
first_name text, last_name text,
city text, country text,
cert text, dives int default 0,
entry text[], types text[],
created_at timestamptz default now()
);
create table spots (
id serial primary key,
name text, region text,
lat float, lng float,
depth int, visibility int, temp int,
entry text[], types text[],
difficulty text, description text,
added_by uuid references profiles(id)
);
create table dives (
id serial primary key,
user_id uuid references profiles(id),
spot_id int references spots(id),
dive_date date, dive_time time,
entry text[], description text,
created_at timestamptz default now()
);
create table buddy_requests (
id serial primary key,
from_user uuid references profiles(id),
to_user uuid references profiles(id),
dive_id int references dives(id),
message text, status text default 'pending',
created_at timestamptz default now()
);