Reputation: 36404
I am developing a simple map repository , and for each map a table has to be created according to the no. of attributes in the map . I also want to give access to the user to create as many additional attributes as he wants to per map . This would mean that each map should have its own model , and if there are additional attributes then changes to the model have to be done on the fly to reflect in the database . How to do this ? I am using a single model as of now .
Upvotes: 0
Views: 58
Reputation: 799110
This is an awful idea. Consider creating a second model that has a FK to the map model and implements EAV.
Upvotes: 2