-- Add user-level settings columns.
--
-- For now we only add a per-user feature flag controlling whether the user
-- sees the new "document mode" UI. Defaults to FALSE so existing users are
-- unaffected; the frontend gates on this flag.

ALTER TABLE users
    ADD COLUMN IF NOT EXISTS document_mode_enabled BOOLEAN NOT NULL DEFAULT FALSE;

COMMENT ON COLUMN users.document_mode_enabled IS
    'Per-user feature flag: when true, the frontend shows the new document-mode UI.';
