Use your admin password to sign in.

Dashboard
Welcome back to Mahamaya admin
-
Total Products
-
Announcements
-
New Arrivals
-
On Sale
โšก Quick Actions
๐Ÿ“‹ Recent Products
๐Ÿ‘—

Loading...

Products
Manage your catalogue
All Products
NameCategoryPriceOld PriceBadgeVisibleActions
Loading products...
Announcements
New arrival updates for the ticker
๐Ÿ“ข Add New Announcement
All Announcements
๐Ÿ“ข

Loading...

Settings
Configure your store & database
๐Ÿ—„๏ธ Supabase Database Connection
Supabase Project URLGet this from your Supabase project settings
Supabase Anon KeyPublic anon key from API settings
๐Ÿ“ž Store Information
WhatsApp NumberWithout + sign, with country code. e.g. 919461234567
Store NameShown in browser tab
๐Ÿ” Change Admin Password
New PasswordYou'll need this to log in next time
๐Ÿ“‹ Database Setup Instructions

Run these SQL commands in your Supabase SQL Editor to create the required tables:

-- Run this in Supabase SQL Editor (supabase.com โ†’ your project โ†’ SQL Editor)

CREATE TABLE products (
  id UUID DEFAULT gen_random_uuid() PRIMARY KEY,
  name TEXT NOT NULL,
  category TEXT NOT NULL,
  description TEXT,
  price NUMERIC NOT NULL,
  old_price NUMERIC,
  badge TEXT,
  visible BOOLEAN DEFAULT true,
  created_at TIMESTAMPTZ DEFAULT now()
);

CREATE TABLE announcements (
  id UUID DEFAULT gen_random_uuid() PRIMARY KEY,
  text TEXT NOT NULL,
  created_at TIMESTAMPTZ DEFAULT now()
);

-- Enable public read access (so website can show products without login)
ALTER TABLE products ENABLE ROW LEVEL SECURITY;
ALTER TABLE announcements ENABLE ROW LEVEL SECURITY;

CREATE POLICY "Public read products" ON products FOR SELECT USING (true);
CREATE POLICY "Public read announcements" ON announcements FOR SELECT USING (true);
CREATE POLICY "Anon insert products" ON products FOR INSERT WITH CHECK (true);
CREATE POLICY "Anon update products" ON products FOR UPDATE USING (true);
CREATE POLICY "Anon delete products" ON products FOR DELETE USING (true);
CREATE POLICY "Anon insert announcements" ON announcements FOR INSERT WITH CHECK (true);
CREATE POLICY "Anon delete announcements" ON announcements FOR DELETE USING (true);

After running this SQL, paste your Supabase URL and key in the settings above and click "Save & Connect".