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,31 @@
-- Ensure company-assets bucket exists and is public
INSERT INTO storage.buckets (id, name, public)
VALUES ('company-assets', 'company-assets', true)
ON CONFLICT (id) DO UPDATE SET public = true;
-- Drop existing policies if any (idempotent)
DROP POLICY IF EXISTS "company-assets public read" ON storage.objects;
DROP POLICY IF EXISTS "company-assets authenticated insert" ON storage.objects;
DROP POLICY IF EXISTS "company-assets authenticated update" ON storage.objects;
DROP POLICY IF EXISTS "company-assets authenticated delete" ON storage.objects;
CREATE POLICY "company-assets public read"
ON storage.objects FOR SELECT
USING (bucket_id = 'company-assets');
CREATE POLICY "company-assets authenticated insert"
ON storage.objects FOR INSERT
TO authenticated
WITH CHECK (bucket_id = 'company-assets');
CREATE POLICY "company-assets authenticated update"
ON storage.objects FOR UPDATE
TO authenticated
USING (bucket_id = 'company-assets')
WITH CHECK (bucket_id = 'company-assets');
CREATE POLICY "company-assets authenticated delete"
ON storage.objects FOR DELETE
TO authenticated
USING (bucket_id = 'company-assets');