Lets say you build an application which needs to serve several customers (data is never shared between customers) and the customer data itself is sensitive.
How would you design the database to prevent that suddenly (e.g. a bug) data from one customer is visible to another?
E.g. We have a projects table which contains projects of a customer. Now we could chuck all projects (of all customers) into that table or create a schema for each customer.
I like the idea of schema separation (cause it would totally separate the data) but as I never did it i am not sure if this is a good approach (e.g. change of the schema would require the maintenance of all customer schemes).
Important: The application contains master data which is shared across all customers (e.g. customer accounts, settings, templates, etc.) as well. So another disadvantage what I expect would be the maintenance of multiple connections at the same time...
UPDATE: Would it be possible to replicate just the schema automatically?