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 @@
-- Add a unique constraint on owners for Buildium sync upserts
-- Using association_id + first_name + last_name + property_address to handle multiple owners at same address
CREATE UNIQUE INDEX IF NOT EXISTS owners_buildium_sync_key
ON public.owners (association_id, first_name, last_name, property_address)
WHERE property_address IS NOT NULL;
-- Add buildium_owner_id column for future direct ID mapping
ALTER TABLE public.owners ADD COLUMN IF NOT EXISTS buildium_owner_id text;
CREATE UNIQUE INDEX IF NOT EXISTS owners_buildium_id_key ON public.owners (buildium_owner_id) WHERE buildium_owner_id IS NOT NULL;