Credentials are saved in your browser only. See setup instructions below.
anon public key.CREATE TABLE events ( id uuid DEFAULT gen_random_uuid() PRIMARY KEY, name text NOT NULL, date date NOT NULL, time time NOT NULL, location text NOT NULL, organizer text NOT NULL, url text, description text, status text DEFAULT 'pending', time_end time, recur_type text DEFAULT 'none', recur_monthly_mode text, recur_end_date date, recur_no_end boolean DEFAULT false, created_at timestamptz DEFAULT now() ); -- Allow public read of approved events CREATE POLICY "public read approved" ON events FOR SELECT USING (status = 'approved'); -- Allow public insert CREATE POLICY "public insert" ON events FOR INSERT WITH CHECK (true); -- Allow all for service role (admin uses anon key + RLS bypass via admin toggle) ALTER TABLE events ENABLE ROW LEVEL SECURITY; -- For admin operations, you'll temporarily disable RLS or use service role key. -- Simplest approach: also add this policy to allow all operations (then protect via app password): CREATE POLICY "allow all" ON events USING (true) WITH CHECK (true);