core: names are the device's, so drop the per-profile account

A name's profile is the record it resolves to, not the key that owns it, so
the account level was carrying a mapping nothing needs. It was also the only
source of the profile to account ambiguity after a restore, of /_wallet
bind, and of the index gap and the refusal that told a visible profile an
account was held by one it cannot see. All of it goes.

Names sit in account 0 from index 1. Index 0 is left unused so neither the
names nor the profile accounts, which start at 1, claim the origin of both
dimensions. users gains no columns at all now, so the migration is one
CREATE TABLE.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Rvc3HbiWBTqbAvRT45G5oX
This commit is contained in:
Alain Brenzikofer
2026-09-11 12:12:41 +00:00
co-authored by Claude Opus 5
parent 05508c0edd
commit 309358a162
11 changed files with 101 additions and 341 deletions
-1
View File
@@ -451,7 +451,6 @@ undocumentedCommands =
"APIVerifyGroupMember",
"APIVerifyToken",
"APIWallet",
"APIWalletBind",
"APIWalletCreate",
"APIWalletDelete",
"APIWalletExportDerivedSecret",