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


-- 
SQLAlchemy - 
The Python SQL Toolkit and Object Relational Mapper

http://www.sqlalchemy.org/

To post example code, please provide an MCVE: Minimal, Complete, and Verifiable 
Example.  See  http://stackoverflow.com/help/mcve for a full description.
--- 
You received this message because you are subscribed to the Google Groups 
"sqlalchemy" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sqlalchemy+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/sqlalchemy/4cae9e17-37b2-45d7-b125-9be4e81437d5%40googlegroups.com.

Reply via email to