CREATE TABLE IF NOT EXISTS public.app_settings ( id text PRIMARY KEY DEFAULT 'singleton', group_label text NOT NULL DEFAULT 'Cliente', updated_at timestamptz NOT NULL DEFAULT now() ); ALTER TABLE public.app_settings ENABLE ROW LEVEL SECURITY; CREATE POLICY "all_app_settings" ON public.app_settings FOR ALL USING (auth.uid() IS NOT NULL) WITH CHECK (auth.uid() IS NOT NULL); INSERT INTO public.app_settings (id, group_label) VALUES ('singleton', 'Cliente') ON CONFLICT (id) DO NOTHING;