Add ACMCC app source, Supabase backend, and project config

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
2026-06-01 20:19:26 -04:00
parent 313b51b412
commit 183fe0a93c
1422 changed files with 259271 additions and 0 deletions
@@ -0,0 +1,14 @@
CREATE OR REPLACE FUNCTION public.get_maintenance_status()
RETURNS jsonb
LANGUAGE sql
STABLE
SECURITY DEFINER
SET search_path = public
AS $$
SELECT jsonb_build_object(
'enabled', COALESCE((SELECT lower(value) = 'true' FROM public.company_settings WHERE key = 'maintenance_mode'), false),
'message', COALESCE((SELECT value FROM public.company_settings WHERE key = 'maintenance_message'), 'The site is currently undergoing maintenance. Only administrators can sign in at this time.')
);
$$;
GRANT EXECUTE ON FUNCTION public.get_maintenance_status() TO anon, authenticated;