Is there a way for users to automatically generate a Firestore schema from the app?

Hello! I am attempting to build an app which will deal with sensitive data for various companies. I feel that it's safe practice to have a separate collection for each company's data. Whenever a company creates an account, I want to automatically set up a new collection (or sub-collection) for that specific company. At first glance, it appears that something like this will require me to manually go in and duplicate a collection for each new company that signs up. I wanted to ask the community to see if anyone had a clever way of automating this, or just a good workaround in general. Perhaps I am overthinking the risks of keeping the data in the same collection? Maybe I am just plain lazy?? ๐Ÿคฃ Please share your thoughts/solutions! Thank you!!! ๐Ÿ˜€

1
3 replies