Upcoming
In progress
Completed
Cancelled
Past midnight
2+Group booking
Edit names directly. Renames will update all existing reservations automatically.
Edit or add services. "Other — please specify" is always available in the booking form.
Enter your Supabase credentials below, then run the one-time SQL in your Supabase dashboard to create the required tables. After that, all devices sharing the same credentials will stay in sync automatically.
-- 1. Reservations (time in & time out per therapist)
create table if not exists hts_reservations (
id text primary key,
date text not null,
therapists text[] not null default '{}',
customer text not null,
service text not null,
start_time text not null,
end_time text,
duration numeric(4,2) not null,
status text not null default 'upcoming',
notes text default '',
created_at timestamptz default now(),
updated_at timestamptz default now()
);
alter table hts_reservations enable row level security;
create policy "hts_res" on hts_reservations for all using (true) with check (true);
do $$ begin alter publication supabase_realtime add table hts_reservations; exception when duplicate_object then null; end $$;
-- 2. Daily duty roster
create table if not exists hts_duty (
date text primary key,
roster jsonb not null default '{}',
updated_at timestamptz default now()
);
alter table hts_duty enable row level security;
create policy "hts_duty" on hts_duty for all using (true) with check (true);
do $$ begin alter publication supabase_realtime add table hts_duty; exception when duplicate_object then null; end $$;
-- 3. Shared settings (staff list, services)
create table if not exists hts_settings (
key text primary key,
value jsonb not null,
updated_at timestamptz default now()
);
alter table hts_settings enable row level security;
create policy "hts_set" on hts_settings for all using (true) with check (true);
do $$ begin alter publication supabase_realtime add table hts_settings; exception when duplicate_object then null; end $$;
After running the SQL and saving your credentials, click Save changes. The sync badge in the top bar will turn green when connected.