How would you add User Model/Schema for working project?

Hi @M_San_B ,

A basic approach will be to hold a user collection where a user profile is stored and updated.

Than each contact document can have an owner details. Those details depand on the application views and what data needs to be presented or filtered.

The bare minimum seems to be storing a userId per contact or maybe an array of users if there are multiple users sharing the same contact data.

When you login and identify the user you can index and pass this userId to the contact collection query and fetch only relevant contacts.

Let me know if that makes sense.

Thanks
Pavel