I would like to have a table of microscope slides, where on top of the basic id, name,date_created would each slide also have a number of editable "properties".
Imagine one slide having
- tumor_type
- dye_type
- description
- date_injected
And some other slide could have for example:
- patient_name
- treated_since
- description
I can't store all these in the slides table because I would like users to be able to chose used properties or add new ones if they wish to. Each property should also have a type, since some are integers, some text and some for example date and time and I would love to render a widget for them to simplify editing these values.
I planned to use MySQL, then I was pointed to use use PostgreSQL and its hstore, but that feels like a borderline experimental feature to me. Any suggestion how should I go about it?
This is what I came up with but it doesn't feel right to me:
Also all this will end up in Django (Python) if it makes any difference.
hstore
is far from being experimental, AFAIK.