-- GIN indexes for JSONB dynamic field filtering
-- Run: psql $DATABASE_URL -f packages/db/prisma/migrations/20260310_jsonb_gin_indexes.sql

CREATE INDEX IF NOT EXISTS idx_resource_dynamic_fields_gin
  ON resources USING gin ("dynamicFields" jsonb_path_ops);

CREATE INDEX IF NOT EXISTS idx_project_dynamic_fields_gin
  ON projects USING gin ("dynamicFields" jsonb_path_ops);
