ALTER TABLE public.chart_of_accounts
ADD COLUMN IF NOT EXISTS association_ids uuid[] NOT NULL DEFAULT '{}'::uuid[];

CREATE INDEX IF NOT EXISTS idx_chart_of_accounts_association_ids
ON public.chart_of_accounts USING GIN (association_ids);