Radek Rozkiewicz
 ยท Product Designer

User adding other users to database - with permissions!

Hello,

I am making an app where landlords and tenants can communicate about a property, and am struggling with the database.

When a user creates a new property, they need to add other users to that document, either as a landlord or a tenant. So, I need user "X" to be able to add users "Y" and "Z" to a property. However, user "X" doesn't know if users "Y" and "Z" already exist in the broader user collection. So all they can do is add "Y" and "Z" email, define them either as a landlord or tenant, and the back end needs to resolve this, and I am unsure how to go about that.

Attached is a couple screenshots, any help is appreciated

Screenshot 2024-01-03 at 5.03.36 pm.png
54.65KB

Screenshot 2024-01-03 at 5.03.19 pm.png
98.83KB

1
3 replies