In a typical flask app one defines their models in a models.py or some such. But what if I want my end user to be able to design some of the models too? Consider an asset tracking application for example. I could try to model every conceivable asset a business might want to track or I could make the asset types configurable in the application. The same goes for locations or containers of objects.
One organization may wish to track "Computers" "Laptops" and "Phones" and organize them by "State", "City", "Campus", "Building", "Floor" and "Office" where as another organization might just wish to track "Trucks" and "Tools" organized by "Site".
Is there a pattern or example of using a database to store model definitions? What is this called? mapping? indirection? (The signal to noise ratio of searching the Internet is low.)
Thank you,
-Alan