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,39 @@
-- Allow board members to read financial data for associations they serve on the board for.
-- This powers the board "Financial Overview" page.
CREATE POLICY "Board members can view association bank accounts"
ON public.bank_accounts FOR SELECT
TO authenticated
USING (
association_id IN (
SELECT bm.association_id FROM public.board_members bm WHERE bm.user_id = auth.uid()
)
);
CREATE POLICY "Board members can view association bank transactions"
ON public.bank_transactions FOR SELECT
TO authenticated
USING (
association_id IN (
SELECT bm.association_id FROM public.board_members bm WHERE bm.user_id = auth.uid()
)
);
CREATE POLICY "Board members can view association collections"
ON public.collections FOR SELECT
TO authenticated
USING (
association_id IN (
SELECT bm.association_id FROM public.board_members bm WHERE bm.user_id = auth.uid()
)
);
CREATE POLICY "Board members can view association owner ledger entries"
ON public.owner_ledger_entries FOR SELECT
TO authenticated
USING (
association_id IN (
SELECT bm.association_id FROM public.board_members bm WHERE bm.user_id = auth.uid()
)
);