I want to use the same layout but stored different in tables for each company customer in my application.
Is it possible to dynamically add tables/Collection types to strapi on a API GET? (They also need to be added to the Admin Panel and Content-type Builder)
This topic has been created from a Discord post (1245660498985353339) to give it more visibility.
It will be on Read-Only mode here.
Join the conversation on Discord
I’m not sure about adding them on API GET. As Strapi will need a restart whenever the database model changes.
You might recocnise this pattern from when you create a new collection type locally. Then you get this loading screen telling you that Strapi is restarting.
If you we’re to do that in production I can imagine you would get a lot of issues.
That’s what i thought would happen.
Than i need to store the data in one table or switch to using nodejs without strapi
Not too bad to just throw it all in one table and have an extra field to differentiate between the different company customers, right?