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. |
||
|---|---|---|
| .. | ||
| appearancefetch | ||
| bots | ||
| catalogfetch | ||
| createuser | ||
| langpackfetch | ||
| otpwebhook-example | ||
| stickerfetch | ||
| stickerseeddeploy | ||
| telegramloginkeygen | ||
| telesrv | ||
| telesrv-admin | ||
| telesrv-load | ||
| walletminiapp | ||