ALTER TABLE knowledge_bases DROP COLUMN IF EXISTS org_id;
ALTER TABLE applications DROP COLUMN IF EXISTS org_id;
DROP INDEX IF EXISTS idx_apps_org;
ALTER TABLE users DROP COLUMN IF EXISTS org_id;
DROP INDEX IF EXISTS idx_users_org;
DROP TABLE IF EXISTS organizations;
