Add or remove clinic departments. Changes sync across all devices.
⚠️ Missing Database Tables
Run this SQL in Supabase → SQL Editor → New Query → Run ▶️
CREATE TABLE IF NOT EXISTS staff (
id uuid DEFAULT gen_random_uuid() PRIMARY KEY,
name text NOT NULL,
dept text NOT NULL,
age_groups text[] DEFAULT '{}',
created_at timestamptz DEFAULT now()
);
ALTER TABLE staff ENABLE ROW LEVEL SECURITY;
CREATE POLICY "public_access" ON staff
FOR ALL USING (true) WITH CHECK (true);
CREATE TABLE IF NOT EXISTS departments (
id_key text PRIMARY KEY,
label text NOT NULL,
icon text DEFAULT '🏥',
sort_order int DEFAULT 0,
created_at timestamptz DEFAULT now()
);
ALTER TABLE departments ENABLE ROW LEVEL SECURITY;
CREATE POLICY "public_access" ON departments
FOR ALL USING (true) WITH CHECK (true);
CREATE TABLE IF NOT EXISTS settings (
key text PRIMARY KEY,
value text
);
ALTER TABLE settings ENABLE ROW LEVEL SECURITY;
CREATE POLICY "public_access" ON settings
FOR ALL USING (true) WITH CHECK (true);
☁️ Cloud Database
✅
Supabase Connected
Cloud sync is active. All records save automatically and appear on any device using this app link.
🧾 E-Challan Settings
Yeh details har challan par print hongi (Parent Copy + Center Copy).