
ALTER TABLE public.billable_expenses
  ADD COLUMN IF NOT EXISTS is_recurring boolean NOT NULL DEFAULT false,
  ADD COLUMN IF NOT EXISTS recurring_day integer DEFAULT 1,
  ADD COLUMN IF NOT EXISTS recurring_next_date date,
  ADD COLUMN IF NOT EXISTS recurring_end_date date,
  ADD COLUMN IF NOT EXISTS recurring_parent_id uuid REFERENCES public.billable_expenses(id) ON DELETE SET NULL;
