Ask HN: Is it possible to create placeholder accounts?

3 points by soelost ↗ HN
I want a feature of my app to allow me to add a friend using their phone number, even if they're not a member, then also allow me to send them a message in the app. So when that friend finally signs up with that phone number, the message will already be waiting for them, in their inbox. As if they'd be claiming a dummy account. Is there a name for this or any way of doing this?

4 comments

[ 2.1 ms ] story [ 20.3 ms ] thread
You just create an account with the phone number as the unique ID in the database and allow every other field to be nullable, except perhaps the messages field as you only want to create this ghost account if a message is to be sent.

Possibly best to have some logic that allows an account to only have nullable fields if it is created by an existing user signing someone else up.

Thanks for identifying the "how" its done portion.