ALTER TABLE savings_circles
  ADD COLUMN IF NOT EXISTS organization_id integer REFERENCES organizations(id) ON DELETE CASCADE,
  ADD COLUMN IF NOT EXISTS created_by_organization_member_user_id integer REFERENCES users(id) ON DELETE SET NULL;

CREATE INDEX IF NOT EXISTS savings_circles_org_idx
ON savings_circles(organization_id, created_at);

CREATE INDEX IF NOT EXISTS savings_circles_org_status_idx
ON savings_circles(organization_id, status);
