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,10 @@
ALTER TABLE public.vendors ADD COLUMN IF NOT EXISTS association_ids uuid[] NOT NULL DEFAULT ARRAY[]::uuid[];
-- Backfill: ensure existing single association_id is included in the array
UPDATE public.vendors
SET association_ids = ARRAY[association_id]
WHERE association_id IS NOT NULL
AND (association_ids IS NULL OR NOT (association_id = ANY(association_ids)));
-- Index for fast filtering
CREATE INDEX IF NOT EXISTS idx_vendors_association_ids ON public.vendors USING GIN (association_ids);