Database for web app with multiple clients
问题 In a real-world web app, how does one go about storing data for multiple clients/companies/customers? Lets assume we have the following collections for one client: - users - tasks How would I extent this system to a second client? Is there a standard approach? Note: I am using Firestore (no-sql). 回答1: We use a separate set of collections for each client. Our data structure works really well for us and looks like this... /clients/{clientId}/reportingData /clients/{clientId}/billingData