owpengram-server/cmd
Astra 8df27528b9 tools: add createuser command for reserving a custom user id
auth.signUp never lets a caller pick a user id (users_id_seq always
assigns it), but users.id is GENERATED BY DEFAULT rather than ALWAYS, so
an explicit id in the INSERT is honored - the same mechanism
ensureOfficialSystemUserWithDB already relies on to seed the built-in
system accounts at fixed ids.

createuser -id N [-phone ...|-email ...] inserts a user row at that id
for local/dev use, refusing (unless -force) a reserved system-account id
or one at/above UserIDSequenceBase where a future organic signup could
collide with it. -email reproduces the real email-signup path exactly:
a synthetic 888-prefixed display phone (domain.NewEmailSignupDisplayPhone,
re-rolled on collision) plus the real address in signup_email, rather
than storing the address in users.phone directly.
2026-09-13 17:59:39 +01:00
..
appearancefetch feat: sync visible product branding 2026-07-20 16:49:17 +08:00
bots Merge remote-tracking branch 'upstream/main' into merge-gramsrv-9106877 2026-08-03 23:29:20 +03:00
catalogfetch feat: sync multilayer td integration 2026-07-15 13:32:06 +08:00
createuser tools: add createuser command for reserving a custom user id 2026-09-13 17:59:39 +01:00
langpackfetch feat: sync langpack and auth updates 2026-07-18 00:07:41 +08:00
otpwebhook-example feat: sync configurable OTP delivery providers 2026-07-17 17:04:39 +08:00
stickerfetch feat: sync multilayer td integration 2026-07-15 13:32:06 +08:00
stickerseeddeploy fix: sync birthday updates and system sticker sets 2026-07-05 15:15:32 +08:00
telegramloginkeygen feat: sync Telegram Login OIDC provider 2026-07-21 15:46:24 +08:00
telesrv usernames: report reserved names as taken in the check paths too 2026-09-09 21:41:53 +01:00
telesrv-admin admin ui: reserved usernames use the standard dry-run/confirm flow 2026-09-09 21:23:25 +01:00
telesrv-load feat(loadtest): sync add real 500-session capacity harness 2026-08-02 12:05:00 +08:00
walletminiapp feat: sync visible product branding 2026-07-20 16:49:17 +08:00