mirror of
https://github.com/renee-png/acmcc.git
synced 2026-06-21 09:50:01 +00:00
Add ACMCC app source, Supabase backend, and project config
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
@@ -0,0 +1,10 @@
|
||||
ALTER TABLE public.budgets
|
||||
ADD COLUMN IF NOT EXISTS parent_id UUID REFERENCES public.budgets(id) ON DELETE CASCADE,
|
||||
ADD COLUMN IF NOT EXISTS account_type TEXT NOT NULL DEFAULT 'expense',
|
||||
ADD COLUMN IF NOT EXISTS is_parent BOOLEAN NOT NULL DEFAULT false;
|
||||
|
||||
ALTER TABLE public.budgets ALTER COLUMN budgeted_amount DROP NOT NULL;
|
||||
ALTER TABLE public.budgets ALTER COLUMN budgeted_amount SET DEFAULT 0;
|
||||
|
||||
CREATE INDEX IF NOT EXISTS idx_budgets_parent_id ON public.budgets(parent_id);
|
||||
CREATE INDEX IF NOT EXISTS idx_budgets_assoc_year ON public.budgets(association_id, fiscal_year);
|
||||
Reference in New Issue
Block a user