Storing dictionaries and ordered lists in database
|Reported by:||jits_1998||Owned by:||nobody|
|Component:||Database layer (models, ORM)||Version:||1.1|
|Has patch:||no||Needs documentation:||no|
|Needs tests:||no||Patch needs improvement:||no|
I would like to have a feature which can directly store dictionaries into the database. eg. My user has multiple addresses, so I can have a dictionary with keys as "home"/"office" etc, and the address object as values.
Also, a similar feature would be to have ordered list of objects.
Currently we store the many-to-one etc relationships in a table, for the above requirements we need to add another column for keys/index.
The value need not be a complex object, it can be a simple string or a number.